Re: [Intel-gfx] [PATCH 1/1] drm/i915: gracefully reject mmap of huge tiled objects

2016-07-01 Thread Chris Wilson
On Thu, Jun 30, 2016 at 05:04:42PM -0700, James Xiong wrote: > From: "Xiong, James" > > currently mmap of a tiled object that is larger than mappable > aperture is rejected in fault handler, and causes sigbus error > and application crash. Please note that SIGBUS can be returned at any time. If

Re: [Intel-gfx] [RFC v2] drm/i915/chv: Clip cursor for CHV pipe C HW Cursor pos < 0

2016-07-01 Thread Shobhit Kumar
On 06/29/2016 06:24 PM, Shobhit Kumar wrote: From: Shobhit Kumar CHV pipe C hits underrun when we get negative crtc_x values of cursor. To avoid this we clip and shift the cursor image by negative crtc_x value. v2: Make a copy of cursor plane state and allocate new gem object and fb for cl

[Intel-gfx] [PATCH 1/2] drm/i915/ringbuffer: Move all generic engine->dispatch_batchbuffer together

2016-07-01 Thread Chris Wilson
Consolidate the block of default vfuncs for dispatching the batchbuffer. Just a minor tweak on top of Tvrtko's great job of tidying up the vfunc initialisation. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_ringbuffer.c | 27 ++- 1 file ch

[Intel-gfx] [PATCH 2/2] drm/i915/ringbuffer: Move all default irq vfuncs init to a separate func

2016-07-01 Thread Chris Wilson
Just plonk all the default irq vfuncs together in one function to keep the initialisers of reasonable size. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_ringbuffer.c | 43 ++--- 1 file changed, 24 insertions(+), 19 deletions(-) diff

Re: [Intel-gfx] [PATCH 1/2] drm/i915/ringbuffer: Move all generic engine->dispatch_batchbuffer together

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 09:18, Chris Wilson wrote: Consolidate the block of default vfuncs for dispatching the batchbuffer. Just a minor tweak on top of Tvrtko's great job of tidying up the vfunc initialisation. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_ringbuffer.c

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] drm/i915/ringbuffer: Move all generic engine->dispatch_batchbuffer together

2016-07-01 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/ringbuffer: Move all generic engine->dispatch_batchbuffer together URL : https://patchwork.freedesktop.org/series/9357/ State : failure == Summary == Series 9357v1 Series without cover letter http://patchwork.freedesktop.org/api

Re: [Intel-gfx] [PATCH 2/2] drm/i915/ringbuffer: Move all default irq vfuncs init to a separate func

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 09:18, Chris Wilson wrote: Just plonk all the default irq vfuncs together in one function to keep the initialisers of reasonable size. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_ringbuffer.c | 43 ++--- 1 file chang

Re: [Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] drm/i915/ringbuffer: Move all generic engine->dispatch_batchbuffer together

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 08:41:03AM -, Patchwork wrote: > == Series Details == > > Series: series starting with [1/2] drm/i915/ringbuffer: Move all generic > engine->dispatch_batchbuffer together > URL : https://patchwork.freedesktop.org/series/9357/ > State : failure > > == Summary == > >

Re: [Intel-gfx] [PATCH 04/11] drm/i915: Support for GuC interrupts

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 07:16, Goel, Akash wrote: [snip] +/* Process all the GuC to Host events in bottom half */ +gen6_disable_pm_irq(dev_priv, +GEN9_GUC_TO_HOST_INT_EVENT); Why it is important to disable the interrupt here? Not for the queue work I think. W

Re: [Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] Revert "drm/i915/kbl: drm/i915: Avoid GuC loading for now on Kabylake."

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 06:20, Patchwork wrote: > == Series Details == > > Series: series starting with [1/2] Revert "drm/i915/kbl: drm/i915: Avoid GuC > loading for now on Kabylake." > URL : https://patchwork.freedesktop.org/series/9332/ > State : failure > > == Summary == > > Series 9332v1 Series with

Re: [Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] Revert "drm/i915/kbl: drm/i915: Avoid GuC loading for now on Kabylake."

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 09:52:05AM +0100, Tvrtko Ursulin wrote: > > On 01/07/16 06:20, Patchwork wrote: > > == Series Details == > > > > Series: series starting with [1/2] Revert "drm/i915/kbl: drm/i915: Avoid > > GuC loading for now on Kabylake." > > URL : https://patchwork.freedesktop.org/se

Re: [Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] Revert "drm/i915/kbl: drm/i915: Avoid GuC loading for now on Kabylake."

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 09:52, Tvrtko Ursulin wrote: > > On 01/07/16 06:20, Patchwork wrote: >> == Series Details == >> >> Series: series starting with [1/2] Revert "drm/i915/kbl: drm/i915: Avoid GuC >> loading for now on Kabylake." >> URL : https://patchwork.freedesktop.org/series/9332/ >> State : failur

Re: [Intel-gfx] [PATCH 2/2] drm/i915/bxt: Fix sanity check for BIOS RC6 setup

