RE: [v6 1/3] drm: Add drm_vblank_work_flush_all().

2024-05-28 Thread Shankar, Uma
> -Original Message- > From: Intel-xe On Behalf Of Maarten > Lankhorst > Sent: Wednesday, May 22, 2024 11:04 AM > To: intel-gfx@lists.freedesktop.org > Cc: intel...@lists.freedesktop.org; Maarten Lankhorst > ; Borah, Chaitanya Kumar > > Subject: [v6 1/3] drm: Add drm_vblank_work_flush_

[core-for-CI PATCH] Revert "igc: fix a log entry using uninitialized netdev"

2024-05-28 Thread Jani Nikula
This reverts commit 86167183a17e03ec77198897975e9fdfbd53cb0b. The commit moved igc_ptp_init() which initializes spinlocks after igt_reset() which ends up using the adapter->ptp_tx_lock. Lockdep isn't happy: <3>[ 10.648947] INFO: trying to register non-static key. <3>[ 10.648950] The code is f

RE: [v6 2/3] drm/i915: Use vblank worker to unpin old legacy cursor fb safely

2024-05-28 Thread Shankar, Uma
> -Original Message- > From: Intel-xe On Behalf Of Maarten > Lankhorst > Sent: Wednesday, May 22, 2024 11:04 AM > To: intel-gfx@lists.freedesktop.org > Cc: intel...@lists.freedesktop.org; Ville Syrjälä > ; > Maarten Lankhorst > Subject: [v6 2/3] drm/i915: Use vblank worker to unpin old

RE: [v6 3/3] drm/i915: Use the same vblank worker for atomic unpin

2024-05-28 Thread Shankar, Uma
> -Original Message- > From: Intel-xe On Behalf Of Maarten > Lankhorst > Sent: Wednesday, May 22, 2024 11:04 AM > To: intel-gfx@lists.freedesktop.org > Cc: intel...@lists.freedesktop.org; Maarten Lankhorst > > Subject: [v6 3/3] drm/i915: Use the same vblank worker for atomic unpin > >

RE: [v6 0/3] Fix cursor FB unpinning.

2024-05-28 Thread Shankar, Uma
> -Original Message- > From: Intel-xe On Behalf Of Maarten > Lankhorst > Sent: Wednesday, May 22, 2024 11:04 AM > To: intel-gfx@lists.freedesktop.org > Cc: intel...@lists.freedesktop.org; Maarten Lankhorst > > Subject: [v6 0/3] Fix cursor FB unpinning. > > Hopefully last attempt. > Sma

RE: [PATCH 00/11] drm/i915: pass dev_priv explicitly to DIP regs

2024-05-28 Thread Jani Nikula
On Tue, 28 May 2024, "Borah, Chaitanya Kumar" wrote: >> -Original Message- >> From: Intel-gfx On Behalf Of Jani >> Nikula >> Sent: Monday, May 27, 2024 4:41 PM >> To: intel-gfx@lists.freedesktop.org >> Cc: Nikula, Jani >> Subject: [PATCH 00/11] drm/i915: pass dev_priv explicitly to DIP

RE: [PATCH 0/6] drm/i915/pps: pass dev_priv explicitly to PPS regs

2024-05-28 Thread Jani Nikula
On Tue, 28 May 2024, "Borah, Chaitanya Kumar" wrote: >> -Original Message- >> From: Intel-gfx On Behalf Of Jani >> Nikula >> Sent: Monday, May 27, 2024 4:12 PM >> To: intel-gfx@lists.freedesktop.org >> Cc: Nikula, Jani ; ville.syrj...@linux.intel.com >> Subject: [PATCH 0/6] drm/i915/pps:

[PATCH v1 0/1] WA for Re-initialize dispcnlunitt1 xosc clock

