[PATCH] drm/i915/gsc: mei interrupt top half should be in irq disabled context

2025-04-23 Thread Junxiao Chang
MEI GSC interrupt comes from i915. It has top half and bottom half. Top half is called from i915 interrupt handler. It should be in irq disabled context. With RT kernel, by default i915 IRQ handler is in threaded IRQ. MEI GSC top half might be in threaded IRQ context. In this case, local IRQ shoul

[PATCH v4 3/4] scripts/kernel-doc.py: don't create *.pyc files

2025-04-23 Thread Mauro Carvalho Chehab
As reported by Andy, kernel-doc.py is creating a __pycache__ directory at build time. Disable creation of __pycache__ for the libraries used by kernel-doc.py, when excecuted via the build system or via scripts/find-unused-docs.sh. Reported-by: Andy Shevchenko Closes: https://lore.kernel.org/linu

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-23 Thread Mauro Carvalho Chehab
Em Mon, 21 Apr 2025 10:35:29 -0600 Jonathan Corbet escreveu: > Dmitry Baryshkov writes: > > > On Wed, Apr 16, 2025 at 03:51:03PM +0800, Mauro Carvalho Chehab wrote: > >> > >> As reported by Andy, the Kernel build system runs kernel-doc script for > >> DRM, > >> when W=1. Due to Python's nor

[PATCH v4 0/4] Don't create Python bytecode when building the kernel

2025-04-23 Thread Mauro Carvalho Chehab
As reported by Andy, the Kernel build system runs kernel-doc script for DRM, when W=1. Due to Python's normal behavior, its JIT compiler will create a bytecode and store it under scripts/lib/*/__pycache__. As one may be using O= and even having the sources on a read-only mount point, disable its c

Announcement: 2025 X.Org Foundation Election Candidates

2025-04-23 Thread Mark Filion
To all X.Org Foundation Members: The election for the X.Org Foundation Board of Directors will begin on 30 April 2025. We have five candidates who are running for four seats. They are (in alphabetical order): * Andres Gomez * Arkadiusz Hiler * Megan Knight * Lyude Paul * Harry Wentland Atta

Re: [PATCH v3 0/2] Don't create Python bytecode when building the kernel

2025-04-23 Thread Andy Shevchenko
On Wed, Apr 23, 2025 at 06:30:48PM +0900, Akira Yokosawa wrote: > On Tue, 22 Apr 2025 10:57:33 +0300, Andy Shevchenko wrote: > > On Mon, Apr 21, 2025 at 10:35:29AM -0600, Jonathan Corbet wrote: > >> Dmitry Baryshkov writes: [...] > >> > Would it be possible to properly support O= and create pyc

Re: [PATCH RESEND v13 0/5] Expose modifiers/formats supported by async flips

2025-04-23 Thread Alex Deucher
+ Harry and Leo On Wed, Apr 16, 2025 at 2:33 AM Borah, Chaitanya Kumar wrote: > > Hello Alexander, > > > -Original Message- > > From: Murthy, Arun R > > Sent: Monday, April 7, 2025 11:14 AM > > To: dri-de...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org; intel- > > x...@lists.fr

Re: [PATCH] drm/i915/gt: Add delay to let engine resumes properly

2025-04-23 Thread Sebastian Brzezinka
Hi Nitin On Wed Apr 16, 2025 at 10:36 AM UTC, Nitin Gote wrote: > Sometimes engine reset fails because the engine resumes from an > incorrect RING_HEAD. Engine head failed to set to zero even after > writing into it. This is a timing issue and we experimented > different values and found out that

Re: [PATCH v5 2/2] drm/i915/display: move min_hblank from dp_mst.c to dp.c

2025-04-23 Thread Imre Deak
On Wed, Apr 23, 2025 at 06:23:34PM +0530, Arun R Murthy wrote: > Minimum HBlank is programmed to address jitter for high resolutions with > high refresh rates that have small Hblank, specifically where Hblank is > smaller than one MTP. The log could've mentioned what the patch actually does (at le

