RE: [PATCHv2 3/5] Add crtc properties for global histogram

2024-09-02 Thread Kulkarni, Vandita
+dri-devel > -Original Message- > From: Kulkarni, Vandita > Sent: Tuesday, September 3, 2024 10:54 AM > To: Arun R Murthy ; intel- > g...@lists.freedesktop.org; drm-devel@lists.freedesktop > Cc: Murthy, Arun R > Subject: RE: [PATCHv2 3/5] Add crtc properties for global histogram > > > --

RE: [PATCHv2 3/5] Add crtc properties for global histogram

2024-09-02 Thread Kulkarni, Vandita
> -Original Message- > From: Intel-gfx On Behalf Of Arun > R Murthy > Sent: Wednesday, August 21, 2024 3:54 PM > To: intel-gfx@lists.freedesktop.org > Cc: Murthy, Arun R > Subject: [PATCHv2 3/5] Add crtc properties for global histogram > > CRTC properties have been added for enable/disab

Re: [PATCH v3 2/2] drm/i915/display: Increase Fast Wake Sync length as a quirk

2024-09-02 Thread Hogander, Jouni
On Mon, 2024-09-02 at 11:33 +0300, Jani Nikula wrote: > On Mon, 02 Sep 2024, Jouni Högander wrote: > > In commit "drm/i915/display: Increase number of fast wake precharge > > pulses" > > we were increasing Fast Wake sync pulse length to fix problems > > observed on > > Dell Precision 5490 laptop w

Re: [PATCH 04/13] drm/i915/display: Enable MSA Ignore Timing PAR only when in not fixed_rr mode

