[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb URL : https://patchwork.freedesktop.org/series/54721/ State : failure == Summary == CI Bug Log - changes from CI_DRM_5361_full -> Patchwork_11184_full Summary -

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb URL : https://patchwork.freedesktop.org/series/54721/ State : failure == Summary == CI Bug Log - changes from CI_DRM_5361_full -> Patchwork_11184_full Summary -

Re: [Intel-gfx] iommu_intel or i915 regression in 4.18, 4.19.12 and drm-tip

2019-01-04 Thread Joonas Lahtinen
Quoting Eric Wong (2019-01-04 03:06:26) > Joonas Lahtinen wrote: > > Quoting Eric Wong (2018-12-27 13:49:48) > > > I just got a used Thinkpad X201 (Core i5 M 520, Intel QM57 > > > chipset) and hit some kernel panics while trying to view > > > image/animation-intensive stuff in Firefox (X11) unless

Re: [Intel-gfx] [PATCH] drm/i915: Do not allow unwedging following a failed driver initialisation

2019-01-04 Thread Mika Kuoppala
Chris Wilson writes: > If we declare the driver wedged during early initialisation, we leave > the driver in an undefined state (with respect to GEM execution). As > this leads to unexpected behaviour if we allow the user to unwedge the > device (through debugfs, and performed by igt at test star

Re: [Intel-gfx] [PATCH] drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb

2019-01-04 Thread Mika Kuoppala
Chris Wilson writes: > The additional flushes for gen7 appear to have been a red herring as the > more efficacious workaround seems to be commit 476af9c26063 ("drm/i915/gen6: > Flush RING_IMR changes before changing the global GT IMR"). Trusting the > updated results means we can remove the speci

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb URL : https://patchwork.freedesktop.org/series/54721/ State : failure == Summary == CI Bug Log - changes from CI_DRM_5361_full -> Patchwork_11184_full Summary -

Re: [Intel-gfx] [PATCH] drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb

2019-01-04 Thread Chris Wilson
Quoting Mika Kuoppala (2019-01-04 09:36:05) > Chris Wilson writes: > > > The additional flushes for gen7 appear to have been a red herring as the > > more efficacious workaround seems to be commit 476af9c26063 ("drm/i915/gen6: > > Flush RING_IMR changes before changing the global GT IMR"). Trusti

[Intel-gfx] [PATCH 2/2] drm/i915: Save some lines of source code in workarounds

2019-01-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin No functional or code size change - just notice we can compact the source by re-using a single helper for adding workarounds. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_workarounds.c | 32 +--- 1 file changed, 6 insertions(+), 26 delet

[Intel-gfx] [PATCH 1/2] drm/i915: Move workaround infrastructure code up

2019-01-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Top comment in intel_workarounds.c says common code should come first so lets respect that. Also, by moving the common code together opportunities to reduce duplication will become more obvious. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_workarounds.c | 7

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb (rev2)

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb (rev2) URL : https://patchwork.freedesktop.org/series/54721/ State : warning == Summary == $ dim checkpatch origin/drm-tip d50ab641c85a drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb -:7: WARNING:COMMIT_LOG_LON

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Save some lines of source code in workarounds

2019-01-04 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-01-04 11:40:53) > From: Tvrtko Ursulin > > No functional or code size change - just notice we can compact the source > by re-using a single helper for adding workarounds. > > Signed-off-by: Tvrtko Ursulin > --- > drivers/gpu/drm/i915/intel_workarounds.c | 32 +-

Re: [Intel-gfx] [PATCH 29/39] drm/i915: Use b->irq_enable() as predicate for mock engine

2019-01-04 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-01-02 15:21:21) > > diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c > > b/drivers/gpu/drm/i915/intel_engine_cs.c > > index 36177546f68b..7b80a087cc32 100644 > > --- a/drivers/gpu/drm/i915/intel_engine_cs.c > > +++ b/drivers/gpu/drm/i915/intel_engine_cs.c > > @@ -91

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb (rev2)

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb (rev2) URL : https://patchwork.freedesktop.org/series/54721/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11185 Summary

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Move workaround infrastructure code up

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Move workaround infrastructure code up URL : https://patchwork.freedesktop.org/series/54739/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11186 ===

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Save some lines of source code in workarounds

