Re: [PATCH v3 8/8] drm/i915/reset: add modeset_stuck callback to intel_display_reset_prepare()

2025-03-03 Thread Matt Roper
On Mon, Mar 03, 2025 at 01:27:10PM +0200, Jani Nikula wrote: > Drop the dependency on gt by providing a callback for trying to unbreak > stuck modeset. Do intel_gt_set_wedged() via the callback. > > It's by no means pretty, but this is perhaps the most straightforward > alternative. > > Cc: Matt

Re: [PATCH v3 7/8] drm/i915/reset: pass test only parameter to intel_display_reset_finish()

2025-03-03 Thread Matt Roper
On Mon, Mar 03, 2025 at 01:27:09PM +0200, Jani Nikula wrote: > Deduplicate the gpu_reset_clobbers_display() part by passing the > information in from gt side. > > Cc: Matt Roper > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_display_reset.c | 12 ++-- > drivers/

Re: [PATCH v3 5/8] drm/i915/reset: remove I915_RESET_MODESET flag

2025-03-03 Thread Matt Roper
On Mon, Mar 03, 2025 at 01:27:07PM +0200, Jani Nikula wrote: > Since commit d59cf7bb73f3 ("drm/i915/display: Use dma_fence interfaces > instead of i915_sw_fence") we don't have anyone waiting on the > I915_RESET_MODESET bit, and there's no need for its semantics. Instead, > simply return true from

Re: [PATCH v3 6/8] drm/i915/reset: decide whether display reset is needed on gt side

2025-03-03 Thread Matt Roper
On Mon, Mar 03, 2025 at 01:27:08PM +0200, Jani Nikula wrote: > Move the checks for whether display reset is needed at all to gt side of > things. This way, we can decide to skip the display calls altogether if > display reset is not required. > > Cc: Matt Roper > Signed-off-by: Jani Nikula Revi

✗ Fi.CI.CHECKPATCH: warning for drm/i915/dmc: Add debugfs for dc6 counter (rev3)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/i915/dmc: Add debugfs for dc6 counter (rev3) URL : https://patchwork.freedesktop.org/series/144240/ State : warning == Summary == Error: dim checkpatch failed 6b5ed04d5237 drm/i915/dmc: Create debugfs entry for dc6 counter -:76: CHECK:BRACES: braces {} should b

✗ i915.CI.BAT: failure for drm/i915/dmc: Add debugfs for dc6 counter (rev3)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/i915/dmc: Add debugfs for dc6 counter (rev3) URL : https://patchwork.freedesktop.org/series/144240/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16217 -> Patchwork_144240v3 Summary ---

✗ Fi.CI.SPARSE: warning for drm/i915/dmc: Add debugfs for dc6 counter (rev3)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/i915/dmc: Add debugfs for dc6 counter (rev3) URL : https://patchwork.freedesktop.org/series/144240/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[PATCH v3] drm/i915/dmc: Create debugfs entry for dc6 counter

2025-03-03 Thread Mohammed Thasleem
Starting from MTL we don't have a platform agnostic way to validate DC6 state due to dc6 counter has been removed to validate DC state. The goal is to validate that the display HW can reach the DC6 power state. There is no HW DC6 residency counter (and there wasn't such a counter earlier either),

✓ i915.CI.BAT: success for drm/i915/xe3lpd: Map POWER_DOMAIN_AUDIO_PLAYBACK to DC_off (rev2)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/i915/xe3lpd: Map POWER_DOMAIN_AUDIO_PLAYBACK to DC_off (rev2) URL : https://patchwork.freedesktop.org/series/145593/ State : success == Summary == CI Bug Log - changes from CI_DRM_16215 -> Patchwork_145593v2

Re: [PATCH v9] drm/i915/dp: Guarantee a minimum HBlank time

2025-03-03 Thread Imre Deak
On Mon, Mar 03, 2025 at 11:55:30AM +0200, Murthy, Arun R wrote: > [...] > > > +{ > > > + struct intel_encoder *encoder = connector->encoder; > > > + struct intel_display *display = to_intel_display(encoder); > > > + const struct drm_display_mode *adjusted_mode = > > > +

✓ i915.CI.BAT: success for series starting with [1/2] drm/i915/dp: Reject HBR3 when sink doesn't support TPS4

2025-03-03 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/dp: Reject HBR3 when sink doesn't support TPS4 URL : https://patchwork.freedesktop.org/series/145716/ State : success == Summary == CI Bug Log - changes from CI_DRM_16213 -> Patchwork_145716v1 ===

✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] drm/i915/dp: Reject HBR3 when sink doesn't support TPS4

