RE: [PATCH] drm/i915/hdcp: Disable HDCP Line Rekeying for HDCP2.2 on HDMI

2024-05-02 Thread Borah, Chaitanya Kumar
> -Original Message- > From: Kandpal, Suraj > Sent: Thursday, May 2, 2024 10:11 AM > To: intel-gfx@lists.freedesktop.org > Cc: Borah, Chaitanya Kumar ; Shankar, > Uma ; Nautiyal, Ankit K > ; Kandpal, Suraj > Subject: [PATCH] drm/i915/hdcp: Disable HDCP Line Rekeying for HDCP2.2 on > HDMI

✗ Fi.CI.BAT: failure for drm/i915/hdcp: Disable HDCP Line Rekeying for HDCP2.2 on HDMI (rev5)

2024-05-02 Thread Patchwork
== Series Details == Series: drm/i915/hdcp: Disable HDCP Line Rekeying for HDCP2.2 on HDMI (rev5) URL : https://patchwork.freedesktop.org/series/132479/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14689 -> Patchwork_132479v5 ==

Re: [PATCH 05/19] drm/i915: pass dev_priv explicitly to EDP_PSR_AUX_CTL

2024-05-02 Thread Jani Nikula
On Tue, 30 Apr 2024, Rodrigo Vivi wrote: > On Tue, Apr 30, 2024 at 01:09:59PM +0300, Jani Nikula wrote: >> Avoid the implicit dev_priv local variable use, and pass dev_priv >> explicitly to the EDP_PSR_AUX_CTL register macro. >> >> Signed-off-by: Jani Nikula > > Two things crossing my mind at th

Re: [PATCH 13/19] drm/i915: pass dev_priv explicitly to _PSR2_SU_STATUS

2024-05-02 Thread Jani Nikula
On Tue, 30 Apr 2024, Rodrigo Vivi wrote: > On Tue, Apr 30, 2024 at 01:10:07PM +0300, Jani Nikula wrote: >> Avoid the implicit dev_priv local variable use, and pass dev_priv >> explicitly to the _PSR2_SU_STATUS register macro. >> >> Signed-off-by: Jani Nikula > > why aren't we going one level up

[PATCH v2] drm/i915: pass dev_priv explicitly to PSR2_SU_STATUS

2024-05-02 Thread Jani Nikula
Avoid the implicit dev_priv local variable use, and pass dev_priv explicitly to the PSR2_SU_STATUS register macro. v2: Expand from _PSR2_SU_STATUS to PSR2_SU_STATUS (Rodrigo) Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_psr.c | 3 ++- drivers/gpu/drm/i915/display/intel

Re: [PATCH 17/19] drm/i915: pass dev_priv explicitly to ALPM_CTL2

2024-05-02 Thread Jani Nikula
On Tue, 30 Apr 2024, Rodrigo Vivi wrote: > On Tue, Apr 30, 2024 at 01:10:11PM +0300, Jani Nikula wrote: >> Avoid the implicit dev_priv local variable use, and pass dev_priv >> explicitly to the ALPM_CTL2 register macro. >> >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/i915/display/int

Re: [PATCH 1/2] drm/i915/hdcp: Move aux assignment after connector type check

2024-05-02 Thread Jani Nikula
On Tue, 30 Apr 2024, Suraj Kandpal wrote: > Move assignment of aux after connector type check as port may not > exist if connector is not DPMST. > > Signed-off-by: Suraj Kandpal > --- > drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >

Re: [PATCH v1 02/12] drm/gma500: Make I2C terminology more inclusive

2024-05-02 Thread Thomas Zimmermann
Am 30.04.24 um 19:38 schrieb Easwar Hariharan: I2C v7, SMBus 3.2, and I3C 1.1.1 specifications have replaced "master/slave" with more appropriate terms. Inspired by and following on to Wolfram's series to fix drivers/i2c/[1], fix the terminology for users of I2C_ALGOBIT bitbanging interface, n

Re: [PATCH v1 11/12] fbdev/smscufx: Make I2C terminology more inclusive

2024-05-02 Thread Thomas Zimmermann
Am 30.04.24 um 19:38 schrieb Easwar Hariharan: I2C v7, SMBus 3.2, and I3C 1.1.1 specifications have replaced "master/slave" with more appropriate terms. Inspired by and following on to Wolfram's series to fix drivers/i2c/[1], fix the terminology for users of I2C_ALGOBIT bitbanging interface, n