2019-01-04 Thread Tvrtko Ursulin
On 04/01/2019 12:01, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-01-04 11:40:53) From: Tvrtko Ursulin No functional or code size change - just notice we can compact the source by re-using a single helper for adding workarounds. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb (rev2)

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/ringbuffer: Drop gen7_xcs_emit_breadcrumb (rev2) URL : https://patchwork.freedesktop.org/series/54721/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11185_full Su

Re: [Intel-gfx] [PATCH 29/39] drm/i915: Use b->irq_enable() as predicate for mock engine

2019-01-04 Thread Tvrtko Ursulin
On 04/01/2019 12:13, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-01-02 15:21:21) diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c index 36177546f68b..7b80a087cc32 100644 --- a/drivers/gpu/drm/i915/intel_engine_cs.c +++ b/drivers/gpu/drm/i915/int

Re: [Intel-gfx] [PATCH v2 3/6] drm/i915/psr: Make intel_psr_set_debugfs_mode() only handle PSR mode

2019-01-04 Thread Souza, Jose
On Fri, 2019-01-04 at 07:53 +0100, Maarten Lankhorst wrote: > Op 03-01-2019 om 15:21 schreef José Roberto de Souza: > > intel_psr_set_debugfs_mode() don't just handle the PSR mode but it > > is > > also handling input validation, setting the new debug value and > > changing PSR IRQ masks. > > Lets

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks (rev3)

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [v2,1/6] drm/i915/psr: Allow PSR2 to be enabled when debugfs asks (rev3) URL : https://patchwork.freedesktop.org/series/54692/ State : failure == Summary == Applying: drm/i915/psr: Allow PSR2 to be enabled when debugfs asks Applying: drm/i915:

Re: [Intel-gfx] [PATCH 07/39] drm/i915: Report the number of closed vma held by each context in debugfs

2019-01-04 Thread Mika Kuoppala
Chris Wilson writes: > Include the total size of closed vma when reporting the per_ctx_stats of > debugfs/i915_gem_objects. > > Whilst adjusting the context tracking, note that we can simply use our > list of contexts in i915->contexts rather than circumlocute via > dev->filelist and the per-file

[Intel-gfx] [PATCH 1/2] drm/i915: Reduce recursive mutex locking from the shrinker

2019-01-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin In two codepaths internal to the shrinker we know we will end up taking the resursive mutex path. It instead feels more elegant to avoid this altogether and not call mutex_trylock_recursive in those cases. We achieve this by extracting the shrinking part to __i915_gem_shrin

[Intel-gfx] [PATCH 2/2] drm/i915: Fix timeout handling in i915_gem_shrinker_vmap

2019-01-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin The code tries to grab struct mutex for 5ms every time the unlocked GPU idle wait succeeds. But the GPU idle wait itself is practically unbound which means the 5ms timeout might not be honoured. Cap the GPU idle wait to 5ms as well to fix this. Signed-off-by: Tvrtko Ursulin

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker URL : https://patchwork.freedesktop.org/series/54744/ State : warning == Summary == $ dim checkpatch origin/drm-tip 30228d4da273 drm/i915: Reduce recursive mutex locking from the

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker URL : https://patchwork.freedesktop.org/series/54744/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Reduce recursive mutex lo

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Move workaround infrastructure code up

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Move workaround infrastructure code up URL : https://patchwork.freedesktop.org/series/54739/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11186_full =

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker URL : https://patchwork.freedesktop.org/series/54744/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11188 =

Re: [Intel-gfx] [PATCH v2 3/6] drm/i915/psr: Make intel_psr_set_debugfs_mode() only handle PSR mode