2016-07-01 Thread Imre Deak
On pe, 2016-07-01 at 12:19 +0530, Kamble, Sagar A wrote: > Have seen BIOS having option "RC6" disabled and "GTPM" enabled for cases  > where there are RC6 specific issues. It's possible although I haven't seen any based on the specs I have and the tests I ran. In any case the checks I added shoul

[Intel-gfx] [PATCH] drm/i915/guc: Demote some firmware loading messages to debug

2016-07-01 Thread Tvrtko Ursulin
From: Tvrtko Ursulin These messages are not errors unless GuC loading or submission is in the mandatory mode and even then the final status will be logged as error in intel_guc_setup. Therefore demote the messages in guc_fw_fetch to DRM_DEBUG_DRIVER. If more detail about the cause of the fail i

Re: [Intel-gfx] [PATCH] drm/i915/guc: Demote some firmware loading messages to debug

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 10:35:12AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > These messages are not errors unless GuC loading or submission is > in the mandatory mode and even then the final status will be > logged as error in intel_guc_setup. > > Therefore demote the messages in g

[Intel-gfx] [PATCH] drm/i915/bxt: Export pooled eu info to userspace

2016-07-01 Thread Arun Siluvery
Pooled EU is a bxt only feature and kernel changes are already merged. This feature is not yet exposed to userspace as the support was not yet available. Beignet team expressed interest and added patches to use this. Since we now have a user and patches to use them, expose them from the kernel sid

Re: [Intel-gfx] [PATCH 04/11] drm/i915: Support for GuC interrupts

2016-07-01 Thread Goel, Akash
On 7/1/2016 2:17 PM, Tvrtko Ursulin wrote: On 01/07/16 07:16, Goel, Akash wrote: [snip] +/* Process all the GuC to Host events in bottom half */ +gen6_disable_pm_irq(dev_priv, +GEN9_GUC_TO_HOST_INT_EVENT); Why it is important to disable the inter

[Intel-gfx] [PATCH v2] drm/i915/guc: Demote some firmware loading messages to debug

2016-07-01 Thread Tvrtko Ursulin
From: Tvrtko Ursulin These messages are not errors unless GuC loading or submission is in the mandatory mode and even then the final status will be logged as error in intel_guc_setup. Therefore demote the messages in guc_fw_fetch to DRM_DEBUG_DRIVER. If more detail about the cause of the fail i

[Intel-gfx] ✗ Ro.CI.BAT: warning for drm/i915/guc: Demote some firmware loading messages to debug

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915/guc: Demote some firmware loading messages to debug URL : https://patchwork.freedesktop.org/series/9366/ State : warning == Summary == Series 9366v1 drm/i915/guc: Demote some firmware loading messages to debug http://patchwork.freedesktop.org/api/1.0/serie

[Intel-gfx] ✗ Ro.CI.BAT: failure for drm/i915/bxt: Export pooled eu info to userspace

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915/bxt: Export pooled eu info to userspace URL : https://patchwork.freedesktop.org/series/9367/ State : failure == Summary == CC drivers/acpi/acpica/uthex.o CC drivers/acpi/acpica/utids.o CC drivers/acpi/acpica/utinit.o CC drivers/

[Intel-gfx] ✗ Ro.CI.BAT: failure for drm/i915/guc: Demote some firmware loading messages to debug (rev2)

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915/guc: Demote some firmware loading messages to debug (rev2) URL : https://patchwork.freedesktop.org/series/9366/ State : failure == Summary == Series 9366v2 drm/i915/guc: Demote some firmware loading messages to debug http://patchwork.freedesktop.org/api/1.

[Intel-gfx] [PATCH] drm/i915/bxt: Export pooled eu info to userspace

2016-07-01 Thread Arun Siluvery
Pooled EU is a bxt only feature and kernel changes are already merged. This feature is not yet exposed to userspace as the support was not yet available. Beignet team expressed interest and added patches to use this. Since we now have a user and patches to use them, expose them from the kernel sid

Re: [Intel-gfx] [PATCH 2/2] drm/i915/bxt: Fix sanity check for BIOS RC6 setup

2016-07-01 Thread Kamble, Sagar A
On 7/1/2016 2:45 PM, Imre Deak wrote: On pe, 2016-07-01 at 12:19 +0530, Kamble, Sagar A wrote: Have seen BIOS having option "RC6" disabled and "GTPM" enabled for cases where there are RC6 specific issues. It's possible although I haven't seen any based on the specs I have and the tests I ran

[Intel-gfx] ✓ Ro.CI.BAT: success for drm/i915/bxt: Export pooled eu info to userspace (rev2)

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915/bxt: Export pooled eu info to userspace (rev2) URL : https://patchwork.freedesktop.org/series/9367/ State : success == Summary == Series 9367v2 drm/i915/bxt: Export pooled eu info to userspace http://patchwork.freedesktop.org/api/1.0/series/9367/revisions/

[Intel-gfx] To the gingerbread house!

