Re: [Intel-gfx] [GIT PULL] drm-misc + drm-intel: Add support for out-of-band hotplug notification

2021-09-13 Thread Hans de Goede
Hi, On 8/26/21 1:43 PM, Vivi, Rodrigo wrote: > On Thu, 2021-08-26 at 10:23 +0200, Maxime Ripard wrote: >> On Wed, Aug 25, 2021 at 04:03:43PM +, Vivi, Rodrigo wrote: >>> On Tue, 2021-08-24 at 18:48 +0200, Hans de Goede wrote: Hi, On 8/24/21 10:45 AM, Jani Nikula wrote: > On F

Re: [Intel-gfx] [PATCH 05/27] drm/i915: Add GT PM unpark worker

2021-09-13 Thread Tvrtko Ursulin
On 10/09/2021 21:09, Matthew Brost wrote: On Fri, Sep 10, 2021 at 09:36:17AM +0100, Tvrtko Ursulin wrote: On 20/08/2021 23:44, Matthew Brost wrote: Sometimes it is desirable to queue work up for later if the GT PM isn't held and run that work on next GT PM unpark. Sounds maybe plausible, b

Re: [Intel-gfx] [PATCH 23/27] drm/i915/guc: Implement no mid batch preemption for multi-lrc

2021-09-13 Thread Tvrtko Ursulin
On 10/09/2021 21:49, Matthew Brost wrote: On Fri, Sep 10, 2021 at 12:25:43PM +0100, Tvrtko Ursulin wrote: On 20/08/2021 23:44, Matthew Brost wrote: For some users of multi-lrc, e.g. split frame, it isn't safe to preempt mid BB. To safely enable preemption at the BB boundary, a handshake betw

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Disallow D3Cold.

2021-09-13 Thread Gupta, Anshuman
> -Original Message- > From: Intel-gfx On Behalf Of Rodrigo > Vivi > Sent: Friday, September 10, 2021 11:15 PM > To: intel-gfx@lists.freedesktop.org > Cc: Vivi, Rodrigo ; Tangudu, Tilak > ; Deak, Imre > Subject: [Intel-gfx] [PATCH 2/3] drm/i915: Disallow D3Cold. > > During runtime or

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Enable runtime pm autosuspend by default

2021-09-13 Thread Gupta, Anshuman
> -Original Message- > From: Vivi, Rodrigo > Sent: Friday, September 10, 2021 11:15 PM > To: intel-gfx@lists.freedesktop.org > Cc: Vivi, Rodrigo ; Daniel Vetter > ; David Weinehall ; > Tangudu, Tilak ; Deak, Imre ; > Gupta, Anshuman > Subject: [PATCH 3/3] drm/i915: Enable runtime pm au

Re: [Intel-gfx] [PATCH v2 4/6] drm/edid: parse the DisplayID v2.0 VESA vendor block for MSO

2021-09-13 Thread Shankar, Uma
> -Original Message- > From: Nikula, Jani > Sent: Monday, September 13, 2021 3:00 PM > To: Shankar, Uma ; intel-gfx@lists.freedesktop.org > Cc: dri-de...@lists.freedesktop.org; ville.syrj...@linux.intel.com > Subject: RE: [PATCH v2 4/6] drm/edid: parse the DisplayID v2.0 VESA vendor >

Re: [Intel-gfx] [RFC PATCH] drm/ttm: Add a private member to the struct ttm_resource

2021-09-13 Thread Thomas Hellström
On 9/13/21 12:16 PM, Thomas Hellström wrote: On 9/13/21 11:41 AM, Christian König wrote: Am 13.09.21 um 11:36 schrieb Thomas Hellström: On 9/13/21 8:17 AM, Christian König wrote: Am 11.09.21 um 08:07 schrieb Thomas Hellström: On Fri, 2021-09-10 at 19:03 +0200, Christian König wrote: Am 10

[Intel-gfx] [PATCH 1/1] lib, stackdepot: Add helper to print stack entries into buffer.

2021-09-13 Thread Imran Khan
To print stack entries into a buffer, users of stackdepot, first get a list of stack entries using stack_depot_fetch and then print this list into a buffer using stack_trace_snprint. Provide a helper in stackdepot for this purpose. Also change above mentioned users to use this helper. Signed-off-b

Re: [Intel-gfx] [PATCH] drm/i915: Add ww context to intel_dpt_pin (fwd)

2021-09-13 Thread Julia Lawall
I don't seem to have received any other message about this, but from the URL below, the referenced code seems to be: if (IS_ERR(iomem)) { err = PTR_ERR(vma); continue; } It seems that the argument of PTR_ERR should be iomem,

Re: [Intel-gfx] [RFC PATCH] drm/ttm: Add a private member to the struct ttm_resource