2025-03-03 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/dp: Reject HBR3 when sink doesn't support TPS4 URL : https://patchwork.freedesktop.org/series/145716/ State : warning == Summary == Error: dim checkpatch failed 152f8e822450 drm/i915/dp: Reject HBR3 when sink doesn't support TPS

Re: [PATCH 2/2] drm: ensure drm headers are self-contained and pass kernel-doc

2025-03-03 Thread Jani Nikula
On Mon, 03 Mar 2025, Masahiro Yamada wrote: > On Mon, Mar 3, 2025 at 7:02 PM Jani Nikula wrote: >> >> On Mon, 03 Mar 2025, Masahiro Yamada wrote: >> And one of the underlying goals is to make for minimal headers with >> minimal includes and minimal dependencies, preferring forward >> declaration

Re: [PATCH] drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m

2025-03-03 Thread kernel test robot
e' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ville-Syrjala/drm-client-Build-the-tests-with-CONFIG_DRM_KUNIT_TEST-m/20250303-175715 base: https://git.kernel.org/pub/scm/linux/kernel/git/d

[PATCH 1/2] drm/i915/dp: Reject HBR3 when sink doesn't support TPS4

2025-03-03 Thread Ville Syrjala
From: Ville Syrjälä According to the DP spec TPS4 is mandatory for HBR3. We have however seen some broken eDP sinks that violate this and declare support for HBR3 without TPS4 support. At least in the case of the icl Dell XPS 13 7390 this results in an unstable output. Reject HBR3 when TPS4 sup

[PATCH v5 3/8] drm/i915/lobf: Add fixed refresh rate check in compute_config()

2025-03-03 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 --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_alpm.c b/drivers/gpu/dr

Re: [PATCH v8 01/14] drm: Define histogram structures exposed to user

2025-03-03 Thread Pekka Paalanen
On Mon, 3 Mar 2025 13:23:42 +0530 "Murthy, Arun R" wrote: > On 20-02-2025 21:20, Pekka Paalanen wrote: > > On Wed, 19 Feb 2025 09:28:51 +0530 > > "Murthy, Arun R" wrote: > > > >> On 18-02-2025 21:48, Pekka Paalanen wrote: > >>> On Tue, 18 Feb 2025 11:13:39 +0530 > >>> "Murthy, Arun R" wrote:

Re: [PATCH 2/2] drm: ensure drm headers are self-contained and pass kernel-doc

2025-03-03 Thread Masahiro Yamada
On Mon, Mar 3, 2025 at 7:02 PM Jani Nikula wrote: > > On Mon, 03 Mar 2025, Masahiro Yamada wrote: > > +CC: Linus > > > > On Wed, Jan 22, 2025 at 11:41 PM Jani Nikula wrote: > >> > >> Ensure drm headers build, are self-contained, have header guards, and > >> have no kernel-doc warnings, when CONF

Re: [PATCH 05/11] drm/i915/dpll: Move away from using shared dpll

2025-03-03 Thread Ville Syrjälä
On Fri, Feb 28, 2025 at 03:31:39PM +, Kandpal, Suraj wrote: > > > > -Original Message- > > From: Ville Syrjälä > > Sent: Friday, February 28, 2025 7:57 PM > > To: Kandpal, Suraj > > Cc: Jani Nikula ; > > intel...@lists.freedesktop.org; > > intel-gfx@lists.freedesktop.org; Syrjala,

[PATCH 2/2] drm/i915: Program CURSOR_PROGRAM and COEFF_POLARITY for icl+ combo PHYs

2025-03-03 Thread Ville Syrjala
From: Ville Syrjälä Bspec asks us to clear the CURSOR_PROGRAM and COEFF_POLARITY bits in PORT_TX_DW5 on icl+ combo PHYs. Make it so. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_combo_phy_regs.h | 2 ++ drivers/gpu/drm/i915/display/intel_ddi.c| 3 ++- 2 files

✗ i915.CI.BAT: failure for drm/i915: display reset cleanups (rev3)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/i915: display reset cleanups (rev3) URL : https://patchwork.freedesktop.org/series/143233/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16211 -> Patchwork_143233v3 Summary --- **FAIL

Re: ✗ Fi.CI.BUILD: failure for drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m

2025-03-03 Thread Ville Syrjälä
On Mon, Mar 03, 2025 at 11:52:32AM -, Patchwork wrote: > == Series Details == > > Series: drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m > URL : https://patchwork.freedesktop.org/series/145707/ > State : failure > > == Summary == > > Error: make failed > CALLscripts/checksy

