Re: [Intel-gfx] [PATCH] kernel/locking: Add context to ww_mutex_trylock.

2021-09-08 Thread Maarten Lankhorst
Op 08-09-2021 om 12:14 schreef Peter Zijlstra: > On Tue, Sep 07, 2021 at 03:20:44PM +0200, Maarten Lankhorst wrote: >> i915 will soon gain an eviction path that trylock a whole lot of locks >> for eviction, getting dmesg failures like below: >> >> BUG: MAX_LOCK_DEPTH too low! >> turning off the

[Intel-gfx] ✓ Fi.CI.IGT: success for i915/uncore: constify the uncore vtables. (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/uncore: constify the uncore vtables. (rev3) URL : https://patchwork.freedesktop.org/series/94465/ State : success == Summary == CI Bug Log - changes from CI_DRM_10565_full -> Patchwork_20997_full Summary

[Intel-gfx] ✓ Fi.CI.BAT: success for i915/uncore: constify the uncore vtables. (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/uncore: constify the uncore vtables. (rev3) URL : https://patchwork.freedesktop.org/series/94465/ State : success == Summary == CI Bug Log - changes from CI_DRM_10565 -> Patchwork_20997 Summary ---

Re: [Intel-gfx] [PULL] drm-misc-fixes

2021-09-08 Thread Dave Airlie
On Thu, 9 Sept 2021 at 03:44, Thomas Zimmermann wrote: > > Hi Dave and Daniel, > > here's this week's PR for drm-misc-fixes. One patch is a potential deadlock > in TTM, the other enables an additional plane in kmb. I'm slightly unhappy > that the latter one ended up in -fixes as it's not a bugfix

[Intel-gfx] [PATCH 2/2] drm/i915/uncore: constify the register vtables. (v2)

2021-09-08 Thread Dave Airlie
From: Dave Airlie This reworks the uncore function vtable so that it's constant. v2: fixup selftest mocking. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/intel_uncore.c | 133 +++ drivers/gpu/drm/i915/intel_uncore.h | 8 +-

[Intel-gfx] [PATCH 1/2] drm/i915/uncore: split the fw get function into separate vfunc

2021-09-08 Thread Dave Airlie
From: Dave Airlie constify it while here. drop the put function since it was never overloaded and always has done the same thing, no point in indirecting it for show. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/intel_uncore.c | 70

[Intel-gfx] [PATCH 0/2] i915/uncore: constify the uncore vtables.

2021-09-08 Thread Dave Airlie
static const vtables are more secure than writeable function pointers. These two patches cleanup the uncore vtable to use static const tables. v2: rebased onto drm-tip v3: fix selftests build failure. Dave.

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/4] drm/i915: rename debugfs_gt files

2021-09-08 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: rename debugfs_gt files URL : https://patchwork.freedesktop.org/series/94489/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10565_full -> Patchwork_20993_full

[Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with [1/2] drm/i915/uncore: split the fw get function into separate vfunc

2021-09-08 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/uncore: split the fw get function into separate vfunc URL : https://patchwork.freedesktop.org/series/94495/ State : failure == Summary == CALLscripts/checksyscalls.sh CALLscripts/atomic/check-atomics.sh DESCEND

[Intel-gfx] [PATCH 2/2] drm/i915/uncore: constify the register vtables.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This reworks the uncore function vtable so that it's constant. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/intel_uncore.c | 133 +--- drivers/gpu/drm/i915/intel_uncore.h | 8 +- 2 files changed, 83 insertions(+), 58

[Intel-gfx] i915/uncore: constify the uncore vtables. (v2)

2021-09-08 Thread Dave Airlie
static const vtables are more secure than writeable function pointers. These two patches cleanup the uncore vtable to use static const tables. These are based on drm-tip, and should apply to the gt tree cleanly. Dave.

[Intel-gfx] [PATCH 1/2] drm/i915/uncore: split the fw get function into separate vfunc

2021-09-08 Thread Dave Airlie
From: Dave Airlie constify it while here. drop the put function since it was never overloaded and always has done the same thing, no point in indirecting it for show. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/intel_uncore.c | 70

[Intel-gfx] ✗ Fi.CI.BAT: failure for i915/display: split and constify vtable (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/display: split and constify vtable (rev3) URL : https://patchwork.freedesktop.org/series/94459/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10565 -> Patchwork_20995 Summary ---

[Intel-gfx] ✗ Fi.CI.DOCS: warning for i915/display: split and constify vtable (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/display: split and constify vtable (rev3) URL : https://patchwork.freedesktop.org/series/94459/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/display/intel_display.c:164: warning: Excess function parameter

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for i915/display: split and constify vtable (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/display: split and constify vtable (rev3) URL : https://patchwork.freedesktop.org/series/94459/ State : warning == Summary == $ dim checkpatch origin/drm-tip a76b5174980a drm/i915/pm: drop get_fifo_size vfunc. a40a1ce2eb04 drm/i915: make update_wm take a

[Intel-gfx] ✗ Fi.CI.BAT: failure for i915/display: split and constify vtable (rev2)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/display: split and constify vtable (rev2) URL : https://patchwork.freedesktop.org/series/94459/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10565 -> Patchwork_20994 Summary ---

[Intel-gfx] [PATCH 23/23] drm/i915: constify display wm vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Use a nop table for the cases where CxSR doesn't init properly. v2: use a nop table (Jani) Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 34 - drivers/gpu/drm/i915/i915_drv.h | 2 +-

[Intel-gfx] [PATCH 22/23] drm/i915: constify clock gating init vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie I used a macro to avoid making any really silly mistakes here. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 78 +++-- 2 files changed, 55 insertions(+), 25

[Intel-gfx] [PATCH 20/23] drm/i915: drop unused function ptr and comments.

2021-09-08 Thread Dave Airlie
From: Dave Airlie There was some excess comments and an unused vtbl ptr. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index

[Intel-gfx] [PATCH 21/23] drm/i915: constify display function vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Make nice clear tables instead of having things in two places. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 81 drivers/gpu/drm/i915/i915_drv.h | 2 +- 2 files changed, 52

[Intel-gfx] [PATCH 19/23] drm/i915: constify the cdclk vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie This is a bit of a twisty one since each platform is slightly different, so might take some more review care. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_cdclk.c | 300 ++--- drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 17/23] drm/i915: constify the audio function vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Move the functions into read-only tables. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_audio.c | 43 ++ drivers/gpu/drm/i915/i915_drv.h| 2 +- 2 files changed, 28 insertions(+), 17 deletions(-)

[Intel-gfx] [PATCH 18/23] drm/i915: constify the dpll clock vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Most the dpll vtable into read-only memory. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 6 +-- drivers/gpu/drm/i915/display/intel_dpll.c| 48 drivers/gpu/drm/i915/i915_drv.h |

[Intel-gfx] [PATCH 16/23] drm/i915: constify color function vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This clarifies quite well what functions get used on what platforms instead of having to decipher the old tree. v2: fixed IVB mistake (Jani) Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_color.c | 138 ++---

[Intel-gfx] [PATCH 14/23] drm/i915: constify fdi link training vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Put the vtable into ro memory. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_fdi.c | 20 drivers/gpu/drm/i915/i915_drv.h | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git

[Intel-gfx] [PATCH 15/23] drm/i915: constify hotplug function vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie Use a macro to avoid mistakes, this type of macro is only used in a couple of places. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_hotplug.c | 4 +-- drivers/gpu/drm/i915/i915_drv.h | 2 +-

[Intel-gfx] [PATCH 13/23] drm/i915: split the dpll clock compute out from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie this single function might be possible to merge later, but for now it's simple to just split it out. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 6 +++--- drivers/gpu/drm/i915/display/intel_dpll.c| 16

[Intel-gfx] [PATCH 12/23] drm/i915: split fdi link training from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie It may make sense to merge this with display again later, however the fdi use of the vtable is limited to only a few generations. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_fdi.c | 8 drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 10/23] drm/i915: split cdclk functions from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This moves all the cdclk related functions into their own vtable. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_cdclk.c | 142 ++--- drivers/gpu/drm/i915/i915_drv.h| 8 +- 2 files changed, 78

[Intel-gfx] [PATCH 11/23] drm/i915: split irq hotplug function from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie This provide a service from irq to display, so make it separate Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_hotplug.c | 4 ++-- drivers/gpu/drm/i915/i915_drv.h | 9 - drivers/gpu/drm/i915/i915_irq.c

[Intel-gfx] [PATCH 09/23] drm/i915: split audio functions from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie These are only used internally in the audio code Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_audio.c | 24 +++--- drivers/gpu/drm/i915/i915_drv.h| 19 +++-- 2 files changed, 25

[Intel-gfx] [PATCH 08/23] drm/i915: split color functions from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie These are only used internally in the color module Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_color.c | 64 +++--- drivers/gpu/drm/i915/i915_drv.h| 39 +++-- 2 files changed, 54

[Intel-gfx] [PATCH 06/23] drm/i915: split clock gating init from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie This function is only used inside intel_pm.c Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 9 ++- drivers/gpu/drm/i915/intel_pm.c | 48 - 2 files changed, 32 insertions(+), 25 deletions(-)

[Intel-gfx] [PATCH 07/23] drm/i915: split watermark vfuncs from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie These are the watermark api between display and pm. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 35 - drivers/gpu/drm/i915/i915_drv.h | 24 drivers/gpu/drm/i915/intel_pm.c | 40

[Intel-gfx] [PATCH 04/23] drm/i915: add wrappers around cdclk vtable funcs.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This adds wrappers around all the vtable callers so they are in one place. Suggested by Jani. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_cdclk.c| 47 +++ drivers/gpu/drm/i915/display/intel_cdclk.h| 4 +-

[Intel-gfx] [PATCH 05/23] drm/i915/display: add intel_fdi_link_train wrapper.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This wraps the fdi link training vfunc to make it clearer. Suggested by Jani. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- drivers/gpu/drm/i915/display/intel_fdi.c | 8 drivers/gpu/drm/i915/display/intel_fdi.h | 2 ++

[Intel-gfx] [PATCH 03/23] drm/i915/wm: provide wrappers around watermark vfuncs calls

2021-09-08 Thread Dave Airlie
From: Dave Airlie This moves one wrapper from the pm->display side, and creates wrappers for all the others, this should simplify things later. One thing to note is that the code checks the existance of some of these ptrs, so the wrappers are a bit complicated by that. Suggested by Jani.

[Intel-gfx] [PATCH 02/23] drm/i915: make update_wm take a dev_priv.

2021-09-08 Thread Dave Airlie
From: Dave Airlie The crtc was never being used here. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 10 +- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 18

[Intel-gfx] [PATCH 01/23] drm/i915/pm: drop get_fifo_size vfunc.

2021-09-08 Thread Dave Airlie
From: Dave Airlie The i845_update_wm code was always calling the i845 variant, and the i9xx_update_wm had only a choice between i830 and i9xx paths, hardly worth the vfunc overhead. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 2 --

[Intel-gfx] [PATCH 00/23] i915/display: split and constify vtable (v3)

2021-09-08 Thread Dave Airlie
(v3 just adds some missing ,) Details below, I've taken all the review feedback (thanks Jani). I added 3 patches moving to wrappers before refactoring, and one other patch is unreviewed (07) but the main comment was wanting the wrappers. Jani if you are happy with the final 4 patches can

[Intel-gfx] ✗ Fi.CI.DOCS: warning for i915/display: split and constify vtable (rev2)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/display: split and constify vtable (rev2) URL : https://patchwork.freedesktop.org/series/94459/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/display/intel_display.c:164: warning: Excess function parameter

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for i915/display: split and constify vtable (rev2)

2021-09-08 Thread Patchwork
== Series Details == Series: i915/display: split and constify vtable (rev2) URL : https://patchwork.freedesktop.org/series/94459/ State : warning == Summary == $ dim checkpatch origin/drm-tip 861185f462cb drm/i915/pm: drop get_fifo_size vfunc. 0128f0dd02e7 drm/i915: make update_wm take a

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/4] drm/i915: rename debugfs_gt files

2021-09-08 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: rename debugfs_gt files URL : https://patchwork.freedesktop.org/series/94489/ State : success == Summary == CI Bug Log - changes from CI_DRM_10565 -> Patchwork_20993 Summary

[Intel-gfx] [PATCH 23/23] drm/i915: constify display wm vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Use a nop table for the cases where CxSR doesn't init properly. v2: use a nop table (Jani) Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 34 - drivers/gpu/drm/i915/i915_drv.h | 2 +-

[Intel-gfx] [PATCH 22/23] drm/i915: constify clock gating init vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie I used a macro to avoid making any really silly mistakes here. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 78 +++-- 2 files changed, 55 insertions(+), 25

[Intel-gfx] [PATCH 21/23] drm/i915: constify display function vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Make nice clear tables instead of having things in two places. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 81 drivers/gpu/drm/i915/i915_drv.h | 2 +- 2 files changed, 52

[Intel-gfx] [PATCH 20/23] drm/i915: drop unused function ptr and comments.

2021-09-08 Thread Dave Airlie
From: Dave Airlie There was some excess comments and an unused vtbl ptr. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index

[Intel-gfx] [PATCH 19/23] drm/i915: constify the cdclk vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie This is a bit of a twisty one since each platform is slightly different, so might take some more review care. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_cdclk.c | 300 ++--- drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 17/23] drm/i915: constify the audio function vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Move the functions into read-only tables. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_audio.c | 43 ++ drivers/gpu/drm/i915/i915_drv.h| 2 +- 2 files changed, 28 insertions(+), 17 deletions(-)

[Intel-gfx] [PATCH 18/23] drm/i915: constify the dpll clock vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Most the dpll vtable into read-only memory. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 6 +-- drivers/gpu/drm/i915/display/intel_dpll.c| 48 drivers/gpu/drm/i915/i915_drv.h |

[Intel-gfx] [PATCH 16/23] drm/i915: constify color function vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This clarifies quite well what functions get used on what platforms instead of having to decipher the old tree. v2: fixed IVB mistake (Jani) Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_color.c | 138 ++---

[Intel-gfx] [PATCH 15/23] drm/i915: constify hotplug function vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie Use a macro to avoid mistakes, this type of macro is only used in a couple of places. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_hotplug.c | 4 +-- drivers/gpu/drm/i915/i915_drv.h | 2 +-

[Intel-gfx] [PATCH 14/23] drm/i915: constify fdi link training vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie Put the vtable into ro memory. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_fdi.c | 20 drivers/gpu/drm/i915/i915_drv.h | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git

[Intel-gfx] [PATCH 13/23] drm/i915: split the dpll clock compute out from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie this single function might be possible to merge later, but for now it's simple to just split it out. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 6 +++--- drivers/gpu/drm/i915/display/intel_dpll.c| 16

[Intel-gfx] [PATCH 12/23] drm/i915: split fdi link training from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie It may make sense to merge this with display again later, however the fdi use of the vtable is limited to only a few generations. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_fdi.c | 8 drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 10/23] drm/i915: split cdclk functions from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This moves all the cdclk related functions into their own vtable. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_cdclk.c | 142 ++--- drivers/gpu/drm/i915/i915_drv.h| 8 +- 2 files changed, 78