2019-01-04 Thread Maarten Lankhorst
Op 04-01-2019 om 14:28 schreef Souza, Jose: > On Fri, 2019-01-04 at 07:53 +0100, Maarten Lankhorst wrote: >> Op 03-01-2019 om 15:21 schreef José Roberto de Souza: >>> intel_psr_set_debugfs_mode() don't just handle the PSR mode but it >>> is >>> also handling input validation, setting the new debug

[Intel-gfx] [PATCH v3 1/2] drm/i915: Reduce recursive mutex locking from the shrinker

2019-01-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin In two codepaths internal to the shrinker we know we will end up taking the resursive mutex path. It instead feels more elegant to avoid this altogether and not call mutex_trylock_recursive in those cases. We achieve this by extracting the shrinking part to __i915_gem_shrin

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v3,1/2] drm/i915: Reduce recursive mutex locking from the shrinker (rev2)

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [v3,1/2] drm/i915: Reduce recursive mutex locking from the shrinker (rev2) URL : https://patchwork.freedesktop.org/series/54744/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11189 ===

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Reduce recursive mutex locking from the shrinker URL : https://patchwork.freedesktop.org/series/54744/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11188_full ===

[Intel-gfx] [PATCH i-g-t] tests/gem_shrink: Exercise OOM and other routes to shrinking in reasonable time

2019-01-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A set of subtests which exercises different paths to our shrinker code (including the OOM killer) in predictable and reasonable time budget. Signed-off-by: Tvrtko Ursulin --- lib/igt_core.c| 19 ++ lib/igt_core.h| 1 + tes

Re: [Intel-gfx] [PATCH v2 3/6] drm/i915/psr: Make intel_psr_set_debugfs_mode() only handle PSR mode

2019-01-04 Thread Souza, Jose
On Fri, 2019-01-04 at 15:35 +0100, Maarten Lankhorst wrote: > Op 04-01-2019 om 14:28 schreef Souza, Jose: > > On Fri, 2019-01-04 at 07:53 +0100, Maarten Lankhorst wrote: > > > Op 03-01-2019 om 15:21 schreef José Roberto de Souza: > > > > intel_psr_set_debugfs_mode() don't just handle the PSR mode b

Re: [Intel-gfx] [PATCH] drm/i915: Fix the HDMI hot plug disconnection failure (v4)

2019-01-04 Thread Guang Bai
On Fri, 4 Jan 2019 12:02:34 +0800 Chris Chiu wrote: > On Thu, Jan 3, 2019 at 1:50 AM Guang Bai wrote: > > > > On Wed, 2 Jan 2019 17:29:46 +0800 > > Chris Chiu wrote: > > > > > Happy New Year. > > > Sorry for bothering you guys again, I don't really want to make > > > myself a nuisance. > > >

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [v3,1/2] drm/i915: Reduce recursive mutex locking from the shrinker (rev2)

2019-01-04 Thread Patchwork
== Series Details == Series: series starting with [v3,1/2] drm/i915: Reduce recursive mutex locking from the shrinker (rev2) URL : https://patchwork.freedesktop.org/series/54744/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11189_full =

[Intel-gfx] [PATCH] drm/i915/icl: Apply WaEnablePreemptionGranularityControlByUMD

2019-01-04 Thread José Roberto de Souza
According to Workaround database ICL also needs WaEnablePreemptionGranularityControlByUMD, to allow userspace to do fine-granularity preemptions per-context. BSpec: 11348 Cc: Oscar Mateo Cc: Radhakrishna Sripada Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_workarounds.c

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/icl: Apply WaEnablePreemptionGranularityControlByUMD

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/icl: Apply WaEnablePreemptionGranularityControlByUMD URL : https://patchwork.freedesktop.org/series/54751/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11190 Summary

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/icl: Apply WaEnablePreemptionGranularityControlByUMD

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915/icl: Apply WaEnablePreemptionGranularityControlByUMD URL : https://patchwork.freedesktop.org/series/54751/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11190_full

Re: [Intel-gfx] [PATCH i-g-t] igt/drv_missed_irq: Skip if the kernel reports no rings available to test