2024-05-28 Thread Mitul Golani
The dispcnlunit1_cp_xosc_clk should be de-asserted in display off and only asserted in display on. But during observation it found clk remains active in display OFF. As workaround, Display driver shall execute set-reset sequence at the end of the Initialize Sequence. Wa_15013987218 Mitul Golani (

[PATCH v1 1/1] drm/i915/display: WA for Re-initialize dispcnlunitt1 xosc clock

2024-05-28 Thread Mitul Golani
The dispcnlunit1_cp_xosc_clk should be de-asserted in display off and only asserted in display on. But during observation it found clk remains active in display OFF. As workaround, Display driver shall execute set-reset sequence at the end of the Initialize Sequence. Wa_15013987218 Signed-off-by:

✗ Fi.CI.CHECKPATCH: warning for Revert "igc: fix a log entry using uninitialized netdev"

2024-05-28 Thread Patchwork
== Series Details == Series: Revert "igc: fix a log entry using uninitialized netdev" URL : https://patchwork.freedesktop.org/series/134112/ State : warning == Summary == Error: dim checkpatch failed a37e219fcbae Revert "igc: fix a log entry using uninitialized netdev" -:16: WARNING:COMMIT_LOG

✗ Fi.CI.BAT: failure for Revert "igc: fix a log entry using uninitialized netdev"

2024-05-28 Thread Patchwork
== Series Details == Series: Revert "igc: fix a log entry using uninitialized netdev" URL : https://patchwork.freedesktop.org/series/134112/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14828 -> Patchwork_134112v1 Summary

Re: [PATCH v9 2/8] drm/i915: Update trans_vrr_ctl flag when cmrr is computed

2024-05-28 Thread Nautiyal, Ankit K
On 5/24/2024 3:54 PM, Mitul Golani wrote: Add/update trans_vrr_ctl flag when crtc_state->cmrr.enable is set, With this commit setting the stage for subsequent CMRR enablement. --v2: - Check pipe active state in cmrr enabling. [Jani] - Remove usage of bitwise OR on booleans. [Jani] - Revert unr

RE: [core-for-CI PATCH] Revert "igc: fix a log entry using uninitialized netdev"

2024-05-28 Thread Borah, Chaitanya Kumar
> -Original Message- > From: Intel-gfx On Behalf Of Jani > Nikula > Sent: Tuesday, May 28, 2024 1:16 PM > To: intel-gfx@lists.freedesktop.org > Cc: Nikula, Jani > Subject: [core-for-CI PATCH] Revert "igc: fix a log entry using uninitialized > netdev" > > This reverts commit 86167183a1

Re: [PATCH v9 3/8] drm/i915: Compute CMRR and calculate vtotal

2024-05-28 Thread Nautiyal, Ankit K
On 5/24/2024 3:54 PM, Mitul Golani wrote: Compute Fixed Average Vtotal/CMRR with resepect to userspace VRR enablement. Also calculate required parameters in case of CMRR is enabled. During intel_vrr_compute_config, CMRR is getting enabled based on userspace has enabled Variable refresh mode wi

Re: [PATCH v9 4/8] Add refresh rate divider to struct representing AS SDP

2024-05-28 Thread Nautiyal, Ankit K
On 5/24/2024 3:54 PM, Mitul Golani wrote: Add target_rr_divider to structure representing AS SDP. It is valid only in FAVT mode, sink device ignores the bit in AVT mode. Add prefix : drm/dp, also need to send to dri-devel. Regards, Ankit Signed-off-by: Mitul Golani Reviewed-by: Arun R

Re: [PATCH v9 5/8] drm/i915/display: Add support for pack and unpack

2024-05-28 Thread Nautiyal, Ankit K
On 5/24/2024 3:54 PM, Mitul Golani wrote: Add support of pack and unpack for target_rr_divider. --v2: - Set Target Refresh Rate Divider bit when related AS SDP bit is set (Ankit). Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_dp.c | 4 1 file changed, 4 insertion

Re: ✗ Fi.CI.BAT: failure for Revert "igc: fix a log entry using uninitialized netdev"

2024-05-28 Thread Jani Nikula
On Tue, 28 May 2024, Patchwork wrote: > == Series Details == > > Series: Revert "igc: fix a log entry using uninitialized netdev" > URL : https://patchwork.freedesktop.org/series/134112/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_14828 -> Patchwork_134112v1 > ==

Re: [PATCH v9 6/8] drm/i915/display: Compute Adaptive sync SDP params

2024-05-28 Thread Nautiyal, Ankit K
On 5/24/2024 3:54 PM, Mitul Golani wrote: Compute params for Adaptive Sync SDP when Fixed Average Vtotal mode is enabled. Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_dp.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/g

[PATCH] drm/i915/display: update handling of FBC when VT-d active workaround

2024-05-28 Thread Vinod Govindapillai
Move the handling of the disabling FBC when VT-d is active wa as part of the intel_fbc_check_plane() Bspec: 21664 Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_fbc.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/drivers/gp

Re: [PATCH] drm/i915/display: update handling of FBC when VT-d active workaround

2024-05-28 Thread Jani Nikula
On Tue, 28 May 2024, Vinod Govindapillai wrote: > Move the handling of the disabling FBC when VT-d is active wa > as part of the intel_fbc_check_plane() I can see that from the code. The commit message must answer the question "why". BR, Jani. > > Bspec: 21664 > Signed-off-by: Vinod Govindapil

✗ Fi.CI.CHECKPATCH: warning for Fix cursor FB unpinning. (rev2)

2024-05-28 Thread Patchwork
== Series Details == Series: Fix cursor FB unpinning. (rev2) URL : https://patchwork.freedesktop.org/series/133896/ State : warning == Summary == Error: dim checkpatch failed a371966b2783 drm: Add drm_vblank_work_flush_all(). -:11: WARNING:BAD_SIGN_OFF: 'Co-developed-by:' is the preferred sign

✗ Fi.CI.SPARSE: warning for Fix cursor FB unpinning. (rev2)

2024-05-28 Thread Patchwork
== Series Details == Series: Fix cursor FB unpinning. (rev2) URL : https://patchwork.freedesktop.org/series/133896/ 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: war

RE: [PATCH] drm/i915/hdcp: Fix IS_METEORLAKE usage for HDCP line rekeying

2024-05-28 Thread Bhadane, Dnyaneshwar
> -Original Message- > From: Intel-gfx On Behalf Of Suraj > Kandpal > Sent: Monday, May 27, 2024 10:51 AM > To: intel-gfx@lists.freedesktop.org > Cc: Borah, Chaitanya Kumar ; Roper, > Matthew D ; Kandpal, Suraj > > Subject: [PATCH] drm/i915/hdcp: Fix IS_METEORLAKE usage for HDCP line >

[PATCH v2] drm/i915/display: update handling of FBC when VT-d active workaround

2024-05-28 Thread Vinod Govindapillai
Move the handling of the disabling FBC when VT-d is active wa as part of the intel_fbc_check_plane(). As the hw is still there, intel_fbc_sanitize should be able to handle the state properly. v2: update the patch description (Jani Nikula) Bspec: 21664 Suggested-by: Ville Syrjälä Signed-off-by: V

✓ Fi.CI.BAT: success for Fix cursor FB unpinning. (rev2)

2024-05-28 Thread Patchwork
== Series Details == Series: Fix cursor FB unpinning. (rev2) URL : https://patchwork.freedesktop.org/series/133896/ State : success == Summary == CI Bug Log - changes from CI_DRM_14829 -> Patchwork_133896v2 Summary --- **SUCCESS**

RE: [PATCH v6 3/6] drm/display: Add missing aux less alpm wake related bits

2024-05-28 Thread Manna, Animesh
+ drm-core maintainer Hi, Could you please have a look and ack this patch. Received r-b from Jouni on 0th patch for the whole patch series. Regards, Animesh > -Original Message- > From: Intel-gfx On Behalf Of > Animesh Manna > Sent: Monday, May 27, 2024 1:57 PM > To: intel-gfx@lists.

Re: [PATCH 3/9] drm/i915: Introduce plane->min_alignment() vfunc

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:36PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Different hardware generations have different scanout alignment > requirements. Introduce a new vfunc that will allow us to > make that distinction without horrible if-ladders. > > For now we directly plug i

RE: [PATCH v1 1/1] drm/i915/display: WA for Re-initialize dispcnlunitt1 xosc clock

2024-05-28 Thread Garg, Nemesa
> -Original Message- > From: Intel-gfx On Behalf Of Mitul > Golani > Sent: Tuesday, May 28, 2024 1:48 PM > To: intel-gfx@lists.freedesktop.org > Subject: [PATCH v1 1/1] drm/i915/display: WA for Re-initialize dispcnlunitt1 > xosc > clock > > The dispcnlunit1_cp_xosc_clk should be de-ass

RE: [PATCH v1 1/1] drm/i915/display: WA for Re-initialize dispcnlunitt1 xosc clock

2024-05-28 Thread Garg, Nemesa
> -Original Message- > From: Garg, Nemesa > Sent: Tuesday, May 28, 2024 4:23 PM > To: Mitul Golani ; intel- > g...@lists.freedesktop.org > Subject: RE: [PATCH v1 1/1] drm/i915/display: WA for Re-initialize > dispcnlunitt1 > xosc clock > > > > -Original Message- > > From: Intel

Re: [PATCH v6 3/6] drm/display: Add missing aux less alpm wake related bits

2024-05-28 Thread mrip...@kernel.org
On Tue, May 28, 2024 at 10:04:06AM GMT, Manna, Animesh wrote: > + drm-core maintainer > > Hi, > > Could you please have a look and ack this patch. > Received r-b from Jouni on 0th patch for the whole patch series. Acked-by: Maxime Ripard Maxime signature.asc Description: PGP signature

[PATCH 0/5] drm/i915: DP AUX CH macro cleanups

2024-05-28 Thread Jani Nikula
Jani Nikula (5): drm/i915/gvt: use proper macros for DP AUX CH CTL registers drm/i915: remove unused DP AUX CH register macros drm/i915: rearrange DP AUX register macros drm/i915: move PCH DP AUX CH regs to intel_dp_aux_regs.h drm/i915: remove intermediate _PCH_DP_* macros .../gpu/drm/i

[PATCH 1/5] drm/i915/gvt: use proper macros for DP AUX CH CTL registers

2024-05-28 Thread Jani Nikula
Use the proper helpers for DP AUX CH CTL registers, instead of reinventing the wheels. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gvt/handlers.c | 35 ++--- drivers/gpu/drm/i915/intel_gvt_mmio_table.c | 8 ++--- 2 files changed, 20 insertions(+), 23 deletions(-)

[PATCH 2/5] drm/i915: remove unused DP AUX CH register macros

2024-05-28 Thread Jani Nikula
The intermediate macros are no longer needed. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index be57812a6b07..989cc5691490 100644 --- a/drivers/

[PATCH 3/5] drm/i915: rearrange DP AUX register macros

2024-05-28 Thread Jani Nikula
Follow the recommended style for grouping register macros. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp_aux_regs.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux_regs.h b/drivers/gpu/drm/i915/displ

[PATCH 4/5] drm/i915: move PCH DP AUX CH regs to intel_dp_aux_regs.h

2024-05-28 Thread Jani Nikula
Move the macros where they belong. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_dp_aux_regs.h | 8 drivers/gpu/drm/i915/i915_reg.h | 7 --- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux_

[PATCH 5/5] drm/i915: remove intermediate _PCH_DP_* macros

2024-05-28 Thread Jani Nikula
The intermediate macros are unused. Remove them. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_reg.h | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 06e41afd5c4e..6877e2f0fbc3 10064

Re: [PATCH v2] drm/i915/display: update handling of FBC when VT-d active workaround

2024-05-28 Thread Jani Nikula
On Tue, 28 May 2024, Vinod Govindapillai wrote: > Move the handling of the disabling FBC when VT-d is active wa > as part of the intel_fbc_check_plane(). As the hw is still there, > intel_fbc_sanitize should be able to handle the state properly. > > v2: update the patch description (Jani Nikula) >

Re: [PATCH v2] drm/i915/display: update handling of FBC when VT-d active workaround

2024-05-28 Thread Govindapillai, Vinod
On Tue, 2024-05-28 at 14:19 +0300, Jani Nikula wrote: > On Tue, 28 May 2024, Vinod Govindapillai > wrote: > > Move the handling of the disabling FBC when VT-d is active wa > > as part of the intel_fbc_check_plane(). As the hw is still there, > > intel_fbc_sanitize should be able to handle the sta

✓ Fi.CI.BAT: success for WA for Re-initialize dispcnlunitt1 xosc clock

2024-05-28 Thread Patchwork
== Series Details == Series: WA for Re-initialize dispcnlunitt1 xosc clock URL : https://patchwork.freedesktop.org/series/134114/ State : success == Summary == CI Bug Log - changes from CI_DRM_14831 -> Patchwork_134114v1 Summary ---

Re: [PATCH 4/9] drm/i915: Introduce fb->min_alignment

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:37PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Different planes could have different alignment requirements > even for the same format/modifier. Collect the alignment > requirements across all planes capable of scanning out the > fb such that the alignmen

[PATCH 0/2] drm/i915: prevent some static analyzer warnings

2024-05-28 Thread Luca Coelho
Hi, Here's a couple of patches to prevent some static analyzer warnings. They are not really an issue as is, but with these two patches the code will be cleaner and a bit safer, while at the same time silencing these warnings. Plese review. Cheers, Luca. Luca Coelho (2): drm/i915/bios: doubl

[PATCH 1/2] drm/i915/bios: double check array-boundary in parse_sdvo_lvds_data

2024-05-28 Thread Luca Coelho
During static analysis, a concern was raised that we may access the dtd->dtd[] array out of bounds, because we are not checking whether the index we use is larger than the array. This should not be a problem as is, because the enumeration that is used for this index comes from "panel_type", which

[PATCH 2/2] drm/i915: move uapi.event outside spinlock in intel_crtc_vblank_work

2024-05-28 Thread Luca Coelho
In intel_crtc_vblank_work(), we access uapi.event before grabbing the event_lock spinlock, but modify it inside the spinlock block. This causes some static analyzers to get confused and issue a warning. The uapi.event value is not protected by the event_lock, so we can safely move it out of the p

Re: [PATCH 4/9] drm/i915: Introduce fb->min_alignment

2024-05-28 Thread Imre Deak
On Tue, May 28, 2024 at 02:27:58PM +0300, Imre Deak wrote: > [...] > > +} > > + > > static unsigned int > > intel_plane_fb_min_alignment(const struct intel_plane_state *plane_state) > > { > > struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); > > - const struct drm_frameb