✓ i915.CI.BAT: success for Rework/Correction on minimum hblank calculation (rev5)

2025-04-23 Thread Patchwork
== Series Details == Series: Rework/Correction on minimum hblank calculation (rev5) URL : https://patchwork.freedesktop.org/series/147361/ State : success == Summary == CI Bug Log - changes from CI_DRM_16451 -> Patchwork_147361v5 Summary --

Re: [PATCH v4 01/15] drm/i915/gt: Avoid using masked workaround for CCS_MODE setting

2025-04-23 Thread Lucas De Marchi
On Mon, Mar 24, 2025 at 02:29:37PM +0100, Andi Shyti wrote: When setting the CCS mode, we mistakenly used wa_masked_en() to apply the workaround, which reads from the register and masks the existing value with the new one. That's not what wa_masked_* does. The use of wa_masked* depends if the r

✗ Fi.CI.SPARSE: warning for Rework/Correction on minimum hblank calculation (rev5)

2025-04-23 Thread Patchwork
== Series Details == Series: Rework/Correction on minimum hblank calculation (rev5) URL : https://patchwork.freedesktop.org/series/147361/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

✗ Fi.CI.CHECKPATCH: warning for Rework/Correction on minimum hblank calculation (rev5)

2025-04-23 Thread Patchwork
== Series Details == Series: Rework/Correction on minimum hblank calculation (rev5) URL : https://patchwork.freedesktop.org/series/147361/ State : warning == Summary == Error: dim checkpatch failed 23f27b87e286 drm/display/dp: Export fn to calculate link symbol cycles 63582b51e068 drm/i915/dis

Re: [PATCH v2 2/6] drm/i915/gt: Move CCS workaround to the correct section

2025-04-23 Thread Lucas De Marchi
On Thu, Mar 27, 2025 at 12:40:01AM +0100, Andi Shyti wrote: The CCS engine workaround was previously added in a section shared by both RCS and CCS engines. Move it to the proper CCS-specific section so that it's applied only once, avoiding unintended duplication caused by the first CCS/RCS detec

✗ i915.CI.BAT: failure for series starting with [v3,1/2] drm/i915/display: Ensure enough lines between delayed VBlank and VBlank

2025-04-23 Thread Patchwork
== Series Details == Series: series starting with [v3,1/2] drm/i915/display: Ensure enough lines between delayed VBlank and VBlank URL : https://patchwork.freedesktop.org/series/148127/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16451 -> Patchwork_148127v1

Re: [PATCH v2 6/6] drm/i915/gt: Remove unused I915_ENGINE_FIRST_RENDER_COMPUTE flag

2025-04-23 Thread Lucas De Marchi
On Thu, Mar 27, 2025 at 12:40:05AM +0100, Andi Shyti wrote: From: Andi Shyti The I915_ENGINE_FIRST_RENDER_COMPUTE flag is no longer used. Its purpose has been replaced by the FIRST_CCS() helper, which determines the first render or compute engine as needed. which is not true since you impleme

Re: [PATCH v2 0/6] Remove I915_ENGINE_FIRST_RENDER_COMPUTE

2025-04-23 Thread Lucas De Marchi
On Thu, Mar 27, 2025 at 12:39:59AM +0100, Andi Shyti wrote: Hi, While testing the multi-CCS static load balancing, Arshad discovered that the CCS workaround was being applied twice, due to commit [*]. Further discussions with Lucas led to rethinking the purpose of I915_ENGINE_FIRST_RENDER_COMPU

Re: [PATCH v5 1/2] drm/display/dp: Export fn to calculate link symbol cycles

2025-04-23 Thread Imre Deak
On Wed, Apr 23, 2025 at 06:23:33PM +0530, Arun R Murthy wrote: > Unify the function to calculate the link symbol cycles for both dsc and > non-dsc case and export the function so that it can be used in the > respective platform display drivers for other calculations. > > v2: unify the fn for both

Re: [PATCH v2 02/13] drm/i915/vrr: Add functions to read out vmin/vmax stuff