2019-01-04 Thread Chris Wilson
Quoting Chris Wilson (2018-08-08 11:20:09) > Some setups (e.g. guc and gen10+) can not disable the MI_USER_INTERRUPT > generation and so can not simulate missed interrupts. These tests would > fail, so skip when the kernel reports no tests available. Ping? -Chris __

Re: [Intel-gfx] [PATCH v7 4/4] drm/i915: cache number of MOCS entries

2019-01-04 Thread Lucas De Marchi
On Fri, Dec 21, 2018 at 11:56:43AM +, Tvrtko Ursulin wrote: > > On 14/12/2018 18:20, Lucas De Marchi wrote: > > Instead of checking the gen number every time we need to know the max > > number of entries, just save it into the table struct so we don't need > > extra branches throughout the cod

[Intel-gfx] [PATCH v4 04/16] drm/dp_mst: Stop releasing VCPI when removing ports from topology

2019-01-04 Thread Lyude Paul
This has never actually worked, and isn't needed anyway: the driver's always going to try to deallocate VCPI when it tears down the display that the VCPI belongs to. Signed-off-by: Lyude Paul Cc: Daniel Vetter Cc: David Airlie Cc: Jerry Zuo Cc: Harry Wentland Cc: Juston Li --- drivers/gpu/d

[Intel-gfx] [PATCH v4 00/16] MST refcounting/atomic helpers cleanup

2019-01-04 Thread Lyude Paul
This is the series I've been working on for a while now to get all of the atomic DRM drivers in the tree to use the atomic MST helpers, and to make the atomic MST helpers actually idempotent. Turns out it's a lot more difficult to do that without also fixing how port and branch device refcounting w

[Intel-gfx] [PATCH v4 06/16] drm/i915: Keep malloc references to MST ports

2019-01-04 Thread Lyude Paul
So that the ports stay around until we've destroyed the connectors, in order to ensure that we don't pass an invalid pointer to any MST helpers once we introduce the new MST VCPI helpers. Changes since v1: * Move drm_dp_mst_get_port_malloc() to where we assign intel_connector->port - danvet Sig

[Intel-gfx] [PATCH v4 03/16] drm/dp_mst: Restart last_connected_port_and_mstb() if topology ref fails

2019-01-04 Thread Lyude Paul
While this isn't a complete fix, this will improve the reliability of drm_dp_get_last_connected_port_and_mstb() pretty significantly during hotplug events, since there's a chance that the in-memory topology tree may not be fully updated when drm_dp_get_last_connected_port_and_mstb() is called and t

[Intel-gfx] [PATCH v4 01/16] drm/dp_mst: Rename drm_dp_mst_get_validated_(port|mstb)_ref and friends

2019-01-04 Thread Lyude Paul
s/drm_dp_get_validated_port_ref/drm_dp_mst_topology_get_port_validated/ s/drm_dp_put_port/drm_dp_mst_topology_put_port/ s/drm_dp_get_validated_mstb_ref/drm_dp_mst_topology_get_mstb_validated/ s/drm_dp_put_mst_branch_device/drm_dp_mst_topology_put_mstb/ This is a much more consistent naming scheme,

[Intel-gfx] [PATCH v4 02/16] drm/dp_mst: Introduce new refcounting scheme for mstbs and ports

2019-01-04 Thread Lyude Paul
The current way of handling refcounting in the DP MST helpers is really confusing and probably just plain wrong because it's been hacked up many times over the years without anyone actually going over the code and seeing if things could be simplified. To the best of my understanding, the current s

[Intel-gfx] [PATCH v4 07/16] drm/amdgpu/display: Keep malloc ref to MST port

2019-01-04 Thread Lyude Paul
Just like i915 and nouveau, it's a good idea for us to hold a malloc reference to the port here so that we never pass a freed pointer to any of the DP MST helper functions. Also, we stop unsetting aconnector->port in dm_dp_destroy_mst_connector(). There's literally no point to that assignment that

[Intel-gfx] [PATCH v4 11/16] drm/nouveau: Stop unsetting mstc->port, use malloc refs