✗ Fi.CI.SPARSE: warning for drm/i915: display reset cleanups (rev3)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/i915: display reset cleanups (rev3) URL : https://patchwork.freedesktop.org/series/143233/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

✗ Fi.CI.BUILD: failure for drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m

2025-03-03 Thread Patchwork
== Series Details == Series: drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m URL : https://patchwork.freedesktop.org/series/145707/ State : failure == Summary == Error: make failed CALLscripts/checksyscalls.sh DESCEND objtool INSTALL libsubcmd_headers CHK kernel/kheade

Re: [PATCH] drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m

2025-03-03 Thread Maxime Ripard
On Mon, Mar 03, 2025 at 11:48:08AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Use IS_ENABLED() to check for CONFIG_DRM_KUNIT_TEST so > that it picks up the modular case as well. > > Cc: Maxime Ripard > Signed-off-by: Ville Syrjälä Acked-by: Maxime Ripard Maxime signature.asc De

Re: [PATCH 2/2] drm/i915: split out i915_gtt_view_types.h from i915_vma_types.h

2025-03-03 Thread Jani Nikula
On Fri, 28 Feb 2025, "Teres Alexis, Alan Previn" wrote: > One opinion - consider it a nit, but maybe since all of the content of this > new > header display specific, maybe instead of "i915_ggtt_view_types", why not > "i915_plane_gtt_types" > (or i915_display_gtt_types), if u plan to also expan

[PATCH v3 5/8] drm/i915/reset: remove I915_RESET_MODESET flag

2025-03-03 Thread Jani Nikula
Since commit d59cf7bb73f3 ("drm/i915/display: Use dma_fence interfaces instead of i915_sw_fence") we don't have anyone waiting on the I915_RESET_MODESET bit, and there's no need for its semantics. Instead, simply return true from intel_display_reset_prepare() to indicate that intel_display_reset_fi

Re: [PATCH v2 6/8] drm/i915/reset: move gt related stuff out of display reset

2025-03-03 Thread Jani Nikula
On Wed, 26 Feb 2025, Matt Roper wrote: > On Wed, Feb 26, 2025 at 12:38:40PM +0200, Jani Nikula wrote: >> On Tue, 25 Feb 2025, Matt Roper wrote: >> > On Tue, Feb 25, 2025 at 01:14:20PM +0200, Jani Nikula wrote: >> >> Move the checks for whether display reset is needed as well as >> >> I915_RESET_M

[PATCH v3 6/8] drm/i915/reset: decide whether display reset is needed on gt side

2025-03-03 Thread Jani Nikula
Move the checks for whether display reset is needed at all to gt side of things. This way, we can decide to skip the display calls altogether if display reset is not required. Cc: Matt Roper Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_reset.c | 5 - drivers/gp

[PATCH v3 4/8] drm/i915/reset: add intel_display_reset_test()

2025-03-03 Thread Jani Nikula
Add a helper for checking if we want to test display reset regardless of whether it's strictly necessary. This will come in handy in follow-up work where we want to check this from gt reset side. v2: Drop superfluous newline Cc: Matt Roper Reviewed-by: Matt Roper Signed-off-by: Jani Nikula ---

[PATCH v3 8/8] drm/i915/reset: add modeset_stuck callback to intel_display_reset_prepare()

2025-03-03 Thread Jani Nikula
Drop the dependency on gt by providing a callback for trying to unbreak stuck modeset. Do intel_gt_set_wedged() via the callback. It's by no means pretty, but this is perhaps the most straightforward alternative. Cc: Matt Roper Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_

[PATCH v3 7/8] drm/i915/reset: pass test only parameter to intel_display_reset_finish()

2025-03-03 Thread Jani Nikula
Deduplicate the gpu_reset_clobbers_display() part by passing the information in from gt side. Cc: Matt Roper Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_reset.c | 12 ++-- drivers/gpu/drm/i915/display/intel_display_reset.h | 2 +- drivers/gpu/drm/i915/gt/i

[PATCH v3 3/8] drm/i915/reset: add intel_gt_gpu_reset_clobbers_display() helper

2025-03-03 Thread Jani Nikula
Add a helper for checking the gpu_reset_clobbers_display flag to make it easier to relocate the flag later. Reviewed-by: Matt Roper Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 2 +- drivers/gpu/drm/i915/gt/intel_

[PATCH v3 1/8] drm/i915/display: convert display reset to struct intel_display *

2025-03-03 Thread Jani Nikula
Going forward, struct intel_display will be the main display device structure. Convert display reset to it as much as possible. Reviewed-by: Matt Roper Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_reset.c| 51 ++- .../drm/i915/display/intel_display_reset

