Re: [PATCH 09/12] drm/i915: Use REG_BIT() & co. for BDW+ EU/slice fuse bits

2025-02-24 Thread Jani Nikula
On Mon, 24 Feb 2025, Andi Shyti wrote: > Hi Ville, > > On Wed, Feb 12, 2025 at 01:19:37AM +0200, Ville Syrjala wrote: >> From: Ville Syrjälä >> >> Convert the BDW+ EU/slice fuse bits to the modern REG_BIT()/etc. >> style. > > using REG_BIT() and co. doesn't alway make it more readable. In > some

[PATCH v7 3/3] drm/i915/display: Add i915 hook for format_mod_supported_async

2025-02-24 Thread Arun R Murthy
Hook up the newly added plane function pointer format_mod_supported_async to populate the modifiers/formats supported by asynchronous flips. v5: Correct the if condition for modifier support check (Chaitanya) v6: Replace uint32_t/uint64_t with u32/u64 (Jani) v7: Move plannar check from intel_async

[PATCH v7 2/3] drm/plane: modify create_in_formats to accommodate async

2025-02-24 Thread Arun R Murthy
create_in_formats creates the list of supported format/modifiers for synchronous flips, modify the same function so as to take the format_mod_supported as argument and create list of format/modifier for async as well. v5: create_in_formats can return -ve value in failure case, correct the if condi

[PATCH v7 1/3] drm/plane: Add new plane property IN_FORMATS_ASYNC

2025-02-24 Thread Arun R Murthy
There exists a property IN_FORMATS which exposes the plane supported modifiers/formats to the user. In some platforms when asynchronous flip are used all of modifiers/formats mentioned in IN_FORMATS are not supported. This patch adds a new plane property IN_FORMATS_ASYNC to expose the async flip su

RE: ✗ i915.CI.BAT: failure for drm/i915/gt: Add a delay to let engine resumes correctly

2025-02-24 Thread Ravali, JupallyX
Hi, https://patchwork.freedesktop.org/series/145327/ - Re-reported. i915.CI.BAT - Re-reported. Thanks, Ravali. From: I915-ci-infra On Behalf Of Gote, Nitin R Sent: 25 February 2025 11:49 To: i915-ci-in...@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org Subject: Re: ✗ i915.CI.BAT: f

✓ i915.CI.BAT: success for drm/i915/gt: Add a delay to let engine resumes correctly (rev2)

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/gt: Add a delay to let engine resumes correctly (rev2) URL : https://patchwork.freedesktop.org/series/145327/ State : success == Summary == CI Bug Log - changes from CI_DRM_16175 -> Patchwork_145327v2 S

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

2025-02-24 Thread Manna, Animesh
> -Original Message- > From: Nikula, Jani > Sent: Monday, February 24, 2025 4:18 PM > To: Manna, Animesh ; intel- > g...@lists.freedesktop.org; intel...@lists.freedesktop.org > Cc: Hogander, Jouni ; B, Jeevan > ; Manna, Animesh > Subject: Re: [PATCH v4 4/8] drm/i915/lobf: Update lobf i

Re: ✗ i915.CI.BAT: failure for drm/i915/gt: Add a delay to let engine resumes correctly

2025-02-24 Thread Gote, Nitin R
Hi, Changes introduced with this patch is not related to the below Possible regression or failure. Please update CBL filters and re-report. Thanks, Nitin From: Patchwork Sent: Monday, February 24, 2025 11:50 PM To: Gote, Nitin R Cc: intel-gfx@lists.freedesktop.

✗ i915.CI.BAT: failure for drm/i915/gt: Add a delay to let engine resumes correctly (rev2)

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/gt: Add a delay to let engine resumes correctly (rev2) URL : https://patchwork.freedesktop.org/series/145327/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16175 -> Patchwork_145327v2 S

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

2025-02-24 Thread kernel test robot
Hi Animesh, kernel test robot noticed the following build warnings: [auto build test WARNING on v6.14-rc4] [also build test WARNING on linus/master next-20250224] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

✗ i915.CI.BAT: failure for drm/dp: Fix link training interrupted by HPD pulse