2024-09-02 Thread kernel test robot
Hi Ankit, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on drm-tip/drm-tip next-20240902] [cannot apply to drm-intel/for-linux-next-fixes linus/master v6.11-rc6] [If your patch is applied to the wrong git

Re: [PATCH 0/8] drm/i915 & drm/xe: shared PCI ID macros

2024-09-02 Thread Lucas De Marchi
On Mon, Sep 02, 2024 at 08:13:59PM GMT, Jani Nikula wrote: There's considerable overlap in i915 and xe PCI ID macros, and (as can be seen in this series) they get updated out of sync. With i915 display continuing to use PCI IDs for platforms that i915 core does not support, humn.. but display i

✓ Fi.CI.BAT: success for drm/i915 & drm/xe: shared PCI ID macros

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915 & drm/xe: shared PCI ID macros URL : https://patchwork.freedesktop.org/series/138110/ State : success == Summary == CI Bug Log - changes from CI_DRM_15343 -> Patchwork_138110v1 Summary --- **SUCC

✗ Fi.CI.SPARSE: warning for drm/i915 & drm/xe: shared PCI ID macros

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915 & drm/xe: shared PCI ID macros URL : https://patchwork.freedesktop.org/series/138110/ 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:

✗ Fi.CI.CHECKPATCH: warning for drm/i915 & drm/xe: shared PCI ID macros

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915 & drm/xe: shared PCI ID macros URL : https://patchwork.freedesktop.org/series/138110/ State : warning == Summary == Error: dim checkpatch failed 4c49328848e5 drm/i915/pciids: use designated initializers in INTEL_VGA_DEVICE() ecd7fe3734dc drm/i915/pciids: s

✗ Fi.CI.IGT: failure for Use VRR timing generator for fixed refresh rate modes (rev5)

2024-09-02 Thread Patchwork
== Series Details == Series: Use VRR timing generator for fixed refresh rate modes (rev5) URL : https://patchwork.freedesktop.org/series/134383/ State : failure == Summary == CI Bug Log - changes from CI_DRM_15341_full -> Patchwork_134383v5_full

[PATCH 8/8] drm/xe: switch to common PCI ID macros

2024-09-02 Thread Jani Nikula
Switch to the shared PCI ID macros in drm/intel/pciids.h. Remove xe_pciids.h. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/xe_pci.c | 51 include/drm/intel/xe_pciids.h | 222 -- 2 files changed, 22 insertions(+), 251 deletions(-) delete mode 1006

[PATCH 7/8] drm/intel/pciids: rename i915_pciids.h to just pciids.h

2024-09-02 Thread Jani Nikula
In preparation of sharing the PCI ID macros between i915 and xe, rename i915_pciids.h to pciids.h. Signed-off-by: Jani Nikula --- Could be intel_pciids.h too, but it's already in include/drm/intel subdirectory. --- arch/x86/kernel/early-quirks.c | 2 +- drivers/gpu/drm/i91

[PATCH 6/8] drm/i915/pciids: add PVC PCI ID macros

2024-09-02 Thread Jani Nikula
The xe PCI ID macros are a subset of the i915 PCI IDs macros, apart from the PVC PCI IDs (naturally, because i915 does not and will not support PVC). In preparation of using a shared file, add PVC PCI IDs to i915_pciids.h. Signed-off-by: Jani Nikula --- include/drm/intel/i915_pciids.h | 16 +

[PATCH 5/8] drm/xe/pciids: separate ARL and MTL PCI IDs

2024-09-02 Thread Jani Nikula
Avoid including PCI IDs for one platform to the PCI IDs of another. It's more clear to deal with them completely separately at the PCI ID macro level. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/xe_pci.c | 1 + include/drm/intel/xe_pciids.h | 13 - 2 files changed, 9 inserti

[PATCH 4/8] drm/xe/pciids: separate RPL-U and RPL-P PCI IDs

2024-09-02 Thread Jani Nikula
Avoid including PCI IDs for one platform to the PCI IDs of another. It's more clear to deal with them completely separately at the PCI ID macro level. Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/xe_pci.c | 1 + include/drm/intel/xe_pciids.h | 1 - 2 files changed, 1 insertion(+), 1 delet

[PATCH 3/8] drm/xe/pciids: add some missing ADL-N PCI IDs

2024-09-02 Thread Jani Nikula
Similar to commit 425b463859ed ("drm/i915: Update ADL-N PCI IDs"). Signed-off-by: Jani Nikula --- include/drm/intel/xe_pciids.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/drm/intel/xe_pciids.h b/include/drm/intel/xe_pciids.h index 73d972a8aca1..41617c5ac6ab 10

[PATCH 2/8] drm/i915/pciids: separate ARL and MTL PCI IDs

2024-09-02 Thread Jani Nikula
Avoid including PCI IDs for one platform to the PCI IDs of another. It's more clear to deal with them completely separately at the PCI ID macro level. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_device.c | 1 + drivers/gpu/drm/i915/i915_pci.c | 1

[PATCH 1/8] drm/i915/pciids: use designated initializers in INTEL_VGA_DEVICE()

2024-09-02 Thread Jani Nikula
With IGT no longer using INTEL_VGA_DEVICE(), we can make it kernel specific and use designated initializers. Ditto for INTEL_QUANTA_VGA_DEVICE(). Remove the superfluous comments while at it. Signed-off-by: Jani Nikula --- IGT INTEL_VGA_DEVICE removal: https://lore.kernel.org/r/20240902134907.2

[PATCH 0/8] drm/i915 & drm/xe: shared PCI ID macros

2024-09-02 Thread Jani Nikula
There's considerable overlap in i915 and xe PCI ID macros, and (as can be seen in this series) they get updated out of sync. With i915 display continuing to use PCI IDs for platforms that i915 core does not support, but xe does, the duplication will just increase. Just use a single file for all of

✓ Fi.CI.IGT: success for drm/i915/display: Fix BMG CCS modifiers (rev4)

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915/display: Fix BMG CCS modifiers (rev4) URL : https://patchwork.freedesktop.org/series/137958/ State : success == Summary == CI Bug Log - changes from CI_DRM_15341_full -> Patchwork_137958v4_full Summary

Re: [PATCH v3 26/81] drm/mediatek: Run DRM default client setup

2024-09-02 Thread Matthias Brugger
On 30/08/2024 10:40, Thomas Zimmermann wrote: Call drm_client_setup() to run the kernel's default client setup for DRM. Set fbdev_probe in struct drm_driver, so that the client setup can start the common fbdev client. The mediatek driver specifies a preferred color mode of 32. As this is the

✓ Fi.CI.BAT: success for drm/i915: Use DSB for plane/color management commits

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915: Use DSB for plane/color management commits URL : https://patchwork.freedesktop.org/series/138095/ State : success == Summary == CI Bug Log - changes from CI_DRM_15342 -> Patchwork_138095v1 Summary

Re: [PATCH] drm/i915: Do not explicilty enable FEC in DP_TP_CTL for UHBR rates

2024-09-02 Thread Imre Deak
On Thu, Aug 22, 2024 at 11:44:48AM +0530, Chaitanya Kumar Borah wrote: > In case of UHBR rates, we do not need to explicitly enable FEC by writing > to DP_TP_CTL register. > For MST use-cases, intel_dp_mst_find_vcpi_slots_for_bpp() takes care of > setting fec_enable to false. However, it gets overw

✗ Fi.CI.CHECKPATCH: warning for drm/i915: Use DSB for plane/color management commits

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915: Use DSB for plane/color management commits URL : https://patchwork.freedesktop.org/series/138095/ State : warning == Summary == Error: dim checkpatch failed a5ed980f4c34 drm/i915/dsb: Avoid reads of the DSB buffer for indexed register writes f5c46a6ce8d4

✗ Fi.CI.SPARSE: warning for drm/i915: Use DSB for plane/color management commits

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915: Use DSB for plane/color management commits URL : https://patchwork.freedesktop.org/series/138095/ 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/as

✗ Fi.CI.IGT: failure for Increase fastwake sync pulse count as a quirk (rev3)

2024-09-02 Thread Patchwork
== Series Details == Series: Increase fastwake sync pulse count as a quirk (rev3) URL : https://patchwork.freedesktop.org/series/137524/ State : failure == Summary == CI Bug Log - changes from CI_DRM_15338_full -> Patchwork_137524v3_full Su

[PATCH 13/13] drm/i915/dsb: Use DSB for plane/color management updates

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Push regular plane/color management updates to the DSB, if other constraints allow it. The first part of the sequence will go as follows: - CPU will kick off DSB0 immediately - DSB0 writes double bufferd non-arming registers - DSB0 evades the vblank - DSB0 writes double buffe

[PATCH 12/13] drm/i915: Plumb 'dsb' all way to the color commit hooks

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Pass the 'dsb' all the way down to the color commit hooks so that we'll be able to update the double buffered color management registers (eg. CSC) via the DSB. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_color.c| 176 ++ drivers/g

[PATCH 11/13] drm/i915: Plumb 'dsb' all way to the plane hooks

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä We need to be able to do both MMIO and DSB based pipe/plane programming. To that end plumb the 'dsb' all way from the top into the plane commit hooks. The compiler appears smart enough to combine the branches from all the back-to-back register writes into a single branch. So

[PATCH 10/13] drm/i915: Extract intel_crtc_prepare_vblank_event()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Extract the code for staging the vblank event for the flip done interrupt handler. We'll reuse this for DSB stuff later. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_crtc.c | 21 +++-- drivers/gpu/drm/i915/display/intel_crtc.h | 3 +++

[PATCH 09/13] drm/i915/dsb: Introduce intel_dsb_wait_vblank_delay()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Add intel_dsb_wait_vblank_delay() which instructs the DSB to wait for duration between the undelayed and delayed vblanks. We'll need this as the DSB can only directly wait for the undelayed vblank, but we'll need to wait until the delayed vblank has elapsed as well. Signed-of

[PATCH 08/13] drm/i915: Introduce intel_scanlines_to_usecs()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Introduce intel_scanlines_to_usecs() as a counterpart to intel_usecs_to_scanlines(). We'll have some use for this in DSB code as we want to do relative scanline waits to evade the delayed vblank, but unfortunately DSB can't do relative scanline waits (only absolute). So we'll

[PATCH 07/13] drm/i915/dsb: Introduce intel_dsb_wait_vblanks()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Add a function to emit a DSB wait for vblank instruction. This just waits until the specified number of vblanks. Note that this triggers on the transcoder's undelayed vblank, as opposed to the pipe's delayed vblank. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/dis

[PATCH 06/13] drm/i915/dsb: Introduce intel_dsb_wait_usec()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Add a function to emit the DSB "wait usecs" instruction. This is just a usleep() for the DSB. As a lower bound it seems pretty accurate, but the upper bound seemed oddly relaxed (ie. sometimes I've seen waits that are quite a bit longer than specified, not sure why). Signed-

[PATCH 05/13] drm/i915/dsb: Introduce intel_dsb_vblank_evade()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Add a helper for performing vblank evasion on the DSB. DSB based plane updates will need this to guarantee all the double buffered arming registers will get programmed atomically within the same frame. With VRR we more or less have two vblanks to worry about: - vmax vblank st

[PATCH 04/13] drm/i915/dsb: Enable programmable DSB interrupt

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä The DSB can signal a programmable interrupt in response to a specific DSB command getting executed. Hook that up. For now we'll just use this to signal the completion of the commit via a vblank event. If, in the future, we'll need to do other things in response to DSB interru

[PATCH 03/13] drm/i915/dsb: Generate the DSB buffer in commit_tail()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Once we start using DSB for plane updates we'll need to defer generating the DSB buffer until the clear color has been read out. So we need to move at some of the DSB stuff into commit_tail(). That is perhaps a better place for it anyway as the ioctl thread can move on immedia

[PATCH 02/13] drm/i915: Prepare clear color before wait_for_dependencies()

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Read out the clear color as soon as fences and the transient data flush have finished. There is no need to wait for all the display specific operations that might still be going on. This could parallelize things a bit more effectively. Signed-off-by: Ville Syrjälä --- drive

[PATCH 01/13] drm/i915/dsb: Avoid reads of the DSB buffer for indexed register writes

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Reading from the DSB command buffer might be somewhat expensive on discrete GPUs because the buffer resides in GPU local memory. Avoid such reads in the indexed register write handling by tracking the previous instruction in intel_dsb. TODO: actually measure this Signed-off-

[PATCH 00/13] drm/i915: Use DSB for plane/color management commits

2024-09-02 Thread Ville Syrjala
From: Ville Syrjälä Use the DSB to perform simple plane/color management commits. Anything more complicatd (modesets and fastsets) are still punted to the mmio path. Also DSB won't be used when any of these are in use: - scalers (scaler code needs more work) - VRR (need to figure out a race free

✓ Fi.CI.BAT: success for Use VRR timing generator for fixed refresh rate modes (rev5)

2024-09-02 Thread Patchwork
== Series Details == Series: Use VRR timing generator for fixed refresh rate modes (rev5) URL : https://patchwork.freedesktop.org/series/134383/ State : success == Summary == CI Bug Log - changes from CI_DRM_15341 -> Patchwork_134383v5 Summ

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

2024-09-02 Thread Patchwork
== Series Details == Series: Use VRR timing generator for fixed refresh rate modes (rev5) 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/in

Re: [PATCH v2 0/6] drm/xe & drm/i915: drvdata usage changes follow-up

2024-09-02 Thread Jani Nikula
On Thu, 29 Aug 2024, Jani Nikula wrote: > Follow-up to [1]. Thanks for the reviews, pushed to drm-intel-next. BR, Jani. > > BR, > Jani. > > > [1] https://lore.kernel.org/r/cover.1723129920.git.jani.nik...@intel.com > > Jani Nikula (6): > drm/i915 & drm/xe: save struct drm_device to drvdata >

✗ Fi.CI.BAT: failure for drm/i915:Remove unused parameter in marco.

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915:Remove unused parameter in marco. URL : https://patchwork.freedesktop.org/series/138076/ State : failure == Summary == CI Bug Log - changes from CI_DRM_15341 -> Patchwork_138076v1 Summary --- **F

Re: [PATCH v9 3/3] drm/i915/lobf: Move Lobf compute config after vblank adjustement

2024-09-02 Thread Jani Nikula
On Mon, 08 Jul 2024, Animesh Manna wrote: > As lobf compute config is depends upon delayed vbalnk so moved > lobf compute config in encoder late config(). Lobf is only > for edp connector so introduced intel_dp_late_compute_config(). > > Signed-off-by: Animesh Manna > --- > drivers/gpu/drm/i915/

Re: [PATCH v9 1/3] drm/i915/panelreplay: Panel replay workaround with VRR

2024-09-02 Thread Jani Nikula
On Mon, 08 Jul 2024, Animesh Manna wrote: > Panel Replay VSC SDP not getting sent when VRR is enabled > and W1 and W2 are 0. So Program Set Context Latency in > TRANS_SET_CONTEXT_LATENCY register to at least a value of 1. > The same is applicable for PSR1/PSR2 as well. > > HSD: 14015406119 > > v1:

RE: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Kandpal, Suraj
> -Original Message- > From: Hogander, Jouni > Sent: Monday, September 2, 2024 3:07 PM > To: Kandpal, Suraj ; intel- > g...@lists.freedesktop.org > Cc: Shankar, Uma > Subject: Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10 > > On Mon, 2024-09-02 at 10:32 +0530, Suraj Kandpal

Re: [PATCH v2 5/6] drm/i915/hdcp: migrate away from kdev_to_i915() in GSC messaging

2024-09-02 Thread Nautiyal, Ankit K
On 8/29/2024 8:17 PM, Jani Nikula wrote: Use to_intel_display() instead of kdev_to_i915() in the HDCP component API hooks. Avoid further drive-by changes at this point, and just convert the display pointer to i915, and leave the struct intel_display conversion for later. The NULL error checkin

RE: [PATCH v2 5/6] drm/i915/hdcp: migrate away from kdev_to_i915() in GSC messaging

2024-09-02 Thread Kandpal, Suraj
> -Original Message- > From: Intel-gfx On Behalf Of Jani > Nikula > Sent: Thursday, August 29, 2024 8:18 PM > To: intel-gfx@lists.freedesktop.org; intel...@lists.freedesktop.org > Cc: Nikula, Jani ; Vivi, Rodrigo > ; De Marchi, Lucas ; > Sousa, Gustavo > Subject: [PATCH v2 5/6] drm/i91

RE: [PATCH v2 5/6] drm/i915/hdcp: migrate away from kdev_to_i915() in GSC messaging

2024-09-02 Thread Murthy, Arun R
> -Original Message- > From: Intel-gfx On Behalf Of Jani > Nikula > Sent: Thursday, August 29, 2024 8:18 PM > To: intel-gfx@lists.freedesktop.org; intel...@lists.freedesktop.org > Cc: Nikula, Jani ; Vivi, Rodrigo > ; > De Marchi, Lucas ; Sousa, Gustavo > > Subject: [PATCH v2 5/6] drm/i91

RE: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Kandpal, Suraj
> -Original Message- > From: Hogander, Jouni > Sent: Monday, September 2, 2024 3:32 PM > To: Kandpal, Suraj ; intel- > g...@lists.freedesktop.org > Cc: Shankar, Uma > Subject: Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10 > > On Mon, 2024-09-02 at 12:37 +0300, Hogander, Joun

Re: [PATCH v9 2/3] drm/i915/lobf: No need to pass connector-state on lobf-compute-config.

2024-09-02 Thread Nautiyal, Ankit K
On 7/8/2024 8:52 PM, Animesh Manna wrote: Coonector state is not used in lobf compute config, so removed it. nitpick: s/coonector/connector and  s/removed/remove Add fixes tag. With above fixed: Reviewed-by: Ankit Nautiyal Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/displa

Re: [PATCH v9 1/3] drm/i915/panelreplay: Panel replay workaround with VRR

2024-09-02 Thread Nautiyal, Ankit K
On 7/8/2024 8:52 PM, Animesh Manna wrote: Panel Replay VSC SDP not getting sent when VRR is enabled and W1 and W2 are 0. So Program Set Context Latency in TRANS_SET_CONTEXT_LATENCY register to at least a value of 1. The same is applicable for PSR1/PSR2 as well. HSD: 14015406119 v1: Initial ve

RE: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Kandpal, Suraj
> -Original Message- > From: Hogander, Jouni > Sent: Monday, September 2, 2024 4:44 PM > To: Kandpal, Suraj ; intel- > g...@lists.freedesktop.org > Cc: Shankar, Uma > Subject: Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10 > > On Mon, 2024-09-02 at 11:07 +, Kandpal, Suraj

Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Hogander, Jouni
On Mon, 2024-09-02 at 12:37 +0300, Hogander, Jouni wrote: > On Mon, 2024-09-02 at 10:32 +0530, Suraj Kandpal wrote: > > To reach PC10 when PKG_C_LATENCY is configure we must do the > > following > > things > > 1) Enter PSR1 only when delayed_vblank < 6 lines and DC5 can be > > entered > > 2) Allow

Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Hogander, Jouni
On Mon, 2024-09-02 at 10:32 +0530, Suraj Kandpal wrote: > To reach PC10 when PKG_C_LATENCY is configure we must do the > following > things > 1) Enter PSR1 only when delayed_vblank < 6 lines and DC5 can be > entered > 2) Allow PSR2 deep sleep when DC5 can be entered > 3) DC5 can be entered when all