2021-09-13 Thread Christian König
Am 13.09.21 um 11:36 schrieb Thomas Hellström: On 9/13/21 8:17 AM, Christian König wrote: Am 11.09.21 um 08:07 schrieb Thomas Hellström: On Fri, 2021-09-10 at 19:03 +0200, Christian König wrote: Am 10.09.21 um 17:30 schrieb Thomas Hellström: On Fri, 2021-09-10 at 16:40 +0200, Christian König

[Intel-gfx] [PATCH 06/26] dma-buf: use new iterator in dma_resv_test_signaled

2021-09-13 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled elsewhere. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 54 +- 1 file changed, 7 insertions(+), 47 deletions(-) diff --git a/drivers/dma-buf/dma-resv.c b/driv

[Intel-gfx] [PATCH 26/26] dma-buf: nuke dma_resv_get_excl_unlocked

2021-09-13 Thread Christian König
Heureka, that's finally not used any more. Signed-off-by: Christian König --- include/linux/dma-resv.h | 26 -- 1 file changed, 26 deletions(-) diff --git a/include/linux/dma-resv.h b/include/linux/dma-resv.h index 6f9bb7e4c538..90c15cbe7d92 100644 --- a/include/linux/dm

[Intel-gfx] [PATCH 13/26] drm/i915: use the new iterator in i915_gem_busy_ioctl

2021-09-13 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled else where. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_busy.c | 30 +++- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_ge

[Intel-gfx] [PATCH 03/26] dma-buf: use new iterator in dma_resv_copy_fences

2021-09-13 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled else where. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 81 +++--- 1 file changed, 32 insertions(+), 49 deletions(-) diff --git a/drivers/dma-buf/dma-resv.c b/dr

[Intel-gfx] [PATCH 09/26] drm/amdgpu: use new iterator in amdgpu_ttm_bo_eviction_valuable

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 489e22190e29..0a9270

[Intel-gfx] [PATCH 05/26] dma-buf: use new iterator in dma_resv_wait_timeout

2021-09-13 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled elsewhere. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 64 +- 1 file changed, 7 insertions(+), 57 deletions(-) diff --git a/drivers/dma-buf/dma-resv.c b/driv

[Intel-gfx] [PATCH 01/26] dma-buf: add dma_resv_for_each_fence_unlocked

2021-09-13 Thread Christian König
Abstract the complexity of iterating over all the fences in a dma_resv object. The new loop handles the whole RCU and retry dance and returns only fences where we can be sure we grabbed the right one. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 63 +++

[Intel-gfx] [PATCH 07/26] drm/ttm: use the new iterator in ttm_bo_flush_all_fences

2021-09-13 Thread Christian König
This is probably a fix since we didn't even grabed a reference to the fences. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 0a3127

[Intel-gfx] [PATCH 04/26] dma-buf: use new iterator in dma_resv_get_fences v2

2021-09-13 Thread Christian König
This makes the function much simpler since the complex retry logic is now handled elsewhere. v2: use sizeof(void*) instead Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 110 + 1 file changed, 37 insertions(+), 73 deletions(-) diff --git a/d

[Intel-gfx] [PATCH 21/26] drm: use new iterator in drm_gem_plane_helper_prepare_fb

2021-09-13 Thread Christian König
Makes the handling a bit more complex, but avoids the use of dma_resv_get_excl_unlocked(). Signed-off-by: Christian König --- drivers/gpu/drm/drm_gem_atomic_helper.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_atomic_helper.c b/drivers/gp

[Intel-gfx] Deploying new iterator interface for dma-buf

2021-09-13 Thread Christian König
Hi everybody, we recently found that a good bunch of the RCU accesses to the dma_resv object are actually not correctly protected. Those where fixed by either dropping the RCU approach and taking appropriate locks or using a central function to return the current fences as array and then work

[Intel-gfx] [PATCH 23/26] drm/nouveau: use the new interator in nv50_wndw_prepare_fb

2021-09-13 Thread Christian König
Makes the handling a bit more complex, but avoids the use of dma_resv_get_excl_unlocked(). Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/dispnv50/wndw.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/wndw.c b/drivers/gpu

[Intel-gfx] [PATCH 17/26] drm/i915: use new iterator in i915_gem_object_wait_priority

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 29 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_wait.c b/drivers/gpu/drm/i915/gem/i915_gem_wait.c index 1317454

[Intel-gfx] [PATCH 15/26] drm/i915: use the new iterator in i915_request_await_object

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/i915/i915_request.c | 36 ++--- 1 file changed, 7 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index 37aef1308573..b81

[Intel-gfx] [PATCH 12/26] drm/scheduler: use new iterator in drm_sched_job_add_implicit_dependencies

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/scheduler/sched_main.c | 26 +++--- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c index 6987d412a94