Re: [PATCH 5/9] drm/i915: Split cursor alignment to per-platform vfuncs

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:38PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Split intel_cursor_alignment() into per-platform variants. > > Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak > --- > drivers/gpu/drm/i915/display/intel_cursor.c | 40 +++-- > drive

[PATCH 0/5] Panel Replay eDP debugfs support

2024-05-28 Thread Jouni Högander
This is a subset of Panel Replay eDP patch set (https://patchwork.freedesktop.org/series/133684). This contains debugfs changes and is supposed to be safe to be merged alone Sending here to get CI result for this subset before merging. Jouni Högander (5): drm/i915/psr: Store pr_dpcd in intel_dp

[PATCH 1/5] drm/i915/psr: Store pr_dpcd in intel_dp

2024-05-28 Thread Jouni Högander
We need pr_dpcd contents for early transport validity check on eDP Panel Replay and in debugfs interface to dump out panel early transport capability. Also remove unnecessarily printing out "Panel replay is not supported by panel" v2: commit message modified Signed-off-by: Jouni Högander Reviewe

[PATCH 2/5] drm/panel replay: Add edp1.5 Panel Replay bits and register

2024-05-28 Thread Jouni Högander
Add PANEL_REPLAY_CONFIGURATION_2 register and some missing Panel Replay bits. Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna Acked-by: Maxime Ripard --- include/drm/display/drm_dp.h | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/include/drm/disp

[PATCH 4/5] drm/i915/psr: Move printing PSR mode to own function

2024-05-28 Thread Jouni Högander
intel_psr_status has grown and is about to grow even. Let's split it a bit and move printing PSR mode to an own function. v2: s/intel_psr_psr_mode/intel_psr_print_mode/ Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_psr.c | 26 --

[PATCH 5/5] drm/i915/psr: modify psr status debugfs to support eDP Panel Replay

2024-05-28 Thread Jouni Högander
Some PSR2_CTL bits are applicable for eDP panel replay as well. Dump this register for eDP Panel Replay as well. Bspec: 68920 Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_psr.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-)