[Intel-gfx] [PATCH 11/23] drm/i915: split irq hotplug function from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie This provide a service from irq to display, so make it separate Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_hotplug.c | 4 ++-- drivers/gpu/drm/i915/i915_drv.h | 9 - drivers/gpu/drm/i915/i915_irq.c

[Intel-gfx] [PATCH 07/23] drm/i915: split watermark vfuncs from display vtable.

2021-09-08 Thread Dave Airlie
From: Dave Airlie These are the watermark api between display and pm. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 35 - drivers/gpu/drm/i915/i915_drv.h | 24 drivers/gpu/drm/i915/intel_pm.c | 40

[Intel-gfx] [PATCH 09/23] drm/i915: split audio functions from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie These are only used internally in the audio code Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_audio.c | 24 +++--- drivers/gpu/drm/i915/i915_drv.h| 19 +++-- 2 files changed, 25

[Intel-gfx] [PATCH 08/23] drm/i915: split color functions from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie These are only used internally in the color module Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_color.c | 64 +++--- drivers/gpu/drm/i915/i915_drv.h| 39 +++-- 2 files changed, 54

[Intel-gfx] [PATCH 06/23] drm/i915: split clock gating init from display vtable

2021-09-08 Thread Dave Airlie
From: Dave Airlie This function is only used inside intel_pm.c Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 9 ++- drivers/gpu/drm/i915/intel_pm.c | 48 - 2 files changed, 32 insertions(+), 25 deletions(-)