[Intel-gfx] [PATCH 11/26] drm/radeon: use new iterator in radeon_sync_resv

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/radeon/radeon_sync.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_sync.c b/drivers/gpu/drm/radeon/radeon_sync.c index 9257b60144c4..14a4d81

[Intel-gfx] [PATCH 02/26] dma-buf: add dma_resv_for_each_fence

2021-09-13 Thread Christian König
A simpler version of the iterator to be used when the dma_resv object is locked. Signed-off-by: Christian König --- drivers/dma-buf/dma-resv.c | 38 ++ include/linux/dma-resv.h | 18 ++ 2 files changed, 56 insertions(+) diff --git a/drivers/

[Intel-gfx] [PATCH 10/26] drm/msm: use new iterator in msm_gem_describe

2021-09-13 Thread Christian König
Simplifying the code a bit. Also drop the RCU read side lock since the object is locked anyway. Untested since I can't get the driver to compile on !ARM. Signed-off-by: Christian König --- drivers/gpu/drm/msm/msm_gem.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-)

[Intel-gfx] [PATCH 20/26] drm: use new iterator in drm_gem_fence_array_add_implicit

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/drm_gem.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 09c820045859..6e3b8491be68 100644 --- a/drivers

[Intel-gfx] [PATCH 08/26] drm/amdgpu: use the new iterator in amdgpu_sync_resv

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 44 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index 862eb3

[Intel-gfx] [PATCH 24/26] drm/etnaviv: use new iterator in etnaviv_gem_describe

2021-09-13 Thread Christian König
Instead of hand rolling the logic. Signed-off-by: Christian König --- drivers/gpu/drm/etnaviv/etnaviv_gem.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.c b/drivers/gpu/drm/etnaviv/etnaviv_gem.c index b8fa6e

[Intel-gfx] [PATCH 19/26] drm/i915: use new cursor in intel_prepare_plane_fb

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/i915/display/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index eec6c9e9cda7..1

[Intel-gfx] [PATCH 18/26] drm/i915: use new iterator in i915_gem_object_last_write_engine

2021-09-13 Thread Christian König
This is maybe even a fix since the RCU usage here looks incorrect. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_object.h | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object.h b/drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 22/26] drm/nouveau: use the new iterator in nouveau_fence_sync

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/nouveau/nouveau_fence.c | 48 +++-- 1 file changed, 12 insertions(+), 36 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.c b/drivers/gpu/drm/nouveau/nouveau_fence.c index 05d0b3eb

[Intel-gfx] [PATCH 25/26] drm/etnaviv: replace dma_resv_get_excl_unlocked

2021-09-13 Thread Christian König
We certainly hold the reservation lock here, no need for the RCU dance. Signed-off-by: Christian König --- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c b/drivers/gpu/drm/etnaviv/etna

[Intel-gfx] [PATCH 14/26] drm/i915: use the new iterator in i915_sw_fence_await_reservation

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/i915/i915_sw_fence.c | 52 ++-- 1 file changed, 10 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_sw_fence.c b/drivers/gpu/drm/i915/i915_sw_fence.c index c589a681da77..

[Intel-gfx] [PATCH 16/26] drm/i915: use new iterator in i915_gem_object_wait_reservation

2021-09-13 Thread Christian König
Simplifying the code a bit. Signed-off-by: Christian König --- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 49 +--- 1 file changed, 9 insertions(+), 40 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_wait.c b/drivers/gpu/drm/i915/gem/i915_gem_wait.c index 1e97520

[Intel-gfx] ✗ Fi.CI.BUILD: failure for lib, stackdepot: Add helper to print stack entries into buffer.

2021-09-13 Thread Patchwork
== Series Details == Series: lib, stackdepot: Add helper to print stack entries into buffer. URL : https://patchwork.freedesktop.org/series/94553/ State : failure == Summary == Applying: lib, stackdepot: Add helper to print stack entries into buffer. error: sha1 information is lacking or usele

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/26] dma-buf: add dma_resv_for_each_fence_unlocked

2021-09-13 Thread Patchwork
== Series Details == Series: series starting with [01/26] dma-buf: add dma_resv_for_each_fence_unlocked URL : https://patchwork.freedesktop.org/series/94605/ State : warning == Summary == $ dim checkpatch origin/drm-tip a5a4809c51c3 dma-buf: add dma_resv_for_each_fence_unlocked -:69: CHECK:OP

[Intel-gfx] [PATCH] drm/i915/display: Enable second VDSC engine for higher moderates

2021-09-13 Thread Vandita Kulkarni
Each VDSC operates with 1ppc throughput, hence enable the second VDSC engine when moderate is higher that the current cdclk. Signed-off-by: Vandita Kulkarni --- drivers/gpu/drm/i915/display/intel_dp.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/d

