Re: [Intel-gfx] [PATCH] drm/i915: Skip clearing the GGTT on full-ppgtt systems

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 09:22:03AM +0300, Joonas Lahtinen wrote: > On to, 2016-05-12 at 12:19 +0100, Chris Wilson wrote: > > Under full-ppgtt, access to the global GTT is carefully regulated > > through hardware functions (i.e. userspace cannot read and write to > > arbitrary locations in the GGTT

Re: [Intel-gfx] [PATCH v8 4/6] drm/i915: Interrupt driven fences

2016-05-13 Thread Chris Wilson
On Thu, May 12, 2016 at 10:06:34PM +0100, john.c.harri...@intel.com wrote: > +void i915_gem_request_notify(struct intel_engine_cs *engine, bool > fence_locked) > +{ > + struct drm_i915_gem_request *req, *req_next; > + unsigned long flags; > u32 seqno; > > - seqno = req->engine-

Re: [Intel-gfx] FreeBSD i915 driver update

2016-05-13 Thread Jani Nikula
On Fri, 13 May 2016, Scott Long wrote: > Jean-Sébastien and other developers have been discussing a new approach > for post-3.8.13 updates. Instead of maintaining a large set of changes, > the plan is to keep the driver as close as possible to the upstream Linux > version, and use straightforward

Re: [Intel-gfx] [PATCH v2 1/4] drm/i915: Add distinct stubs for PM hibernation phases

2016-05-13 Thread Joonas Lahtinen
On to, 2016-05-12 at 15:28 +0100, Chris Wilson wrote: > Currently for handling the extra hibernation phases we just call the > equivalent suspend/resume phases. In the next couple of patches, I wish > to specialise the hibernation phases to reduce the amount of work > required for handling GEM obje

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915: Update domain tracking for GEM objects on hibernation

2016-05-13 Thread Joonas Lahtinen
On to, 2016-05-12 at 15:28 +0100, Chris Wilson wrote: > When creating the hibernation image, the CPU will read the pages of all > objects and thus conflict with our domain tracking. We need to update > our domain tracking to accurately reflect the state on restoration. > > v2: Perform the domain t

Re: [Intel-gfx] [PATCH v8 1/6] drm/i915: Add per context timelines to fence object

2016-05-13 Thread Chris Wilson
On Thu, May 12, 2016 at 10:06:31PM +0100, john.c.harri...@intel.com wrote: > From: John Harrison > > The fence object used inside the request structure requires a sequence > number. Although this is not used by the i915 driver itself, it could > potentially be used by non-i915 code if the fence i

Re: [Intel-gfx] [PATCH v8 6/6] drm/i915: Cache last IRQ seqno to reduce IRQ overhead

2016-05-13 Thread Chris Wilson
On Thu, May 12, 2016 at 10:06:36PM +0100, john.c.harri...@intel.com wrote: > From: John Harrison > > The notify function can be called many times without the seqno > changing. Some are to prevent races due to the requirement of not > enabling interrupts until requested. However, when interrupts a

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: Lazily migrate the objects after hibernation

2016-05-13 Thread Joonas Lahtinen
On to, 2016-05-12 at 15:28 +0100, Chris Wilson wrote: > Now that we mark the object domains for having been restored from the > hibernation image, we not need to flush everything during resume and > can instead rely on the normal domain tracking to flush only when > required. The only caveat here a

Re: [Intel-gfx] [PATCH v8 0/6] Convert requests to use struct fence

2016-05-13 Thread Chris Wilson
On Thu, May 12, 2016 at 10:06:30PM +0100, john.c.harri...@intel.com wrote: > Added support for possible RCU usage of fence object (Review comments > by Maarten Lankhorst). You mean like https://cgit.freedesktop.org/~ickle/linux-2.6/commit/?h=tasklet&id=001f3468762ca49137b5658f2aa58507dbfa4a05 ? -C

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915: Skip clearing the GGTT on full-ppgtt systems

2016-05-13 Thread Joonas Lahtinen
On to, 2016-05-12 at 15:28 +0100, Chris Wilson wrote: > Under full-ppgtt, access to the global GTT is carefully regulated > through hardware functions (i.e. userspace cannot read and write to > arbitrary locations in the GGTT via the GPU). With this restriction in > place, we can forgo clearing sta

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/hda: Add audio component stub

2016-05-13 Thread Takashi Iwai
On Thu, 12 May 2016 20:06:53 +0200, Imre Deak wrote: > > User may pass nomodeset or i915.modeset=0 option to disable i915 KMS > explicitly. Although this itself works fine, it breaks the weak > dependency the HD-audio driver requires, and it's the reason the > delayed component binding isn't impl

[Intel-gfx] [PATCH v2] drm/i915: Stop automatically retiring requests after a GPU hang

2016-05-13 Thread Chris Wilson
Following a GPU hang, we break out of the request loop in order to unlock the struct_mutex for use by the GPU reset. However, if we retire all the requests at that moment, we cannot identify the guilty request after performing the reset. v2: Not automatically retiring requests forces us to recheck

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] drm/i915: Stop retiring requests from busy-ioctl (rev2)

2016-05-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Stop retiring requests from busy-ioctl (rev2) URL : https://patchwork.freedesktop.org/series/7059/ State : failure == Summary == Series 7059v2 Series without cover letter http://patchwork.freedesktop.org/api/1.0/series/7059/rev

[Intel-gfx] [PATCH] drm/i915: Rename struct dpll to struct intel_dpll

2016-05-13 Thread Ander Conselvan de Oliveira
Prefix struct dpll with intel_ to follow the convention in the driver. Cc: Ville Syrjälä Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 76 +

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Stop retiring requests from busy-ioctl

2016-05-13 Thread Tvrtko Ursulin
On 12/05/16 11:25, Chris Wilson wrote: In order to reduce the workload of the caller, we do not want to actually have to retire requests of others when checking the status of this object. Wrt the subject, and from wait ioctl as well. Also i915_gem_object_sync / i915_gem_execbuffer_move_to_gpu

Re: [Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/3] drm/i915: Remove intel_clock_t typedef

2016-05-13 Thread Conselvan De Oliveira, Ander
On Thu, 2016-05-12 at 15:12 +, Patchwork wrote: > == Series Details == > > Series: series starting with [1/3] drm/i915: Remove intel_clock_t typedef > URL   : https://patchwork.freedesktop.org/series/6718/ > State : failure > > == Summary == > > Series 6718v1 Series without cover letter > ht

Re: [Intel-gfx] FreeBSD i915 driver update

2016-05-13 Thread Scott Long
> On May 13, 2016, at 1:34 AM, Jani Nikula wrote: > > On Fri, 13 May 2016, Scott Long wrote: >> Jean-Sébastien and other developers have been discussing a new approach >> for post-3.8.13 updates. Instead of maintaining a large set of changes, >> the plan is to keep the driver as close as possib

Re: [Intel-gfx] [PATCH v2] drm/i915: Stop automatically retiring requests after a GPU hang

2016-05-13 Thread Mika Kuoppala
Chris Wilson writes: > [ text/plain ] > Following a GPU hang, we break out of the request loop in order to > unlock the struct_mutex for use by the GPU reset. However, if we retire > all the requests at that moment, we cannot identify the guilty request > after performing the reset. > > v2: Not a

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Stop retiring requests from busy-ioctl

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 09:38:54AM +0100, Tvrtko Ursulin wrote: > > On 12/05/16 11:25, Chris Wilson wrote: > >In order to reduce the workload of the caller, we do not want to > >actually have to retire requests of others when checking the status of > >this object. > > Wrt the subject, and from wa

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Stop retiring requests from busy-ioctl

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 09:50, Chris Wilson wrote: On Fri, May 13, 2016 at 09:38:54AM +0100, Tvrtko Ursulin wrote: On 12/05/16 11:25, Chris Wilson wrote: In order to reduce the workload of the caller, we do not want to actually have to retire requests of others when checking the status of this object.

Re: [Intel-gfx] [PATCH v8 1/6] drm/i915: Add per context timelines to fence object

2016-05-13 Thread John Harrison
On 13/05/2016 08:39, Chris Wilson wrote: On Thu, May 12, 2016 at 10:06:31PM +0100, john.c.harri...@intel.com wrote: From: John Harrison The fence object used inside the request structure requires a sequence number. Although this is not used by the i915 driver itself, it could potentially be us

Re: [Intel-gfx] [PATCH v8 4/6] drm/i915: Interrupt driven fences

2016-05-13 Thread John Harrison
On 13/05/2016 08:27, Chris Wilson wrote: On Thu, May 12, 2016 at 10:06:34PM +0100, john.c.harri...@intel.com wrote: +void i915_gem_request_notify(struct intel_engine_cs *engine, bool fence_locked) +{ + struct drm_i915_gem_request *req, *req_next; + unsigned long flags; u32 se

[Intel-gfx] ✗ Ro.CI.BAT: failure for drm/i915: Rename struct dpll to struct intel_dpll

2016-05-13 Thread Patchwork
== Series Details == Series: drm/i915: Rename struct dpll to struct intel_dpll URL : https://patchwork.freedesktop.org/series/7128/ State : failure == Summary == Series 7128v1 drm/i915: Rename struct dpll to struct intel_dpll http://patchwork.freedesktop.org/api/1.0/series/7128/revisions/1/mbo

Re: [Intel-gfx] [PATCH v2] drm/i915: Stop automatically retiring requests after a GPU hang

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 11:43:25AM +0300, Mika Kuoppala wrote: > Chris Wilson writes: > > > [ text/plain ] > > Following a GPU hang, we break out of the request loop in order to > > unlock the struct_mutex for use by the GPU reset. However, if we retire > > all the requests at that moment, we can

[Intel-gfx] [PATCH 2/2] drm/i915: Complete pending resets before get-reset-stats ioctl

2016-05-13 Thread Chris Wilson
The get-reset-stats ioctls wasn't waiting for a pending reset before reporting its statistics, and so was ignoring a hang generated by the context that should have been reported against said context. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_context.c | 2 +- 1 file changed,

[Intel-gfx] [PATCH 1/2] drm/i915: Move get-reset-stats ioctl from intel_uncore.c to i915_gem_context.c

2016-05-13 Thread Chris Wilson
The get-reset-stats ioctl reports upon the statistics (number of hangs, be it as a victim or the guilty party) of a particular context. It is semantically better as being part of i915_gem_context.c user interface, as opposed to the hardware level access of intel_uncore.c Signed-off-by: Chris Wilso

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] drm/i915: Stop retiring requests from busy-ioctl (rev4)

2016-05-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Stop retiring requests from busy-ioctl (rev4) URL : https://patchwork.freedesktop.org/series/7059/ State : failure == Summary == Applying: drm/i915: Stop retiring requests from busy-ioctl Applying: drm/i915: Complete pending re

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Move get-reset-stats ioctl from intel_uncore.c to i915_gem_context.c

2016-05-13 Thread Mika Kuoppala
Chris Wilson writes: > [ text/plain ] > The get-reset-stats ioctl reports upon the statistics (number of hangs, > be it as a victim or the guilty party) of a particular context. It is > semantically better as being part of i915_gem_context.c user interface, > as opposed to the hardware level acce

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/hda: Add audio component stub

2016-05-13 Thread Imre Deak
On Fri, 2016-05-13 at 09:48 +0200, Takashi Iwai wrote: > On Thu, 12 May 2016 20:06:53 +0200, > Imre Deak wrote: > > > > User may pass nomodeset or i915.modeset=0 option to disable i915 KMS > > explicitly.  Although this itself works fine, it breaks the weak > > dependency the HD-audio driver requi

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/hda: Add audio component stub

2016-05-13 Thread Takashi Iwai
On Fri, 13 May 2016 11:50:09 +0200, Imre Deak wrote: > > On Fri, 2016-05-13 at 09:48 +0200, Takashi Iwai wrote: > > On Thu, 12 May 2016 20:06:53 +0200, > > Imre Deak wrote: > > > > > > User may pass nomodeset or i915.modeset=0 option to disable i915 KMS > > > explicitly.  Although this itself wor

Re: [Intel-gfx] [PATCH v8 0/6] Convert requests to use struct fence

2016-05-13 Thread John Harrison
On 13/05/2016 08:44, Chris Wilson wrote: On Thu, May 12, 2016 at 10:06:30PM +0100, john.c.harri...@intel.com wrote: Added support for possible RCU usage of fence object (Review comments by Maarten Lankhorst). You mean like https://cgit.freedesktop.org/~ickle/linux-2.6/commit/?h=tasklet&id=001f3

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Complete pending resets before get-reset-stats ioctl

2016-05-13 Thread Mika Kuoppala
Chris Wilson writes: > [ text/plain ] > The get-reset-stats ioctls wasn't waiting for a pending reset before > reporting its statistics, and so was ignoring a hang generated by the > context that should have been reported against said context. > > Signed-off-by: Chris Wilson This is the fix we

[Intel-gfx] [PATCH v2] drm/i915: Stop retiring requests from busy/wait ioctls

2016-05-13 Thread Chris Wilson
In order to reduce the workload of the caller, we do not want to actually have to retire requests of others when checking the busy status of this object. This applies to both busy/wait ioctls as the wait ioctl has a semantically equivalent mode to the busy ioctl. At the present time, this is only

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Stop retiring requests from busy-ioctl

2016-05-13 Thread Mika Kuoppala
Chris Wilson writes: > [ text/plain ] > In order to reduce the workload of the caller, we do not want to > actually have to retire requests of others when checking the status of > this object. > > Signed-off-by: Chris Wilson Reviewed-by: Mika Kuoppala > --- > drivers/gpu/drm/i915/i915_gem.c

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/hda: Add audio component stub

2016-05-13 Thread Imre Deak
On Fri, 2016-05-13 at 12:04 +0200, Takashi Iwai wrote: > On Fri, 13 May 2016 11:50:09 +0200, > Imre Deak wrote: > > > > On Fri, 2016-05-13 at 09:48 +0200, Takashi Iwai wrote: > > > On Thu, 12 May 2016 20:06:53 +0200, > > > Imre Deak wrote: > > > > > > > > User may pass nomodeset or i915.modeset=0

[Intel-gfx] [PATCH i-g-t] tests: Add kms_rmfb testcase

2016-05-13 Thread Maarten Lankhorst
This allows us to test that RMFB works as intended by the original abi. We create a framebuffer and try to remove the framebuffer from a crtc using fd closing or rmfb ioctl. Signed-off-by: Maarten Lankhorst --- diff --git a/tests/Makefile.sources b/tests/Makefile.sources index b73f48d95568..c223c

Re: [Intel-gfx] [PATCH v2] drm/i915: Stop automatically retiring requests after a GPU hang

2016-05-13 Thread Mika Kuoppala
Chris Wilson writes: > [ text/plain ] > Following a GPU hang, we break out of the request loop in order to > unlock the struct_mutex for use by the GPU reset. However, if we retire > all the requests at that moment, we cannot identify the guilty request > after performing the reset. > > v2: Not a

[Intel-gfx] [CI 1/4] drm/i915: Move get-reset-stats ioctl from intel_uncore.c to i915_gem_context.c

2016-05-13 Thread Chris Wilson
The get-reset-stats ioctl reports upon the statistics (number of hangs, be it as a victim or the guilty party) of a particular context. It is semantically better as being part of i915_gem_context.c user interface, as opposed to the hardware level access of intel_uncore.c Signed-off-by: Chris Wilso

[Intel-gfx] [CI 2/4] drm/i915: Complete pending resets before get-reset-stats ioctl

2016-05-13 Thread Chris Wilson
The get-reset-stats ioctls wasn't waiting for a pending reset before reporting its statistics, and so was ignoring a hang generated by the context that should have been reported against said context. Signed-off-by: Chris Wilson Tested-by: Mika Kuoppala Reviewed-by: Mika Kuoppala --- drivers/gp

[Intel-gfx] [CI 4/4] drm/i915: Stop automatically retiring requests after a GPU hang

2016-05-13 Thread Chris Wilson
Following a GPU hang, we break out of the request loop in order to unlock the struct_mutex for use by the GPU reset. However, if we retire all the requests at that moment, we cannot identify the guilty request after performing the reset. v2: Not automatically retiring requests forces us to recheck

[Intel-gfx] [CI 3/4] drm/i915: Stop retiring requests from busy/wait ioctls

2016-05-13 Thread Chris Wilson
In order to reduce the workload of the caller, we do not want to actually have to retire requests of others when checking the busy status of this object. This applies to both busy/wait ioctls as the wait ioctl has a semantically equivalent mode to the busy ioctl. At the present time, this is only

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [v2] drm/i915: Stop retiring requests from busy/wait ioctls (rev5)

2016-05-13 Thread Patchwork
== Series Details == Series: series starting with [v2] drm/i915: Stop retiring requests from busy/wait ioctls (rev5) URL : https://patchwork.freedesktop.org/series/7059/ State : failure == Summary == Applying: drm/i915: Stop retiring requests from busy/wait ioctls Applying: drm/i915: Complete

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [CI,1/4] drm/i915: Move get-reset-stats ioctl from intel_uncore.c to i915_gem_context.c

2016-05-13 Thread Patchwork
== Series Details == Series: series starting with [CI,1/4] drm/i915: Move get-reset-stats ioctl from intel_uncore.c to i915_gem_context.c URL : https://patchwork.freedesktop.org/series/7136/ State : failure == Summary == Series 7136v1 Series without cover letter http://patchwork.freedesktop.o

[Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Gabriel Feceoru
basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to be aproximately equal with the estimated number. This is a false negative, one of the reasons being the precision lost when truncating a fractional number. Fixed this by using floating point arithmetic. Cc: Jani Nikula

Re: [Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 02:45:09PM +0300, Gabriel Feceoru wrote: > basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to > be aproximately equal with the estimated number. > > This is a false negative, one of the reasons being the precision lost when > truncating a fractional

Re: [Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 01:00:33PM +0100, Chris Wilson wrote: > On Fri, May 13, 2016 at 02:45:09PM +0300, Gabriel Feceoru wrote: > > basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to > > be aproximately equal with the estimated number. > > > > This is a false negative, on

Re: [Intel-gfx] ✗ Ro.CI.BAT: failure for drm/i915: Fix a few code checker errors

2016-05-13 Thread Imre Deak
On Thu, 2016-05-12 at 15:31 +, Patchwork wrote: > == Series Details == > > Series: drm/i915: Fix a few code checker errors > URL   : https://patchwork.freedesktop.org/series/7071/ > State : failure > > == Summary == > > Series 7071v1 drm/i915: Fix a few code checker errors > http://patchwork

Re: [Intel-gfx] FreeBSD i915 driver update

2016-05-13 Thread K. Macy
> I don't have any FreeBSD experience and I don't know what kind of team > of developers you have, but it is my educated guess that you'll have > plenty of more productive things to do than trying to maintain a > significant amount of delta with upstream while also trying to stay > up-to-date. I a

[Intel-gfx] FreeBSD i915 driver update

2016-05-13 Thread Scott Long
Hello intel-gfx, I'd like to offer a heads-up on the ongoing work in the FreeBSD project to update to a contemporary version of the i915 driver. For context, some background information on the earlier approaches we've taken to import the i915 driver in FreeBSD. In the past, developers often rewor

Re: [Intel-gfx] [PATCH i-g-t v3] tests/kms_flip: Adjust tolerance when counting frames

2016-05-13 Thread Gabriel Feceoru
On 13.05.2016 15:00, Chris Wilson wrote: On Fri, May 13, 2016 at 02:45:09PM +0300, Gabriel Feceoru wrote: basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to be aproximately equal with the estimated number. This is a false negative, one of the reasons being the precisi

Re: [Intel-gfx] ✗ Ro.CI.BAT: failure for drm/i915: Fix a few code checker errors

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 03:24:32PM +0300, Imre Deak wrote: > On Thu, 2016-05-12 at 15:31 +, Patchwork wrote: > > == Series Details == > > > > Series: drm/i915: Fix a few code checker errors > > URL   : https://patchwork.freedesktop.org/series/7071/ > > State : failure > > > > == Summary == >

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: Lazily migrate the objects after hibernation

2016-05-13 Thread David Weinehall
On Thu, May 12, 2016 at 03:28:15PM +0100, Chris Wilson wrote: > Now that we mark the object domains for having been restored from the > hibernation image, we not need to flush everything during resume and > can instead rely on the normal domain tracking to flush only when > required. The only cavea

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915: Skip clearing the GGTT on full-ppgtt systems

2016-05-13 Thread David Weinehall
On Thu, May 12, 2016 at 03:28:16PM +0100, Chris Wilson wrote: > Under full-ppgtt, access to the global GTT is carefully regulated > through hardware functions (i.e. userspace cannot read and write to > arbitrary locations in the GGTT via the GPU). With this restriction in > place, we can forgo clea

Re: [Intel-gfx] FreeBSD i915 driver update

2016-05-13 Thread Jani Nikula
On Thu, 12 May 2016, Scott Long wrote: > I'd like to offer a heads-up on the ongoing work in the FreeBSD project > to update to a contemporary version of the i915 driver. I inadvertently let this through the moderation while Scott had reposted as subscriber. Please ignore this one and keep the co

[Intel-gfx] [PATCH v3 2/2] drm/i915: Render decompression support for Gen9 and above

2016-05-13 Thread Vandana Kannan
This patch includes enabling render decompression (RC) after checking all the requirements (format, tiling, rotation etc.). TODO: 1. Disable stereo 3D when render decomp is enabled (bit 7:6) 2. Render decompression must not be used in VTd pass-through mode 3. Program hashing select CHICKEN_MISC1 b

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [1/2] drm: Add aux plane verification in addFB2 (rev3)

2016-05-13 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm: Add aux plane verification in addFB2 (rev3) URL : https://patchwork.freedesktop.org/series/4641/ State : failure == Summary == Applying: drm: Add aux plane verification in addFB2 Applying: drm/i915: Render decompression support for

Re: [Intel-gfx] [PATCH i-g-t 1/3] tools/intel_bios_reader: abstract header information dumping

2016-05-13 Thread Jani Nikula
Fairly simple stuff, pushed the series to igt. BR, Jani. On Thu, 12 May 2016, Jani Nikula wrote: > Signed-off-by: Jani Nikula > --- > tools/intel_bios_reader.c | 52 > +++ > 1 file changed, 30 insertions(+), 22 deletions(-) > > diff --git a/tools/i

[Intel-gfx] [PATCH RESEND 2/2] drm/i915: don't mix bitwise and logical operations for has_snoop

2016-05-13 Thread Jani Nikula
Also make the code more readable. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_dma.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 547100fa3122..a8c79f6512a4 100644 --- a/drivers/gpu/d

[Intel-gfx] [PATCH RESEND 1/2] drm/i915: make device info bitfield flags bools

2016-05-13 Thread Jani Nikula
This is more robust for assignments and comparisons. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index d9d07b70f05c..bb0b6f64000e 100644 --- a/

[Intel-gfx] [PATCH 0/6] Move dpio access out of intel_display.c

2016-05-13 Thread Ander Conselvan de Oliveira
Hi, This series moves all of the calls to vlv_dpio_{read,write} to intel_dpio_phy.c. I think it simplifies the surrounding code a bit. Thanks, Ander Ander Conselvan de Oliveira (6): drm/i915: Rename struct dpll to struct intel_dpll drm/i915: Move dpio code of VLV/CHV dpll enabling to intel_d

[Intel-gfx] [PATCH 2/6] drm/i915: Move dpio code of VLV/CHV dpll enabling to intel_dpio_phy.c

2016-05-13 Thread Ander Conselvan de Oliveira
Hide the dpio details of setting up the dplls on VLV/CHV to intel_dpio_phy.c. This will allow the prepare and enable pll functions to be merged in a follow up. It also creates a better split of the code where most of the dpio access are concentrated in one place. Signed-off-by: Ander Conselvan de

[Intel-gfx] [PATCH 4/6] drm/i915: Move VLV divider readout to intel_dpio_phy.c

2016-05-13 Thread Ander Conselvan de Oliveira
Reading the dividers depends on sideband messaging, so it fits well if the other functions in intel_dpio_phy.c. The new function will also be used in a future patch. Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/intel_display.

[Intel-gfx] [PATCH 1/6] drm/i915: Rename struct dpll to struct intel_dpll

2016-05-13 Thread Ander Conselvan de Oliveira
Prefix struct dpll with intel_ to follow the convention in the driver. Cc: Ville Syrjälä Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 76 +

[Intel-gfx] [PATCH 5/6] drm/i915: Move CHV divider readout to intel_dpio_phy.c

2016-05-13 Thread Ander Conselvan de Oliveira
Reading the dividers depends on sideband messaging, so it fits well if the other functions in intel_dpio_phy.c. The new function will also be used in a future patch. Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/intel_display.

[Intel-gfx] [PATCH 6/6] drm/i915: Move toggling of CHV DPIO_DCLKP_EN to intel_dpio_phy.c

2016-05-13 Thread Ander Conselvan de Oliveira
This simplifies the pll enable/disable a code a bit and hides the sideband message neatly in intel_dpio_phy.c. Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/intel_display.c | 19 ++- drivers/gpu/drm/i915/intel

[Intel-gfx] [PATCH 3/6] drm/i915: Merge vlv/chv _prepare_pll() with their enable counterpart

2016-05-13 Thread Ander Conselvan de Oliveira
With the bulk of the dpio code moved out of the vlv/chv prepare pll functions into intel_dpio_phy.c, those functions became simple enough that they can be merged with the pll enabling function, that always succeeds the prepare call. Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Move VLV divider readout to intel_dpio_phy.c

2016-05-13 Thread Ville Syrjälä
On Fri, May 13, 2016 at 05:15:01PM +0300, Ander Conselvan de Oliveira wrote: > Reading the dividers depends on sideband messaging, so it fits well if > the other functions in intel_dpio_phy.c. The new function will also be > used in a future patch. > > Signed-off-by: Ander Conselvan de Oliveira >

Re: [Intel-gfx] [PATCH RESEND 1/2] drm/i915: make device info bitfield flags bools

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 15:04, Jani Nikula wrote: This is more robust for assignments and comparisons. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h ind

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Move toggling of CHV DPIO_DCLKP_EN to intel_dpio_phy.c

2016-05-13 Thread Ville Syrjälä
On Fri, May 13, 2016 at 05:15:03PM +0300, Ander Conselvan de Oliveira wrote: > This simplifies the pll enable/disable a code a bit and hides the > sideband message neatly in intel_dpio_phy.c. > > Signed-off-by: Ander Conselvan de Oliveira > > --- > drivers/gpu/drm/i915/i915_drv.h | 2 ++

[Intel-gfx] [CI 4/4] drm/i915: Skip clearing the GGTT on full-ppgtt systems

2016-05-13 Thread Chris Wilson
Under full-ppgtt, access to the global GTT is carefully regulated through hardware functions (i.e. userspace cannot read and write to arbitrary locations in the GGTT via the GPU). With this restriction in place, we can forgo clearing stale entries from the GGTT as they will not be accessed. For al

[Intel-gfx] [CI 2/4] drm/i915: Update domain tracking for GEM objects on hibernation

2016-05-13 Thread Chris Wilson
When creating the hibernation image, the CPU will read the pages of all objects and thus conflict with our domain tracking. We need to update our domain tracking to accurately reflect the state on restoration. v2: Perform the domain tracking inside freeze, before the image is written, rather than

[Intel-gfx] [CI 1/4] drm/i915: Add distinct stubs for PM hibernation phases

2016-05-13 Thread Chris Wilson
Currently for handling the extra hibernation phases we just call the equivalent suspend/resume phases. In the next couple of patches, I wish to specialise the hibernation phases to reduce the amount of work required for handling GEM objects. v2: There are more! Don't forget the freeze phases. Sig

[Intel-gfx] [CI 3/4] drm/i915: Lazily migrate the objects after hibernation

2016-05-13 Thread Chris Wilson
Now that we mark the object domains for having been restored from the hibernation image, we not need to flush everything during resume and can instead rely on the normal domain tracking to flush only when required. The only caveat here are objects that are pinned for use by the hardware, whose cont

Re: [Intel-gfx] [PATCH 5/6] drm/i915: Move CHV divider readout to intel_dpio_phy.c

2016-05-13 Thread Ville Syrjälä
On Fri, May 13, 2016 at 05:15:02PM +0300, Ander Conselvan de Oliveira wrote: > Reading the dividers depends on sideband messaging, so it fits well if > the other functions in intel_dpio_phy.c. The new function will also be > used in a future patch. > > Signed-off-by: Ander Conselvan de Oliveira >

Re: [Intel-gfx] [PATCH RESEND 1/2] drm/i915: make device info bitfield flags bools

2016-05-13 Thread Chris Wilson
On Fri, May 13, 2016 at 03:25:05PM +0100, Tvrtko Ursulin wrote: > > On 13/05/16 15:04, Jani Nikula wrote: > >This is more robust for assignments and comparisons. > > > >Signed-off-by: Jani Nikula > >--- > > drivers/gpu/drm/i915/i915_drv.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-)

[Intel-gfx] [PATCH v4 4/7] drm/i915/guc: pass request (not client) to i915_guc_{wq_check_space, submit}()

2016-05-13 Thread Dave Gordon
The knowledge of how to derive the relevant client from the request should be localised within i915_guc_submission.c; the LRC code shouldn't have to know about the internal details of the GuC submission process. And all the information the GuC code needs should be encapsulated in (or reachable from

[Intel-gfx] [PATCH v4 1/7] drm/i915/guc: rename loader entry points

2016-05-13 Thread Dave Gordon
The GuC initialisation code could do other things apart from loading firmware, so here we rename the three primary entry points to remove any specific reference to "ucode" (no functional changes, just renaming). Signed-off-by: Dave Gordon --- drivers/gpu/drm/i915/i915_dma.c | 6 +++---

Re: [Intel-gfx] [PATCH v2 1/5] drm/i915/guc: add enable_guc_loading parameter

2016-05-13 Thread Dave Gordon
On 10/05/16 15:37, Tvrtko Ursulin wrote: On 06/05/16 17:39, Dave Gordon wrote: On 29/04/16 16:03, Tvrtko Ursulin wrote: [snip] +goto fail; +if (fw_path == NULL) +goto fail; +if (*fw_path == '\0') { +DRM_ERROR("No GuC firmware known for this platform\n"); It

[Intel-gfx] [PATCH v4 5/7] drm/i915/guc: don't spinwait if the GuC's workqueue is full

2016-05-13 Thread Dave Gordon
Rather than wait to see whether more space becomes available in the GuC submission workqueue, we can just return -EAGAIN and let the caller try again in a little while. This gets rid of an uninterruptable sleep in the polling code :) We'll also add a counter to the GuC client statistics, to see ho

[Intel-gfx] [PATCH v4 0/7] Enable GuC submission

2016-05-13 Thread Dave Gordon
This patchset covers various GuC-related changes, but most important of these are (1) splitting the original "enable_guc_submission" parameter into separate flags for loading GuC firmware vs. using the GuC for job submission [PATCH 3/7], and (2) actually enabling GuC submission by default on suitab

[Intel-gfx] [PATCH v4 6/7] drm/i915/guc: rework guc_add_workqueue_item()

2016-05-13 Thread Dave Gordon
Mostly little optimisations and future-proofing against code breakage. For instance, if the driver is correctly following the submission protocol, the "out of space" condition is impossible, so the previous runtime WARN_ON() is promoted to a GEM_BUG_ON() for a more dramatic effect in development an

[Intel-gfx] [PATCH v4 7/7] drm/i915/guc: change default to using GuC submission if possible

2016-05-13 Thread Dave Gordon
This patch simply changes the default value of "enable_guc_submission" from 0 (never) to -1 (auto). This means that GuC submission will be used if the platform has a GuC, the GuC supports the request submission protocol, and any required GuC firmwware was successfully loaded. If any of these condit

[Intel-gfx] [PATCH v4 2/7] drm/i915/guc: distinguish HAS_GUC() from HAS_GUC_UCODE/HAS_GUC_SCHED

2016-05-13 Thread Dave Gordon
For now, anything with a GuC requires uCode loading, and then supports command submission once loaded. But these are logically distinct from simply "having a GuC", so we need a separate macro for the latter. Then, various tests should use this new macro rather than HAS_GUC_UCODE() or testing enable

[Intel-gfx] [PATCH v4 3/7] drm/i915/guc: add enable_guc_loading parameter

2016-05-13 Thread Dave Gordon
Split the function of "enable_guc_submission" into two separate options. The new one ("enable_guc_loading") controls only the *fetching and loading* of the GuC firmware image. The existing one is redefined to control only the *use* of the GuC for batch submission once the firmware is loaded. In a

Re: [Intel-gfx] ✓ Ro.CI.BAT: success for Pre-calculate SKL-style atomic watermarks (final CI run) (rev2)

2016-05-13 Thread Matt Roper
On Thu, May 12, 2016 at 10:52:11PM +, Patchwork wrote: > == Series Details == > > Series: Pre-calculate SKL-style atomic watermarks (final CI run) (rev2) > URL : https://patchwork.freedesktop.org/series/7075/ > State : success Maarten confirmed on IRC that his r-b stands for the updated ver

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Rename struct dpll to struct intel_dpll

2016-05-13 Thread Ville Syrjälä
On Fri, May 13, 2016 at 05:14:58PM +0300, Ander Conselvan de Oliveira wrote: > Prefix struct dpll with intel_ to follow the convention in the driver. > > Cc: Ville Syrjälä > Signed-off-by: Ander Conselvan de Oliveira > > --- > drivers/gpu/drm/i915/i915_drv.h | 2 +- > drivers/gpu/drm/i9

Re: [Intel-gfx] [PATCH RESEND 1/2] drm/i915: make device info bitfield flags bools

2016-05-13 Thread Jani Nikula
On Fri, 13 May 2016, Chris Wilson wrote: > On Fri, May 13, 2016 at 03:25:05PM +0100, Tvrtko Ursulin wrote: >> >> On 13/05/16 15:04, Jani Nikula wrote: >> >This is more robust for assignments and comparisons. >> > >> >Signed-off-by: Jani Nikula >> >--- >> > drivers/gpu/drm/i915/i915_drv.h | 2 +-

[Intel-gfx] [PATCH 0/2] drm/i915: Fix for resume regression in ilk-bdw due to watermarks

2016-05-13 Thread ville . syrjala
From: Ville Syrjälä My ILK was very unhappy runnin BAT tests. Caused by watermark fail during resume. Here's the smallest fix I thought of. Ville Syrjälä (2): drm/i915: Don't leave old junk in ilk active watermarks on readout drm/i915: Ignore stale wm register values on resume on ilk-bdw

[Intel-gfx] [PATCH 1/2] drm/i915: Don't leave old junk in ilk active watermarks on readout

2016-05-13 Thread ville . syrjala
From: Ville Syrjälä When we read out the watermark state from the hardware we're supposed to transfer that into the active watermarks, but currently we fail to any part of the active watermarks that isn't explicitly written. Let's clear it all upfront. Looks like this has been like this since th

[Intel-gfx] [PATCH 2/2] drm/i915: Ignore stale wm register values on resume on ilk-bdw

2016-05-13 Thread ville . syrjala
From: Ville Syrjälä When we resume the watermark register may contain some BIOS leftovers, or just the hardware reset values. We should ignore those as the pipes will be off anyway, and so frobbing around with intermediate watermarks doesn't make much sense. In fact I think we should just throw

[Intel-gfx] ✗ Ro.CI.BAT: failure for series starting with [RESEND,1/2] drm/i915: make device info bitfield flags bools

2016-05-13 Thread Patchwork
== Series Details == Series: series starting with [RESEND,1/2] drm/i915: make device info bitfield flags bools URL : https://patchwork.freedesktop.org/series/7149/ State : failure == Summary == Series 7149v1 Series without cover letter http://patchwork.freedesktop.org/api/1.0/series/7149/revi

Re: [Intel-gfx] [PATCH RESEND 1/2] drm/i915: make device info bitfield flags bools

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 15:47, Jani Nikula wrote: On Fri, 13 May 2016, Chris Wilson wrote: On Fri, May 13, 2016 at 03:25:05PM +0100, Tvrtko Ursulin wrote: On 13/05/16 15:04, Jani Nikula wrote: This is more robust for assignments and comparisons. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH RESEND 2/2] drm/i915: don't mix bitwise and logical operations for has_snoop

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 15:04, Jani Nikula wrote: Also make the code more readable. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_dma.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 547100fa31

Re: [Intel-gfx] [PATCH v4 1/7] drm/i915/guc: rename loader entry points

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 15:36, Dave Gordon wrote: The GuC initialisation code could do other things apart from loading firmware, so here we rename the three primary entry points to remove any specific reference to "ucode" (no functional changes, just renaming). Signed-off-by: Dave Gordon --- drivers/gpu

[Intel-gfx] [PATCH igt] Revert "tests: Separate tests with lots of subtests"

2016-05-13 Thread Chris Wilson
This reverts commit a633ad03c6a0e96eecfd4933ea0dffb68ed40e07 as it completely breaks building the gem_concurrent_blit tests. --- tests/Makefile.am | 12 +++- tests/Makefile.sources | 22 ++ 2 files changed, 5 insertions(+), 29 deletions(-) diff --git a/tests/Makef

[Intel-gfx] [PATCH] drm/i915: Use DRM_DEBUG_KMS instead of DRM_DEBUG_ATOMIC in modeset error paths

2016-05-13 Thread ville . syrjala
From: Ville Syrjälä DRM_DEBUG_ATOMIC generates a lot of noise that no one normally cares about. However error paths everyone cares about, so hiding the error debugs under DRM_DEBUG_ATOMIC is a bad idea. Let's use DRM_DEBUG_KMS for those instead. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm

Re: [Intel-gfx] [PATCH v4 3/7] drm/i915/guc: add enable_guc_loading parameter

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 15:36, Dave Gordon wrote: Split the function of "enable_guc_submission" into two separate options. The new one ("enable_guc_loading") controls only the *fetching and loading* of the GuC firmware image. The existing one is redefined to control only the *use* of the GuC for batch subm

Re: [Intel-gfx] [PATCH v4 5/7] drm/i915/guc: don't spinwait if the GuC's workqueue is full

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 15:36, Dave Gordon wrote: Rather than wait to see whether more space becomes available in the GuC submission workqueue, we can just return -EAGAIN and let the caller try again in a little while. This gets rid of an uninterruptable sleep in the polling code :) We'll also add a counte

Re: [Intel-gfx] [PATCH v4 2/7] drm/i915/guc: distinguish HAS_GUC() from HAS_GUC_UCODE/HAS_GUC_SCHED

2016-05-13 Thread Tvrtko Ursulin
On 13/05/16 15:36, Dave Gordon wrote: For now, anything with a GuC requires uCode loading, and then supports command submission once loaded. But these are logically distinct from simply "having a GuC", so we need a separate macro for the latter. Then, various tests should use this new macro rath

[Intel-gfx] ✗ Ro.CI.BAT: failure for Move dpio access out of intel_display.c

2016-05-13 Thread Patchwork
== Series Details == Series: Move dpio access out of intel_display.c URL : https://patchwork.freedesktop.org/series/7150/ State : failure == Summary == Series 7150v1 Move dpio access out of intel_display.c http://patchwork.freedesktop.org/api/1.0/series/7150/revisions/1/mbox Test drv_hangman:

  1   2   >