2025-04-23 Thread Nautiyal, Ankit K
On 4/23/2025 6:47 PM, Nautiyal, Ankit K wrote: On 4/21/2025 9:18 PM, Mitul Golani wrote: From: Ville Syrjälä Calculate delayed vblank start position with the help of added vmin/vmax stuff for next frame and final computation. Signed-off-by: Ville Syrjälä Signed-off-by: Mitul Golani ---  

✗ Fi.CI.CHECKPATCH: warning for Rework/Correction on minimum hblank calculation (rev4)

2025-04-23 Thread Patchwork
== Series Details == Series: Rework/Correction on minimum hblank calculation (rev4) URL : https://patchwork.freedesktop.org/series/147361/ State : warning == Summary == Error: dim checkpatch failed db70d168974e drm/display/dp: Export fn to calculate link symbol cycles ab0b24489b70 drm/i915/dis

✓ i915.CI.BAT: success for series starting with [CI,1/2] drm/i915/reg: use REG_BIT and friends to define DP registers

2025-04-23 Thread Patchwork
== Series Details == Series: series starting with [CI,1/2] drm/i915/reg: use REG_BIT and friends to define DP registers URL : https://patchwork.freedesktop.org/series/148125/ State : success == Summary == CI Bug Log - changes from CI_DRM_16451 -> Patchwork_148125v1 ===

Re: [PATCH v2 02/13] drm/i915/vrr: Add functions to read out vmin/vmax stuff

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: From: Ville Syrjälä Calculate delayed vblank start position with the help of added vmin/vmax stuff for next frame and final computation. Signed-off-by: Ville Syrjälä Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_vrr.c |

✗ i915.CI.BAT: failure for Rework/Correction on minimum hblank calculation (rev4)

2025-04-23 Thread Patchwork
== Series Details == Series: Rework/Correction on minimum hblank calculation (rev4) URL : https://patchwork.freedesktop.org/series/147361/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16451 -> Patchwork_147361v4 Summary --

[PATCH v5 1/2] drm/display/dp: Export fn to calculate link symbol cycles

2025-04-23 Thread Arun R Murthy
Unify the function to calculate the link symbol cycles for both dsc and non-dsc case and export the function so that it can be used in the respective platform display drivers for other calculations. v2: unify the fn for both dsc and non-dsc case (Imre) v3: rename drm_dp_link_symbol_cycles to drm_d

[PATCH v5 0/2] Rework/Correction on minimum hblank calculation

2025-04-23 Thread Arun R Murthy
Signed-off-by: Arun R Murthy --- Changes in v5: - EDITME: describe what is new in this series revision. - EDITME: use bulletpoints and terse descriptions. - Link to v4: https://lore.kernel.org/r/20250423-hblank-v4-0-8e513cc54...@intel.com Changes in v5: - EDITME: describe what is new in this

[PATCH v5 2/2] drm/i915/display: move min_hblank from dp_mst.c to dp.c

2025-04-23 Thread Arun R Murthy
Minimum HBlank is programmed to address jitter for high resolutions with high refresh rates that have small Hblank, specifically where Hblank is smaller than one MTP. TODO: Add the min_hblank calculation for hdmi as well. v2: move from intel_audio.c to intel_dp.c some correction in link_bpp_x

✗ Fi.CI.SPARSE: warning for Rework/Correction on minimum hblank calculation (rev4)

2025-04-23 Thread Patchwork
== Series Details == Series: Rework/Correction on minimum hblank calculation (rev4) URL : https://patchwork.freedesktop.org/series/147361/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

Re: [PATCH v2 11/13] drm/i915/vrr: Add state checker for dc balance params

2025-04-23 Thread Nautiyal, Ankit K
On 4/23/2025 3:51 PM, Jani Nikula wrote: On Wed, 23 Apr 2025, "Nautiyal, Ankit K" wrote: On 4/21/2025 9:18 PM, Mitul Golani wrote: Add state checker for dc balance params. Also add macro to check source support. Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_display.

Re: [PATCH v10 11/11] drm/i915/display: Disintegrate sink alpm enable from psr with lobf