RE: [PATCH v2 5/6] drm/i915/hdcp: migrate away from kdev_to_i915() in GSC messaging

2024-09-02 Thread Kandpal, Suraj
> -Original Message- > From: Intel-gfx On Behalf Of Jani > Nikula > Sent: Thursday, August 29, 2024 8:18 PM > To: intel-gfx@lists.freedesktop.org; intel...@lists.freedesktop.org > Cc: Nikula, Jani ; Vivi, Rodrigo > ; De Marchi, Lucas ; > Sousa, Gustavo > Subject: [PATCH v2 5/6] drm/i91

Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Hogander, Jouni
On Mon, 2024-09-02 at 10:14 +, Kandpal, Suraj wrote: > > > > -Original Message- > > From: Hogander, Jouni > > Sent: Monday, September 2, 2024 3:32 PM > > To: Kandpal, Suraj ; intel- > > g...@lists.freedesktop.org > > Cc: Shankar, Uma > > Subject: Re: [PATCH] drm/i915/psr: Implment W

Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Hogander, Jouni
On Mon, 2024-09-02 at 11:07 +, Kandpal, Suraj wrote: > > > > -Original Message- > > From: Hogander, Jouni > > Sent: Monday, September 2, 2024 4:32 PM > > To: Kandpal, Suraj ; intel- > > g...@lists.freedesktop.org > > Cc: Shankar, Uma > > Subject: Re: [PATCH] drm/i915/psr: Implment W