[PATCH v3 2/8] drm/i915: move pending_fb_pin to struct intel_display

2025-03-03 Thread Jani Nikula
pending_fb_pin is more about display than GPU reset. Move it to struct intel_display. The restore sub-struct already contains reset related members, so move it there. Reviewed-by: Matt Roper Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_core.h | 2 ++ drivers/gpu/d

[PATCH v3 0/8] drm/i915: display reset cleanups

2025-03-03 Thread Jani Nikula
v3 of [1], removing I915_RESET_MODESET flag altogether for even further simplification. BR, Jani. [1] https://lore.kernel.org/r/cover.1740481927.git.jani.nik...@intel.com Jani Nikula (8): drm/i915/display: convert display reset to struct intel_display * drm/i915: move pending_fb_pin to stru

Re: [PATCH v2] drm/i915/pxp & drm/xe/pxp: Figure out pxp instance from the gem object

2025-03-03 Thread Jani Nikula
On Fri, 28 Feb 2025, Jani Nikula wrote: > It's undesirable to have to figure out the pxp pointer in display > code. For one thing, its type is different for i915 and xe. > > Since we can figure the pxp pointer out in the pxp code from the gem > object, offload it there. > > v2: Rebase > > Cc: Dani

Re: [PATCH] drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m

2025-03-03 Thread Jani Nikula
On Mon, 03 Mar 2025, Ville Syrjala wrote: > From: Ville Syrjälä > > Use IS_ENABLED() to check for CONFIG_DRM_KUNIT_TEST so > that it picks up the modular case as well. > > Cc: Maxime Ripard > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/drm_client_modeset.c

✗ i915.CI.BAT: failure for drm/client: Stop using legacy crtc->mode and a bunch of cleanups (rev6)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/client: Stop using legacy crtc->mode and a bunch of cleanups (rev6) URL : https://patchwork.freedesktop.org/series/139493/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16210 -> Patchwork_139493v6 ===

✗ Fi.CI.CHECKPATCH: warning for drm/client: Stop using legacy crtc->mode and a bunch of cleanups (rev6)

2025-03-03 Thread Patchwork
== Series Details == Series: drm/client: Stop using legacy crtc->mode and a bunch of cleanups (rev6) URL : https://patchwork.freedesktop.org/series/139493/ State : warning == Summary == Error: dim checkpatch failed 4051cb5486a3 drm/client: Constify modes 76a751da4f32 drm/client: Use array nota

Re: [PATCH 0/3] drm/i915/display: add some sub-structs for clarity

2025-03-03 Thread Jani Nikula
On Fri, 28 Feb 2025, Jani Nikula wrote: > Jani Nikula (3): > drm/i915/mst: add mst sub-struct to struct intel_dp > drm/i915/mst: add mst sub-struct to struct intel_connector > drm/i915/hdcp: add hdcp sub-struct to struct intel_digital_port Thanks for the reviews, pushed to din. BR, Jani.

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

2025-03-03 Thread Patchwork
== Series Details == Series: LOBF enablement fix (rev5) URL : https://patchwork.freedesktop.org/series/141974/ State : success == Summary == CI Bug Log - changes from CI_DRM_16210 -> Patchwork_141974v5 Summary --- **SUCCESS** No r

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

2025-03-03 Thread Patchwork
== Series Details == Series: LOBF enablement fix (rev5) URL : https://patchwork.freedesktop.org/series/141974/ State : warning == Summary == Error: dim checkpatch failed 6e00c0aa565f drm/i915/lobf: Add lobf enablement in post plane update 2d2fbd297ebf drm/i915/lobf: Disintegrate alpm_disable f

Re: [PATCH 2/2] drm: ensure drm headers are self-contained and pass kernel-doc

2025-03-03 Thread Jani Nikula
On Mon, 03 Mar 2025, Masahiro Yamada wrote: > +CC: Linus > > On Wed, Jan 22, 2025 at 11:41 PM Jani Nikula wrote: >> >> Ensure drm headers build, are self-contained, have header guards, and >> have no kernel-doc warnings, when CONFIG_DRM_HEADER_TEST=y. >> >> The mechanism follows similar patters u

RE: [PATCH v9] drm/i915/dp: Guarantee a minimum HBlank time

2025-03-03 Thread Murthy, Arun R
> Hi, > > I noticed a few issues in this patch (while fixing the other ones reported), > could > you please check and follow up on the comments below? Thanks. > > On Wed, Jan 22, 2025 at 11:25:42AM +0530, Arun R Murthy wrote: > > Mandate a minimum Hblank symbol cycle count between BlankingStart