[Intel-gfx] [PATCH 05/23] drm/i915/display: add intel_fdi_link_train wrapper.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This wraps the fdi link training vfunc to make it clearer. Suggested by Jani. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- drivers/gpu/drm/i915/display/intel_fdi.c | 8 drivers/gpu/drm/i915/display/intel_fdi.h | 2 ++

[Intel-gfx] [PATCH 04/23] drm/i915: add wrappers around cdclk vtable funcs.

2021-09-08 Thread Dave Airlie
From: Dave Airlie This adds wrappers around all the vtable callers so they are in one place. Suggested by Jani. Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_cdclk.c| 47 +++ drivers/gpu/drm/i915/display/intel_cdclk.h| 4 +-

[Intel-gfx] [PATCH 02/23] drm/i915: make update_wm take a dev_priv.

2021-09-08 Thread Dave Airlie
From: Dave Airlie The crtc was never being used here. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/display/intel_display.c | 10 +- drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 18

[Intel-gfx] [PATCH 03/23] drm/i915/wm: provide wrappers around watermark vfuncs calls

2021-09-08 Thread Dave Airlie
From: Dave Airlie This moves one wrapper from the pm->display side, and creates wrappers for all the others, this should simplify things later. One thing to note is that the code checks the existance of some of these ptrs, so the wrappers are a bit complicated by that. Suggested by Jani.