✓ Fi.CI.BAT: success for drm/i915/display: Fix BMG CCS modifiers (rev4)

2024-09-02 Thread Patchwork
== Series Details == Series: drm/i915/display: Fix BMG CCS modifiers (rev4) URL : https://patchwork.freedesktop.org/series/137958/ State : success == Summary == CI Bug Log - changes from CI_DRM_15341 -> Patchwork_137958v4 Summary ---

RE: [PATCH] drm/i915/psr: Implment WA to help reach PC10

2024-09-02 Thread Kandpal, Suraj
> -Original Message- > From: Hogander, Jouni > Sent: Monday, September 2, 2024 4:32 PM > To: Kandpal, Suraj ; intel- > g...@lists.freedesktop.org > Cc: Shankar, Uma > Subject: Re: [PATCH] drm/i915/psr: Implment WA to help reach PC10 > > On Mon, 2024-09-02 at 10:14 +, Kandpal, Suraj

✗ Fi.CI.IGT: failure for Introduce DRM device wedged event

2024-09-02 Thread Patchwork
== Series Details == Series: Introduce DRM device wedged event URL : https://patchwork.freedesktop.org/series/138069/ State : failure == Summary == CI Bug Log - changes from CI_DRM_15338_full -> Patchwork_138069v1_full Summary --- **