Re: [PATCH v1 12/12] fbdev/viafb: Make I2C terminology more inclusive

2024-05-02 Thread Thomas Zimmermann
Am 30.04.24 um 19:38 schrieb Easwar Hariharan: I2C v7, SMBus 3.2, and I3C 1.1.1 specifications have replaced "master/slave" with more appropriate terms. Inspired by and following on to Wolfram's series to fix drivers/i2c/[1], fix the terminology for users of I2C_ALGOBIT bitbanging interface, n

✗ Fi.CI.CHECKPATCH: warning for drm/i915/psr: implicit dev_priv removal (rev2)

2024-05-02 Thread Patchwork
== Series Details == Series: drm/i915/psr: implicit dev_priv removal (rev2) URL : https://patchwork.freedesktop.org/series/133062/ State : warning == Summary == Error: dim checkpatch failed 9f210da2f130 drm/i915: pass dev_priv explicitly to TRANS_EXITLINE 1c570d2b97e7 drm/i915: pass dev_priv e

✗ Fi.CI.BAT: failure for drm/i915/psr: implicit dev_priv removal (rev2)

2024-05-02 Thread Patchwork
== Series Details == Series: drm/i915/psr: implicit dev_priv removal (rev2) URL : https://patchwork.freedesktop.org/series/133062/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14691 -> Patchwork_133062v2 Summary ---

RE: [PATCH 1/2] drm/i915/hdcp: Move aux assignment after connector type check

2024-05-02 Thread Kandpal, Suraj
> -Original Message- > From: Jani Nikula > Sent: Thursday, May 2, 2024 4:14 PM > To: Kandpal, Suraj ; intel-gfx@lists.freedesktop.org > Cc: Shankar, Uma ; Nautiyal, Ankit K > ; Kandpal, Suraj > Subject: Re: [PATCH 1/2] drm/i915/hdcp: Move aux assignment after > connector type check >

[PATCH 2/3] drm/i915: Pass the region ID rather than a bitmask to HAS_REGION()

2024-05-02 Thread Ville Syrjala
From: Ville Syrjälä The name 'HAS_REGION()' suggests we are checking for a single region, so seem more sensible to pass in the region ID rather than a bitmask. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/gt/intel_gt.c | 2 +- drivers/gpu/drm/i915/i915_drv.h| 4 ++-

[PATCH 3/3] drm/i915: Remove counter productive REGION_* wrappers

2024-05-02 Thread Ville Syrjala
From: Ville Syrjälä This extra macro level between the region IDs and their bitmasks just makes it harder to see what is used where. Get rid of the wrappers. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_pci.c | 6 +++--- drivers/gpu/drm/i915/intel_memory_region.h