[Intel-gfx] [PATCH 01/23] drm/i915/pm: drop get_fifo_size vfunc.

2021-09-08 Thread Dave Airlie
From: Dave Airlie The i845_update_wm code was always calling the i845 variant, and the i9xx_update_wm had only a choice between i830 and i9xx paths, hardly worth the vfunc overhead. Reviewed-by: Jani Nikula Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_drv.h | 2 --

[Intel-gfx] [PATCH 00/23] i915/display: split and constify vtable (v2)

2021-09-08 Thread Dave Airlie
Details below, I've taken all the review feedback (thanks Jani). I added 3 patches moving to wrappers before refactoring, and one other patch is unreviewed (07) but the main comment was wanting the wrappers. Jani if you are happy with the final 4 patches can you land this series, I don't think I

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/4] drm/i915: rename debugfs_gt files

2021-09-08 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: rename debugfs_gt files URL : https://patchwork.freedesktop.org/series/94489/ State : warning == Summary == $ dim checkpatch origin/drm-tip dc1cedc411a9 drm/i915: rename debugfs_gt files -:168: WARNING:FILE_PATH_CHANGES: added,

[Intel-gfx] [PATCH 1/4] drm/i915: rename debugfs_gt files

2021-09-08 Thread Lucas De Marchi
We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_gt.[ch] to intel_gt_debugfs.[ch] and then make functions, defines and structs follow suit. While at it and since we are renaming the header, sort the includes alphabetically. Signed-off-by: Lucas De Marchi ---