Re: [PATCH v3 00/15] CCS static load balance

2024-09-02 Thread Daniel Vetter
On Wed, Aug 28, 2024 at 05:35:45PM +0200, Andi Shyti wrote: > Hi Sima, > > On Wed, Aug 28, 2024 at 03:47:21PM +0200, Daniel Vetter wrote: > > On Wed, Aug 28, 2024 at 10:20:15AM +0200, Andi Shyti wrote: > > > Hi Sima, > > > > > > first of all, thanks for looking into this series. > > > > > > On T

✓ Fi.CI.BAT: success for Increase fastwake sync pulse count as a quirk (rev3)

2024-09-02 Thread Patchwork
== Series Details == Series: Increase fastwake sync pulse count as a quirk (rev3) URL : https://patchwork.freedesktop.org/series/137524/ State : success == Summary == CI Bug Log - changes from CI_DRM_15338 -> Patchwork_137524v3 Summary

Re: [PATCH v1 0/2] drm/i915/fence: A couple of build fixes

2024-09-02 Thread Andy Shevchenko
On Mon, Sep 02, 2024 at 11:27:57AM +0300, Jani Nikula wrote: > On Thu, 29 Aug 2024, Jani Nikula wrote: > > The TL;DR is, > > > > Reviewed-by: Jani Nikula > > > > on the series. > > Both pushed to drm-intel-next, thanks for the patches and discussion. > > I amended the commit message about clang