[PATCH] drm/client: Build the tests with CONFIG_DRM_KUNIT_TEST=m

2025-03-03 Thread Ville Syrjala
From: Ville Syrjälä Use IS_ENABLED() to check for CONFIG_DRM_KUNIT_TEST so that it picks up the modular case as well. Cc: Maxime Ripard Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_client_modeset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm

[PATCH v3 1/8] drm/client: Constify modes

2025-03-03 Thread Ville Syrjala
From: Ville Syrjälä The modes used by the client code live on the connectors' mode lists, which are not owned by the client code, and thus it has no business modifying the modes. Mark the modes const to make that fact abundantly clear. v2: Fix up the kunit test Reviewed-by: Jani Nikula Reviewe

Re: [PATCH v8 01/14] drm: Define histogram structures exposed to user

2025-03-03 Thread Pekka Paalanen
On Mon, 3 Mar 2025 13:22:29 +0530 "Murthy, Arun R" wrote: > On 17-02-2025 17:57, Pekka Paalanen wrote: > > On Mon, 17 Feb 2025 12:08:08 +0200 > > Pekka Paalanen wrote: > > > >> Hi Arun, > >> > >> this whole series seems to be missing all the UAPI docs for the DRM > >> ReST files, e.g. drm-kms.

[PATCH v5 0/8] LOBF enablement fix

2025-03-03 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. Signed-off-by: Animesh Manna Animesh Manna (8): drm/i915/lobf: Add lobf enablement in post plane u

RE: [PATCH v4 2/8] drm/i915/lobf: Disintegrate alpm_disable from psr_disable

2025-03-03 Thread Manna, Animesh
> -Original Message- > From: Manna, Animesh > Sent: Tuesday, February 25, 2025 2:32 PM > To: Nikula, Jani ; intel-gfx@lists.freedesktop.org; > intel...@lists.freedesktop.org > Cc: Hogander, Jouni ; B, Jeevan > > Subject: RE: [PATCH v4 2/8] drm/i915/lobf: Disintegrate alpm_disable from >

Re: [PATCH v10 2/9] drm/damage-helper: add const qualifier in drm_atomic_helper_damage_merged()

2025-03-03 Thread Jani Nikula
On Sun, 02 Mar 2025, "Govindapillai, Vinod" wrote: > Hello drm maintainers, > > Could you please Ack this patch to get this merged through drm-intel-next.. >From IRC last week, Acked-by: Thomas Zimmermann > > Thanks > Vinod > > On Fri, 2025-02-28 at 11:37 +0200, Vinod Govindapillai wrote: >>

[PATCH v5 8/8] drm/i915/lobf: Add debug print for LOBF

2025-03-03 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 --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH v5 4/8] drm/i915/lobf: Update lobf if any change in dependent parameters

2025-03-03 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] Signed-off-by: Animesh Manna --- drivers/gpu/drm

[PATCH v5 6/8] drm/i915/lobf: Check for sink error and disable LOBF

2025-03-03 Thread Animesh Manna
Disable LOBF/ALPM for any erroneous condition from sink side. v1: Initial version. v2: Add centralized alpm error handling. [Jouni] Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 25 +++ drivers/gpu/drm/i915/display/intel_alpm.h | 1 + drivers/

[PATCH v5 7/8] drm/i915/lobf: Add mutex for alpm update

2025-03-03 Thread Animesh Manna
The ALPM_CTL can be updated from different context, so add mutex to sychonize the update. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 19 +-- drivers/gpu/drm/i915/display/intel_alpm.h | 6 -- drivers/gpu/drm/i915/display/intel_ddi.c

[PATCH v5 5/8] drm/i915/lobf: Add debug interface for lobf

2025-03-03 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 v5 2/8] drm/i915/lobf: Disintegrate alpm_disable from psr_disable

2025-03-03 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 --- d

[PATCH v5 1/8] drm/i915/lobf: Add lobf enablement in post plane update

2025-03-03 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

Re: [PATCH v8 01/14] drm: Define histogram structures exposed to user

2025-03-03 Thread Murthy, Arun R
On 20-02-2025 21:56, Dmitry Baryshkov wrote: On Tue, Feb 18, 2025 at 11:13:39AM +0530, Murthy, Arun R wrote: On 17-02-2025 15:38, Pekka Paalanen wrote: Hi Arun, this whole series seems to be missing all the UAPI docs for the DRM ReST files, e.g. drm-kms.rst. The UAPI header doc comments are no