2016-07-01 Thread Chris Wilson
Since those clamoring for the RC6 hole to be plugged are on holiday and didn't leave a review on the regression fixes, let's push this ahead of their return. Just a small number of patches left without r-b and then after almost 12 months of waiting we can close a critical customer issue. [PATCH 02

[Intel-gfx] [PATCH 03/20] drm/i915: Remove the dedicated hangcheck workqueue

2016-07-01 Thread Chris Wilson
The queue only ever contains at most one item and has no special flags. It is just a very simple wrapper around the system-wq - a complication with no benefits. v2: Use the system_long_wq as we may wish to capture the error state after detecting the hang - which may take a bit of time. Signed-off

[Intel-gfx] [PATCH 02/20] drm/i915: Delay queuing hangcheck to wait-request

2016-07-01 Thread Chris Wilson
We can forgo queuing the hangcheck from the start of every request to until we wait upon a request. This reduces the overhead of every request, but may increase the latency of detecting a hang. Howeever, if nothing every waits upon a hang, did it ever hang? It also improves the robustness of the wa

[Intel-gfx] [PATCH 01/20] drm/i915/shrinker: Flush active on objects before counting

2016-07-01 Thread Chris Wilson
As we inspect obj->active to decide how many objects we can shrink (we only shrink idle objects), it helps to flush the active lists first in order to have a more accurate count of available objects. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gem_shrin

[Intel-gfx] [PATCH 05/20] drm/i915: Separate GPU hang waitqueue from advance

2016-07-01 Thread Chris Wilson
Currently __i915_wait_request uses a per-engine wait_queue_t for the dual purpose of waking after the GPU advances or for waking after an error. In the future, we may add even more wake sources and require greater separation, but for now we can conceptually simplify wakeups by separating the two so

[Intel-gfx] [PATCH 06/20] drm/i915: Slaughter the thundering i915_wait_request herd

2016-07-01 Thread Chris Wilson
One particularly stressful scenario consists of many independent tasks all competing for GPU time and waiting upon the results (e.g. realtime transcoding of many, many streams). One bottleneck in particular is that each client waits on its own results, but every client is woken up after every batch

[Intel-gfx] [PATCH 07/20] drm/i915: Spin after waking up for an interrupt

2016-07-01 Thread Chris Wilson
When waiting for an interrupt (waiting for the engine to complete some work), we know we are the only waiter to be woken on this engine. We also know when the GPU has nearly completed our request (or at least started processing it), so after being woken and we detect that the GPU is active and work

[Intel-gfx] [PATCH 14/20] drm/i915: Only apply one barrier after a breadcrumb interrupt is posted

2016-07-01 Thread Chris Wilson
If we flag the seqno as potentially stale upon receiving an interrupt, we can use that information to reduce the frequency that we apply the heavyweight coherent seqno read (i.e. if we wake up a chain of waiters). v2: Use cmpxchg to replace READ_ONCE/WRITE_ONCE for more explicit control of the ord

[Intel-gfx] [PATCH 13/20] drm/i915: Check the CPU cached value in HWS of seqno after waking the waiter

2016-07-01 Thread Chris Wilson
If we have multiple waiters, we may find that many complete on the same wake up. If we first inspect the seqno from the CPU cache, we may reduce the number of heavyweight coherent seqno reads we require. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 10/20] drm/i915: Allocate scratch page from stolen

2016-07-01 Thread Chris Wilson
With the last direct CPU access to the scratch page removed, we can now allocate it from our small amount of reserved system pages (stolen memory). Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_ringbuffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 de

[Intel-gfx] [PATCH 04/20] drm/i915: Make queueing the hangcheck work inline

2016-07-01 Thread Chris Wilson
Since the function is a small wrapper around schedule_delayed_work(), move it inline to remove the function call overhead for the principle caller. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 18 +- drivers/gpu/drm/i915/i915_irq.

[Intel-gfx] [PATCH 11/20] drm/i915: Refactor scratch object allocation for gen2 w/a buffer

2016-07-01 Thread Chris Wilson
The gen2 w/a buffer is stuffed into the same slot as the gen5+ scratch buffer. If we pass in the size we want to allocate for the scratch buffer, both callers can use the same routine. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_lrc.c| 2 +- d

[Intel-gfx] [PATCH 12/20] drm/i915: Add a delay between interrupt and inspecting the final seqno (ilk)

2016-07-01 Thread Chris Wilson
On Ironlake, there is no command nor register to ensure that the write from a MI_STORE command is completed (and coherent on the CPU) before the command parser continues. This means that the ordering between the seqno write and the subsequent user interrupt is undefined (like gen6+). So to ensure t

[Intel-gfx] [PATCH 18/20] drm/i915: Move the get/put irq locking into the caller

2016-07-01 Thread Chris Wilson
With only a single callsite for intel_engine_cs->irq_get and ->irq_put, we can reduce the code size by moving the common preamble into the caller, and we can also eliminate the reference counting. For completeness, as we are no longer doing reference counting on irq, rename the get/put vfunctions

[Intel-gfx] [PATCH 17/20] drm/i915: Embed signaling node into the GEM request

2016-07-01 Thread Chris Wilson
Under the assumption that enabling signaling will be a frequent operation, lets preallocate our attachments for signaling inside the (rather large) request struct (and so benefiting from the slab cache). v2: Convert from void * to more meaningful names and types. Signed-off-by: Chris Wilson Revi

[Intel-gfx] [PATCH 20/20] drm/i915: Remove debug noise on detecting fault-injection of missed interrupts