Re: [PATCH v3 1/3] drm: Introduce device wedged event

2024-09-02 Thread Aravind Iddamsetty
On 02/09/24 13:18, Raag Jadav wrote: > Introduce device wedged event, which will notify userspace of wedged > (hanged/unusable) state of the DRM device through a uevent. This is > useful especially in cases where the device is in unrecoverable state > and requires userspace intervention for recov

Re: [PATCH v3 2/3] drm/xe: Use device wedged event

2024-09-02 Thread Aravind Iddamsetty
On 02/09/24 13:18, Raag Jadav wrote: This patch looks entirely new from what was sent earlier so you could send it as a fresh patch. Thanks, Aravind, > From: Himal Prasad Ghimiray > > This was previously attempted as xe specific reset uevent but dropped > in commit 77a0d4d1cea2 ("drm/xe/uapi:

Re: [PATCH v3 3/3] drm/i915: Use device wedged event

2024-09-02 Thread Aravind Iddamsetty
On 02/09/24 13:18, Raag Jadav wrote: > Now that we have device wedged event supported by DRM core, make use > of it. With this in place, userspace will be notified of wedged device > on gt reset failure. > > Signed-off-by: Raag Jadav > --- > drivers/gpu/drm/i915/gt/intel_reset.c | 2 ++ > 1 fil

✓ Fi.CI.BAT: success for Introduce DRM device wedged event

2024-09-02 Thread Patchwork
== Series Details == Series: Introduce DRM device wedged event URL : https://patchwork.freedesktop.org/series/138069/ State : success == Summary == CI Bug Log - changes from CI_DRM_15338 -> Patchwork_138069v1 Summary --- **SUCCESS**

Re: [PATCH v3 2/2] drm/i915/display: Increase Fast Wake Sync length as a quirk

2024-09-02 Thread Jani Nikula
On Mon, 02 Sep 2024, Jouni Högander wrote: > In commit "drm/i915/display: Increase number of fast wake precharge pulses" > we were increasing Fast Wake sync pulse length to fix problems observed on > Dell Precision 5490 laptop with AUO panel. Later we have observed this is > causing problems on ot

✗ Fi.CI.SPARSE: warning for Introduce DRM device wedged event

2024-09-02 Thread Patchwork
== Series Details == Series: Introduce DRM device wedged event URL : https://patchwork.freedesktop.org/series/138069/ 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 Introduce DRM device wedged event

2024-09-02 Thread Patchwork
== Series Details == Series: Introduce DRM device wedged event URL : https://patchwork.freedesktop.org/series/138069/ State : warning == Summary == Error: dim checkpatch failed fe78cca28d79 drm: Introduce device wedged event -:44: WARNING:STATIC_CONST_CHAR_ARRAY: char * array declaration might

Re: [PATCH v3 1/2] drm/i915/display: Add mechanism to use sink model when applying quirk

2024-09-02 Thread Jani Nikula
On Mon, 02 Sep 2024, Jouni Högander wrote: > Currently there is no way to apply quirk on device only if certain panel > model is installed. This patch implements such mechanism by adding new > quirk type intel_dpcd_quirk which contains also sink_oui and sink_device_id > fields and using also them

Re: [PATCH v1 0/2] drm/i915/fence: A couple of build fixes

2024-09-02 Thread Jani Nikula
On Thu, 29 Aug 2024, Jani Nikula wrote: > The TL;DR is, > > Reviewed-by: Jani Nikula > > on the series. Both pushed to drm-intel-next, thanks for the patches and discussion. I amended the commit message about clang, config options and commit 6863f5643dd7 ("kbuild: allow Clang to find unused sta

[PATCH 12/13] drm/i915/vrr: Always use VRR timing generator for XELPD+

2024-09-02 Thread Ankit Nautiyal
Currently VRR timing generator is used only when VRR is enabled by userspace. From XELPD+, gradually move away from older timing generator and use VRR timing generator for fixed refresh rate also. In such a case, Flipline VMin and VMax all are set to the Vtotal of the mode, which effectively makes

[PATCH 13/13] drm/i915/display: Add fixed_rr to crtc_state_dump

2024-09-02 Thread Ankit Nautiyal
Print vrr.fixed_rr along with other vrr parameters. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_crtc_state_dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c b/drivers/gpu/drm/i915/display/in

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

2024-09-02 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/

[PATCH 10/13] drm/i915/vrr: Avoid sending PUSH when VRR TG is used with Fixed refresh rate

2024-09-02 Thread Ankit Nautiyal
As per Bspec:68925: Push enable must be set if not configuring for a fixed refresh rate (i.e Vmin == Flipline == Vmax is not true). Signed-off-by: Ankit Nautiyal Reviewed-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_vrr.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)

[PATCH 09/13] drm/i915/psr: Allow PSR for fixed refrsh rate with VRR TG

2024-09-02 Thread Ankit Nautiyal
At the moment PSR/PSR2 are not supported with variable refresh rate. However it can be supported with fixed refresh rate while running with VRR timing generator. Enable PSR for fixed refresh rate when using the VRR timing generator. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/

[PATCH 08/13] drm/i915/display: Disable PSR before disabling VRR

2024-09-02 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 07/13] drm/i915/hdmi: Use VRR Timing generator for HDMI