[PATCH 3/5] drm/i915/psr: Move printing sink PSR support to own function

2024-05-28 Thread Jouni Högander
intel_psr_status has grown and is about to grow even. Let's split it a bit and move printing sink psr support to an own function. Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_psr.c | 22 +++--- 1 file changed, 15 insertions(+),

[PATCH v3] drm/i915/display: update handling of FBC when VT-d active workaround

2024-05-28 Thread Vinod Govindapillai
Move the handling of the disabling FBC when VT-d is active wa as part of the intel_fbc_check_plane(). As the hw is still there, intel_fbc_sanitize should be able to handle the state properly. v2: update the patch description (Jani Nikula) v3: fix the return value in wa handling (Jani Nikula) Bsp

✗ Fi.CI.BAT: failure for drm/i915/display: update handling of FBC when VT-d active workaround (rev2)

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915/display: update handling of FBC when VT-d active workaround (rev2) URL : https://patchwork.freedesktop.org/series/134117/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14831 -> Patchwork_134117v2 ==

Re: [PATCH 6/9] drm/i915: Split pre-skl platforms out from intel_surf_alignment()

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:39PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Extract the necessary chunks from intel_surf_alignment() > into per-platform variants for all pre-skl primary/sprite > planes. > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display/i9xx_pla

Re: [PATCH 7/9] drm/i915: Move intel_surf_alignment() into skl_univerals_plane.c

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:40PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Now that all pre-skl platforms have their own .min_alignment() > functions the remainder of intel_surf_alignment() can be hoisted > into skl_univerals_plane.c (and renamed appropriately). > > Signed-off-by:

✗ Fi.CI.CHECKPATCH: warning for drm/i915: DP AUX CH macro cleanups

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915: DP AUX CH macro cleanups URL : https://patchwork.freedesktop.org/series/134123/ State : warning == Summary == Error: dim checkpatch failed ca25b65c7605 drm/i915/gvt: use proper macros for DP AUX CH CTL registers f1103051a69e drm/i915: remove unused DP AUX

✓ Fi.CI.BAT: success for drm/i915: DP AUX CH macro cleanups

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915: DP AUX CH macro cleanups URL : https://patchwork.freedesktop.org/series/134123/ State : success == Summary == CI Bug Log - changes from CI_DRM_14831 -> Patchwork_134123v1 Summary --- **SUCCESS**

Lockdep annotation introduced warn in VMD driver

2024-05-28 Thread Imre Deak
Hi, commit 7e89efc6e9e402839643cb297bab14055c547f07 Author: Dave Jiang Date: Thu May 2 09:57:31 2024 -0700 PCI: Lock upstream bridge for pci_reset_function() introduced the WARN below in the VMD driver, see [1] for the full log. Not sure if the annotation is incorrect or the VMD driver is

✗ Fi.CI.SPARSE: warning for drm/i915: prevent some static analyzer warnings

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915: prevent some static analyzer warnings URL : https://patchwork.freedesktop.org/series/134124/ 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/bit

✓ Fi.CI.BAT: success for drm/i915: prevent some static analyzer warnings

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915: prevent some static analyzer warnings URL : https://patchwork.freedesktop.org/series/134124/ State : success == Summary == CI Bug Log - changes from CI_DRM_14831 -> Patchwork_134124v1 Summary ---

Re: [PATCH v3 02/20] drm/panel replay: Add edp1.5 Panel Replay bits and register