[Intel-gfx] [PATCH 01/16] Revert "drm/i915/display: Disable audio, DRRS and PSR before planes"

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Disabling planes in the middle of the modeset seuqnece does not make sense since userspace can anyway disable planes before the modeset even starts. So when the modeset seuqence starts the set of enabled planes is entirely arbitrary. Trying to sprinkle the plane disabling into

[Intel-gfx] [PATCH 04/16] drm/i915: Flatten hsw_crtc_compute_clock()

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä hsw_crtc_compute_clock() has become spaghetti. Flatten it a bit to make it at least semi-legible. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dpll.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 05/16] drm/i915: s/pipe/transcoder/ when dealing with PIPECONF/TRANSCONF

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä PIPECONF becamse TRANSCONF when HSW introduced the EDP transcoder. Bigjoiner is making life even more confusing by introducing a N:1 relationship between pipes and transcoders. In that case we only enable/configure the transcoder corresponding to the master pipe. Let's do some

[Intel-gfx] [PATCH 06/16] drm/i915: Introduce with_intel_display_power_if_enabled()

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Add the _if_enabled() counterpart to with_intel_display_power(). Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_power.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_power.h b/drivers/gpu/drm

[Intel-gfx] [PATCH 03/16] drm/i915: Extract intel_dp_use_bigjoiner()

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Suck the "do we need bigjoiner?" checks into a helper instead of duplicating them in two differentt places. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/driv

[Intel-gfx] [PATCH 07/16] drm/i915: Adjust intel_dsc_power_domain() calling convention

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Pass the crtc+cpu_transcoder rather than the crtc state to intel_dsc_power_domain(). This should allow us to reuse it during readout as well. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 6 +- drivers/gpu/drm/i915/display/intel_vdsc.c

[Intel-gfx] [PATCH 08/16] drm/i915: Extract hsw_panel_transcoders()

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Extract the "panel transcoder" bitmask into a helper. We'll have a couple of uses for this later. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/

[Intel-gfx] [PATCH 02/16] drm/i915: Disable all planes before modesetting any pipes

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Let's disable planes on all pipes affected by the modeset before we start doing the actual modeset. This means we have less random planes enabled during the modeset, and it also mirrors what we already do when enabling pipes on skl+ since we enable planes on all pipes as the v

[Intel-gfx] [PATCH 00/16] drm/i915: Fix bigjoiner state readout

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Let's try to finally fix up some of the bigjoiner shortcomings. The focus here is getting rid of all the state readout hacks. The actual modeset flow is still very fragile and hard to follow, but fixing that isn't going to be simple so I'll leave it alone for the moment. Vill

[Intel-gfx] [PATCH 10/16] drm/i915: Configure TRANSCONF just the once with bigjoiner

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Let's not configure the single transcoder's TRANSCONF multiple times with bigjoiner. No real harm I suppose but since we already have the bigjoiner if statement directly above might as well suck this in there and skip the redundant programming. Signed-off-by: Ville Syrjälä -

[Intel-gfx] [PATCH 09/16] drm/i915: Pimp HSW+ transcoder state readout

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Adjust the HSW+ transcoder state readout to just read through all the possible transcoders for the pipe, and stuff the results in a bitmask. We can conveniently cross check the bitmask for invalid combinations of enabled transcoders, and later we can easily extend the bitmask

[Intel-gfx] [PATCH 12/16] drm/i915: Simplify intel_crtc_copy_uapi_to_hw_state_nomodeset()

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Rewrite intel_crtc_copy_uapi_to_hw_state_nomodeset() in a slightly more straightforward manner. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/d

[Intel-gfx] [PATCH 11/16] drm/i915: Introduce intel_master_crtc()

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Add a helper to determine the master crtc for bigjoiner usage. Also name the variables consistently. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_ddi.c | 6 +-- drivers/gpu/drm/i915/display/intel_display.c | 57 +++- 2 files chang

[Intel-gfx] [PATCH 14/16] drm/i915: Perform correct cpu_transcoder readout for bigjoiner

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Read out cpu_transcoder correctly for the bigjoiner slave pipes. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 66 1 file changed, 66 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/g

[Intel-gfx] [PATCH 13/16] drm/i915: Split PPS write from DSC enable

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä The PPS SDP is fed into the transcoder whereas the DSC block is (or at least can be) per pipe. Let's split these into two distinct operations in an effort to untagle the bigjoiner mess where we have two pipes feeding a single transcoder. Signed-off-by: Ville Syrjälä --- dri