2024-09-02 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

[PATCH 06/13] drm/i915/vrr: Compute vrr vsync if platforms support it

2024-09-02 Thread Ankit Nautiyal
Previously, TRANS_VRR_VSYNC was exclusively used for panels with adaptive-sync SDP support in VRR scenarios. However, to drive fixed refresh rates using the VRR Timing generator, we now need to program TRANS_VRR_VSYNC regardless of adaptive sync SDP support. Therefore, let's remove the adaptive syn

[PATCH 05/13] drm/i915/dp: Set FAVT mode in DP SDP with fixed refresh rate

2024-09-02 Thread Ankit Nautiyal
While running with fixed refresh rate and VRR timing generator set FAVT mode (Fixed Vtotal) in DP Adaptive Sync SDP to intimate the panel about Fixed refresh rate. Signed-off-by: Ankit Nautiyal Reviewed-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_dp.c | 4 1 file changed, 4 ins

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

2024-09-02 Thread Ankit Nautiyal
MSA Ignore Timing PAR enable is set in the DP sink when we enable variable refresh rate. When using VRR timing generator for fixed refresh rate we do not want to ignore the mode timings, as the refresh rate is still fixed. Modify the checks to enable MSA Ignore Timing PAR only when not in fixed_rr

[PATCH 03/13] drm/i915/display: Add member fixed_rr to denote Fixed refresh rate with VRRTG