2016-07-01 Thread Chris Wilson
Since the tests can and do explicitly check debugfs/i915_ring_missed_irqs for the handling of a "missed interrupt", adding it to the dmesg at INFO is just noise. When it happens for real, we still class it as an ERROR. Note that I have chose to remove it entirely because when we detect the "missed

[Intel-gfx] [PATCH 19/20] drm/i915: Simplify enabling user-interrupts with L3-remapping

2016-07-01 Thread Chris Wilson
Borrow the idea from intel_lrc.c to precompute the mask of interrupts we wish to always enable to avoid having lots of conditionals inside the interrupt enabling. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_ringbuffer.c | 34 +++

[Intel-gfx] [PATCH 15/20] drm/i915: Stop setting wraparound seqno on initialisation

2016-07-01 Thread Chris Wilson
We have testcases to ensure that seqno wraparound works fine, so we can forgo forcing everyone to encounter seqno wraparound during early uptime. seqno wraparound incurs a full GPU stall so not forcing it will eliminate one jitter from the early system. Using the testcases, we have very determinist

[Intel-gfx] [PATCH 16/20] drm/i915: Convert trace-irq to the breadcrumb waiter

2016-07-01 Thread Chris Wilson
If we convert the tracing over from direct use of ring->irq_get() and over to the breadcrumb infrastructure, we only have a single user of the ring->irq_get and so we will be able to simplify the driver routines (eliminating the redundant validation and irq refcounting). Process context is preferr

[Intel-gfx] [PATCH 09/20] drm/i915: Stop mapping the scratch page into CPU space

2016-07-01 Thread Chris Wilson
After the elimination of using the scratch page for Ironlake's breadcrumb, we no longer need to kmap the object. We therefore can move it into the high unmappable space and do not need to force the object to be coherent (i.e. snooped on !llc platforms). Signed-off-by: Chris Wilson Reviewed-by: Tv

[Intel-gfx] [PATCH 08/20] drm/i915: Use HWS for seqno tracking everywhere