2025-04-23 Thread Hogander, Jouni
On Wed, 2025-04-23 at 14:53 +0530, Animesh Manna wrote: > Make a generic alpm enable function for sink which can be used for > PSR2/PR/Lobf. > > Signed-off-by: Animesh Manna > --- >  drivers/gpu/drm/i915/display/intel_alpm.c | 25 > ++- >  drivers/gpu/drm/i915/display/intel_psr

Re: [PATCH v10 10/11] drm/i915/alpm: Add intel_psr_need_alpm() to simplify alpm check

2025-04-23 Thread Hogander, Jouni
On Wed, 2025-04-23 at 14:53 +0530, Animesh Manna wrote: > Simplify the alpm check which will be used multiple places like > source configuration, sink enablement etc. Reviewed-by: Jouni Högander > > Signed-off-by: Animesh Manna > --- >  drivers/gpu/drm/i915/display/intel_alpm.c | 5 +++-- >  dri

✓ i915.CI.BAT: success for LOBF enablement fix (rev10)

2025-04-23 Thread Patchwork
== Series Details == Series: LOBF enablement fix (rev10) URL : https://patchwork.freedesktop.org/series/141974/ State : success == Summary == CI Bug Log - changes from CI_DRM_16450 -> Patchwork_141974v10 Summary --- **SUCCESS** No

Re: [PATCH v10 06/11] drm/i915/lobf: Update lobf if any change in dependent parameters

2025-04-23 Thread Hogander, Jouni
On Wed, 2025-04-23 at 14:53 +0530, Animesh Manna wrote: > For every commit the dependent condition for LOBF is checked > and accordingly update has_lobf flag which will be used > to update the ALPM_CTL register during commit. > > v1: Initial version. > v2: Avoid reading h/w register without has_lo

[PATCH v3 1/2] drm/i915/display: Ensure enough lines between delayed VBlank and VBlank

2025-04-23 Thread Jouni Högander
To deterministically capture the transition of the state machine going from SRDOFFACK to IDLE, the delayed V. Blank should be at least one line after the non-delayed V. Blank. Ensure this by adding new interface into intel_psr to query number of lines needed for vblank delay and call it from intel

[PATCH v3 2/2] drm/i915/psr: Move PSR workaround to intel_psr.c