2024-05-28 Thread Maarten Lankhorst
Acked-by: Maarten Lankhorst Den 2024-05-27 kl. 09:22, skrev Jouni Högander: Add PANEL_REPLAY_CONFIGURATION_2 register and some missing Panel Replay bits. Signed-off-by: Jouni Högander --- include/drm/display/drm_dp.h | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-)

Re: [PATCH 8/9] drm/i915: Update plane alignment requirements for TGL+

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:41PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Currently we still use the SKL+ PLANE_SURF alignment even > for TGL+ even though the hardware no longer needs it. > Introduce a separate tgl_plane_min_alignment() and update > it to more accurately reflect th

Re: [linux-next:master] BUILD REGRESSION 124cfbcd6d185d4f50be02d5f5afe61578916773

2024-05-28 Thread Björn Töpel
kernel test robot writes: > tree/branch: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: 124cfbcd6d185d4f50be02d5f5afe61578916773 Add linux-next > specific files for 20240521 [...] > Error/Warning ids grouped by kconfigs: > > gcc_recent_errors [..

Re: [PATCH v3 2/3] drm/panel/lg-sw43408: select CONFIG_DRM_DISPLAY_DP_HELPER

2024-05-28 Thread Marijn Suijten
On 2024-05-22 09:25:54, Dmitry Baryshkov wrote: > This panel driver uses DSC PPS functions and as such depends on the > DRM_DISPLAY_DP_HELPER. Select this symbol to make required functions Here and in the title: maybe this is a remnant from v2, but you split out a DRM_DISPLAY_DSC_HELPER and should

Re: [PATCH 9/9] drm/i915: Nuke the TGL+ chroma plane tile row alignment stuff

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:42PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > I don't think the display hardware really has such chroma > plane tile row alignment requirements as outlined in > commit d156135e6a54 ("drm/i915/tgl: Make sure a semiplanar > UV plane is tile row size aligne

✗ Fi.CI.SPARSE: warning for Panel Replay eDP debugfs support

2024-05-28 Thread Patchwork
== Series Details == Series: Panel Replay eDP debugfs support URL : https://patchwork.freedesktop.org/series/134125/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[PATCH 00/12] drm/i915: mem/fsb/rawclk freq cleanups

2024-05-28 Thread Jani Nikula
This is a rewitten version of [1]. I think it's good progress overall though there are still minor issues here and there. BR, Jani. [1] https://lore.kernel.org/all/20240408172315.3418692-1-jani.nik...@intel.com/ Jani Nikula (12): drm/i915/wm: rename intel_get_cxsr_latency -> pnv_get_cxsr_late

[PATCH 02/12] drm/i915/wm: clarify logging on not finding CxSR latency config

2024-05-28 Thread Jani Nikula
Clarify and unify the logging on not finding PNV CxSR latency config. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/i9xx_wm.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/display/i9xx_wm.c b/drivers/gpu/drm/i915/displa

[PATCH 03/12] drm/i915/dram: separate fsb freq detection from mem freq

2024-05-28 Thread Jani Nikula
To simplify further changes, add separate functions for reading the fsb frequency. This ends up reading CLKCFG register twice, but it's not a big deal. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/soc/intel_dram.c | 106 +++--- 1 file changed, 60 insertions(+), 46 del

[PATCH 01/12] drm/i915/wm: rename intel_get_cxsr_latency -> pnv_get_cxsr_latency

2024-05-28 Thread Jani Nikula
Clarify that the function is specific to PNV, making subsequent changes slightly easier to grasp. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/i9xx_wm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/i9xx_wm.c b/drivers/gpu/

[PATCH 04/12] drm/i915/dram: split out pnv DDR3 detection

2024-05-28 Thread Jani Nikula
Split out the PNV DDR3 detection to a distinct step instead of conflating it with mem freq detection. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/soc/intel_dram.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/soc/intel_dram.c b/dri

[PATCH 05/12] drm/i915/dram: rearrange mem freq init

2024-05-28 Thread Jani Nikula
Follow the same style in mem freq init as in fsb freq init, returning the value instead of assigning in multiple places. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/soc/intel_dram.c | 59 --- 1 file changed, 25 insertions(+), 34 deletions(-) diff --git a/drivers/

[PATCH 06/12] drm/i915: convert fsb_freq and mem_freq to kHz

2024-05-28 Thread Jani Nikula
We'll want to use fsb frequency for deriving GT clock and rawclk frequencies in the future. Increase the accuracy by converting to kHz. Do the same for mem freq to be aligned. Round the frequencies ending in 666 to 667. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/i9xx_wm.c | 6

[PATCH 07/12] drm/i915: extend the fsb_freq initialization to more platforms

2024-05-28 Thread Jani Nikula
Initialize fsb frequency for more platforms to be able to use it for GT clock and rawclk frequency initialization. Note: There's a discrepancy between existing pnv_fsb_freq() and i9xx_hrawclk() regarding CLKCFG interpretation. Presume all PNV is mobile. FIXME: What should the default or failure m

[PATCH 08/12] drm/i915: use i9xx_fsb_freq() for GT clock frequency

2024-05-28 Thread Jani Nikula
Reuse i9xx_fsb_freq() for GT clock frequency initialization instead of depending on rawclk_freq. Note: If the init order was changed, we could use i915->fsb_freq directly. However, GT clock initialization is done in i915_driver_mmio_probe(), but intel_dram_detect() later in i915_driver_hw_probe(),

[PATCH 09/12] drm/i915/cdclk: use i9xx_fsb_freq() for rawclk_freq initialization

2024-05-28 Thread Jani Nikula
Instead of duplicating the CLKCFG parsing, reuse i9xx_fsb_freq() to figure out rawclk_freq where applicable. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_cdclk.c | 46 ++ 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/drivers/gpu/drm/i915/

[PATCH 10/12] drm/i915: move rawclk init to intel_cdclk_init()

2024-05-28 Thread Jani Nikula
The rawclk initialization is a bit out of place in intel_device_info_runtime_init(). Move it to intel_cdclk_init(), with a bit of refactoring on intel_read_rawclk(). Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_cdclk.c | 23 +++--- drivers/gpu/drm/i915/displa

[PATCH 11/12] drm/i915: move rawclk from runtime to display runtime info

2024-05-28 Thread Jani Nikula
It's mostly about display, so move it under display. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_backlight.c | 10 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +- drivers/gpu/drm/i915/display/intel_display_device.c| 2 ++ drivers/gpu/

[PATCH 12/12] drm/xe/display: drop unused rawclk_freq and RUNTIME_INFO()

2024-05-28 Thread Jani Nikula
With rawclk_freq moved to display runtime info, xe has no users left for them. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 1 - drivers/gpu/drm/xe/xe_device_types.h | 6 -- 2 files changed, 7 deletions(-) diff --git a/drivers/gpu/drm/xe/co

✓ Fi.CI.BAT: success for Panel Replay eDP debugfs support

2024-05-28 Thread Patchwork
== Series Details == Series: Panel Replay eDP debugfs support URL : https://patchwork.freedesktop.org/series/134125/ State : success == Summary == CI Bug Log - changes from CI_DRM_14833 -> Patchwork_134125v1 Summary --- **SUCCESS**

Re: Lockdep annotation introduced warn in VMD driver

2024-05-28 Thread Dave Jiang
On 5/28/24 5:36 AM, Imre Deak wrote: > Hi, > > commit 7e89efc6e9e402839643cb297bab14055c547f07 > Author: Dave Jiang > Date: Thu May 2 09:57:31 2024 -0700 > > PCI: Lock upstream bridge for pci_reset_function() > > introduced the WARN below in the VMD driver, see [1] for the full log. >

✓ Fi.CI.BAT: success for drm/i915/display: update handling of FBC when VT-d active workaround (rev3)

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915/display: update handling of FBC when VT-d active workaround (rev3) URL : https://patchwork.freedesktop.org/series/134117/ State : success == Summary == CI Bug Log - changes from CI_DRM_14834 -> Patchwork_134117v3 ==

✗ Fi.CI.SPARSE: warning for drm/i915: mem/fsb/rawclk freq cleanups

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915: mem/fsb/rawclk freq cleanups URL : https://patchwork.freedesktop.org/series/134145/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

✓ Fi.CI.BAT: success for drm/i915: mem/fsb/rawclk freq cleanups

2024-05-28 Thread Patchwork
== Series Details == Series: drm/i915: mem/fsb/rawclk freq cleanups URL : https://patchwork.freedesktop.org/series/134145/ State : success == Summary == CI Bug Log - changes from CI_DRM_14835 -> Patchwork_134145v1 Summary --- **SUCCE

Re: [PATCH v2] drm/i915: Increase FLR timeout from 3s to 9s

2024-05-28 Thread Rodrigo Vivi
On Mon, May 27, 2024 at 04:00:25PM +0100, Andi Shyti wrote: > On Mon, May 27, 2024 at 11:47:49AM +0100, Andi Shyti wrote: > > On Fri, May 24, 2024 at 10:07:44AM -0400, Rodrigo Vivi wrote: > > > On Fri, May 24, 2024 at 01:58:53AM +0200, Andi Shyti wrote: > > > > Following the guidelines it takes 3 s

Re: [PATCH 2/2] drm/i915: move uapi.event outside spinlock in intel_crtc_vblank_work

2024-05-28 Thread Rodrigo Vivi
On Tue, May 28, 2024 at 02:29:01PM +0300, Luca Coelho wrote: > In intel_crtc_vblank_work(), we access uapi.event before grabbing the > event_lock spinlock, but modify it inside the spinlock block. This > causes some static analyzers to get confused and issue a warning. > > The uapi.event value is

Re: [PATCH 1/2] drm/i915/bios: double check array-boundary in parse_sdvo_lvds_data

2024-05-28 Thread Rodrigo Vivi
On Tue, May 28, 2024 at 02:29:00PM +0300, Luca Coelho wrote: > During static analysis, a concern was raised that we may access the > dtd->dtd[] array out of bounds, because we are not checking whether > the index we use is larger than the array. > > This should not be a problem as is, because the

Re: [PATCH v3 1/3] drm/display: split DSC helpers from DP helpers

2024-05-28 Thread Jessica Zhang
On 5/21/2024 11:25 PM, Dmitry Baryshkov wrote: Currently the DRM DSC functions are selected by the DRM_DISPLAY_DP_HELPER Kconfig symbol. This is not optimal, since the DSI code (both panel and host drivers) end up selecting the seemingly irrelevant DP helpers. Split the DSC code to be guarded

[linux-next:master] BUILD REGRESSION 6dc544b66971c7f9909ff038b62149105272d26a

2024-05-28 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 6dc544b66971c7f9909ff038b62149105272d26a Add linux-next specific files for 20240528 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202405282036.maedo54q-...@intel.com https

[PATCH 1/3] drm/i915/cdclk: Plumb the full atomic state deeper

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä Various parts of the cdclk code need access the full atomic state. Currently it's being dug out via the cdclk_state->base.state pointer, which is not great as that pointer isn't always valid. Instead plumb the full atomic state from the top so that it's clear that it is in fac

[PATCH 2/3] drm/i915: Plumb the full atomic state into icl_check_nv12_planes()

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä icl_check_nv12_planes() needs the full atomic state. Instead of digging that out from dubious sources plumb it in explicitly. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) dif