2016-07-01 Thread Chris Wilson
By using the same address for storing the HWS on every platform, we can remove the platform specific vfuncs and reduce the get-seqno routine to a single read of a cached memory location. v2: Fix semaphore_passed() to look at the signaling engine (not the waiter's) Signed-off-by: Chris Wilson ---

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [01/20] drm/i915/shrinker: Flush active on objects before counting

2016-07-01 Thread Patchwork
== Series Details == Series: series starting with [01/20] drm/i915/shrinker: Flush active on objects before counting URL : https://patchwork.freedesktop.org/series/9370/ State : failure == Summary == Series 9370v1 Series without cover letter http://patchwork.freedesktop.org/api/1.0/series/937

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Export pooled eu info to userspace

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 11:43:02AM +0100, Arun Siluvery wrote: > Pooled EU is a bxt only feature and kernel changes are already merged. This > feature is not yet exposed to userspace as the support was not yet > available. Beignet team expressed interest and added patches to use this. > > Since we

Re: [Intel-gfx] ✓ Ro.CI.BAT: success for series starting with [1/2] drm/i915: Fix log type for RC6 debug messages

2016-07-01 Thread Imre Deak
On ke, 2016-06-29 at 17:06 +, Patchwork wrote: > == Series Details == > > Series: series starting with [1/2] drm/i915: Fix log type for RC6 > debug messages > URL   : https://patchwork.freedesktop.org/series/9285/ > State : success Thanks for the review, I pushed the patches to -dinq. > == S

Re: [Intel-gfx] [PATCH v4 0/2] drm/i915/opregion: proper handling of DIDL and CADL

2016-07-01 Thread Rainer Koenig
Found a problem: After screensaver kicked in and display was turned off the brightness keys stop working. Problem can be reproduced like that: 1. Boot laptop 2. Test brightness keys, they are working 3. open Terminal and issue "xset -display :0 dpms force off" 4. the screen goes blank (like after

[Intel-gfx] [PATCH i-g-t 2/2] overlay/Makefile.am: Use lib path for i915_pciids.h

2016-07-01 Thread Marius Vlad
This is due to commit d308bb082d429eb25 (lib: Start weaning off defunct intel_chipset.h) which ``moved'' i915_pciids.h to lib/ from overlay/. Signed-off-by: Marius Vlad CC: Chris Wilson --- overlay/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/Makefile.

[Intel-gfx] [PATCH i-g-t 1/2] tests/gvt_basic: Test w/o sub-test requires simple_main

2016-07-01 Thread Marius Vlad
Signed-off-by: Marius Vlad CC: Chris Wilson --- tests/gvt_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gvt_basic.c b/tests/gvt_basic.c index 9e17f29..056c472 100644 --- a/tests/gvt_basic.c +++ b/tests/gvt_basic.c @@ -26,7 +26,7 @@ IGT_TEST_DESCRIPTION("Bas

Re: [Intel-gfx] [PATCH i-g-t 1/2] tests/gvt_basic: Test w/o sub-test requires simple_main

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 03:32:44PM +0300, Marius Vlad wrote: > Signed-off-by: Marius Vlad > CC: Chris Wilson > --- > tests/gvt_basic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This is a stub that I expect to be filled with subtests. I want to keep it easy for people to add tests.

Re: [Intel-gfx] [PATCH i-g-t 2/2] overlay/Makefile.am: Use lib path for i915_pciids.h

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 03:32:45PM +0300, Marius Vlad wrote: > This is due to commit d308bb082d429eb25 (lib: Start weaning off defunct > intel_chipset.h) which ``moved'' i915_pciids.h to lib/ from overlay/. > > Signed-off-by: Marius Vlad > CC: Chris Wilson The line can be dropped from sources,

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Export pooled eu info to userspace

2016-07-01 Thread Arun Siluvery
On 01/07/2016 12:56, Chris Wilson wrote: On Fri, Jul 01, 2016 at 11:43:02AM +0100, Arun Siluvery wrote: Pooled EU is a bxt only feature and kernel changes are already merged. This feature is not yet exposed to userspace as the support was not yet available. Beignet team expressed interest and ad

Re: [Intel-gfx] [PATCH 2/2] i915/guc: Add Kabylake GuC Loading

2016-07-01 Thread Michel Thierry
On 6/30/2016 5:37 PM, Rodrigo Vivi wrote: From: Peter Antoine This patch added the loading of the GuC for Kabylake. It loads a 9.14 firmware. Hello, in case you need a fresh r-b for v3: v2: Fix commit message v3: Fix major/minor var names to match -nightly. (Rodrigo) Cc: Christophe Prigent

Re: [Intel-gfx] [PATCH i-g-t 1/2] tests/gvt_basic: Test w/o sub-test requires simple_main

2016-07-01 Thread Marius Vlad
Right, but bare in mind that it can't be released as is... On Fri, Jul 01, 2016 at 01:33:02PM +0100, Chris Wilson wrote: > On Fri, Jul 01, 2016 at 03:32:44PM +0300, Marius Vlad wrote: > > Signed-off-by: Marius Vlad > > CC: Chris Wilson > > --- > > tests/gvt_basic.c | 2 +- > > 1 file changed, 1

Re: [Intel-gfx] [PATCH i-g-t 2/2] overlay/Makefile.am: Use lib path for i915_pciids.h

2016-07-01 Thread Marius Vlad
On Fri, Jul 01, 2016 at 01:33:36PM +0100, Chris Wilson wrote: > On Fri, Jul 01, 2016 at 03:32:45PM +0300, Marius Vlad wrote: > > This is due to commit d308bb082d429eb25 (lib: Start weaning off defunct > > intel_chipset.h) which ``moved'' i915_pciids.h to lib/ from overlay/. > > > > Signed-off-by:

[Intel-gfx] [PATCH v2 6/6] drm/i915/huc: Add BXT HuC Loading Support

2016-07-01 Thread Peter Antoine
This patch adds the HuC Loading for the BXT. Version 1.7 of the HuC firmware. Signed-off-by: Peter Antoine --- drivers/gpu/drm/i915/intel_huc_loader.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_huc_loader.c b/drivers/gpu/drm/i915/intel_huc_loader.c ind

[Intel-gfx] [PATCH v2 5/6] drm/i915/huc: Support HuC authentication

2016-07-01 Thread Peter Antoine
The HuC authentication is done by host2guc call. The HuC RSA keys are sent to GuC for authentication. v2: rebased on top of drm-intel-nightly. changed name format and upped version 1.7. Signed-off-by: Alex Dai Signed-off-by: Peter Antoine --- drivers/gpu/drm/i915/i915_guc_submission.c | 65

[Intel-gfx] [PATCH v2 2/6] drm/i915/huc: Unified css_header struct for GuC and HuC

2016-07-01 Thread Peter Antoine
HuC firmware css header has almost exactly same definition as GuC firmware except for the sw_version. Also, add a new member fw_type into intel_uc_fw to indicate what kind of fw it is. So, the loader will pull right sw_version from header. v2: rebased on-top of drn-intel-nightly Signed-off-by: Al

[Intel-gfx] [PATCH v2 3/6] drm/i915/huc: Add HuC fw loading support

2016-07-01 Thread Peter Antoine
The HuC loading process is similar to GuC. The intel_uc_fw_fetch() is used for both cases. HuC loading needs to be before GuC loading. The WOPCM setting must be done early before loading any of them. v2: rebased on-top of drm-intel-nightly. removed if(HAS_GUC()) before the guc call. (D.Gordon

[Intel-gfx] [PATCH v2 0/6] HuC Loading Patches

2016-07-01 Thread Peter Antoine
This patch series enables the HuC loading. These patches are a port of the patches that were created by Yu Dai (Alex) and have been ported to work with the new GuC patches. The series include a patch to enable the HuC on BXT. This is a separate patch as the state of the BXT HuC firmware is still i

[Intel-gfx] [PATCH v2 1/6] drm/i915/guc: Make the GuC fw loading helper functions general

2016-07-01 Thread Peter Antoine
Rename some of the GuC fw loading code to make them more general. We will utilise them for HuC loading as well. s/intel_guc_fw/intel_uc_fw/g s/GUC_FIRMWARE/UC_FIRMWARE/g Struct intel_guc_fw is renamed to intel_uc_fw. Prefix of tts members, such as 'guc' or 'guc_fw' either is renamed to '

[Intel-gfx] [PATCH v2 4/6] drm/i915/huc: Add debugfs for HuC loading status check

2016-07-01 Thread Peter Antoine
Add debugfs entry for HuC loading status check. v2: rebase on-top of drm-intel-nightly. Signed-off-by: Alex Dai Signed-off-by: Peter Antoine --- drivers/gpu/drm/i915/i915_debugfs.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_d

Re: [Intel-gfx] [PATCH i-g-t 2/2] overlay/Makefile.am: Use lib path for i915_pciids.h

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 04:19:31PM +0300, Marius Vlad wrote: > On Fri, Jul 01, 2016 at 01:33:36PM +0100, Chris Wilson wrote: > > On Fri, Jul 01, 2016 at 03:32:45PM +0300, Marius Vlad wrote: > > > This is due to commit d308bb082d429eb25 (lib: Start weaning off defunct > > > intel_chipset.h) which ``

Re: [Intel-gfx] [PATCH i-g-t 1/2] tests/gvt_basic: Test w/o sub-test requires simple_main

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 04:18:46PM +0300, Marius Vlad wrote: > Right, but bare in mind that it can't be released as is... Why not? Which bit of infrastructure is broken? Just add a igt_subtest_f("placeholder") ; -Chris -- Chris Wilson, Intel Open Source Technology Centre ___

[Intel-gfx] [PATCH v3 1/3] drm/i915/gen9: Clean up MOCS table definitions

2016-07-01 Thread Imre Deak
Use named struct initializers for clarity. Also fix the target cache definition to reflect its role in GEN9 onwards. On GEN8 a TC value of 0 meant ELLC but on GEN9+ it means the TC and LRU controls are taken from the PTE. No functional change, igt/gem_mocs_settings still passing after this change.

[Intel-gfx] [PATCH v3 0/3] drm/i915/bxt: Fix performance due to bogus MOCS entry

2016-07-01 Thread Imre Deak
This is v3 of [1] addressing Ville's and Chris' comments. On Daniel's request I also discussed about these changes with Rong R Yang from the Beignet and Yakui Zhao from the Libva team, they are CC'd. Rong, Yakui please add your Acked-by/Tested-by if you are ok with the changes. I suggest merging

[Intel-gfx] [PATCH v3 2/3] drm/i915/bxt: Fix inadvertent CPU snooping due to incorrect MOCS config

2016-07-01 Thread Imre Deak
Setting a write-back cache policy in the MOCS entry definition also implies snooping, which has a considerable overhead. This is unexpected for a few reasons: - From user-space's point of view since it didn't want a coherent surface (it didn't set the buffer as such via the set caching IOCTL). -

[Intel-gfx] [PATCH v3 3/3] drm/i915: Give proper names to MOCS entries

2016-07-01 Thread Imre Deak
The purpose for each MOCS entry isn't well defined atm. Defining these is important to remove any uncertainty about the use of these entries for example in terms of performance and GPU/CPU coherency. Suggested by Ville. CC: Rong R Yang CC: Yakui Zhao CC: Ville Syrjälä CC: Chris Wilson Signed-

Re: [Intel-gfx] [PATCH] Runtime: set the sub slice according to kernel pooled EU configure.

2016-07-01 Thread Arun Siluvery
On 30/06/2016 09:43, Song, Ruiling wrote: LGTM Ruiling Could you please let me know whether these patches are merged/yet to be merged? I have submitted kernel patch which is ready to be merged but we would like to know if userspace bits are merged or not? https://lists.freedesktop.org/ar

Re: [Intel-gfx] [PATCH v3 3/3] drm/i915: Give proper names to MOCS entries

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 04:40:06PM +0300, Imre Deak wrote: > The purpose for each MOCS entry isn't well defined atm. Defining these > is important to remove any uncertainty about the use of these entries > for example in terms of performance and GPU/CPU coherency. > > Suggested by Ville. > > CC:

Re: [Intel-gfx] [PATCH v4 0/2] drm/i915/opregion: proper handling of DIDL and CADL

2016-07-01 Thread Jani Nikula
On Fri, 01 Jul 2016, Rainer Koenig wrote: > Found a problem: After screensaver kicked in and display was turned off > the brightness keys stop working. > > Problem can be reproduced like that: > > 1. Boot laptop > 2. Test brightness keys, they are working > 3. open Terminal and issue "xset -displa

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Export pooled eu info to userspace

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 13:45, Arun Siluvery wrote: On 01/07/2016 12:56, Chris Wilson wrote: On Fri, Jul 01, 2016 at 11:43:02AM +0100, Arun Siluvery wrote: Pooled EU is a bxt only feature and kernel changes are already merged. This feature is not yet exposed to userspace as the support was not yet availab

Re: [Intel-gfx] [PATCH v3 3/3] drm/i915: Give proper names to MOCS entries

2016-07-01 Thread Imre Deak
On pe, 2016-07-01 at 14:49 +0100, Chris Wilson wrote: > On Fri, Jul 01, 2016 at 04:40:06PM +0300, Imre Deak wrote: > > The purpose for each MOCS entry isn't well defined atm. Defining these > > is important to remove any uncertainty about the use of these entries > > for example in terms of perform

[Intel-gfx] ✗ Ro.CI.BAT: warning for HuC Loading Patches (rev2)

2016-07-01 Thread Patchwork
== Series Details == Series: HuC Loading Patches (rev2) URL : https://patchwork.freedesktop.org/series/9011/ State : warning == Summary == Series 9011v2 HuC Loading Patches http://patchwork.freedesktop.org/api/1.0/series/9011/revisions/2/mbox Test drv_hangman: Subgroup error-state-bas

Re: [Intel-gfx] [PATCH 08/20] drm/i915: Use HWS for seqno tracking everywhere

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 12:22, Chris Wilson wrote: By using the same address for storing the HWS on every platform, we can remove the platform specific vfuncs and reduce the get-seqno routine to a single read of a cached memory location. v2: Fix semaphore_passed() to look at the signaling engine (not the w

Re: [Intel-gfx] [PATCH v2 1/4] drm: Helper for lspcon in drm_dp_dual_mode

2016-07-01 Thread Rodrigo Vivi
On Thu, Jun 30, 2016 at 10:58 PM, Sharma, Shashank wrote: > Thanks for the review Rodrigo. My comments inline. > > Regards > Shashank > > > On 7/1/2016 3:46 AM, Rodrigo Vivi wrote: >> >> On Tue, Jun 21, 2016 at 8:00 AM, Shashank Sharma >> wrote: >>> >>> This patch adds lspcon support in dp_dual_m

Re: [Intel-gfx] [PATCH 08/20] drm/i915: Use HWS for seqno tracking everywhere

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 03:09:16PM +0100, Tvrtko Ursulin wrote: > Looks OK if Gen5 is happy about it. Happier than it has been for years. Still trying to beat some odd coherency issues that upset igt (not introduced by these patches I hasten to add), but we may just about get it working in time fo

Re: [Intel-gfx] [PATCH 12/20] drm/i915: Add a delay between interrupt and inspecting the final seqno (ilk)

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 12:22, Chris Wilson wrote: On Ironlake, there is no command nor register to ensure that the write from a MI_STORE command is completed (and coherent on the CPU) before the command parser continues. This means that the ordering between the seqno Command *streamer* I think. (More ins

[Intel-gfx] [PATCH v4 3/3] drm/i915: Give proper names to MOCS entries

2016-07-01 Thread Imre Deak
The purpose for each MOCS entry isn't well defined atm. Defining these is important to remove any uncertainty about the use of these entries for example in terms of performance and GPU/CPU coherency. Suggested by Ville. v4: - Rename I915_MOCS_AUTO to I915_MOCS_PTE. (Chris) CC: Rong R Yang CC: Y

Re: [Intel-gfx] [PATCH 12/20] drm/i915: Add a delay between interrupt and inspecting the final seqno (ilk)

2016-07-01 Thread Chris Wilson
On Fri, Jul 01, 2016 at 03:27:40PM +0100, Tvrtko Ursulin wrote: > > On 01/07/16 12:22, Chris Wilson wrote: > >On Ironlake, there is no command nor register to ensure that the write > >from a MI_STORE command is completed (and coherent on the CPU) before the > >command parser continues. This means

Re: [Intel-gfx] [PATCH 18/20] drm/i915: Move the get/put irq locking into the caller

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 12:22, Chris Wilson wrote: With only a single callsite for intel_engine_cs->irq_get and ->irq_put, we can reduce the code size by moving the common preamble into the caller, and we can also eliminate the reference counting. For completeness, as we are no longer doing reference count

[Intel-gfx] [PATCH] drm/i915/bxt: Remove the preliminary_hw_support flag

2016-07-01 Thread Imre Deak
Broxton is now part of CI which doesn't indicate any major problems so enable the driver by default. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/i915_pci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c index a7f8f4f..94

Re: [Intel-gfx] [PATCH] drm/i915/bxt: Remove the preliminary_hw_support flag

2016-07-01 Thread Rodrigo Vivi
Reviewed-by: Rodrigo Vivi On Fri, Jul 1, 2016 at 7:40 AM, Imre Deak wrote: > Broxton is now part of CI which doesn't indicate any major problems so > enable the driver by default. > > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/i915_pci.c | 1 - > 1 file changed, 1 deletion(-) > > di

[Intel-gfx] ✗ Ro.CI.BAT: warning for drm/i915/bxt: Fix performance due to bogus MOCS entry

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915/bxt: Fix performance due to bogus MOCS entry URL : https://patchwork.freedesktop.org/series/9377/ State : warning == Summary == Series 9377v1 drm/i915/bxt: Fix performance due to bogus MOCS entry http://patchwork.freedesktop.org/api/1.0/series/9377/revisio

Re: [Intel-gfx] [PATCH 05/20] drm/i915: Separate GPU hang waitqueue from advance

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 12:22, Chris Wilson wrote: Currently __i915_wait_request uses a per-engine wait_queue_t for the dual purpose of waking after the GPU advances or for waking after an error. In the future, we may add even more wake sources and require greater separation, but for now we can conceptually

[Intel-gfx] ✗ Ro.CI.BAT: warning for drm/i915/bxt: Fix performance due to bogus MOCS entry (rev2)

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915/bxt: Fix performance due to bogus MOCS entry (rev2) URL : https://patchwork.freedesktop.org/series/9377/ State : warning == Summary == Series 9377v2 drm/i915/bxt: Fix performance due to bogus MOCS entry http://patchwork.freedesktop.org/api/1.0/series/9377/

Re: [Intel-gfx] [PATCH 02/20] drm/i915: Delay queuing hangcheck to wait-request

2016-07-01 Thread Tvrtko Ursulin
On 01/07/16 12:22, Chris Wilson wrote: We can forgo queuing the hangcheck from the start of every request to until we wait upon a request. This reduces the overhead of every request, but may increase the latency of detecting a hang. Howeever, if nothing every waits upon a hang, did it ever hang?

[Intel-gfx] ✗ Ro.CI.BAT: warning for drm/i915/bxt: Remove the preliminary_hw_support flag

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915/bxt: Remove the preliminary_hw_support flag URL : https://patchwork.freedesktop.org/series/9381/ State : warning == Summary == Series 9381v1 drm/i915/bxt: Remove the preliminary_hw_support flag http://patchwork.freedesktop.org/api/1.0/series/9381/revisions

Re: [Intel-gfx] [PATCH 1/1] drm/i915: gracefully reject mmap of huge tiled objects

2016-07-01 Thread Xiong, James
Thanks, James -Original Message- From: Chris Wilson [mailto:chris.ickle.wil...@gmail.com] On Behalf Of Chris Wilson Sent: Friday, July 1, 2016 12:25 AM To: Xiong, James Cc: intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH 1/1] drm/i915: gracefully reject mmap of huge tile

[Intel-gfx] ✓ Ro.CI.BAT: success for drm/i915: Mass convert dev->dev_private to to_i915(dev)

2016-07-01 Thread Patchwork
== Series Details == Series: drm/i915: Mass convert dev->dev_private to to_i915(dev) URL : https://patchwork.freedesktop.org/series/9385/ State : success == Summary == Series 9385v1 drm/i915: Mass convert dev->dev_private to to_i915(dev) http://patchwork.freedesktop.org/api/1.0/series/9385/rev

[Intel-gfx] [CI 05/20] drm/i915: Separate GPU hang waitqueue from advance

2016-07-01 Thread Chris Wilson
Currently __i915_wait_request uses a per-engine wait_queue_t for the dual purpose of waking after the GPU advances or for waking after an error. In the future, we may add even more wake sources and require greater separation, but for now we can conceptually simplify wakeups by separating the two so

[Intel-gfx] [CI 01/20] drm/i915/shrinker: Flush active on objects before counting

2016-07-01 Thread Chris Wilson
As we inspect obj->active to decide how many objects we can shrink (we only shrink idle objects), it helps to flush the active lists first in order to have a more accurate count of available objects. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gem_shrin

[Intel-gfx] [CI 10/20] drm/i915: Allocate scratch page from stolen

2016-07-01 Thread Chris Wilson
With the last direct CPU access to the scratch page removed, we can now allocate it from our small amount of reserved system pages (stolen memory). Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_ringbuffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 de

[Intel-gfx] [CI 06/20] drm/i915: Slaughter the thundering i915_wait_request herd

2016-07-01 Thread Chris Wilson
One particularly stressful scenario consists of many independent tasks all competing for GPU time and waiting upon the results (e.g. realtime transcoding of many, many streams). One bottleneck in particular is that each client waits on its own results, but every client is woken up after every batch

[Intel-gfx] [CI 04/20] drm/i915: Make queueing the hangcheck work inline

2016-07-01 Thread Chris Wilson
Since the function is a small wrapper around schedule_delayed_work(), move it inline to remove the function call overhead for the principle caller. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 18 +- drivers/gpu/drm/i915/i915_irq.

[Intel-gfx] [CI 11/20] drm/i915: Refactor scratch object allocation for gen2 w/a buffer

2016-07-01 Thread Chris Wilson
The gen2 w/a buffer is stuffed into the same slot as the gen5+ scratch buffer. If we pass in the size we want to allocate for the scratch buffer, both callers can use the same routine. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_lrc.c| 2 +- d

[Intel-gfx] [CI 12/20] drm/i915: Add a delay between interrupt and inspecting the final seqno (ilk)

2016-07-01 Thread Chris Wilson
On Ironlake, there is no command nor register to ensure that the write from a MI_STORE command is completed (and coherent on the CPU) before the command parser continues. This means that the ordering between the seqno write and the subsequent user interrupt is undefined (like gen6+). So to ensure t

[Intel-gfx] [CI 02/20] drm/i915: Delay queuing hangcheck to wait-request

2016-07-01 Thread Chris Wilson
We can forgo queuing the hangcheck from the start of every request to until we wait upon a request. This reduces the overhead of every request, but may increase the latency of detecting a hang. However, if nothing every waits upon a hang, did it ever hang? It also improves the robustness of the wai

  1   2   >