[Intel-gfx] [PATCH 15/16] drm/i915: Reduce bigjoiner special casing

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Try to make bigjoiner pipes less special. The main things here are that each pipe now does full clock computation/readout with its own shared_dpll reference. Also every pipe's cpu_transcoder always points correctly at the master transcoder. Due to the above changes state rea

[Intel-gfx] [PATCH 16/16] drm/i915: Nuke PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE

2021-09-13 Thread Ville Syrjala
From: Ville Syrjälä Now that the bigjoiner state readout/computation has been made to do the right thing nuke the related state checker quirk. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 105 -- .../drm/i915/display/intel_display_types.h

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [01/26] dma-buf: add dma_resv_for_each_fence_unlocked

2021-09-13 Thread Patchwork
== Series Details == Series: series starting with [01/26] dma-buf: add dma_resv_for_each_fence_unlocked URL : https://patchwork.freedesktop.org/series/94605/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10574 -> Patchwork_21021 ===

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Enable second VDSC engine for higher moderates

2021-09-13 Thread Patchwork
== Series Details == Series: drm/i915/display: Enable second VDSC engine for higher moderates URL : https://patchwork.freedesktop.org/series/94608/ State : success == Summary == CI Bug Log - changes from CI_DRM_10574 -> Patchwork_21022 Summ

Re: [Intel-gfx] [PATCH 4/5] drm/i915/display/psr: Use drm damage helpers to calculate plane damaged area

2021-09-13 Thread Gwan-gyeong Mun
On 9/10/21 2:07 AM, José Roberto de Souza wrote: drm_atomic_helper_damage_iter_init() + drm_atomic_for_each_plane_damage() returns the full plane area in case no damaged area was set by userspace or it was discarted by driver. This is important to fix the rendering of userspace applications t

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Fix bigjoiner state readout

2021-09-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix bigjoiner state readout URL : https://patchwork.freedesktop.org/series/94609/ State : warning == Summary == $ dim checkpatch origin/drm-tip c2571575849c Revert "drm/i915/display: Disable audio, DRRS and PSR before planes" 36568f62f4b3 drm/i915: Disab

Re: [Intel-gfx] [PATCH 2/5] drm/i915/display/adlp: Add new PSR2 workarounds

2021-09-13 Thread Gwan-gyeong Mun
On 9/10/21 7:29 PM, Souza, Jose wrote: On Fri, 2021-09-10 at 16:38 +0300, Gwan-gyeong Mun wrote: On 9/10/21 2:07 AM, José Roberto de Souza wrote: Wa_16014451276 fixes the starting coordinate for PSR2 selective updates. CHICKEN_TRANS definition of the workaround bit has a wrong name based on

Re: [Intel-gfx] [PATCH 01/16] Revert "drm/i915/display: Disable audio, DRRS and PSR before planes"

2021-09-13 Thread Souza, Jose
On Mon, 2021-09-13 at 17:44 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Disabling planes in the middle of the modeset seuqnece does not make > sense since userspace can anyway disable planes before the modeset > even starts. So when the modeset seuqence starts the set of enabled > plane

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix bigjoiner state readout

2021-09-13 Thread Patchwork
== Series Details == Series: drm/i915: Fix bigjoiner state readout URL : https://patchwork.freedesktop.org/series/94609/ State : success == Summary == CI Bug Log - changes from CI_DRM_10574 -> Patchwork_21023 Summary --- **SUCCESS**

Re: [Intel-gfx] [PATCH v2 0/6] drm/displayid: VESA vendor block and drm/i915 MSO use of it

2021-09-13 Thread Jani Nikula
On Tue, 31 Aug 2021, Jani Nikula wrote: > v2 of https://patchwork.freedesktop.org/series/94161/ with the VESA OUI > check and an OUI helper patch added. Maarten, Maxime, Thomas - may I have an ack for merging this via drm-intel? I think at this time we can get the merge to drm-next and backmerge

Re: [Intel-gfx] [PATCH 4/5] drm/i915/display/psr: Use drm damage helpers to calculate plane damaged area

2021-09-13 Thread Souza, Jose
On Mon, 2021-09-13 at 19:03 +0300, Gwan-gyeong Mun wrote: > > On 9/10/21 2:07 AM, José Roberto de Souza wrote: > > drm_atomic_helper_damage_iter_init() + drm_atomic_for_each_plane_damage() > > returns the full plane area in case no damaged area was set by > > userspace or it was discarted by drive

[Intel-gfx] [PATCH v2] drm/i915/display: program audio CDCLK-TS for keepalives

2021-09-13 Thread Kai Vehmanen
XE_LPD display adds support for display audio codec keepalive feature. This feature works also when display codec is in D3 state and the audio link is off (BCLK off). To enable this functionality, display driver must update the AUD_TS_CDCLK_M/N registers whenever CDCLK is changed. Actual timestamps