2019-01-04 Thread Lyude Paul
Same as we did for i915, but for nouveau this time. Additionally, we grab a malloc reference to the port that lasts for the entire lifetime of nv50_mstc, which gives us the guarantee that mstc->port will always point to valid memory for as long as the mstc stays around. Signed-off-by: Lyude Paul

[Intel-gfx] [PATCH v4 08/16] drm/nouveau: Remove bogus cleanup in nv50_mstm_add_connector()

2019-01-04 Thread Lyude Paul
Trying to destroy the connector using mstc->connector.funcs->destroy() if connector initialization fails is wrong: there is no possible codepath in nv50_mstc_new where nv50_mstm_add_connector() would return <0 and mstc would be non-NULL. Signed-off-by: Lyude Paul Cc: Daniel Vetter Cc: David Airl

[Intel-gfx] [PATCH v4 05/16] drm/dp_mst: Fix payload deallocation on hotplugs using malloc refs

2019-01-04 Thread Lyude Paul
Up until now, freeing payloads on remote MST hubs that just had ports removed has almost never worked because we've been relying on port validation in order to stop us from accessing ports that have already been freed from memory, but ports which need their payloads released due to being removed wi

[Intel-gfx] [PATCH v4 09/16] drm/nouveau: Remove unnecessary VCPI checks in nv50_msto_cleanup()

2019-01-04 Thread Lyude Paul
There is no need to look at the port's VCPI allocation before calling drm_dp_mst_deallocate_vcpi(), as we already have msto->disabled to let us avoid cleaning up an msto more then once. The DP MST core will never call drm_dp_mst_deallocate_vcpi() on it's own, which is presumably what these checks a

[Intel-gfx] [PATCH v4 10/16] drm/nouveau: Keep malloc references to MST ports

2019-01-04 Thread Lyude Paul
Now that we finally have a sane way to keep port allocations around, use it to fix the potential unchecked ->port accesses that nouveau makes by making sure we keep the mst port allocated for as long as it's drm_connector is accessible. Additionally, now that we've guaranteed that mstc->port is al

[Intel-gfx] [PATCH v4 13/16] drm/dp_mst: Add some atomic state iterator macros

2019-01-04 Thread Lyude Paul
Changes since v6: - Move EXPORT_SYMBOL() for drm_dp_mst_topology_state_funcs to this commit - Document __drm_dp_mst_state_iter_get() and note that it shouldn't be called directly Signed-off-by: Lyude Paul Reviewed-by: Daniel Vetter Cc: David Airlie Cc: Jerry Zuo Cc: Harry Wentland Cc:

[Intel-gfx] [PATCH v4 14/16] drm/dp_mst: Start tracking per-port VCPI allocations