[PATCH 1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()

2024-05-02 Thread Ville Syrjala
From: Ville Syrjälä HAS_REGION() takes a bitmask, not the region ID. This causes the GEM_BUG_ON() to assert that the SMEM region is available rather than the intended LMEM region. No real harm since SMEM is always available, but also not checking what was intended. Signed-off-by: Ville Syrjälä

Re: [PATCH 1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()

2024-05-02 Thread Rodrigo Vivi
On Thu, May 02, 2024 at 03:14:21PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > HAS_REGION() takes a bitmask, not the region ID. This causes the > GEM_BUG_ON() to assert that the SMEM region is available rather > than the intended LMEM region. No real harm since SMEM is always > availabl

Re: [PATCH 2/3] drm/i915: Pass the region ID rather than a bitmask to HAS_REGION()

2024-05-02 Thread Rodrigo Vivi
On Thu, May 02, 2024 at 03:14:22PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > The name 'HAS_REGION()' suggests we are checking for a single > region, so seem more sensible to pass in the region ID rather > than a bitmask. > > Signed-off-by: Ville Syrjälä Reviewed-by: Rodrigo Vivi

Re: [PATCH 3/3] drm/i915: Remove counter productive REGION_* wrappers

2024-05-02 Thread Rodrigo Vivi
On Thu, May 02, 2024 at 03:14:23PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > This extra macro level between the region IDs and their bitmasks > just makes it harder to see what is used where. Get rid of the > wrappers. > > Signed-off-by: Ville Syrjälä Reviewed-by: Rodrigo Vivi >

Re: [PATCH v2] drm/i915: pass dev_priv explicitly to PSR2_SU_STATUS

2024-05-02 Thread Rodrigo Vivi
On Thu, May 02, 2024 at 01:39:25PM +0300, Jani Nikula wrote: > Avoid the implicit dev_priv local variable use, and pass dev_priv > explicitly to the PSR2_SU_STATUS register macro. > > v2: Expand from _PSR2_SU_STATUS to PSR2_SU_STATUS (Rodrigo) > > Signed-off-by: Jani Nikula Reviewed-by: Rodrigo

Re: [PATCH 05/19] drm/i915: pass dev_priv explicitly to EDP_PSR_AUX_CTL

2024-05-02 Thread Rodrigo Vivi
On Thu, May 02, 2024 at 12:28:33PM +0300, Jani Nikula wrote: > On Tue, 30 Apr 2024, Rodrigo Vivi wrote: > > On Tue, Apr 30, 2024 at 01:09:59PM +0300, Jani Nikula wrote: > >> Avoid the implicit dev_priv local variable use, and pass dev_priv > >> explicitly to the EDP_PSR_AUX_CTL register macro. > >

✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()

2024-05-02 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem() URL : https://patchwork.freedesktop.org/series/133135/ State : warning == Summary == Error: dim checkpatch failed 2fb2c0fe26a2 drm/i915: Fix HAS_REGION() usage in intel_gt_probe_l

✗ Fi.CI.SPARSE: warning for series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()

2024-05-02 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem() URL : https://patchwork.freedesktop.org/series/133135/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked s

✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()

2024-05-02 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem() URL : https://patchwork.freedesktop.org/series/133135/ State : success == Summary == CI Bug Log - changes from CI_DRM_14692 -> Patchwork_133135v1 =

[PATCH] drm/i915/display: Calculate crtc clock rate based on PLL parameters

2024-05-02 Thread Mika Kahola
With HDMI monitors we bumped up a case where the crtc clock rate caused a mismatch on state verification. This was due to assumption that the SW clock rate from PLL structure would match the calculated counterpart from HW. This is not necessarily always the case and therefore we would actually need

✓ Fi.CI.BAT: success for drm/i915/display: Calculate crtc clock rate based on PLL parameters

2024-05-02 Thread Patchwork
== Series Details == Series: drm/i915/display: Calculate crtc clock rate based on PLL parameters URL : https://patchwork.freedesktop.org/series/133137/ State : success == Summary == CI Bug Log - changes from CI_DRM_14692 -> Patchwork_133137v1 ===

[PULL] drm-xe-next-fixes

2024-05-02 Thread Thomas Hellstrom
Dave, Sima This week's small set of fixes for drm-next. drm-xe-next-fixes-2024-05-02: Driver Changes: - Fix for a backmerge going slightly wrong. - An UAF fix - Avoid a WA error on LNL. Thanks, Thomas The following changes since commit 4a56c0ed5aa0bcbe1f5f7d755fb1fe1ebf48ae9c: Merge tag 'amd

[PULL] drm-xe-fixes

2024-05-02 Thread Lucas De Marchi
Hi Dave and Sima, Please pull the drm-xe-fixes for this week targeting v6.9-rc7. Two important fixes: one avoiding a use-after-free in the rebind worker and the other to make display work in ADL-N. thanks Lucas De Marchi drm-xe-fixes-2024-05-02: - Fix UAF on rebind worker - Fix ADL-N display i

[PULL] drm-misc-fixes

2024-05-02 Thread Thomas Zimmermann
Hi Dave, Sima, here's the PR for drm-misc-fixes for this week. Best regards Thomas drm-misc-fixes-2024-05-02: Short summary of fixes pull: imagination: - fix page-count macro nouveau: - avoid page-table allocation failures - fix firmware memory allocation panel: - ili9341: avoid OF for device

[linux-next:master] BUILD REGRESSION 9c6ecb3cb6e20c4fd7997047213ba0efcf9ada1a

2024-05-02 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 9c6ecb3cb6e20c4fd7997047213ba0efcf9ada1a Add linux-next specific files for 20240502 Unverified Error/Warning (likely false positive, please contact us if interested): drivers/gpu/drm/amd

Re: [PATCH v1 12/12] fbdev/viafb: Make I2C terminology more inclusive

2024-05-02 Thread Easwar Hariharan
On 5/2/2024 3:46 AM, Thomas Zimmermann wrote: > > > Am 30.04.24 um 19:38 schrieb Easwar Hariharan: >> I2C v7, SMBus 3.2, and I3C 1.1.1 specifications have replaced "master/slave" >> with more appropriate terms. Inspired by and following on to Wolfram's >> series to fix drivers/i2c/[1], fix the te

[PATCH 0/5] fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Kees Cook
Hi, Failure with f_count reference counting are better contained by an actual reference counting type, like refcount_t. The first step is for get_file() to use inc_not_zero to avoid resurrection. I also found a couple open-coded modifications of f_count that should be using get_file(). Since long

[PATCH 2/5] drm/vmwgfx: Do not directly manipulate file->f_count

2024-05-02 Thread Kees Cook
The correct helper for taking an f_count reference is get_file(). Now that it checks for 0 counts, use it and check results. Signed-off-by: Kees Cook --- Cc: Zack Rusin Cc: Broadcom internal kernel review list Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc

[PATCH 3/5] drm/i915: Do not directly manipulate file->f_count

2024-05-02 Thread Kees Cook
The correct helper for taking an f_count reference is get_file(). Use it and check results. Signed-off-by: Kees Cook --- Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: David Airlie Cc: Daniel Vetter Cc: Andi Shyti Cc: Lucas De Marchi Cc: Matt Atwood Cc: Matth

[PATCH 4/5] refcount: Introduce refcount_long_t and APIs

2024-05-02 Thread Kees Cook
Duplicate the refcount_t types and APIs gain refcount_long_t. This is needed for larger counters that while currently very unlikely to overflow, still want to detect and mitigate underflow. Generate refcount-long.h via direct string replacements. Doing macros like compat_binfmt_elf doesn't appear

[PATCH 1/5] fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Kees Cook
If f_count reaches 0, calling get_file() should be a failure. Adjust to use atomic_long_inc_not_zero() and return NULL on failure. In the future get_file() can be annotated with __must_check, though that is not currently possible. Signed-off-by: Kees Cook --- Cc: Christian Brauner Cc: Alexander

[PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Kees Cook
Underflow of f_count needs to be more carefully detected than it currently is. The results of get_file() should be checked, but the first step is detection. Redefine f_count from atomic_long_t to refcount_long_t. Signed-off-by: Kees Cook --- Cc: Christian Brauner Cc: Alexander Viro Cc: Jan Kara

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Kees Cook
On Thu, May 02, 2024 at 11:42:50PM +0100, Al Viro wrote: > On Thu, May 02, 2024 at 03:33:40PM -0700, Kees Cook wrote: > > Underflow of f_count needs to be more carefully detected than it > > currently is. The results of get_file() should be checked, but the > > first step is detection. Redefine f_c

Re: [PATCH 1/5] fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Jann Horn
On Fri, May 3, 2024 at 12:34 AM Kees Cook wrote: > If f_count reaches 0, calling get_file() should be a failure. Adjust to > use atomic_long_inc_not_zero() and return NULL on failure. In the future > get_file() can be annotated with __must_check, though that is not > currently possible. [...] > s

Re: [PATCH 1/5] fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Kees Cook
On Fri, May 03, 2024 at 12:53:56AM +0200, Jann Horn wrote: > On Fri, May 3, 2024 at 12:34 AM Kees Cook wrote: > > If f_count reaches 0, calling get_file() should be a failure. Adjust to > > use atomic_long_inc_not_zero() and return NULL on failure. In the future > > get_file() can be annotated wit

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Al Viro
On Thu, May 02, 2024 at 03:33:40PM -0700, Kees Cook wrote: > Underflow of f_count needs to be more carefully detected than it > currently is. The results of get_file() should be checked, but the > first step is detection. Redefine f_count from atomic_long_t to > refcount_long_t. It is used

✗ Fi.CI.CHECKPATCH: warning for fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Patchwork
== Series Details == Series: fs: Do not allow get_file() to resurrect 0 f_count URL : https://patchwork.freedesktop.org/series/133157/ State : warning == Summary == Error: dim checkpatch failed 05a74d02542d fs: Do not allow get_file() to resurrect 0 f_count cb506a379959 drm/vmwgfx: Do not dire

✗ Fi.CI.SPARSE: warning for fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Patchwork
== Series Details == Series: fs: Do not allow get_file() to resurrect 0 f_count URL : https://patchwork.freedesktop.org/series/133157/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Al Viro
On Thu, May 02, 2024 at 03:52:21PM -0700, Kees Cook wrote: > As for semantics, what do you mean? Detecting dec-below-zero means we > catch underflow, and detected inc-from-zero means we catch resurrection > attempts. In both cases we avoid double-free, but we have already lost > to a potential dan

✓ Fi.CI.BAT: success for fs: Do not allow get_file() to resurrect 0 f_count

2024-05-02 Thread Patchwork
== Series Details == Series: fs: Do not allow get_file() to resurrect 0 f_count URL : https://patchwork.freedesktop.org/series/133157/ State : success == Summary == CI Bug Log - changes from CI_DRM_14698 -> Patchwork_133157v1 Summary --

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Kees Cook
On Fri, May 03, 2024 at 12:12:28AM +0100, Al Viro wrote: > On Thu, May 02, 2024 at 03:52:21PM -0700, Kees Cook wrote: > > > As for semantics, what do you mean? Detecting dec-below-zero means we > > catch underflow, and detected inc-from-zero means we catch resurrection > > attempts. In both cases

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Al Viro
On Thu, May 02, 2024 at 04:21:13PM -0700, Kees Cook wrote: > On Fri, May 03, 2024 at 12:12:28AM +0100, Al Viro wrote: > > On Thu, May 02, 2024 at 03:52:21PM -0700, Kees Cook wrote: > > > > > As for semantics, what do you mean? Detecting dec-below-zero means we > > > catch underflow, and detected i

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Kees Cook
On Fri, May 03, 2024 at 12:41:52AM +0100, Al Viro wrote: > On Thu, May 02, 2024 at 04:21:13PM -0700, Kees Cook wrote: > > On Fri, May 03, 2024 at 12:12:28AM +0100, Al Viro wrote: > > > On Thu, May 02, 2024 at 03:52:21PM -0700, Kees Cook wrote: > > > > > > > As for semantics, what do you mean? Dete

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Al Viro
On Thu, May 02, 2024 at 05:10:18PM -0700, Kees Cook wrote: > But anyway, there needs to be a general "oops I hit 0"-aware form of > get_file(), and it seems like it should just be get_file() itself... ... which brings back the question of what's the sane damage mitigation for that. Adding arselo

Re: [PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

2024-05-02 Thread Kees Cook
On Fri, May 03, 2024 at 01:14:45AM +0100, Al Viro wrote: > On Thu, May 02, 2024 at 05:10:18PM -0700, Kees Cook wrote: > > > But anyway, there needs to be a general "oops I hit 0"-aware form of > > get_file(), and it seems like it should just be get_file() itself... > > ... which brings back the q

RE: [PATCH v3 06/19] drm/i915/xe2hpd: Add new C20 PHY SRAM address

2024-05-02 Thread Sripada, Radhakrishna
Adding the missed r-b Reviewed-by: Radhakrishna Sripada > -Original Message- > From: Sripada, Radhakrishna > Sent: Tuesday, April 30, 2024 10:29 AM > To: intel-gfx@lists.freedesktop.org > Cc: intel...@lists.freedesktop.org; Vivekanandan, Balasubramani > ; Taylor, Clinton A > ; Sousa, Gus

✓ Fi.CI.BAT: success for drm/i915/hdcp: Disable HDCP Line Rekeying for HDCP2.2 on HDMI (rev6)

2024-05-02 Thread Patchwork
== Series Details == Series: drm/i915/hdcp: Disable HDCP Line Rekeying for HDCP2.2 on HDMI (rev6) URL : https://patchwork.freedesktop.org/series/132479/ State : success == Summary == CI Bug Log - changes from CI_DRM_14701 -> Patchwork_132479v6 ==

Re: [linux-next:master] BUILD REGRESSION 9c6ecb3cb6e20c4fd7997047213ba0efcf9ada1a

2024-05-02 Thread Greg KH
Ok, I'm getting tired of seeing these for the USB portion of the tree, so I went to look for: On Fri, May 03, 2024 at 04:44:42AM +0800, kernel test robot wrote: > |-- arc-randconfig-002-20240503 > | `-- drivers-usb-dwc3-core.c:warning:variable-hw_mode-set-but-not-used This warning (same for all

[PATCH 0/3] LunarLake IO and Fast Wake changes

2024-05-02 Thread Jouni Högander
There are some changes in LunarLake IO and Fast Wake configuration: IO Wake Lines configuration is now 6 bits wide Fast Wake Lines configuration is now 6 bits wide and in ALPM_CTL register PSR2_CTL[Block count number] is not valid for LunarLake and onwards This patch set modifies the driver accor

[PATCH 1/3] drm/i915/psr: LunarLake IO and Fast Wake time line count maximums are 63

2024-05-02 Thread Jouni Högander
On LunarLake maximum for IO and Fast Wake times are 63. Take this into account in calculation and when writing the IO Wake lines. Bspec: 69885, 70294 Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_psr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 3/3] drm/i915/psr: PSR2_CTL[Block Count Number] no needed for LunarLake

2024-05-02 Thread Jouni Högander
PSR2_CTL[Block Count Number] is not used by LunarLake do not configure it. Bspec: 69885 Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915

[PATCH 2/3] drm/i915/psr: LunarLake PSR2_CTL[IO Wake Lines] is 6 bits wide

2024-05-02 Thread Jouni Högander
On LunarLake PSR2_CTL[IO Wake Lines] contains now bit 13:18. Take this into account when enabling PSR2_CTL. Bspec: 69885 Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_psr.c | 2 ++ drivers/gpu/drm/i915/display/intel_psr_regs.h | 4 2 files changed, 6 insertions

Re: [linux-next:master] BUILD REGRESSION 9c6ecb3cb6e20c4fd7997047213ba0efcf9ada1a

2024-05-02 Thread Greg KH
On Fri, May 03, 2024 at 11:30:50AM +0530, Krishna Kurapati PSSNV wrote: > > > On 5/3/2024 10:42 AM, Greg KH wrote: > > Ok, I'm getting tired of seeing these for the USB portion of the tree, > > so I went to look for: > > > > On Fri, May 03, 2024 at 04:44:42AM +0800, kernel test robot wrote: > >

[PATCH v9 00/12] Panel replay selective update support

2024-05-02 Thread Jouni Högander
This patch set is implementing panel replay selective update support for Intel hardware. v9: - do not add has_psr check into psr2 case in intel_dp_compute_vsc_sdp - use drm_dp_dpcd_readb instead of drm_dp_dpcd_read in intel_dp_get_su_capability - ensure intel_dp_get_su_capability returns 0

[PATCH v9 01/12] drm/i915/psr: Rename has_psr2 as has_sel_update

2024-05-02 Thread Jouni Högander
We are going to reuse has_psr2 for panel_replay as well. Rename it as has_sel_update to avoid confusion. v3: do not add has_psr check into psr2 case in intel_dp_compute_vsc_sdp v2: Rebase Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_crtc_state_dump.c | 4 ++-- drivers/g

[PATCH v9 02/12] drm/i915/display: Do not print "psr: enabled" for on Panel Replay

2024-05-02 Thread Jouni Högander
After setting has_psr for panel replay as well crtc state dump is improperly printing "psr: enabled" for Panel Replay as well. Fix this by checking also has_panel_replay. Fixes: 5afa6e496098 ("drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well") Signed-off-by: Jouni Högander ---

[PATCH v9 03/12] drm/i915/dp: Use always vsc revision 0x6 for Panel Replay

2024-05-02 Thread Jouni Högander
We are about to enable Panel Replay Selective update mode. Vsc revision 0x6 for Panel Replay no matter if it is selective update or full frame update mode. Take this into account when preparing VSC SDP package. Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_dp.c | 16 ++

[PATCH v9 04/12] drm/i915/psr: Rename psr2_enabled as sel_update_enabled

2024-05-02 Thread Jouni Högander
We are about to reuse psr2_enabled for panel replay as well. Rename it as sel_update_enabled to avoid confusion. v3: Rebase v2: Rebase Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gpu/drm/i915/display/intel_psr.c

[PATCH v9 05/12] drm/panelreplay: dpcd register definition for panelreplay SU

2024-05-02 Thread Jouni Högander
Add definitions for panel replay selective update v2: Remove unnecessary Cc from commit message Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- include/drm/display/drm_dp.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/drm/display/drm_dp.h b/include/drm/display

[PATCH v9 06/12] drm/i915/psr: Detect panel replay selective update support

2024-05-02 Thread Jouni Högander
Add new boolean to store panel replay selective update support of sink into intel_psr struct. Detect panel replay selective update support and store it into this new boolean. v3: Clear sink_panel_replay_su_support in intel_dp_detect v2: Merge adding new boolean into this patch Signed-off-by: Jou

[PATCH v9 08/12] drm/i915/psr: Panel replay uses SRD_STATUS to track it's status

2024-05-02 Thread Jouni Högander
DP Panel replay uses SRD_STATUS to track it's status despite selective update mode. Bspec: 53370, 68920 v3: - do not use PSR2_STATUS for PSR1 v2: - use intel_dp_is_edp to differentiate - modify debugfs status as well Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_ps

[PATCH v9 09/12] drm/i915/psr: Do not apply workarounds in case of panel replay

2024-05-02 Thread Jouni Högander
There are some workarounds that are not applicable for panel replay. Do not apply these if panel replay is used. Bspec: 66624, 50422 Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_fbc.c | 5 +++-- drivers/gpu/drm/i915/display/intel_hdmi.c | 3 ++- drivers/gpu/drm/i915/d

[PATCH v9 11/12] drm/i915/psr: Split intel_psr2_config_valid for panel replay

2024-05-02 Thread Jouni Högander
Part of intel_psr2_config_valid is valid for panel replay. rename it as intel_sel_update_config_valid. Split psr2 specific part and name it as intel_psr2_config_valid. v3: - move early transport check to psr2 specific check - check intel_psr2_config_valid only for non-Panel Replay case v2: -

[PATCH v9 10/12] drm/i915/psr: Update PSR module parameter descriptions

2024-05-02 Thread Jouni Högander
We are re-using PSR module parameters for panel replay. Update module parameter descriptions with panel replay information: enable_psr: -1 (default) == follow what is in VBT 0 == disable PSR/PR 1 == Allow PSR1 and PR full frame update 2 == allow PSR1/PSR2 and PR Selective Update enable_psr2_sel_

[PATCH v9 07/12] drm/i915/psr: Modify intel_dp_get_su_granularity to support panel replay

2024-05-02 Thread Jouni Högander
Currently intel_dp_get_su_granularity doesn't support panel replay. This fix modifies it to support panel replay as well. v4: - use drm_dp_dpcd_readb instead of drm_dp_dpcd_read - ensure return value is 0 if drm_dp_dpcd_readb fails v3: use correct offset for DP_PANEL_PANEL_REPLAY_CAPABILITY v2

[PATCH v9 12/12] drm/i915/psr: Add panel replay sel update support to debugfs interface

2024-05-02 Thread Jouni Högander
Add panel replay selective update support to debugfs status interface. In case of sink supporting panel replay we will print out: Sink support: PSR = no, Panel Replay = yes, Panel Replay Selective Update = yes and PSR mode will look like this if printing out enabled panel replay selective update:

✗ Fi.CI.CHECKPATCH: warning for LunarLake IO and Fast Wake changes

2024-05-02 Thread Patchwork
== Series Details == Series: LunarLake IO and Fast Wake changes URL : https://patchwork.freedesktop.org/series/133160/ State : warning == Summary == Error: dim checkpatch failed ce27af43583c drm/i915/psr: LunarLake IO and Fast Wake time line count maximums are 63 b85a97f53836 drm/i915/psr: Lu

✗ Fi.CI.SPARSE: warning for LunarLake IO and Fast Wake changes

2024-05-02 Thread Patchwork
== Series Details == Series: LunarLake IO and Fast Wake changes URL : https://patchwork.freedesktop.org/series/133160/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +./arch/x86/include/asm/bitops.h:116:1:

✓ Fi.CI.BAT: success for LunarLake IO and Fast Wake changes

2024-05-02 Thread Patchwork
== Series Details == Series: LunarLake IO and Fast Wake changes URL : https://patchwork.freedesktop.org/series/133160/ State : success == Summary == CI Bug Log - changes from CI_DRM_14701 -> Patchwork_133160v1 Summary --- **SUCCESS**