[Intel-gfx] [PATCH 3/4] drm/i915: rename debugfs_gt_pm files

2021-09-08 Thread Lucas De Marchi
We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_gt_pm.[ch] to intel_gt_pm_debugfs.[ch] and then make functions, defines and structs follow suit. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/Makefile | 2 +-

[Intel-gfx] [PATCH 2/4] drm/i915: rename debugfs_engines files

2021-09-08 Thread Lucas De Marchi
We shouldn't be using debugfs_ namespace for this functionality. Rename debugfs_engines.[ch] to intel_gt_engines_debugfs.[ch] and then make functions, defines and structs follow suit. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/Makefile | 2 +-

[Intel-gfx] [PATCH 4/4] drm/i915: deduplicate frequency dump on debugfs

2021-09-08 Thread Lucas De Marchi
Although commit 9dd4b065446a ("drm/i915/gt: Move pm debug files into a gt aware debugfs") says it was moving debug files to gt/, the i915_frequency_info file was left behind and its implementation copied into drivers/gpu/drm/i915/gt/debugfs_gt_pm.c. Over time we had several patches having to

Re: [Intel-gfx] [PATCH 11/21] drm/i915: split the dpll clock compute out from display vtable.

2021-09-08 Thread Dave Airlie
On Wed, 8 Sept 2021 at 20:09, Jani Nikula wrote: > > On Wed, 08 Sep 2021, Dave Airlie wrote: > > From: Dave Airlie > > > > this could be merged later but for now it's simple to split it out. > > --- > > drivers/gpu/drm/i915/display/intel_display.c | 6 +++--- > >