[PATCH 3/3] drm/i915: Plumb the full atomic state into skl_ddb_add_affected_planes()

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä skl_ddb_add_affected_planes() needs the full atomic state. Instead of digging that out from dubious sources plumb it in explicitly. The wm counterpart (skl_wm_add_affected_planes()) already does things in the proper way. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i91

[PATCH 0/7] drm/i915: Cleanups around scanline arithmetic

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä A few cleanups around parts what deal with scanline numbers. Ville Syrjälä (7): drm/i915: Reuse intel_mode_vblank_start() drm/i915: Extract intel_mode_vblank_end() drm/i915: Extract intel_mode_vtotal() drm/i915: Simplify scanline_offset handling for gen2 drm/i915: M

[PATCH 1/7] drm/i915: Reuse intel_mode_vblank_start()

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä Replace a few hand rolled copies of intel_mode_vblank_start() with the real thing. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dsb.c| 10 +++--- drivers/gpu/drm/i915/display/intel_vblank.c | 9 +++-- drivers/gpu/drm/i915/display/intel_vb

[PATCH 3/7] drm/i915: Extract intel_mode_vtotal()

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä We have several copies of code calculating the hardware's idea of vtotal. Pull that to a helper, similar to intel_mode_vblank_{start,end}(). Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_vblank.c | 40 + drivers/gpu/drm/i915/display