2019-01-04 Thread Lyude Paul
There has been a TODO waiting for quite a long time in drm_dp_mst_topology.c: /* We cannot rely on port->vcpi.num_slots to update * topology_state->avail_slots as the port may not exist if the parent * branch device was unplugged. This should be fixed by tracking

[Intel-gfx] [PATCH v4 12/16] drm/nouveau: Grab payload lock in nv50_msto_payload()

2019-01-04 Thread Lyude Paul
Going through the currently programmed payloads isn't safe without holding mgr->payload_lock, so actually do that and warn if anyone tries calling nv50_msto_payload() in the future without grabbing the right locks. Signed-off-by: Lyude Paul Cc: Daniel Vetter Cc: David Airlie Cc: Jerry Zuo Cc:

[Intel-gfx] [PATCH v4 16/16] drm/nouveau: Use atomic VCPI helpers for MST

2019-01-04 Thread Lyude Paul
Currently, nouveau uses the yolo method of setting up MST displays: it uses the old VCPI helpers (drm_dp_find_vcpi_slots()) for computing the display configuration. These helpers don't take care to make sure they take a reference to the mstb port that they're checking, and additionally don't actual

[Intel-gfx] [PATCH v4 15/16] drm/dp_mst: Check payload count in drm_dp_mst_atomic_check()

2019-01-04 Thread Lyude Paul
It occurred to me that we never actually check this! So let's start doing that. Signed-off-by: Lyude Paul Reviewed-by: Daniel Vetter Cc: David Airlie Cc: Jerry Zuo Cc: Harry Wentland Cc: Juston Li --- drivers/gpu/drm/drm_dp_mst_topology.c | 8 +++- 1 file changed, 7 insertions(+), 1 del

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for MST refcounting/atomic helpers cleanup (rev4)

2019-01-04 Thread Patchwork
== Series Details == Series: MST refcounting/atomic helpers cleanup (rev4) URL : https://patchwork.freedesktop.org/series/54030/ State : warning == Summary == $ dim checkpatch origin/drm-tip 2a2093f380b0 drm/dp_mst: Rename drm_dp_mst_get_validated_(port|mstb)_ref and friends -:84: CHECK:OPEN_

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for MST refcounting/atomic helpers cleanup (rev4)

2019-01-04 Thread Patchwork
== Series Details == Series: MST refcounting/atomic helpers cleanup (rev4) URL : https://patchwork.freedesktop.org/series/54030/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/dp_mst: Rename drm_dp_mst_get_validated_(port|mstb)_ref and friends Okay

[Intel-gfx] ✓ Fi.CI.BAT: success for MST refcounting/atomic helpers cleanup (rev4)

2019-01-04 Thread Patchwork
== Series Details == Series: MST refcounting/atomic helpers cleanup (rev4) URL : https://patchwork.freedesktop.org/series/54030/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11191 Summary --- **SUC

Re: [Intel-gfx] [PATCH v7 3/4] drm/i915/icl: Define MOCS table for Icelake

2019-01-04 Thread Lucas De Marchi
On Fri, Dec 21, 2018 at 12:29:41PM +, Tvrtko Ursulin wrote: > > On 14/12/2018 18:20, Lucas De Marchi wrote: > > From: Tomasz Lis > > > > The table has been unified across OSes to minimize virtualization overhead. > > > > The MOCS table is now published as part of bspec, and versioned. Entri

[Intel-gfx] [PATCH] drm/i915: Fixup kerneldoc for intel_device_info_runtime_init

2019-01-04 Thread Chris Wilson
CC [M] drivers/gpu/drm/i915/intel_device_info.o drivers/gpu/drm/i915/intel_device_info.c:727: warning: Function parameter or member 'dev_priv' not described in 'intel_device_info_runtime_init' drivers/gpu/drm/i915/intel_device_info.c:727: warning: Excess function parameter 'info' description i

[Intel-gfx] ✓ Fi.CI.IGT: success for MST refcounting/atomic helpers cleanup (rev4)

2019-01-04 Thread Patchwork
== Series Details == Series: MST refcounting/atomic helpers cleanup (rev4) URL : https://patchwork.freedesktop.org/series/54030/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11191_full Summary --

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fixup kerneldoc for intel_device_info_runtime_init

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915: Fixup kerneldoc for intel_device_info_runtime_init URL : https://patchwork.freedesktop.org/series/54767/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11192 Summary -

[Intel-gfx] drm/i915: Watchdog timeout: DRM kernel interface to set the timeout

2019-01-04 Thread Carlos Santa
From: Michel Thierry Final enablement patch for GPU hang detection using watchdog timeout. Using the gem_context_setparam ioctl, users can specify the desired timeout value in microseconds, and the driver will do the conversion to 'timestamps'. The recommended default watchdog threshold for vide

[Intel-gfx] Gen8+ engine-reset

2019-01-04 Thread Carlos Santa
This is a rebased on the original patch series from Michel Thierry that can be found here: https://patchwork.freedesktop.org/series/21868 Note that this series is only limited to the GPU Watchdog timeout for execlists as it leaves out support for GuC based submission for a later time. The series

[Intel-gfx] drm/i915: Only process VCS2 only when supported

2019-01-04 Thread Carlos Santa
Not checking for BSD2 causes a segfault on GPU revs with no h/w support for the extra media engines. Segfault on ULX GT2 (0x591e) follows: Patch shared by Michel Thierry on IIRC. [ 468.625970] BUG: unable to handle kernel NULL pointer dereference at 02c0 [ 468.625978] IP: gen8_cs_

[Intel-gfx] drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset?

2019-01-04 Thread Carlos Santa
From: Michel Thierry XXX: What to do when the watchdog irq fired twice but our hangcheck logic thinks the engine is not hung? For example, what if the active-head moved since the irq handler? One option is to just ignore the watchdog, if the engine is really hung, then the driver will detect the

[Intel-gfx] drm/i915: Watchdog timeout: Include threshold value in error state

2019-01-04 Thread Carlos Santa
From: Michel Thierry Save the watchdog threshold (in us) as part of the engine state. v2: Only do it for gen8+ (and prevent a missing-case warn). v3: use ctx->__engine. v4: Rebase. Cc: Antonio Argenziano Cc: Tvrtko Ursulin Signed-off-by: Michel Thierry Signed-off-by: Carlos Santa --- drive

[Intel-gfx] drm/i915: Watchdog timeout: IRQ handler for gen8+

2019-01-04 Thread Carlos Santa
From: Michel Thierry *** General *** Watchdog timeout (or "media engine reset") is a feature that allows userland applications to enable hang detection on individual batch buffers. The detection mechanism itself is mostly bound to the hardware and the only thing that the driver needs to do to su

[Intel-gfx] drm/i915: Watchdog timeout: Ringbuffer command emission for gen8+

2019-01-04 Thread Carlos Santa
From: Michel Thierry Emit the required commands into the ring buffer for starting and stopping the watchdog timer before/after batch buffer start during batch buffer submission. v2: Support watchdog threshold per context engine, merge lri commands, and move watchdog commands emission to emit_bb_

[Intel-gfx] drm/i915/watchdog: move emit_stop_watchdog until the very end of the ring commands

2019-01-04 Thread Carlos Santa
From: Michel Thierry On command streams that could potentially hang the GPU after a last flush command, it's best not to cancel the watchdog until after all commands have executed. Patch shared by Michel Thierry through IIRC after reproduction on my local setup. Tested-by: Carlos Santa CC: Ant

[Intel-gfx] drm/i915: Add engine reset count in get-reset-stats ioctl

2019-01-04 Thread Carlos Santa
From: Michel Thierry Users/tests relying on the total reset count will start seeing a smaller number since most of the hangs can be handled by engine reset. Note that if reset engine x, context a running on engine y will be unaware and unaffected. To start the discussion, include just a total en

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset?

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset? URL : https://patchwork.freedesktop.org/series/54768/ State : warning == Summary == $ dim checkpatch origin/drm-tip 285c27ee5aed drm/i915: Add engine reset count in get-reset-stats ioctl -:17: WA

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset?

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset? URL : https://patchwork.freedesktop.org/series/54768/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363 -> Patchwork_11193

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Fixup kerneldoc for intel_device_info_runtime_init

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915: Fixup kerneldoc for intel_device_info_runtime_init URL : https://patchwork.freedesktop.org/series/54767/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11192_full

Re: [Intel-gfx] drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset?

2019-01-04 Thread kbuild test robot
Hi Michel, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on v4.20 next-20190103] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [Intel-gfx] drm/i915: Watchdog timeout: Include threshold value in error state

2019-01-04 Thread kbuild test robot
Hi Michel, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on v4.20 next-20190103] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [Intel-gfx] drm/i915: Watchdog timeout: Include threshold value in error state

2019-01-04 Thread kbuild test robot
Hi Michel, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on v4.20 next-20190103] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset?

2019-01-04 Thread Patchwork
== Series Details == Series: drm/i915: Watchdog timeout: Blindly trust watchdog timeout for reset? URL : https://patchwork.freedesktop.org/series/54768/ State : success == Summary == CI Bug Log - changes from CI_DRM_5363_full -> Patchwork_11193_full