2025-02-24 Thread Patchwork
== Series Details == Series: drm/dp: Fix link training interrupted by HPD pulse URL : https://patchwork.freedesktop.org/series/145352/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16175 -> Patchwork_145352v1 Summary --

✗ Fi.CI.SPARSE: warning for drm/dp: Fix link training interrupted by HPD pulse

2025-02-24 Thread Patchwork
== Series Details == Series: drm/dp: Fix link training interrupted by HPD pulse URL : https://patchwork.freedesktop.org/series/145352/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

✓ i915.CI.BAT: success for drm/i915: some GT register fixes and cleanups (rev3)

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915: some GT register fixes and cleanups (rev3) URL : https://patchwork.freedesktop.org/series/144683/ State : success == Summary == CI Bug Log - changes from CI_DRM_16174 -> Patchwork_144683v3 Summary

✓ i915.CI.BAT: success for drm/i915: Fix pipeDMC and ATS fault handling

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915: Fix pipeDMC and ATS fault handling URL : https://patchwork.freedesktop.org/series/145349/ State : success == Summary == CI Bug Log - changes from CI_DRM_16174 -> Patchwork_145349v1 Summary --- *

✗ Fi.CI.CHECKPATCH: warning for drm/i915: some GT register fixes and cleanups (rev3)

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915: some GT register fixes and cleanups (rev3) URL : https://patchwork.freedesktop.org/series/144683/ State : warning == Summary == Error: dim checkpatch failed 067f8029ba78 drm/i915: Bump RING_FAULT engine ID bits 97af3013b359 drm/i915: Relocate RING_FAULT b

✓ i915.CI.BAT: success for drm/i915/dp: Implement POST_LT_ADJ_REQ

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/dp: Implement POST_LT_ADJ_REQ URL : https://patchwork.freedesktop.org/series/145348/ State : success == Summary == CI Bug Log - changes from CI_DRM_16174 -> Patchwork_145348v1 Summary --- **SUCCE

✗ Fi.CI.SPARSE: warning for drm/i915/dp: Implement POST_LT_ADJ_REQ

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/dp: Implement POST_LT_ADJ_REQ URL : https://patchwork.freedesktop.org/series/145348/ 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 drm/i915/dp: Implement POST_LT_ADJ_REQ

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/dp: Implement POST_LT_ADJ_REQ URL : https://patchwork.freedesktop.org/series/145348/ State : warning == Summary == Error: dim checkpatch failed de7e728f1294 drm/dp: Add definitions for POST_LT_ADJ training sequence a2f2624751cc drm/dp: Add POST_LT_ADJ_REQ

✓ i915.CI.BAT: success for drm/i915: reduce display dependencies on core

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915: reduce display dependencies on core URL : https://patchwork.freedesktop.org/series/145341/ State : success == Summary == CI Bug Log - changes from CI_DRM_16172 -> Patchwork_145341v1 Summary ---

✗ Fi.CI.SPARSE: warning for drm/i915: reduce display dependencies on core

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915: reduce display dependencies on core URL : https://patchwork.freedesktop.org/series/145341/ 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 drm/i915: reduce display dependencies on core

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915: reduce display dependencies on core URL : https://patchwork.freedesktop.org/series/145341/ State : warning == Summary == Error: dim checkpatch failed ffecd381b7bf drm/i915: relocate intel_plane_ggtt_offset() to intel_atomic_plane.c ed8ba8b5e8ef drm/i915:

[PATCH 3/5] drm/i915/dp: Fix link training interrupted by a short HPD pulse

2025-02-24 Thread Imre Deak
During Display Port link training the handling of HPD pulses should be prevented, as that handling can interfere with the link training: - Accessing DPCD registers outside the range of link training registers are not allowed by the Standard (see DP Standard v2.1, 3.5.2.16.1, 3.6.6.1). The puls

[PATCH 4/5] drm/i915/dp: Queue a link check after link training is complete

2025-02-24 Thread Imre Deak
After link training - both in case of a passing and failing LT result - a work is scheduled to check the link state. This check should take place after the link training is completed by disabling the link training pattern and setting intel_dp::link_trained=true. Atm, the work is scheduled before th

[PATCH 1/5] drm/i915/hpd: Let an HPD pin be in the disabled state when handling missed IRQs