[PATCH 4/7] drm/i915: Simplify scanline_offset handling for gen2

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä Currently intel_crtc_scanline_offset() is careful to always return a positive offset. That is not actually necessary as long as we take care of negative values when applying the offset in __intel_get_crtc_scanline(). This simplifies intel_crtc_scanline_offset(), and makes the

[PATCH 5/7] drm/i915: Move intel_crtc_scanline_offset()

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä I want to use intel_crtc_scanline_offset() in intel_crtc_scanline_to_hw(). Relocate intel_crtc_scanline_offset() a bit to avoid a forward declaration. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_vblank.c | 76 ++--- 1 file changed, 38

[PATCH 2/7] drm/i915: Extract intel_mode_vblank_end()

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä Extract intel_mode_vblank_end() in the same vein as intel_mode_vblank_start(). While we have only one use of this it seems nicer to unify the approach. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_vblank.c | 16 drivers/gpu/drm/i915/d

[PATCH 7/7] drm/i915/dsb: Convert dewake_scanline to a hw scanline number earlier

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä Currently we switch from out software idea of a scanline to the hw's idea of a scanline during the commit phase in _intel_dsb_commit(). While that is slightly easier due to fastsets fiddling with the timings, we'll also need to generate proper hw scanline numbers already when

[PATCH 6/7] drm/i915: Switch intel_usecs_to_scanlines() to 64bit maths

2024-05-28 Thread Ville Syrjala
From: Ville Syrjälä Dotclocks can reach ~1GHz these days, so intel_usecs_to_scanlines(), with its 32bit maths, is currently limited to a few milliseconds. I want bigger numbers in DSB selftests, so switch over to 64bit maths. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_

  1   2   >