2024-09-02 Thread Ankit Nautiyal
Add fixed_rr member to struct vrr to represent the case where a fixed refresh rate with VRR timing generator is required. v2: Move get_config change where vrr.fixed is actually set. (Mitul) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 4 +++- drivers/gp

[PATCH 02/13] drm/i915/dp: fix the Adaptive sync Operation mode for SDP

2024-09-02 Thread Ankit Nautiyal
Currently we support Adaptive sync operation mode with dynamic frame rate, but instead the operation mode with fixed rate is set. This was initially set correctly in the earlier version of changes but later got changed, while defining a macro for the same. Fixes: a5bd5991cb8a ("drm/i915/display: C

[PATCH 00/13] Use VRR timing generator for fixed refresh rate modes

2024-09-02 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 01/13] drm/i915/dp: Avoid vrr compute config for HDMI sink

2024-09-02 Thread Ankit Nautiyal
Currently we do not support VRR with HDMI so skip vrr compute config step for DP with HDMI sink. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/

[PATCH] drm/i915:Remove unused parameter in marco.

2024-09-02 Thread He Lugang
The parameter dev_priv is actually not used in macro PORT_ALPM_CTL and PORT_ALPM_LFPS_CTL,so remove it to simplify the code. Signed-off-by: He Lugang --- drivers/gpu/drm/i915/display/intel_alpm.c | 4 ++-- drivers/gpu/drm/i915/display/intel_psr.c | 2 +- drivers/gpu/drm/i915/display/int

Re: [PATCH v3 1/3] drm: Introduce device wedged event

2024-09-02 Thread Jani Nikula
On Mon, 02 Sep 2024, Raag Jadav wrote: > Introduce device wedged event, which will notify userspace of wedged > (hanged/unusable) state of the DRM device through a uevent. This is > useful especially in cases where the device is in unrecoverable state > and requires userspace intervention for reco

✗ Fi.CI.BAT: failure for Increase fastwake sync pulse count as a quirk (rev3)

2024-09-02 Thread Patchwork
== Series Details == Series: Increase fastwake sync pulse count as a quirk (rev3) URL : https://patchwork.freedesktop.org/series/137524/ State : failure == Summary == CI Bug Log - changes from CI_DRM_15338 -> Patchwork_137524v3 Summary

[PATCH v3] drm/i915/display: Fix BMG CCS modifiers

2024-09-02 Thread Juha-Pekka Heikkila
Let I915_FORMAT_MOD_4_TILED_BMG_CCS show up as supported modifier Fixes: 97c6efb36497 ("drm/i915/display: Plane capability for 64k phys alignment") Signed-off-by: Juha-Pekka Heikkila --- drivers/gpu/drm/i915/display/skl_universal_plane.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dr

✗ Fi.CI.SPARSE: warning for Increase fastwake sync pulse count as a quirk (rev3)

2024-09-02 Thread Patchwork
== Series Details == Series: Increase fastwake sync pulse count as a quirk (rev3) URL : https://patchwork.freedesktop.org/series/137524/ 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/as

[PATCH v3 3/3] drm/i915: Use device wedged event

2024-09-02 Thread Raag Jadav
Now that we have device wedged event supported by DRM core, make use of it. With this in place, userspace will be notified of wedged device on gt reset failure. Signed-off-by: Raag Jadav --- drivers/gpu/drm/i915/gt/intel_reset.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/d

[PATCH v3 2/3] drm/xe: Use device wedged event

2024-09-02 Thread Raag Jadav
From: Himal Prasad Ghimiray This was previously attempted as xe specific reset uevent but dropped in commit 77a0d4d1cea2 ("drm/xe/uapi: Remove reset uevent for now") as part of refactoring. Now that we have device wedged event supported by DRM core, make use of it. With this in place userspace w

[PATCH v3 1/3] drm: Introduce device wedged event

2024-09-02 Thread Raag Jadav
Introduce device wedged event, which will notify userspace of wedged (hanged/unusable) state of the DRM device through a uevent. This is useful especially in cases where the device is in unrecoverable state and requires userspace intervention for recovery. Purpose of this implementation is to be v

[PATCH v3 0/3] Introduce DRM device wedged event

2024-09-02 Thread Raag Jadav
This series introduces device wedged event in DRM subsystem and uses it in xe and i915 drivers. Detailed description in commit message. This was earlier attempted as xe specific uevent in v1 and v2. https://patchwork.freedesktop.org/series/136909/ v2: Change authorship to Himal (Aravind) Add