Re: [Intel-gfx] [PATCH v5 25/25] drm/i915/guc: Add GuC kernel doc

2021-09-08 Thread John Harrison
On 9/3/2021 12:59, Daniele Ceraolo Spurio wrote: From: Matthew Brost Add GuC kernel doc for all structures added thus far for GuC submission and update the main GuC submission section with the new interface details. v2: - Drop guc_active.lock DOC v3: - Fixup a few kernel doc comments

Re: [Intel-gfx] [PATCH 03/21] drm/i915/wm: move the update watermark wrapper to display side.

2021-09-08 Thread Dave Airlie
On Wed, 8 Sept 2021 at 19:33, Jani Nikula wrote: > > On Wed, 08 Sep 2021, Dave Airlie wrote: > > From: Dave Airlie > > > > A vague goal is to have the vfunc table be the api between > > wm and display, not having direction function calls cross > > the boundary. > > > > This aligns the legacy

Re: [Intel-gfx] [PATCH 2/8] drm/i915/xehp: CCS shares the render reset domain

2021-09-08 Thread Matt Roper
On Wed, Sep 08, 2021 at 11:07:07AM +0100, Tvrtko Ursulin wrote: > > On 07/09/2021 18:19, Matt Roper wrote: > > The reset domain is shared between render and all compute engines, > > so resetting one will affect the others. > > > > Note: Before performing a reset on an RCS or CCS engine, the GuC

Re: [Intel-gfx] [RFC 3/5] drm/i915/panelreplay: Initializaton and compute config for panel replay

2021-09-08 Thread Souza, Jose
On Thu, 2021-09-09 at 01:20 +0530, Manna, Animesh wrote: > > > -Original Message- > > From: Souza, Jose > > Sent: Thursday, September 9, 2021 1:02 AM > > To: Manna, Animesh ; intel- > > g...@lists.freedesktop.org > > Cc: Mun, Gwan-gyeong ; Nikula, Jani > > ; Kahola, Mika ; Navare, > >

Re: [Intel-gfx] [RFC 3/5] drm/i915/panelreplay: Initializaton and compute config for panel replay

2021-09-08 Thread Manna, Animesh
> -Original Message- > From: Souza, Jose > Sent: Thursday, September 9, 2021 1:02 AM > To: Manna, Animesh ; intel- > g...@lists.freedesktop.org > Cc: Mun, Gwan-gyeong ; Nikula, Jani > ; Kahola, Mika ; Navare, > Manasi D > Subject: Re: [Intel-gfx] [RFC 3/5] drm/i915/panelreplay:

Re: [Intel-gfx] [PATCH 10/19] Move CONTEXT_VALID_BIT check

2021-09-08 Thread Niranjana Vishwanathapura
On Mon, Aug 30, 2021 at 02:09:57PM +0200, Maarten Lankhorst wrote: Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_pm.c

Re: [Intel-gfx] [RFC 4/5] drm/i915/panelreplay: enable/disable panel replay