2025-04-23 Thread Jouni Högander
Logical place for PSR workaround needing vblank delay is in intel_psr_min_vblank_delay. Move it there. Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_display.c | 12 drivers/gpu/drm/i915/display/intel_psr.c | 11 ++- 2 files changed, 10 insertions(+

[CI 1/2] drm/i915/reg: use REG_BIT and friends to define DP registers

2025-04-23 Thread Jani Nikula
Define the DP register contents using the REG_BIT, REG_GENMASK, etc. macros. Ditch the unhelpful comments. Rename eDP related register content macros to have EDP_ prefix. Reviewed-by: Suraj Kandpal Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/g4x_dp.c | 23 +++-- drivers/gpu/drm

Re: [PATCH v2 11/13] drm/i915/vrr: Add state checker for dc balance params

2025-04-23 Thread Jani Nikula
On Wed, 23 Apr 2025, "Nautiyal, Ankit K" wrote: > On 4/21/2025 9:18 PM, Mitul Golani wrote: >> Add state checker for dc balance params. Also add macro to >> check source support. >> >> Signed-off-by: Mitul Golani >> --- >> drivers/gpu/drm/i915/display/intel_display.c | 7 +++ >> drivers/g

✗ Fi.CI.CHECKPATCH: warning for LOBF enablement fix (rev10)

2025-04-23 Thread Patchwork
== Series Details == Series: LOBF enablement fix (rev10) URL : https://patchwork.freedesktop.org/series/141974/ State : warning == Summary == Error: dim checkpatch failed b53ba73df55c drm/i915/alpm: use variable from intel_crtc_state instead of intel_psr 52016359761f drm/i915/lobf: Add lobf e

✗ Fi.CI.SPARSE: warning for LOBF enablement fix (rev10)

2025-04-23 Thread Patchwork
== Series Details == Series: LOBF enablement fix (rev10) URL : https://patchwork.freedesktop.org/series/141974/ State : warning == Summary == Error: patch https://patchwork.freedesktop.org/api/1.0/series/141974/revisions/10/mbox/ not found

[PATCH v4 2/2] drm/i915/display: move min_hblank from dp_mst.c to dp.c

2025-04-23 Thread Arun R Murthy
Minimum HBlank is programmed to address jitter for high resolutions with high refresh rates that have small Hblank, specifically where Hblank is smaller than one MTP. TODO: Add the min_hblank calculation for hdmi as well. v2: move from intel_audio.c to intel_dp.c some correction in link_bpp_x

Re: [PATCH v3 05/13] drm/i915/dmc: Add interface to block PKG C-state

2025-04-23 Thread Hogander, Jouni
On Tue, 2025-04-22 at 08:28 +, Kahola, Mika wrote: > > -Original Message- > > From: Intel-gfx On Behalf > > Of Jouni > > Högander > > Sent: Monday, 14 April 2025 13.05 > > To: intel-gfx@lists.freedesktop.org; intel...@lists.freedesktop.org > > Cc: Hogander, Jouni > > Subject: [PATCH v

[CI 2/2] drm/i915/reg: Add/remove some extra blank lines

2025-04-23 Thread Jani Nikula
Add/remove some blank lines to/from i915_reg.h primarily to help the scripted refactoring coming up, separating unrelated registers and keeping the comments together. v2: Also add some extra blank lines Reviewed-by: Suraj Kandpal # v1 Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_re

[PATCH v10 02/11] drm/i915/lobf: Add lobf enablement in post plane update

2025-04-23 Thread Animesh Manna
Enablement of LOBF is added in post plane update whenever has_lobf flag is set. As LOBF can be enabled in non-psr case as well so adding in post plane update. There is no change of configuring alpm with psr path. v1: Initial version. v2: Use encoder-mask to find the associated encoder from crtc-st

[PATCH v4 1/2] drm/display/dp: Export fn to calculate link symbol cycles

2025-04-23 Thread Arun R Murthy
Unify the function to calculate the link symbol cycles for both dsc and non-dsc case and export the function so that it can be used in the respective platform display drivers for other calculations. v2: unify the fn for both dsc and non-dsc case (Imre) v3: rename drm_dp_link_symbol_cycles to drm_d

[PATCH v4 0/2] Rework/Correction on minimum hblank calculation

2025-04-23 Thread Arun R Murthy
Signed-off-by: Arun R Murthy --- Changes in v5: - EDITME: describe what is new in this series revision. - EDITME: use bulletpoints and terse descriptions. - Link to v4: https://lore.kernel.org/r/20250422-hblank-v4-0-bdb7bd9c4...@intel.com Changes in v3: - EDITME: describe what is new in this ser

[PATCH v10 09/11] drm/i915/lobf: Check for sink error and disable LOBF

2025-04-23 Thread Animesh Manna
Disable LOBF/ALPM for any erroneous condition from sink side. v1: Initial version. v2: Add centralized alpm error handling. [Jouni] v3: Improve debug print. [Jouni] v4: Disable alpm permanently for sink error. [Jouni] Signed-off-by: Animesh Manna Reviewed-by: Jouni Högander --- drivers/gpu/drm

[PATCH v10 10/11] drm/i915/alpm: Add intel_psr_need_alpm() to simplify alpm check

2025-04-23 Thread Animesh Manna
Simplify the alpm check which will be used multiple places like source configuration, sink enablement etc. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 5 +++-- drivers/gpu/drm/i915/display/intel_psr.c | 6 ++ drivers/gpu/drm/i915/display/intel_psr.h | 1 +

[PATCH v10 11/11] drm/i915/display: Disintegrate sink alpm enable from psr with lobf

2025-04-23 Thread Animesh Manna
Make a generic alpm enable function for sink which can be used for PSR2/PR/Lobf. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 25 ++- drivers/gpu/drm/i915/display/intel_psr.c | 23 - 2 files changed, 24 insertions(+), 24 de

[PATCH v10 08/11] drm/i915/lobf: Add mutex for alpm update

2025-04-23 Thread Animesh Manna
The ALPM_CTL can be updated from different context, so add mutex to sychonize the update. Signed-off-by: Animesh Manna Reviewed-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_alpm.c | 11 ++- drivers/gpu/drm/i915/display/intel_alpm.h | 2 +- drivers/gpu/drm

[PATCH v10 07/11] drm/i915/lobf: Add debug interface for lobf

2025-04-23 Thread Animesh Manna
Add an interface in debugfs which will help in debugging LOBF feature. v1: Initial version. v2: - Remove FORCE_EN flag. [Jouni] - Change prefix from I915 to INTEL. [Jani] - Use u8 instead of bool for lobf-debug flag. [Jani] v3: - Use intel_connector instead of display. [Jani] - Remove edp connecto

[PATCH v10 06/11] drm/i915/lobf: Update lobf if any change in dependent parameters

2025-04-23 Thread Animesh Manna
For every commit the dependent condition for LOBF is checked and accordingly update has_lobf flag which will be used to update the ALPM_CTL register during commit. v1: Initial version. v2: Avoid reading h/w register without has_lobf check. [Jani] v3: Update LOBF in post plane update instead of sep

[PATCH v10 04/11] drm/i915/lobf: Disintegrate alpm_disable from psr_disable

2025-04-23 Thread Animesh Manna
Currently clearing of alpm registers is done through psr_disable() which is always not correct, without psr also alpm can exist. So dis-integrate alpm_disable() from psr_disable(). v1: Initial version. v2: - Remove h/w register read from alpm_disable(). [Jani] Signed-off-by: Animesh Manna Review

[PATCH v10 05/11] drm/i915/lobf: Add fixed refresh rate check in compute_config()

2025-04-23 Thread Animesh Manna
LOBF can be enabled with vrr fixed rate mode, so add check if vmin = vmax = flipline in compute_config(). Signed-off-by: Animesh Manna Reviewed-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/display/i

[PATCH v10 03/11] drm/i915/lobf: Add debug print for LOBF

2025-04-23 Thread Animesh Manna
Lobf is enabled part of ALPM configuration and if has_lobf is set to true respective bit for LOBF will be set. Add debug print while setting the bitfield of LOBF. Signed-off-by: Animesh Manna Reviewed-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_alpm.c | 6 +- 1 file changed, 5

[PATCH v10 01/11] drm/i915/alpm: use variable from intel_crtc_state instead of intel_psr

2025-04-23 Thread Animesh Manna
From: Jouni Högander Currently code is making assumption that PSR is enabled when intel_alpm_configure is called. This doesn't work if alpm is configured before PSR is enabled. Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++-- 1 f

[PATCH v10 00/11] LOBF enablement fix

2025-04-23 Thread Animesh Manna
v1: Initial version. v2: Addressed review comments from Jani. v3: Addressed review comments from Jouni. v4: Addressed review comments received on v3. v5: Addressed review comments received on v4. v6: Addressed review comments received on v5. v7: Addressed review comments received on v6. v8: Address

[PATCH 2/3] drm/i915/hdmi: convert rest of intel_hdmi.c to struct intel_display

2025-04-23 Thread Jani Nikula
Remove the last uses of struct drm_i915_private from intel_hdmi.c, and drop the dependency on i915_drv.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_hdmi.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel

[PATCH 0/3] drm/i915/display: remove intel_de_*() compat wrappers

2025-04-23 Thread Jani Nikula
A milestone, with this all the intel_de_*() users pass in struct intel_display, and we can remove the compat wrappers. \o/ Jani Nikula (3): drm/i915/dpt: convert intel_dpt_common.c to struct intel_display drm/i915/hdmi: convert rest of intel_hdmi.c to struct intel_display drm/i915/de: drop d

[PATCH 3/3] drm/i915/de: drop drm_i915_private compat wrappers from intel_de_*()

2025-04-23 Thread Jani Nikula
All the users of intel_de_*() functions now pass in struct intel_display, and we can remove the __to_intel_display() _Generic() compat wrappers. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_de.h | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --gi

[PATCH 1/3] drm/i915/dpt: convert intel_dpt_common.c to struct intel_display

2025-04-23 Thread Jani Nikula
Remove the last uses of struct drm_i915_private from intel_dpt_common.c, and drop the dependency on i915_drv.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dpt_common.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/

Re: [PATCH v2 06/13] drm/i915/vrr: Add state dump for dc balance params

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: Add state dump for dc balance params to track dc balance crtc state config. Signed-off-by: Mitul Golani Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_crtc_state_dump.c | 9 - 1 file changed, 8 insertions(+), 1 del

Re: [PATCH v2 13/13] drm/i915/vrr: enable dc balance bit

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:19 PM, Mitul Golani wrote: enable dc balance from vrr compute config when vrr is s/enable/Enable enabled in adaptive vtotal mode Nitpick: Add fullstop. With above fixed: Reviewed-by: Ankit Nautiyal Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_vr

Re: [PATCH v2 12/13] drm/i915/display: Prepare state checker for dc balance enable

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: Prepare state check param for enabling dc balance enable bit. This patch can be squashed into the previous patch. Regards, Ankit Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_display.c | 1 + drivers/gpu/drm/i915/display/

Re: [PATCH v2 11/13] drm/i915/vrr: Add state checker for dc balance params

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: Add state checker for dc balance params. Also add macro to check source support. Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_display.c | 7 +++ drivers/gpu/drm/i915/display/intel_vrr.c | 20 +++- 2 f

Re: [PATCH v2 10/13] drm/i915/vrr: Pause DC balancing for DSB commits

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: From: Ville Syrjälä Pause the DMC DC balancing for the remainder of the commit so that vmin/vmax won't change after we've baked them into the DSB vblank evasion commands. Signed-off-by: Ville Syrjälä Signed-off-by: Mitul Golani --- drivers/gpu/dr

Re: [PATCH v2 09/13] drm/i915/dsb: Add pipedmc dc balance enable/disable

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: From: Ville Syrjälä Add function to control DC balance enable/disable bit via DSB. Signed-off-by: Ville Syrjälä Signed-off-by: Mitul Golani Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dmc.c | 24 +

Re: [PATCH v2 08/13] drm/i915/vrr: Implement vblank evasion with DC balancing

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: From: Ville Syrjälä Add vblank evasion logic when vrr is already enabled along with dc balance is computed. Signed-off-by: Ville Syrjälä Signed-off-by: Mitul Golani Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dsb.c

Re: [PATCH v2 07/13] drm/i915: Extract vrr_vblank_start()

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: From: Ville Syrjälä Initialise delayed vblank position for evasion logic. Signed-off-by: Ville Syrjälä Signed-off-by: Mitul Golani Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_vblank.c | 13 + 1 file chang

Re: [PATCH v2 01/13] drm/i915/vrr: Refactor vmin/vmax stuff

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: From: Ville Syrjälä Refactor vmin/vmax functions for better computation. Signed-off-by: Ville Syrjälä Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_vrr.c | 41 +++- 1 file changed, 19 insertions(+), 22 de

Re: [PATCH v2 05/13] drm/i915/vrr: Add compute config for DC balance params

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: Add compute config for DC balance params. This will be required to calculate correct balance requirement for DMC firmware. Subject can simply be Compute DC balance parameters. Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_vrr.

Re: [PATCH v2 04/13] drm/i915/vrr: Add enable/disable calls for DC Balance

2025-04-23 Thread Nautiyal, Ankit K
On 4/21/2025 9:18 PM, Mitul Golani wrote: Add enable/disable calls along with required hw registers for DC balance enablement. Signed-off-by: Mitul Golani --- .../drm/i915/display/intel_display_types.h| 7 ++ drivers/gpu/drm/i915/display/intel_dmc_regs.h | 71 +++ dri