2025-02-24 Thread Imre Deak
After suspending and resuming the detection on connectors, HPD IRQs that arrived while the detection was suspended, are handled by scheduling the intel_hotplug::hotplug work for them. All HPD pins must be at this point in either the HPD_ENABLED (set for all pins during driver loading/system resumin

[PATCH 5/5] drm/i915/crt: Use intel_hpd_suspend/resume() instead of intel_hpd_disable/enable()

2025-02-24 Thread Imre Deak
intel_hpd_disable/enable() have the same purpose as intel_hpd_suspend/resume(), except that disable/enable will drop any HPD IRQs which were triggered while the HPD was disabled, while suspend/resume will handle such IRQs after the IRQ handling is resumed. Use intel_hpd_suspend/resume() for crt as

[PATCH 2/5] drm/i915/hpd: Add support for suspending the IRQ handling on an HPD pin

2025-02-24 Thread Imre Deak
Add support for suspending the IRQ handling on the HPD pin of a given encoder, handling IRQs that arrived while in the suspended state after resuming the IRQ handling. This will be used by a follow-up change, which suspends/resumes the IRQ handling around DP link training. This is similar to the i

[PATCH 0/5] drm/dp: Fix link training interrupted by HPD pulse

2025-02-24 Thread Imre Deak
This patchset fixes a problem during Display Port link training, where the link training is interrupted by a short HPD pulse generated by the sink. Generally the sink signals a bad link state via such short pulses, but the sink should prevent such signaling during link training. Some sinks do gene

✗ i915.CI.BAT: failure for LOBF enablement fix (rev4)

2025-02-24 Thread Patchwork
== Series Details == Series: LOBF enablement fix (rev4) URL : https://patchwork.freedesktop.org/series/141974/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16171 -> Patchwork_141974v4 Summary --- **FAILURE** Seri

[PULL] drm-xe-next

2025-02-24 Thread Lucas De Marchi
Hi Dave and Sima, Here is the first drm-xe-next pull for 6.15. There are some additional changes that we have in drm-xe-next that I decided to keep out for now and also others that we should be merging early this week. I will see how our CI goes with them before submitting second pull next week.

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

2025-02-24 Thread Patchwork
== Series Details == Series: LOBF enablement fix (rev4) URL : https://patchwork.freedesktop.org/series/141974/ State : warning == Summary == Error: dim checkpatch failed cfe3cb6e3c2c drm/i915/lobf: Add lobf enablement in post plane update 15bce8901a81 drm/i915/lobf: Disintegrate alpm_disable f

✗ i915.CI.BAT: failure for Use VRR timing generator for fixed refresh rate modes (rev10)

2025-02-24 Thread Patchwork
== Series Details == Series: Use VRR timing generator for fixed refresh rate modes (rev10) URL : https://patchwork.freedesktop.org/series/134383/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16171 -> Patchwork_134383v10 Su

✗ i915.CI.BAT: failure for drm/i915/gt: Add a delay to let engine resumes correctly

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/gt: Add a delay to let engine resumes correctly URL : https://patchwork.freedesktop.org/series/145327/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16171 -> Patchwork_145327v1 Summary

✗ Fi.CI.SPARSE: warning for Use VRR timing generator for fixed refresh rate modes (rev10)

2025-02-24 Thread Patchwork
== Series Details == Series: Use VRR timing generator for fixed refresh rate modes (rev10) URL : https://patchwork.freedesktop.org/series/134383/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +./arch/x86/i

[PATCH 1/9] drm/dp: Add definitions for POST_LT_ADJ training sequence

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä Add the bit definitions needed for POST_LT_ADJ sequence. Signed-off-by: Ville Syrjälä --- include/drm/display/drm_dp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/drm/display/drm_dp.h b/include/drm/display/drm_dp.h index c413ef68f9a3..260948a8f550 100644

✗ i915.CI.BAT: failure for drm/i915/hdcp: switch to guard and scoped guard for mutexes

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/hdcp: switch to guard and scoped guard for mutexes URL : https://patchwork.freedesktop.org/series/145326/ State : failure == Summary == CI Bug Log - changes from CI_DRM_16171 -> Patchwork_145326v1 Summa

[PATCH] drm/i915: Fix pipeDMC and ATS fault handling

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä The fault handler is supposed to return true when it handles the fault. The pipeDMC and ATS handlers are returning false instead which results in the "unreported faults" WARN triggering when it shouldn't. Fixes: f13011a7 ("drm/i915: Pimp display fault reporting") Signed-o

[PATCH 5/9] drm/i915/dp: Implement the POST_LT_ADJ_REQ sequence

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä Implement the POST_LT_ADJ_REQ sequence, which should be used to further fine tune the link if TPS4 is not supported. The POST_LT_ADJ_REQ sequence will be performed after the normal link training has succeeded. Only the final hop between the last LTTPR and DPRX will perform th

[PATCH 9/9] hax: drm/i915: Disable TPS4 support to force POST_LT_ADJ_REQ usage

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä Disable TPS4 in favor of POST_LT_ADJ_REQ for testing purposes. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp_link_training.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/

[PATCH 8/9] drm/i915/dp: Make .set_idle_link_train() mandatory

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä Everyone implements the .set_idle_link_train() hook now. Just make it mandatory. Signed-off-by: Ville Syrjälä --- .../gpu/drm/i915/display/intel_dp_link_training.c| 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/displ

[PATCH 4/9] drm/i915/dp: Have intel_dp_get_adjust_train() tell us if anything changed

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä In order to implement the POST_LT_ADJ_REQ sequence we need to know whether the sink actually requested a changed to the vswing/pre-emph values. Signed-off-by: Ville Syrjälä --- .../drm/i915/display/intel_dp_link_training.c | 18 +- .../drm/i915/display/inte

[PATCH 7/9] drm/i915/dp: Implement .set_idle_link_train() for everyone

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä All platforms are capable of explicitly transmitting the idle pattern. Implement it for everyone (so far it as implemented only for HSW+). The immediate benefit is that we gain support for the POST_LT_ADJ_REQ sequence for all platforms. Another potential future use would be

[PATCH 6/9] drm/i915/dp: Move intel_dp_training_pattern()

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä Move intel_dp_training_pattern() upwards to avoid the forward declaration for the POST_LT_ADJ_REQ stuff. Signed-off-by: Ville Syrjälä --- .../drm/i915/display/intel_dp_link_training.c | 112 +- 1 file changed, 54 insertions(+), 58 deletions(-) diff --git a/

[PATCH 3/9] drm/i915/dp: Clear DPCD training pattern before transmitting the idle pattern

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä We are supposed to switch off the training pattern in DPCD before we start transmitting the idle pattern. For LTTPRs we do that correctly, but for the sink DPRX we only do this correctly for some platforms. On pre-HSW (where we don't implement the .set_idle_link_train() hook)

[PATCH 2/9] drm/dp: Add POST_LT_ADJ_REQ helpers

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä Add small helpers (drm_dp_post_lt_adj_req_supported() and drm_dp_post_lt_adj_req_in_progress()) to help with implementing the POST_LT_ADJ_REQ sequence. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/display/drm_dp_helper.c | 8 include/drm/display/drm_dp_helper.h

[PATCH 0/9] drm/i915/dp: Implement POST_LT_ADJ_REQ

2025-02-24 Thread Ville Syrjala
From: Ville Syrjälä Implement the POST_LT_ADJ_REQ sequence, which is supposed to be used to further tune the link vswing/pre-emphasis when TPS4 is not supported. Unfortunately I don't have any displays/dongles that support this so I wasn't able to test anything. Hopefully CI has something... Vi

[PATCH 20/20] drm/i915/display: Add fixed_rr to crtc_state dump

2025-02-24 Thread Ankit Nautiyal
Add fixed refresh rate mode in crtc_state dump. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_crtc_state_dump.c | 3 ++- drivers/gpu/drm/i915/display/intel_vrr.c | 1 - drivers/gpu/drm/i915/display/intel_vrr.h | 1 + 3 files changed, 3 insertions(+)

✓ i915.CI.BAT: success for drm/i915/dp_mst: Fix encoder HW state readout for UHBR MST

2025-02-24 Thread Patchwork
== Series Details == Series: drm/i915/dp_mst: Fix encoder HW state readout for UHBR MST URL : https://patchwork.freedesktop.org/series/145300/ State : success == Summary == CI Bug Log - changes from CI_DRM_16170 -> Patchwork_145300v1 Summar

Re: [PATCH 06/12] drm/i915: Extract gen8_report_fault()

2025-02-24 Thread Andi Shyti
Hi Ville, On Wed, Feb 12, 2025 at 01:19:34AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > gen8_check_faults() and xehp_check_faults() are nearly identical. > Refactor the common bits into gen8_report_fault(). > > Signed-off-by: Ville Syrjälä Reviewed-by: Andi Shyti Thanks, Andi

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

2025-02-24 Thread Jani Nikula
In the interest of limiting the display dependencies on i915 core headers, split out i915_gtt_view_types.h from i915_vma_types.h, and only include the new header from intel_display_types.h. Reuse the new header from xe compat code too, failing build if partial view is used in display code. Side n

[PATCH 1/2] drm/i915: relocate intel_plane_ggtt_offset() to intel_atomic_plane.c

2025-02-24 Thread Jani Nikula
With the primary goal of removing #include "i915_vma.h" from intel_display_types.h, move intel_plane_ggtt_offset() to a proper function in intel_atomic_plane.c. This reveals tons of implicit dependencies all over the place that we pulled in via i915_vma.h. Fix the fallout. Signed-off-by: Jani Niku

[PATCH 0/2] drm/i915: reduce display dependencies on core

2025-02-24 Thread Jani Nikula
Some shuffling to reduce dependencies on i915 headers. Jani Nikula (2): drm/i915: relocate intel_plane_ggtt_offset() to intel_atomic_plane.c drm/i915: split out i915_gtt_view_types.h from i915_vma_types.h drivers/gpu/drm/i915/display/intel_acpi.c | 2 + .../gpu/drm/i915/display/intel_at

[PATCH] drm/i915/gt/uc: Fix typo in a comment

2025-02-24 Thread Yuichiro Tsuji
Fix typo in a comment. explaination -> explanation Signed-off-by: Yuichiro Tsuji --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_su

Re: [PATCH 3/5] drm/sched: stop passing non struct drm_device to drm_err() and friends

2025-02-24 Thread Tvrtko Ursulin
On 24/01/2025 11:46, Jani Nikula wrote: On Thu, 23 Jan 2025, Simona Vetter wrote: On Thu, Jan 23, 2025 at 05:09:10PM +0200, Jani Nikula wrote: The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct poi

[PATCH v4 0/8] LOBF enablement fix

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

Re: [PATCH 3/5] drm/sched: stop passing non struct drm_device to drm_err() and friends

2025-02-24 Thread Louis Chauvet
Le 23/01/2025 à 16:09, Jani Nikula a écrit : The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct pointer where you can dereference the ->dev member. Convert drm_err(sched, ...) to dev_err(sched->dev,

Re: [PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-02-24 Thread Louis Chauvet
Le 23/01/2025 à 16:09, Jani Nikula a écrit : The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct pointer where you can dereference the ->dev member. Add a static inline helper to convert struct drm_d

Re: [PATCH 2/5] drm/rockchip: stop passing non struct drm_device to drm_err() and friends

2025-02-24 Thread Louis Chauvet
Le 23/01/2025 à 16:09, Jani Nikula a écrit : The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct pointer where you can dereference the ->dev member. Convert drm_err(hdmi, ...) to dev_err(hdmi->dev, .

Re: [PATCH 3/4] drm/xe: Drop usage of TIMESTAMP_OVERRIDE

2025-02-24 Thread Vivekanandan, Balasubramani
On 20.02.2025 16:38, Matt Roper wrote: > On pre-Xe2 platforms, one of the approaches to initialize the GT command > streamer frequency is to use the display reference clock. That's no > longer relevant from Xe2 onward (i.e., all of the platforms where Xe is > officially supported). Furthermore, u

[PATCH 13/20] drm/i915/vrr: Handle joiner with vrr

2025-02-24 Thread Ankit Nautiyal
Do not program transcoder registers for VRR for the secondary pipe of the joiner. Remove check to skip VRR for joiner case. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_vrr.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/

Re: [PATCH 2/4] drm/i915/gt: Replace TIMESTAMP_OVERRIDE readout

2025-02-24 Thread Vivekanandan, Balasubramani
On 20.02.2025 16:38, Matt Roper wrote: > The whole GT CS clock initialization area is poorly documented in the > specs and a lot of this code seems to have been inherited from the > Windows driver team long ago. There's nothing in the specs that > specifically explains using the display reference

Re: [PATCH 04/12] drm/i915: Document which RING_FAULT bits apply to which platforms

2025-02-24 Thread Andi Shyti
Hi Ville, On Wed, Feb 12, 2025 at 01:19:32AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > The RING_FAULT bits have change a bit over the years. Document > which platforms use which bits. > > Signed-off-by: Ville Syrjälä Reviewed-by: Andi Shyti Thanks, Andi

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

2025-02-24 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 06/20] drm/i915/vrr: Use crtc_vtotal for vmin

2025-02-24 Thread Ankit Nautiyal
To have fixed refresh rate with VRR timing generator the guardband/pipeline full can't be programmed on the fly. So we need to ensure that the values satisfy both the fixed and variable refresh rates. Since we compute these value based on vmin, lets set the vmin to crtc_vtotal for both fixed and v

RE: [PATCH 3/4] drm/i915/dsb: Allow DSB based commits when scalers are in use

2025-02-24 Thread Shankar, Uma
> -Original Message- > From: Intel-gfx On Behalf Of Ville > Syrjala > Sent: Wednesday, February 19, 2025 2:29 AM > To: intel-gfx@lists.freedesktop.org > Cc: intel...@lists.freedesktop.org > Subject: [PATCH 3/4] drm/i915/dsb: Allow DSB based commits when scalers are in > use > > From: Vi

[PATCH 18/20] drm/i915/vrr: Use fixed timings for platforms that support VRR

2025-02-24 Thread Ankit Nautiyal
For fixed refresh rate use fixed timings for all platforms that support VRR. For this add checks to avoid computing and reading VRR for platforms that do not support VRR. For platforms that do support VRR, readback vrr timings whether or not VRR_CTL_FLIP_LINE_EN is set in VRR_CTL or not. Signed-of

[PATCH 08/20] drm/i915/display: Enable MSA Ignore Timing PAR only when in not fixed_rr mode

2025-02-24 Thread Ankit Nautiyal
MSA Ignore Timing PAR enable is set in the DP sink when we enable variable refresh rate. Currently for link training we depend on flipline to decide whether we want to ignore the msa timings. With fixed refresh rate we will still fill the flipline in all cases whether panel supports VRR or not. C

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

2025-02-24 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 04/20] drm/i915/vrr: Disable CMRR

2025-02-24 Thread Ankit Nautiyal
Switching between variable and fixed timings is possible as for that we just need to flip between VRR timings. However for CMRR along with the timings, few other bits also need to be changed on the fly, which might cause issues. So disable CMRR for now, till we have variable and fixed timings sorte

[PATCH 05/20] drm/i915/vrr: Track vrr.enable only for variable timing

2025-02-24 Thread Ankit Nautiyal
Since CMRR is now disabled, use the flag vrr.enable to tracks if vrr timing generator is used with variable timings. Avoid setting vrr.enable for CMRR and adjust readout to not set vrr.enable when vmax == vmin == flipline (fixed refresh rate timing). v2: Use intel_vrr_vmin_flipline() to account f

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

2025-02-24 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 01/20] drm/i915/vrr: Remove unwanted comment

2025-02-24 Thread Ankit Nautiyal
The comment about fixed average vtotal is incorrect. Remove it. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_vrr.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c index cac4931902

Re: [PATCH 13/20] drm/i915/vrr: Handle joiner with vrr

2025-02-24 Thread Nautiyal, Ankit K
On 2/24/2025 11:47 AM, Ankit Nautiyal wrote: Do not program transcoder registers for VRR for the secondary pipe of the joiner. Remove check to skip VRR for joiner case. Missed to drop this patch as mentioned in the last version. Will work on this after the other changes are agreed upon, so t

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

2025-02-24 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

[PATCH 09/20] drm/i915/hdmi: Use VRR Timing generator for HDMI

2025-02-24 Thread Ankit Nautiyal
Add support for using VRR Timing generator for HDMI panels. Signed-off-by: Ankit Nautiyal Reviewed-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/inte

Re: [PATCH 12/12] drm/i915: Reoder gen9+ timestamp freq register bits

2025-02-24 Thread Andi Shyti
Hi Ville, On Wed, Feb 12, 2025 at 01:19:40AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > We customarily define the bits of a register in big endian > order. Reorder the gen9+ timestamp freq register bits to match. > > Signed-off-by: Ville Syrjälä Reviewed-by: Andi Shyti Thanks, An

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

2025-02-24 Thread Jani Nikula
On Mon, 24 Feb 2025, Animesh Manna wrote: > 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(). > > Signed-off-by: Animesh Manna > --- > drivers/gpu/drm/i915/displ

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

2025-02-24 Thread Jani Nikula
On Mon, 24 Feb 2025, 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. > > Signed-off-by: Animesh Manna > --- > drivers/gpu/drm/i915/display/intel_alpm.c |

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

2025-02-24 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] Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alp

Re: [PATCH] drm/i915/dp_mst: Fix encoder HW state readout for UHBR MST

2025-02-24 Thread Jani Nikula
On Mon, 24 Feb 2025, Imre Deak wrote: > The encoder HW/SW state verification should use a SW state which stays > unchanged while the encoder/output is active. The intel_dp::is_mst flag > used during state computation to choose between the DP SST/MST modes can > change while the output is active, i

[PATCH 02/20] drm/i915:vrr: Separate out functions to compute vmin and vmax

2025-02-24 Thread Ankit Nautiyal
Make helpers to compute vmin and vmax. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_vrr.c | 39 +++- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c ind

[PATCH 17/20] drm/i915/display: Use fixed_rr timings in modeset sequence

2025-02-24 Thread Ankit Nautiyal
During modeset enable sequence, program the fixed timings, and turn on the VRR Timing Generator (VRR TG) for platforms that always use VRR TG. For this intel_vrr_set_transcoder now always programs fixed timings. Later if vrr timings are required, vrr_enable() will switch to the real VRR timings.

Re: [PATCH 07/12] drm/i915: Use REG_BIT() & co. for CHV EU/slice fuse bits

2025-02-24 Thread Andi Shyti
Hi Ville, On Wed, Feb 12, 2025 at 01:19:35AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Convert the CHV EU/slice fuse bits to the modern REG_BIT()/etc. > style. > > Signed-off-by: Ville Syrjälä Reviewed-by: Andi Shyti Thanks, Andi

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

2025-02-24 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(). Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 21 +++ drivers/gp

[PATCH 03/20] drm/i915/vrr: Make helpers for cmrr and vrr timings

2025-02-24 Thread Ankit Nautiyal
Separate out functions for computing cmrr and vrr timings. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_vrr.c | 45 +++- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/di

Re: [PATCH 05/12] drm/i915: Introduce RING_FAULT_VADDR_MASK

2025-02-24 Thread Andi Shyti
Hi Ville, On Wed, Feb 12, 2025 at 01:19:33AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Add a proper bitmask definition for the pre-bdw fault > virtual address bits insted of abusing PAGE_MASK. > > Signed-off-by: Ville Syrjälä Reviewed-by: Andi Shyti Thanks, Andi

[PATCH] drm/i915/gt: Add a delay to let engine resumes correctly

2025-02-24 Thread Nitin Gote
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 20ms delay works best based on testing. So, add a 20ms delay to let engi

Re: [PATCH 1/4] drm/i915/display: Make refclk fetching logic reusable

2025-02-24 Thread Jani Nikula
On Thu, 20 Feb 2025, Matt Roper wrote: > There's cdclk-specific code to obtain the display reference clock, > either by reading a strap register, or by using a platform-specific > hardcoded value. There's at least one other place in our drivers that > potentially needs this clock frequency, so re

[PATCH 15/20] drm/i915/vrr: Always set vrr vmax/vmin/flipline in vrr_{enable/disable}

2025-02-24 Thread Ankit Nautiyal
For platforms for which vrr timing generator is always set, VRR_CTL enable bit does not need to toggle, so modify the vrr_{enable/disable} for this. At the moment the helper intel_vrr_always_use_vrr_tg() return false for all cases. This will be set later when all other bits are in place. Signed-of

Re: [PATCH v7 2/6] drm/i915/display: Compute the scaler filter coefficients

2025-02-24 Thread Nautiyal, Ankit K
On 2/19/2025 5:23 PM, Nemesa Garg wrote: The sharpness property requires the use of one of the scaler so need to set the sharpness scaler coefficient values. These values are based on experiments and vary for different tap value/win size. These values are normalized by taking the sum of all val

Re: [PATCH 09/12] drm/i915: Use REG_BIT() & co. for BDW+ EU/slice fuse bits

2025-02-24 Thread Andi Shyti
Hi Ville, On Wed, Feb 12, 2025 at 01:19:37AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Convert the BDW+ EU/slice fuse bits to the modern REG_BIT()/etc. > style. using REG_BIT() and co. doesn't alway make it more readable. In some of the cases below I would have preferred not to use

[RFC] drm/i915/hdcp: switch to guard and scoped guard for mutexes

2025-02-24 Thread Jani Nikula
scoped_guard() and guard() provide automatic unlocking for locks, with cleaner function return paths for both happy and rainy day scenarios. Switch HDCP over as a first experiment for i915 display. Leave intel_hdcp_disable() be for now, as two nested scoped guards are a bit much, but also can't us

[PATCH 19/20] drm/i915/vrr: Always use VRR timing generator for MTL+

2025-02-24 Thread Ankit Nautiyal
Currently VRR timing generator is used only when VRR is enabled by userspace for sinks that support VRR. From MTL+ gradually move away from the older timing generator and use VRR timing generator for both variable and fixed timings. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/

[PATCH 11/20] drm/i915/display: Disable PSR before disabling VRR

2025-02-24 Thread Ankit Nautiyal
As per bspec 49268: Disable PSR before disabling VRR. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.

[PATCH 10/20] drm/i915/dp_mst: Use VRR Timing generator for DP MST

2025-02-24 Thread Ankit Nautiyal
Configure VRR timing generator for DP MST for fixed refresh rate. Currently the variable timings are supported only for DP and eDP and not for DP MST. Call intel_vrr_compute_config for MST which will configure fixed refresh rate timings irrespective of whether VRR is supported or not. Signed-off-b

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

2025-02-24 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 00/20] Use VRR timing generator for fixed refresh rate modes