2021-09-08 Thread Souza, Jose
On Wed, 2021-09-08 at 14:45 +0530, Animesh Manna wrote: > TRANS_DP2_CTL register is programmed to enable panel replay from source > and sink is enabled through panel replay dpcd configuration address. > > Signed-off-by: Animesh Manna > --- > drivers/gpu/drm/i915/display/intel_psr.c | 30

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Suspend / resume backup- and restore of LMEM. (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Suspend / resume backup- and restore of LMEM. (rev3) URL : https://patchwork.freedesktop.org/series/94278/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10563_full -> Patchwork_20991_full

Re: [Intel-gfx] [RFC 1/5] drm/i915/panelreplay: update plane selective fetch register definition

2021-09-08 Thread Manna, Animesh
> -Original Message- > From: Souza, Jose > Sent: Thursday, September 9, 2021 12:57 AM > To: Manna, Animesh ; intel- > g...@lists.freedesktop.org > Cc: Mun, Gwan-gyeong ; Nikula, Jani > ; Kahola, Mika ; Navare, > Manasi D > Subject: Re: [Intel-gfx] [RFC 1/5] drm/i915/panelreplay: update

Re: [Intel-gfx] [RFC 3/5] drm/i915/panelreplay: Initializaton and compute config for panel replay

2021-09-08 Thread Souza, Jose
On Wed, 2021-09-08 at 14:45 +0530, Animesh Manna wrote: > As panel replay feature similar to PSR feature of EDP panel, so currently > utilized existing psr framework for panel replay. > > Signed-off-by: Animesh Manna > --- > .../drm/i915/display/intel_display_types.h| 4 ++ >

Re: [Intel-gfx] [RFC 2/5] drm/i915/panelreplay: Feature flag added for panel replay

2021-09-08 Thread Souza, Jose
On Wed, 2021-09-08 at 14:45 +0530, Animesh Manna wrote: > Platforms having Display 13 and above will support panel > replay feature of DP 2.0 monitor. Added a feature flag > for panel replay. As all display 13 and newer platforms supports it would be better to have #define HAS_PR(i915)

Re: [Intel-gfx] [RFC 1/5] drm/i915/panelreplay: update plane selective fetch register definition

2021-09-08 Thread Souza, Jose
On Wed, 2021-09-08 at 14:45 +0530, Animesh Manna wrote: > Panel replay can be enabled for all pipes driving DP 2.0 monitor, > so updated the plane selective fetch register difinition accordingly. It should mention that this changes are to accommodate differences in DG2. Anyways, DG2 had PSR2

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/gt: Locking splats PREEMPT_RT

2021-09-08 Thread Patchwork
== Series Details == Series: drm/i915/gt: Locking splats PREEMPT_RT URL : https://patchwork.freedesktop.org/series/94480/ State : failure == Summary == Applying: drm/i915/gt: Queue and wait for the irq_work item. Applying: drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() +

[Intel-gfx] [PATCH 0/2] drm/i915/gt: Locking splats PREEMPT_RT

2021-09-08 Thread Sebastian Andrzej Siewior
Clark Williams reported two issues with the i915 driver running on PREEMPT_RT. While #1 looks simple I have no idea about #2 thus the RFC. Sebastian

[Intel-gfx] [PATCH 1/2] drm/i915/gt: Queue and wait for the irq_work item.

2021-09-08 Thread Sebastian Andrzej Siewior
Disabling interrupts and invoking the irq_work function directly breaks on PREEMPT_RT. PREEMPT_RT does not invoke all irq_work from hardirq context because some of the user have spinlock_t locking in the callback function. These locks are then turned into a sleeping locks which can not be acquired

[Intel-gfx] [RFC PATCH 2/2] drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() + spin_lock()

2021-09-08 Thread Sebastian Andrzej Siewior
execlists_dequeue() is invoked from a function which uses local_irq_disable() to disable interrupts so the spin_lock() behaves like spin_lock_irq(). This breaks PREEMPT_RT because local_irq_disable() + spin_lock() is not the same as spin_lock_irq(). execlists_dequeue_irq() and execlists_dequeue()

Re: [Intel-gfx] [PATCH] kernel/locking: Add context to ww_mutex_trylock.

2021-09-08 Thread Daniel Vetter
On Wed, Sep 08, 2021 at 12:14:23PM +0200, Peter Zijlstra wrote: > On Tue, Sep 07, 2021 at 03:20:44PM +0200, Maarten Lankhorst wrote: > > i915 will soon gain an eviction path that trylock a whole lot of locks > > for eviction, getting dmesg failures like below: > > > > BUG: MAX_LOCK_DEPTH too low!

[Intel-gfx] [PULL] drm-misc-fixes

2021-09-08 Thread Thomas Zimmermann
Hi Dave and Daniel, here's this week's PR for drm-misc-fixes. One patch is a potential deadlock in TTM, the other enables an additional plane in kmb. I'm slightly unhappy that the latter one ended up in -fixes as it's not a bugfix AFAICT. Best regards Thomas drm-misc-fixes-2021-09-08: Short

Re: [Intel-gfx] [PATCH] drm/i915/request: fix early tracepoints

2021-09-08 Thread Daniel Vetter
On Fri, Sep 03, 2021 at 12:24:05PM +0100, Matthew Auld wrote: > Currently we blow up in trace_dma_fence_init, when calling into > get_driver_name or get_timeline_name, since both the engine and context > might be NULL(or contain some garbage address) in the case of newly > allocated slab objects

Re: [Intel-gfx] [PATCH][next] drm/i915: clean up inconsistent indenting

2021-09-08 Thread Daniel Vetter
On Thu, Sep 02, 2021 at 10:57:37PM +0100, Colin King wrote: > From: Colin Ian King > > There is a statement that is indented one character too deeply, > clean this up. > > Signed-off-by: Colin Ian King Queued to drm-intel-gt-next, thanks for patch. -Daniel > --- >

Re: [Intel-gfx] [PATCH v2] drm/i915: Handle Intel igfx + Intel dgfx hybrid graphics setup

2021-09-08 Thread Daniel Vetter
On Thu, Sep 02, 2021 at 04:01:40PM +0100, Tvrtko Ursulin wrote: > > On 02/09/2021 15:33, Daniel Vetter wrote: > > On Tue, Aug 31, 2021 at 02:18:15PM +0100, Tvrtko Ursulin wrote: > > > > > > On 31/08/2021 13:43, Daniel Vetter wrote: > > > > On Tue, Aug 31, 2021 at 10:15:03AM +0100, Tvrtko Ursulin

Re: [Intel-gfx] [PATCH 2/8] drm/i915/xehp: CCS shares the render reset domain

2021-09-08 Thread Daniel Vetter
On Tue, Sep 07, 2021 at 10:19:10AM -0700, Matt Roper wrote: > The reset domain is shared between render and all compute engines, > so resetting one will affect the others. > > Note: Before performing a reset on an RCS or CCS engine, the GuC will > attempt to preempt-to-idle the other non-hung

Re: [Intel-gfx] [PATCH 1/8] drm/i915/xehp: Define compute class and engine

2021-09-08 Thread Daniel Vetter
On Tue, Sep 07, 2021 at 10:19:09AM -0700, Matt Roper wrote: > Introduce a Compute Command Streamer (CCS), which has access to > the media and GPGPU pipelines (but not the 3D pipeline). > > To begin with, define the compute class/engine common functions, based > on the existing render ones. > >

[Intel-gfx] ✓ Fi.CI.IGT: success for DSI driver improvement (rev4)

2021-09-08 Thread Patchwork
== Series Details == Series: DSI driver improvement (rev4) URL : https://patchwork.freedesktop.org/series/94237/ State : success == Summary == CI Bug Log - changes from CI_DRM_10562_full -> Patchwork_20990_full Summary ---

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Suspend / resume backup- and restore of LMEM. (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Suspend / resume backup- and restore of LMEM. (rev3) URL : https://patchwork.freedesktop.org/series/94278/ State : success == Summary == CI Bug Log - changes from CI_DRM_10563 -> Patchwork_20991

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Suspend / resume backup- and restore of LMEM. (rev3)

2021-09-08 Thread Patchwork
== Series Details == Series: drm/i915: Suspend / resume backup- and restore of LMEM. (rev3) URL : https://patchwork.freedesktop.org/series/94278/ State : warning == Summary == $ dim checkpatch origin/drm-tip 6374ded0c677 drm/i915/ttm: Implement a function to copy the contents of two TTM-base

Re: [Intel-gfx] [PATCH] drm/i915: deduplicate frequency dump on debugfs

2021-09-08 Thread Lucas De Marchi
On Wed, Sep 08, 2021 at 07:14:00AM -0700, Lucas De Marchi wrote: On Wed, Sep 08, 2021 at 11:54:40AM +0300, Jani Nikula wrote: On Tue, 07 Sep 2021, Lucas De Marchi wrote: Although commit 9dd4b065446a ("drm/i915/gt: Move pm debug files into a gt aware debugfs") says it was moving debug files to

  1   2   >