Re: [Intel-gfx] [PATCH] drm/i915/display: program audio CDCLK-TS for keepalives

2021-09-13 Thread Kai Vehmanen
Hi, On Fri, 10 Sep 2021, Jani Nikula wrote: > Nitpick, switching to i915 variable name instead of dev_priv is > preferred for new code throughout. ack, changed. > On Fri, 10 Sep 2021, Kai Vehmanen wrote: > > + if (DISPLAY_VER(dev_priv) >= 13) { > > + tmp = intel_de_read(dev_priv, A

Re: [Intel-gfx] [PATCH 08/27] drm/i915: Add logical engine mapping

2021-09-13 Thread Matthew Brost
On Mon, Sep 13, 2021 at 10:24:43AM +0100, Tvrtko Ursulin wrote: > > On 10/09/2021 20:49, Matthew Brost wrote: > > On Fri, Sep 10, 2021 at 12:12:42PM +0100, Tvrtko Ursulin wrote: > > > > > > On 20/08/2021 23:44, Matthew Brost wrote: > > > > Add logical engine mapping. This is required for split-fr

Re: [Intel-gfx] [PATCH 07/27] drm/i915/guc: Don't call switch_to_kernel_context with GuC submission

2021-09-13 Thread Matthew Brost
On Thu, Sep 09, 2021 at 03:51:27PM -0700, John Harrison wrote: > On 8/20/2021 15:44, Matthew Brost wrote: > > Calling switch_to_kernel_context isn't needed if the engine PM reference > > is taken while all contexts are pinned. By not calling > > switch_to_kernel_context we save on issuing a request

Re: [Intel-gfx] [PATCH 07/27] drm/i915/guc: Don't call switch_to_kernel_context with GuC submission

2021-09-13 Thread Matthew Brost
On Thu, Sep 09, 2021 at 03:51:27PM -0700, John Harrison wrote: > On 8/20/2021 15:44, Matthew Brost wrote: > > Calling switch_to_kernel_context isn't needed if the engine PM reference > > is taken while all contexts are pinned. By not calling > > switch_to_kernel_context we save on issuing a request

Re: [Intel-gfx] [PATCH 2/5] drm/i915/display/adlp: Add new PSR2 workarounds

2021-09-13 Thread Souza, Jose
On Mon, 2021-09-13 at 19:09 +0300, Gwan-gyeong Mun wrote: > > On 9/10/21 7:29 PM, Souza, Jose wrote: > > On Fri, 2021-09-10 at 16:38 +0300, Gwan-gyeong Mun wrote: > > > > > > On 9/10/21 2:07 AM, José Roberto de Souza wrote: > > > > Wa_16014451276 fixes the starting coordinate for PSR2 selective >

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/display: Enable second VDSC engine for higher moderates

2021-09-13 Thread Patchwork
== Series Details == Series: drm/i915/display: Enable second VDSC engine for higher moderates URL : https://patchwork.freedesktop.org/series/94608/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10574_full -> Patchwork_21022_full

Re: [Intel-gfx] [PATCH 04/27] drm/i915/guc: Take GT PM ref when deregistering context

2021-09-13 Thread Matthew Brost
On Mon, Sep 13, 2021 at 10:55:59AM +0100, Tvrtko Ursulin wrote: > > On 20/08/2021 23:44, Matthew Brost wrote: > > Taking a PM reference to prevent intel_gt_wait_for_idle from short > > circuiting while a deregister context H2G is in flight. > > > > FIXME: Move locking / structure changes into dif

Re: [Intel-gfx] [PATCH 05/27] drm/i915: Add GT PM unpark worker

2021-09-13 Thread Matthew Brost
On Mon, Sep 13, 2021 at 11:33:46AM +0100, Tvrtko Ursulin wrote: > > On 10/09/2021 21:09, Matthew Brost wrote: > > On Fri, Sep 10, 2021 at 09:36:17AM +0100, Tvrtko Ursulin wrote: > > > > > > On 20/08/2021 23:44, Matthew Brost wrote: > > > > Sometimes it is desirable to queue work up for later if t

[Intel-gfx] [PATCH] drm/i915: Update memory bandwidth parameters

2021-09-13 Thread Radhakrishna Sripada
Earlier while calculating derated bw we would use 90% of the calculated bw. Starting ADL-P we use a non standard derating. Updating the formulae to reflect the same. Bspec: 64631 Fixes: 4d32fe2f14a7 ("drm/i915/adl_p: Update memory bandwidth parameters") Cc: Matt Roper Signed-off-by: Radhakrishna

[Intel-gfx] [PATCH 00/14] drm/hdcp: Pull HDCP auth/exchange/check into

2021-09-13 Thread Sean Paul
From: Sean Paul Hello, This patchset pulls the HDCP protocol auth/exchange/check logic out from i915 into a HDCP helper library which drivers can use to implement the proper protocol and UAPI interactions for achieving HDCP. Originally this was all stuffed into i915 since it was the only driver

[Intel-gfx] [PATCH 01/14] drm/hdcp: Add drm_hdcp_atomic_check()

2021-09-13 Thread Sean Paul
From: Sean Paul This patch moves the hdcp atomic check from i915 to drm_hdcp so other drivers can use it. No functional changes, just cleaned up some of the code when moving it over. Signed-off-by: Sean Paul --- drivers/gpu/drm/drm_hdcp.c | 71 - drivers/gp

[Intel-gfx] [PATCH 02/14] drm/hdcp: Avoid changing crtc state in hdcp atomic check

2021-09-13 Thread Sean Paul
From: Sean Paul Instead of forcing a modeset in the hdcp atomic check, simply return true if the content protection value is changing and let the driver decide whether a modeset is required or not. Signed-off-by: Sean Paul --- drivers/gpu/drm/drm_hdcp.c | 33 +++---

[Intel-gfx] [PATCH 03/14] drm/hdcp: Update property value on content type and user changes

2021-09-13 Thread Sean Paul
From: Sean Paul This patch updates the connector's property value in 2 cases which were previously missed: 1- Content type changes. The value should revert back to DESIRED from ENABLED in case the driver must re-authenticate the link due to the new content type. 2- Userspace sets value to

[Intel-gfx] [PATCH 04/14] drm/hdcp: Expand HDCP helper library for enable/disable/check

2021-09-13 Thread Sean Paul
From: Sean Paul This patch expands upon the HDCP helper library to manage HDCP enable, disable, and check. Previous to this patch, the majority of the state management and sink interaction is tucked inside the Intel driver with the understanding that once a new platform supported HDCP we could m

[Intel-gfx] [PATCH 05/14] drm/i915/hdcp: Consolidate HDCP setup/state cache

2021-09-13 Thread Sean Paul
From: Sean Paul Stick all of the setup for HDCP into a dedicated function. No functional change, but this will facilitate moving HDCP logic into helpers. Signed-off-by: Sean Paul --- drivers/gpu/drm/i915/display/intel_hdcp.c | 52 +++ 1 file changed, 35 insertions(+), 17 de

[Intel-gfx] [PATCH 06/14] drm/i915/hdcp: Retain hdcp_capable return codes

2021-09-13 Thread Sean Paul
From: Sean Paul The shim functions return error codes, but they are discarded in intel_hdcp.c. This patch plumbs the return codes through so they are properly handled. Signed-off-by: Sean Paul --- .../drm/i915/display/intel_display_debugfs.c | 9 +++- drivers/gpu/drm/i915/display/intel_hdcp.

[Intel-gfx] [PATCH 07/14] drm/i915/hdcp: Use HDCP helpers for i915

2021-09-13 Thread Sean Paul
From: Sean Paul Now that all of the HDCP 1.x logic has been migrated to the central HDCP helpers, use it in the i915 driver. The majority of the driver code for HDCP 1.x will live in intel_hdcp.c, however there are a few helper hooks which are connector-specific and need to be partially or fully

[Intel-gfx] [PATCH 08/14] drm/msm/dpu_kms: Re-order dpu includes

2021-09-13 Thread Sean Paul
From: Sean Paul Make includes alphabetical in dpu_kms.c Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index ae48

[Intel-gfx] [PATCH 09/14] drm/msm/dpu: Remove useless checks in dpu_encoder

2021-09-13 Thread Sean Paul
From: Sean Paul A couple more useless checks to remove in dpu_encoder. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_enco

[Intel-gfx] [PATCH 10/14] drm/msm/dpu: Remove encoder->enable() hack

2021-09-13 Thread Sean Paul
From: Sean Paul encoder->commit() was being misused because there were some global resources which needed to be tweaked in encoder->enable() which were not accessible in dpu_encoder.c. That is no longer true and the redirect serves no purpose any longer. So remove the indirection. Signed-off-by:

[Intel-gfx] [PATCH 12/14] dt-bindings: msm/dp: Add bindings for HDCP registers

2021-09-13 Thread Sean Paul
From: Sean Paul This patch adds the bindings for the MSM DisplayPort HDCP registers which are required to write the HDCP key into the display controller as well as the registers to enable HDCP authentication/key exchange/encryption. Signed-off-by: Sean Paul --- .../bindings/display/msm/dp-cont

[Intel-gfx] [PATCH 11/14] drm/msm/dp: Re-order dp_audio_put in deinit_sub_modules

2021-09-13 Thread Sean Paul
From: Sean Paul Audio is initialized last, it should be de-initialized first to match the order in dp_init_sub_modules(). Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/dp/dp_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/

[Intel-gfx] [PATCH 13/14] drm/msm: Add hdcp register ranges to sc7180 device tree

2021-09-13 Thread Sean Paul
From: Sean Paul This patch adds the register ranges required for HDCP to the sc7180 device tree. These registers will be used to inject HDCP key as well as toggle HDCP on and off. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/dp/dp_parser.c | 30 +++--- drivers/gpu/d

[Intel-gfx] [PATCH 14/14] drm/msm: Implement HDCP 1.x using the new drm HDCP helpers

2021-09-13 Thread Sean Paul
From: Sean Paul This patch adds HDCP 1.x support to msm DP connectors using the new HDCP helpers. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/Makefile| 1 + drivers/gpu/drm/msm/dp/dp_debug.c | 49 +++- drivers/gpu/drm/msm/dp/dp_debug.h | 6 +- drivers/gpu/drm/msm/dp/dp_di

Re: [Intel-gfx] [PATCH 00/14] drm/hdcp: Pull HDCP auth/exchange/check into

2021-09-13 Thread Alex Deucher
On Mon, Sep 13, 2021 at 1:57 PM Sean Paul wrote: > > From: Sean Paul > > Hello, > This patchset pulls the HDCP protocol auth/exchange/check logic out from > i915 into a HDCP helper library which drivers can use to implement the > proper protocol and UAPI interactions for achieving HDCP. > > Origi

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/display: program audio CDCLK-TS for keepalives (rev2)

2021-09-13 Thread Patchwork
== Series Details == Series: drm/i915/display: program audio CDCLK-TS for keepalives (rev2) URL : https://patchwork.freedesktop.org/series/94551/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10574 -> Patchwork_21024 Summar

[Intel-gfx] [PATCH 1/8] drm/i915/gem: Break out some shmem backend utils

2021-09-13 Thread Matthew Auld
From: Thomas Hellström Break out some shmem backend utils for future reuse by the TTM backend: shmem_alloc_st(), shmem_free_st() and __shmem_writeback() which we can use to provide a shmem-backed TTM page pool for cached-only TTM buffer objects. Main functional change here is that we now compute

[Intel-gfx] [PATCH 2/8] drm/ttm: add TTM_PAGE_FLAG_SHMEM

2021-09-13 Thread Matthew Auld
Add new flag to indicate special shmem based tt, which can directly handle swapping itself, and should be visible to some shrinker. As part of this we should skip the ttm_pages_allocated accounting, since such tt objects should already be reachable, and potentially reclaimable by some shrinker, if

[Intel-gfx] [PATCH 3/8] drm/i915/ttm: add tt shmem backend

2021-09-13 Thread Matthew Auld
For cached objects we can allocate our pages directly in shmem. This should make it possible(in a later patch) to utilise the existing i915-gem shrinker code for such objects. For now this is still disabled. Signed-off-by: Matthew Auld Cc: Thomas Hellström Cc: Christian König --- drivers/gpu/d

[Intel-gfx] [PATCH 4/8] drm/i915/ttm: use cached system pages when evicting lmem

2021-09-13 Thread Matthew Auld
This should let us do an accelerated copy directly to the shmem pages when temporarily moving lmem-only objects, where the i915-gem shrinker can later kick in to swap out the pages, if needed. Signed-off-by: Matthew Auld Cc: Thomas Hellström --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 8 -

[Intel-gfx] [PATCH 5/8] drm/i915: remember to call i915_sw_fence_fini

2021-09-13 Thread Matthew Auld
Fixes some object-debug splat which appeared while debugging something unrelated. Signed-off-by: Matthew Auld Cc: Thomas Hellström --- drivers/gpu/drm/i915/gt/intel_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gt/intel_context.c b/drivers/gpu/drm/i915/gt/i

[Intel-gfx] [PATCH 6/8] drm/i915: try to simplify make_{un}shrinkable

2021-09-13 Thread Matthew Auld
Drop the atomic shrink_pin stuff, and just have make_{un}shrinkable update the shrinker visible lists immediately. This at least simplifies the next patch, and does make the behaviour more obvious. The potential downside is that make_unshrinkable now grabs a global lock even when the object itself

[Intel-gfx] [PATCH 7/8] drm/i915/ttm: make evicted shmem pages visible to the shrinker

2021-09-13 Thread Matthew Auld
We currently just evict lmem objects to system memory when under memory pressure. For this case we lack the usual object mm.pages, which effectively hides the pages from the i915-gem shrinker, until we actually "attach" the TT to the object, or in the case of lmem-only objects it just gets migrated

  1   2   >