2025-02-24 Thread Ankit Nautiyal
Even though the VRR timing generator (TG) is primarily used for variable refresh rates, it can be used for fixed refresh rates as well. For a fixed refresh rate the Flip Line and Vmax must be equal (TRANS_VRR_FLIPLINE = TRANS_VRR_VMAX). Beyond that, there are some dependencies between the VRR timin

[PATCH 16/20] drm/i915/display: Use fixed rr timings in intel_set_transcoder_timings_lrr()

2025-02-24 Thread Ankit Nautiyal
To have Guardband/Pipeline_full reconfigured seamlessly, move the guardband and pipeline_full checks out from the pure !fastset block in intel_pipe_config_compare(). Update the intel_set_transcoder_timings_lrr() function to use fixed refresh rate timings for platforms which always use VRR timing ge

[PATCH 07/20] drm/i915/vrr: Prepare for fixed refresh rate timings

2025-02-24 Thread Ankit Nautiyal
Currently we always compute the timings as if vrr is enabled. With this approach the state checker becomes complicated when we introduce fixed refresh rate mode with vrr timing generator. To avoid the complications, instead of always computing vrr timings, we compute vrr timings based on uapi.vrr_

Re: [PATCH] drm/i915/vdsc: Correct the conditions of DSC1.1 and DSC 1.2 for rc params calculation

2025-02-24 Thread Jani Nikula
On Fri, 21 Feb 2025, gareth...@intel.com wrote: > From: Gareth Yu > > The condition change is because Gen 14 begins to support DSC 1.2 > and need to check if the sink supports DSC1.2 > > Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13719 > > Cc: Suraj Kandpal > Cc: Juha-Pekka H

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

2025-02-24 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. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_alpm.c | 16 drivers/gpu/drm/i915/display/intel

  1   2   >