Re: [PATCH] drm/i915/pps: split intel_pps_reset_all() to vlv and bxt variants

2024-09-23 Thread Jani Nikula
On Thu, 19 Sep 2024, Ville Syrjälä wrote: > On Thu, Sep 19, 2024 at 12:04:27PM +0300, Jani Nikula wrote: >> The intel_pps_reset_all() function does similar but not quite the same >> things for VLV/CHV and BXT/GLK. Observe that it's called from platform >> specific code only, and a split to two fun

Re: Regression on i915

2024-09-23 Thread Thomas Zimmermann
Hi Am 23.09.24 um 08:37 schrieb Borah, Chaitanya Kumar: Hello Alexander, We have two gitlab issues[1] where a phantom display is detected by the system (with i915 driver). The following patch[2] has been identified as the first bad commit after bisect. "b49420d6a1 video/aperture: optionally m

Re: [PATCH 4/5] drm/i915/bios: Extract vbt_signature[]

2024-09-23 Thread Jani Nikula
On Fri, 20 Sep 2024, Ville Syrjälä wrote: > On Thu, Sep 12, 2024 at 03:15:52PM +0300, Jani Nikula wrote: >> On Tue, 10 Sep 2024, Ville Syrjala wrote: >> > From: Ville Syrjälä >> > >> > Replace the three hand rolled "$VBT"s with a vbt_signature[] >> > to avoid accidents. >> > >> > Signed-off-by:

Re: [PATCH 5/5] drm/i915/bios: Extract soc/intel_rom.c

2024-09-23 Thread Jani Nikula
On Fri, 20 Sep 2024, Ville Syrjälä wrote: > On Thu, Sep 12, 2024 at 03:44:32PM +0300, Jani Nikula wrote: >> Just nitpicking, but should this (and rom reads above) now sanity check >> offset+size against rom->size? IDK if it's worth it for such a simple >> thing. The caller is supposed to know what

RE: [PATCH 1/3] drm/i915/dp: use fsleep instead of usleep_rage for LT

2024-09-23 Thread Jani Nikula
On Thu, 12 Sep 2024, "Murthy, Arun R" wrote: >> -Original Message- >> From: Jani Nikula >> Sent: Thursday, September 12, 2024 2:32 PM >> To: Murthy, Arun R ; intel...@lists.freedesktop.org; >> intel-gfx@lists.freedesktop.org >> Cc: Murthy, Arun R ; Srikanth V, NagaVenkata >> >> Subject:

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

2024-09-23 Thread Shankar, Uma
> > On Fri, 2024-09-20 at 14:42 +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 > >

Re: [PATCH 1/3] drm/i915/dp: use fsleep instead of usleep_rage for LT

2024-09-23 Thread Jani Nikula
On Thu, 12 Sep 2024, Arun R Murthy wrote: > Aux RD Interval value depends on the value read from the dpcd register > which is updated from the sink device use flseep thereby we adhere to > the Documentation/timers/timers-howto.rst > > Signed-off-by: Srikanth V NagaVenkata > Signed-off-by: Arun R

RE: [PATCH 1/3] drm/i915/dp: use fsleep instead of usleep_rage for LT

2024-09-23 Thread Jani Nikula
On Thu, 12 Sep 2024, "Murthy, Arun R" wrote: >> -Original Message- >> From: Jani Nikula >> Sent: Thursday, September 12, 2024 2:36 PM >> To: Murthy, Arun R ; intel...@lists.freedesktop.org; >> intel-gfx@lists.freedesktop.org >> Cc: Murthy, Arun R ; Srikanth V, NagaVenkata >> >> Subject:

RE: [PATCH] drm/i915/dp: Add FEC Enable Retry mechanism

2024-09-23 Thread Srikanth V, NagaVenkata
> -Original Message- > From: Intel-xe On Behalf Of > Chaitanya Kumar Borah > Sent: Monday, September 23, 2024 10:22 AM > To: intel-gfx@lists.freedesktop.org; intel...@lists.freedesktop.org > Subject: [PATCH] drm/i915/dp: Add FEC Enable Retry mechanism > > From PTL, FEC_DECODE_EN sequen

Re: [PATCH v6 08/12] drm/i915/spi: add spi device for discrete graphics

2024-09-23 Thread Jani Nikula
On Mon, 16 Sep 2024, Alexander Usyskin wrote: > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index 39f6614a0a99..b9d4f9be5355 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -34,6 +34,8 @@ > > #include > > +#incl

RE: [PATCH v6 08/12] drm/i915/spi: add spi device for discrete graphics

2024-09-23 Thread Usyskin, Alexander
> Subject: Re: [PATCH v6 08/12] drm/i915/spi: add spi device for discrete > graphics > > On Mon, 16 Sep 2024, Alexander Usyskin > wrote: > > diff --git a/drivers/gpu/drm/i915/i915_drv.h > b/drivers/gpu/drm/i915/i915_drv.h > > index 39f6614a0a99..b9d4f9be5355 100644 > > --- a/drivers/gpu/drm/i915/

RE: [PATCH 3/3] drm/i915/dp: Include the time taken by AUX Tx for timeout

2024-09-23 Thread Jani Nikula
On Mon, 23 Sep 2024, "Srikanth V, NagaVenkata" wrote: >> > -Original Message- >> > From: Intel-xe On Behalf Of >> > Arun R Murthy >> > Sent: Thursday, September 12, 2024 10:36 AM >> > To: intel...@lists.freedesktop.org; intel-gfx@lists.freedesktop.org >> > Cc: Murthy, Arun R ; Srikanth V

Re: [PATCH v6 01/12] spi: add driver for intel graphics on-die spi device

2024-09-23 Thread Mark Brown
On Sat, Sep 21, 2024 at 01:00:52PM +, Winkler, Tomas wrote: > > On Thu, Sep 19, 2024 at 09:54:24AM +, Winkler, Tomas wrote: > > > > On Mon, Sep 16, 2024 at 04:49:17PM +0300, Alexander Usyskin wrote: > > Just do normal open coded allocations, the reference counting is just > > obscure. > T

Re: [PATCH 1/3] drm/i915/dp: use fsleep instead of usleep_rage for LT

2024-09-23 Thread Francois Dugast
On Mon, Sep 23, 2024 at 01:24:27PM +0300, Jani Nikula wrote: > On Thu, 12 Sep 2024, Arun R Murthy wrote: > > Aux RD Interval value depends on the value read from the dpcd register > > which is updated from the sink device use flseep thereby we adhere to > > the Documentation/timers/timers-howto.rs

Re: [PATCH v6 1/4] drm: Introduce device wedged event

2024-09-23 Thread Andy Shevchenko
On Mon, Sep 23, 2024 at 09:28:23AM +0530, 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 no longer operating as > expected and has become

Re: [PATCH v6 01/12] spi: add driver for intel graphics on-die spi device

2024-09-23 Thread Tvrtko Ursulin
On 21/09/2024 14:00, Winkler, Tomas wrote: On Thu, Sep 19, 2024 at 09:54:24AM +, Winkler, Tomas wrote: On Mon, Sep 16, 2024 at 04:49:17PM +0300, Alexander Usyskin wrote: @@ -0,0 +1,142 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright(c) 2019-2024, Intel Corporation. All rig

[PATCH v2 0/6] drm/i915/bios: Refactor ROM access

2024-09-23 Thread Ville Syrjala
From: Ville Syrjälä Unify the behaviour of the PCI ROM vs. SPI flash VBT read codepaths, and relocate out the low level nuts details from intel_bios.c into a new soc/intel_rom.c file. v2: Sort out the drm_dbg() vs. drm_dbg_kms() mess Include terminating '\0' in vbt_signature[] Drop an un

[PATCH v2 1/6] drm/i915/bios: Use drm_dbg_kms() consistently

2024-09-23 Thread Ville Syrjala
From: Ville Syrjälä Replace the few oddball drm_dbg() calls in VBT related code with drm_dbg_kms() as that is what we generally use for all display code. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_bios.c | 22 +++--- 1 file changed, 11 insertions(+), 11

[PATCH v2 6/6] drm/i915/bios: Extract soc/intel_rom.c

2024-09-23 Thread Ville Syrjala
From: Ville Syrjälä Abstract away the nuts and bolts of the SPI vs. PCI ROM stuff, and hide it all in soc/intel_rom.c so that the VBT code doesn't have to care about this stuff. This leaves intel_bios.c with a single codepath that can focus on the details related to the VBT layout. This should

[PATCH v2 5/6] drm/i915/bios: Extract vbt_signature[]

2024-09-23 Thread Ville Syrjala
From: Ville Syrjälä Replace the three hand rolled "$VBT"s with a vbt_signature[] to avoid accidents. v2: Include terminating '\0' for safety (Jani) Reviewed-by: Jani Nikula Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_bios.c | 15 --- 1 file changed, 12 ins

[PATCH v2 4/6] drm/i915/bios: Extract intel_spi_read16()

2024-09-23 Thread Ville Syrjala
From: Ville Syrjälä The SPI VBT codepath only knows how to read 4 bytes at a time. So to read the 2 byte vbt_size it masks out the unwanted msbs. Hide that little implementation detail inside a new intel_spi_read16() helper. Alse rename the existing intel_spi_read() to intel_spi_read32() to make

[PATCH v2 2/6] drm/i915/bios: Add some size checks to SPI VBT read

2024-09-23 Thread Ville Syrjala
From: Ville Syrjälä Unify the SPI vs. PCI ROM VBT read codepaths a bit by pulling some size overflow checks from the PCI side into the SPI side. v2: s/drm_dbg()/drm_dbg_kms()/ Reviewed-by: Jani Nikula Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_bios.c | 11 +++

[PATCH v2 3/6] drm/i915/bios: Round PCI ROM VBT allocation to multiple of 4

2024-09-23 Thread Ville Syrjala
From: Ville Syrjälä The SPI code rounds the VBT allocation to a multiple of four bytes (presumably because it reads the VBT 4 bytes at a time). Do the same for the PCI ROM side to eliminate pointless differences between the two codepaths. This will make no functional difference. Reviewed-by: Jan

Re: [PATCH 4/4] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Gustavo Sousa
Quoting Matt Roper (2024-09-18 19:49:27-03:00) >On Thu, Aug 29, 2024 at 07:00:47PM -0300, Gustavo Sousa wrote: >> Tracepoints that display frame and scanline counters for all pipes were >> added with commit 1489bba82433 ("drm/i915: Add cxsr toggle tracepoint") >> and commit 0b2599a43ca9 ("drm/i915:

Re: [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for DISPLAY_VER() == 12

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 08:38:35PM +0300, Ville Syrjälä wrote: > On Mon, Sep 23, 2024 at 08:40:07AM +0530, Suraj Kandpal wrote: > > Reduce SHPD_CNT to 250us for display version 12 as it lines up > > with DP1.4a(Table3-4) spec. > > > > --v2 > > -Update commit message and comment [Matt] > > > > Sig

Re: [PATCH 5/7] drm/i915: Move the dodgy pre-g4x wm stuff into i9xx_wm

2024-09-23 Thread Ville Syrjälä
On Sun, Sep 22, 2024 at 10:40:32AM +, Govindapillai, Vinod wrote: > On Mon, 2024-09-16 at 19:24 +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > As with other watermark calculations, the dodgy pre-g4x > > update_wm_{pre,post} flag calcultion would like to know > Typo: calculation >

Re: [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for DISPLAY_VER() == 12

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 08:40:07AM +0530, Suraj Kandpal wrote: > Reduce SHPD_CNT to 250us for display version 12 as it lines up > with DP1.4a(Table3-4) spec. > > --v2 > -Update commit message and comment [Matt] > > Signed-off-by: Suraj Kandpal > --- > drivers/gpu/drm/i915/display/intel_hotplug_

Re: [PATCH 4/7] drm/i915: Clean up intel_wm_need_update()

2024-09-23 Thread Ville Syrjälä
On Sun, Sep 22, 2024 at 10:34:07AM +, Govindapillai, Vinod wrote: > On Sun, 2024-09-22 at 12:54 +0300, Govindapillai, Vinod wrote: > > On Mon, 2024-09-16 at 19:24 +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > intel_wm_need_update() is a mess when it comes to variable > > >

Re: [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for DISPLAY_VER() == 12

2024-09-23 Thread Matt Roper
On Mon, Sep 23, 2024 at 08:38:35PM +0300, Ville Syrjälä wrote: > On Mon, Sep 23, 2024 at 08:40:07AM +0530, Suraj Kandpal wrote: > > Reduce SHPD_CNT to 250us for display version 12 as it lines up > > with DP1.4a(Table3-4) spec. > > > > --v2 > > -Update commit message and comment [Matt] > > > > Sig

[PATCH 04/16] drm/i915/dp: Add helper to compute num pipes required

2024-09-23 Thread Ankit Nautiyal
Add a helper to compute the number of pipes required. This will depend on whether the joiner is required or is forced through the debugfs. If no joiner is required the helper returns 1. v2: -Return 1 if no joiner is required. (Ville) -Change the suffix from joined_pipes to num_pipes. (Ville) -Use

[PATCH 05/16] drm/i915/display: Add debugfs support to avoid joiner

2024-09-23 Thread Ankit Nautiyal
Currently debugfs for joiner can take a value of 0->dont care and 2->join 2 pipes. Add option to force to use only 1 pipe. If debugfs is set to 1, force to exactly one pipe (ie. no joiner despite what the automagic logic is saying). Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display

[PATCH 09/16] drm/i915: Implement hw state readout and checks for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Ultrajoiner mode has some new bits and states to be read out from the hw. Lets make changes accordingly. v2: Fix checkpatch warnings. (Ankit) v3: Add separate functions for computing expected secondary_big/ultrajoiner pipes. (Ankit) v4: -Streamline the helpers for ultra

[PATCH 16/16] drm/i915/intel_dp: Add support for forcing ultrajoiner

2024-09-23 Thread Ankit Nautiyal
Allow forcing ultrajoiner through debugfs. v2: Minor refactoring of switch case logic. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/disp

[PATCH 02/16] drm/i915/display_debugfs: Allow force joiner only if supported

2024-09-23 Thread Ankit Nautiyal
Currently we support joiner only for DP encoder. Do not create the debugfs for joiner if DP does not support the joiner. This will also help avoiding cases where config has eDP MSO, with which we do not support joiner. v2: Check for intel_dp_has_joiner and avoid creating debugfs if not supported.

[PATCH 00/16] Ultrajoiner basic functionality series

2024-09-23 Thread Ankit Nautiyal
This patch series attempts to implement basic support for Ultrajoiner functionality. Rev6: -Upgrade the debugfs functionality to enable the joining of a specified number of pipes. -Modify the display helpers reliant on the pipe joiner mechanism to use number of pipes joined, instead of joiner flag

[PATCH 03/16] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-23 Thread Ankit Nautiyal
At the moment, the debugfs for joiner allows only to force enable/disable pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, where n is a valid pipe joiner configuration. This will help in case of ultra joiner where 4 pipes are joined. v2: -Fix commit message to state that only

[PATCH 01/16] drm/i915/display_device: Add Check HAS_DSC for bigjoiner

2024-09-23 Thread Ankit Nautiyal
Bigjoiner needs DSC, add a check to reflect that. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display/intel_di

[PATCH 11/16] drm/i915/display/vdsc: Add ultrajoiner support with DSC

2024-09-23 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Add changes to DSC which are required for Ultrajoiner. v2: -Use correct helper for setting bits for bigjoiner secondary. (Ankit) -Use primary/secondary instead of master/slave. (Suraj) v3: Add the ultrajoiner helpers and use it for setting ultrajoiner bits (Ankit) v4: U

[PATCH 10/16] drm/i915/display: Refactor enable_joiner_pipes

2024-09-23 Thread Ankit Nautiyal
Pass the current pipe into enabled_joiner_pipes(), and let it figure out the proper bitmasks for us. v2: -Simplify helper get_joiner_primary_pipes. (Ville) -Nuke get_joiner_secondary_pipes. (Ville) -Add more drm_WARNs and checks for final primary/secondary pipes. (Ville) Signed-off-by: Ankit Naut

[PATCH 07/16] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks

2024-09-23 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Add sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues. v2: -Streamline the expected masks and add few more drm_WARNs. (Ville) -Use %#x format specifier for printing joiner masks. (Ville) -Use struct in

[PATCH 06/16] drm/i915: Split current joiner hw state readout

2024-09-23 Thread Ankit Nautiyal
We need to add a new sanity checks and also do some preparations for adding ultrajoiner hw state readout. Lets first split reading of the uncompressed joiner and bigjoiner bit masks into separate functions. v2: Fixed checkpatch warnings (Ankit) v3: Use struct intel_display in the new functions. (A

[PATCH 12/16] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp

[PATCH 14/16] drm/i915: Compute config and mode valid changes for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Implement required changes for mode validation and compute config, to support Ultrajoiner. v2: -Drop changes for HDMI. -Separate out DSC changes into another patch. v3: Fix check in can_ultrajoiner. (Ankit) v4: -Unify helper to check joiner requirement. (Ville) -Split p

[PATCH 15/16] drm/i915/display: Consider ultrajoiner for computing maxdotclock

2024-09-23 Thread Ankit Nautiyal
Use the check for ultrajoiner while computing maxdotclock. v2: Add Check for HAS_UNCOMPRESSED_JOINER. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/int

[PATCH 13/16] drm/i915/dp: Modify helper to get slice count for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
From: Stanislav Lisovskiy ultrajoiner needs 2 bigjoiners to be enabled, so modify the helper intel_dp_dsc_get_slice_count for ultrajoiner. Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 7 +-- 1 file changed, 5 insertions(+),

[PATCH 08/16] drm/i915/display: Add macro HAS_ULTRAJOINER()

2024-09-23 Thread Ankit Nautiyal
Add macro to check if platform supports Ultrajoiner. v2: -Use check for DISPLAY_VER >= 20, and add bmg as a special case. (Ville) -Add check for HAS_DSC. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display_device.h | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for DISPLAY_VER() == 12

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:09:19AM -0700, Matt Roper wrote: > On Mon, Sep 23, 2024 at 08:38:35PM +0300, Ville Syrjälä wrote: > > On Mon, Sep 23, 2024 at 08:40:07AM +0530, Suraj Kandpal wrote: > > > Reduce SHPD_CNT to 250us for display version 12 as it lines up > > > with DP1.4a(Table3-4) spec. > >

Re: [PATCH 01/16] drm/i915/display_device: Add Check HAS_DSC for bigjoiner

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:21PM +0530, Ankit Nautiyal wrote: > Bigjoiner needs DSC, add a check to reflect that. Might want to point out here that DSC can be fused off, hence the platform check itself is not sufficient. Reviewed-by: Ville Syrjälä > > Signed-off-by: Ankit Nautiyal > --- >

[PATCH 12/16] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. v2: Fix the case for 1 pipe. (Ankit) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 27 +++-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c

Re: [PATCH 02/16] drm/i915/display_debugfs: Allow force joiner only if supported

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:22PM +0530, Ankit Nautiyal wrote: > Currently we support joiner only for DP encoder. > Do not create the debugfs for joiner if DP does not support the joiner. > This will also help avoiding cases where config has eDP MSO, with which > we do not support joiner. > > v2:

Re: [PATCH 03/16] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:23PM +0530, Ankit Nautiyal wrote: > At the moment, the debugfs for joiner allows only to force enable/disable > pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes, > where n is a valid pipe joiner configuration. > This will help in case of ultra joine

Re: [PATCH 05/16] drm/i915/display: Add debugfs support to avoid joiner

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:25PM +0530, Ankit Nautiyal wrote: > Currently debugfs for joiner can take a value of 0->dont care and > 2->join 2 pipes. Add option to force to use only 1 pipe. > > If debugfs is set to 1, force to exactly one pipe (ie. no > joiner despite what the automagic logic is

Re: [PATCH 08/16] drm/i915/display: Add macro HAS_ULTRAJOINER()

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:28PM +0530, Ankit Nautiyal wrote: > Add macro to check if platform supports Ultrajoiner. > > v2: > -Use check for DISPLAY_VER >= 20, and add bmg as a special case. (Ville) > -Add check for HAS_DSC. (Ville) > > Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjäl

Re: [PATCH] drm/i915/dp: Add FEC Enable Retry mechanism

2024-09-23 Thread Jani Nikula
On Mon, 23 Sep 2024, Chaitanya Kumar Borah wrote: > From PTL, FEC_DECODE_EN sequence can be sent to a DPRX independent > of TRANS_CONF enable. This allows us to re-issue an FEC_DECODE_EN > sequence without re-doing the whole mode set sequence. This separate > control over FEC_ECODE_EN/DIS sequenc

Re: [PATCH 0/9] drm/i915/dp: clean up DP testing

2024-09-23 Thread Jani Nikula
On Fri, 20 Sep 2024, Ville Syrjälä wrote: > On Fri, Sep 20, 2024 at 02:56:42PM +0300, Jani Nikula wrote: >> Whenever I look at doing anything in intel_dp.c I think it's grown too >> big. It's over 7k lines. >> >> The DP test functionality is fairly isolated, and mostly irrelevant for >> normal op

Re: [PATCH] drm/i915/quirks: make intel_dpcd_quirks const

2024-09-23 Thread Jani Nikula
On Thu, 19 Sep 2024, Ville Syrjälä wrote: > On Thu, Sep 19, 2024 at 06:33:54PM +0300, Jani Nikula wrote: >> The array can be in rodate, make it const. >> >> Signed-off-by: Jani Nikula > > Reviewed-by: Ville Syrjälä Thanks, pushed to din. BR, Jani. > >> --- >> drivers/gpu/drm/i915/display/in

Re: [PATCH 1/3] drm/i915/dp: use fsleep instead of usleep_rage for LT

2024-09-23 Thread Jani Nikula
On Mon, 23 Sep 2024, Francois Dugast wrote: > On Mon, Sep 23, 2024 at 01:24:27PM +0300, Jani Nikula wrote: >> On Thu, 12 Sep 2024, Arun R Murthy wrote: >> > Aux RD Interval value depends on the value read from the dpcd register >> > which is updated from the sink device use flseep thereby we adhe

Re: [PATCH 4/5] drm/i915/bios: Extract vbt_signature[]

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 12:12:39PM +0300, Jani Nikula wrote: > On Fri, 20 Sep 2024, Ville Syrjälä wrote: > > On Thu, Sep 12, 2024 at 03:15:52PM +0300, Jani Nikula wrote: > >> On Tue, 10 Sep 2024, Ville Syrjala wrote: > >> > From: Ville Syrjälä > >> > > >> > Replace the three hand rolled "$VBT"s

Re: [PATCH 4/5] drm/i915/bios: Extract vbt_signature[]

2024-09-23 Thread Jani Nikula
On Mon, 23 Sep 2024, Ville Syrjälä wrote: > On Mon, Sep 23, 2024 at 12:12:39PM +0300, Jani Nikula wrote: >> On Fri, 20 Sep 2024, Ville Syrjälä wrote: >> > On Thu, Sep 12, 2024 at 03:15:52PM +0300, Jani Nikula wrote: >> >> On Tue, 10 Sep 2024, Ville Syrjala wrote: >> >> > From: Ville Syrjälä >>

Re: [PATCH 2/4] drm/i915/display: Store pipe name in trace events

2024-09-23 Thread Gustavo Sousa
Quoting Matt Roper (2024-09-18 19:37:35-03:00) >On Thu, Aug 29, 2024 at 07:00:45PM -0300, Gustavo Sousa wrote: >> The first part[1] of the LWN series on using TRACE_EVENT() mentions >> about TP_printk(): >> >> "Do not create new tracepoint-specific helpers, because that will >> confuse use

Re: [PATCH 4/5] drm/i915/bios: Extract vbt_signature[]

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 05:24:46PM +0300, Jani Nikula wrote: > On Mon, 23 Sep 2024, Ville Syrjälä wrote: > > On Mon, Sep 23, 2024 at 12:12:39PM +0300, Jani Nikula wrote: > >> On Fri, 20 Sep 2024, Ville Syrjälä wrote: > >> > On Thu, Sep 12, 2024 at 03:15:52PM +0300, Jani Nikula wrote: > >> >> On T

Re: [PATCH v6 1/4] drm: Introduce device wedged event

2024-09-23 Thread Raag Jadav
On Mon, Sep 23, 2024 at 11:38:55AM +0300, Andy Shevchenko wrote: > On Mon, Sep 23, 2024 at 09:28:23AM +0530, 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 ca

Re: [PATCH 1/7] drm/i915: Set clear color block size to 0x0

2024-09-23 Thread Imre Deak
On Wed, Sep 18, 2024 at 05:44:39PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > We don't use the block size information for the clear color > plane. Technically the entire fb is the single block for the > single 64B clear color surface, so there is just no way to > delcare that as a cons

Re: [PATCH v6 1/4] drm: Introduce device wedged event

2024-09-23 Thread Andy Shevchenko
On Mon, Sep 23, 2024 at 05:35:23PM +0300, Raag Jadav wrote: > On Mon, Sep 23, 2024 at 11:38:55AM +0300, Andy Shevchenko wrote: > > On Mon, Sep 23, 2024 at 09:28:23AM +0530, Raag Jadav wrote: ... > > > +extern const char *const wedge_recovery_opts[]; > > > > It's not NULL terminated. How users wi

[PATCH v2] drm/i915/cx0: Set power state to ready only on owned PHY lanes

2024-09-23 Thread Vamsi Krishna Brahmajosyula
In DP alt mode, when pin assignment is D, only one PHY lane is owned by the display. intel_cx0pll_enable currently performs a power cycle ready on both the lanes in all cases. Address the todo to perfom power state ready on owned lanes. Tested on Meteor Lake-P [Intel Arc Graphics] with DP alt mod

[PATCH] drm/display/dsc: Refactor MST DSC Determination Policy

2024-09-23 Thread Fangzhi Zuo
[why] How we determine the dsc_aux used for dsc decompression in drm_dp_mst_dsc_aux_for_port() today having some defects: 1. The method how we determine a connected peer device is virtual or not in drm_dp_mst_is_virtual_dpcd() is not always correct. There are DP1.4 products in the market wh

[PATCH] drm/i915/cx0: Set power state to ready only on owned PHY lanes

2024-09-23 Thread Vamsi Krishna Brahmajosyula
In DP alt mode, when pin assignment is D, only one PHY lane is owned by the display. intel_cx0pll_enable currently performs a power state ready on both the lanes in all cases. Address the todo to perfom power state ready on owned lanes. Tested on Meteor Lake-P [Intel Arc Graphics] with DP alt mod

[PATCH v3] drm/i915/cx0: Set power state to ready only on owned PHY lanes

2024-09-23 Thread Vamsi Krishna Brahmajosyula
In DP alt mode, when pin assignment is D, only one PHY lane is owned by the display. intel_cx0pll_enable currently performs a power state ready on both the lanes in all cases. Address the todo to perfom power state ready on owned lanes. Tested on Meteor Lake-P [Intel Arc Graphics] with DP alt mod

[PATCH v1] drm/i915/hdmi: Convert comma to semicolon

2024-09-23 Thread Shen Lichuan
To ensure code clarity and prevent potential errors, it's advisable to employ the ';' as a statement separator, except when ',' are intentionally used for specific purposes. Signed-off-by: Shen Lichuan --- drivers/gpu/drm/i915/display/intel_hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [PATCH 2/2] drm/i915/soc: stop using IS_GEN9_LP() and IS_GEN9_BC()

2024-09-23 Thread Jani Nikula
On Wed, 18 Sep 2024, Ville Syrjälä wrote: > On Wed, Sep 18, 2024 at 05:50:42PM +0300, Jani Nikula wrote: >> diff --git a/drivers/gpu/drm/i915/soc/intel_pch.c >> b/drivers/gpu/drm/i915/soc/intel_pch.c >> index 542eea50093c..f7e3745bb1dc 100644 >> --- a/drivers/gpu/drm/i915/soc/intel_pch.c >> +++ b

Re: [PATCH 2/3] drm/i915/dp: read Aux RD interval after reading the FFE preset

2024-09-23 Thread Jani Nikula
On Thu, 12 Sep 2024, Arun R Murthy wrote: > DP Source should be reading AUX_RD interval after we get adjusted > TX_FFE_PRESET_VALUE from the DP Sink. (before actually adjusting > in DP Source) I don't think that's correct. See below. > Signed-off-by: Srikanth V NagaVenkata > Signed-off-by: Arun

Re: [PATCH v2 5/5] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 05:06:00PM -0300, Gustavo Sousa wrote: > Quoting Ville Syrjälä (2024-09-23 16:23:27-03:00) > >On Mon, Sep 23, 2024 at 04:02:54PM -0300, Gustavo Sousa wrote: > >> Tracepoints that display frame and scanline counters for all pipes were > >> added with commit 1489bba82433 ("drm

Re: [PATCH v2 5/5] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Gustavo Sousa
Quoting Gustavo Sousa (2024-09-23 17:47:08-03:00) >Quoting Ville Syrjälä (2024-09-23 17:18:39-03:00) >>On Mon, Sep 23, 2024 at 05:06:00PM -0300, Gustavo Sousa wrote: >>> Quoting Ville Syrjälä (2024-09-23 16:23:27-03:00) >>> >On Mon, Sep 23, 2024 at 04:02:54PM -0300, Gustavo Sousa wrote: >>> >> Trac

Re: [PATCH v2 5/5] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Gustavo Sousa
Quoting Ville Syrjälä (2024-09-23 17:18:39-03:00) >On Mon, Sep 23, 2024 at 05:06:00PM -0300, Gustavo Sousa wrote: >> Quoting Ville Syrjälä (2024-09-23 16:23:27-03:00) >> >On Mon, Sep 23, 2024 at 04:02:54PM -0300, Gustavo Sousa wrote: >> >> Tracepoints that display frame and scanline counters for al

Re: [PATCH 1/7] drm/i915: Remove leftover intel_sprite_set_colorkey_ioctl() prototype

2024-09-23 Thread Ville Syrjälä
On Sun, Sep 22, 2024 at 09:31:10AM +, Govindapillai, Vinod wrote: > On Mon, 2024-09-16 at 19:24 +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > intel_sprite_set_colorkey_ioctl() lives in intel_sprice_uapi.{c,h} > > these days. For some reason the old protoype was left behind > > i

Re: [PATCH 5/7] drm/i915: Move the dodgy pre-g4x wm stuff into i9xx_wm

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 08:35:06PM +0300, Ville Syrjälä wrote: > On Sun, Sep 22, 2024 at 10:40:32AM +, Govindapillai, Vinod wrote: > > On Mon, 2024-09-16 at 19:24 +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > As with other watermark calculations, the dodgy pre-g4x > > > up

Re: [PATCH v6 1/4] drm: Introduce device wedged event

2024-09-23 Thread Jani Nikula
On Mon, 23 Sep 2024, Andy Shevchenko wrote: > On Mon, Sep 23, 2024 at 05:35:23PM +0300, Raag Jadav wrote: >> On Mon, Sep 23, 2024 at 11:38:55AM +0300, Andy Shevchenko wrote: >> > On Mon, Sep 23, 2024 at 09:28:23AM +0530, Raag Jadav wrote: > > ... > >> > > +extern const char *const wedge_recovery_o

Re: [PATCH 16/16] drm/i915/intel_dp: Add support for forcing ultrajoiner

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:36PM +0530, Ankit Nautiyal wrote: > Allow forcing ultrajoiner through debugfs. > > v2: Minor refactoring of switch case logic. (Ville) > > Signed-off-by: Ankit Nautiyal > Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/display

Re: [PATCH 11/16] drm/i915/display/vdsc: Add ultrajoiner support with DSC

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:31PM +0530, Ankit Nautiyal wrote: > From: Stanislav Lisovskiy > > Add changes to DSC which are required for Ultrajoiner. > > v2: > -Use correct helper for setting bits for bigjoiner secondary. (Ankit) > -Use primary/secondary instead of master/slave. (Suraj) > v3: A

Re: [PATCH 14/16] drm/i915: Compute config and mode valid changes for ultrajoiner

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:34PM +0530, Ankit Nautiyal wrote: > From: Stanislav Lisovskiy > > Implement required changes for mode validation and compute config, > to support Ultrajoiner. > > v2: > -Drop changes for HDMI. > -Separate out DSC changes into another patch. > v3: Fix check in can_ul

Re: [PATCH v2 5/5] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 04:02:54PM -0300, Gustavo Sousa wrote: > Tracepoints that display frame and scanline counters for all pipes were > added with commit 1489bba82433 ("drm/i915: Add cxsr toggle tracepoint") > and commit 0b2599a43ca9 ("drm/i915: Add pipe enable/disable > tracepoints"). At that t

Re: [PATCH 09/16] drm/i915: Implement hw state readout and checks for ultrajoiner

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:29PM +0530, Ankit Nautiyal wrote: > From: Stanislav Lisovskiy > > Ultrajoiner mode has some new bits and states to be > read out from the hw. Lets make changes accordingly. > > v2: Fix checkpatch warnings. (Ankit) > v3: Add separate functions for computing expected

[PATCH v2 0/5] Miscelaneous fixes for display tracepoints

2024-09-23 Thread Gustavo Sousa
I recently bumped into some issues while using trace-cmd to inspect i915 display trace events. This series of patches provides fixes for them. v2: - Add another patch to zero-initialize frame/scanline counts. - Add static_assert(PIPE_A == _TRACE_PIPE_A) in "Do not use ids from enum pipe in

[PATCH v2 3/5] drm/i915/display: Store pipe name in trace events

2024-09-23 Thread Gustavo Sousa
The first part[1] of the LWN series on using TRACE_EVENT() mentions about TP_printk(): "Do not create new tracepoint-specific helpers, because that will confuse user-space tools that know about the TRACE_EVENT() helper macros but will not know how to handle ones created for individual

[PATCH v2 5/5] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Gustavo Sousa
Tracepoints that display frame and scanline counters for all pipes were added with commit 1489bba82433 ("drm/i915: Add cxsr toggle tracepoint") and commit 0b2599a43ca9 ("drm/i915: Add pipe enable/disable tracepoints"). At that time, we only had pipes A, B and C. Now that we can also have pipe D, th

[PATCH v2 2/5] drm/i915/display: Zero-initialize frame/scanline counts in tracepoints

2024-09-23 Thread Gustavo Sousa
In an upcoming change, we will also add support for logging frame/scanline counts for pipe D in relevant tracepoints. In [1], Matt mentioned the possibility of having garbage in those counts for pipe D on a platform containing only 3 pipes. Indeed, it has been verified that the counts for the extr

[PATCH v2 4/5] drm/i915/display: Do not use ids from enum pipe in TP_printk()

2024-09-23 Thread Gustavo Sousa
Because much of kernel tracepoints is implemented at the C preprocessor level, C identifiers used in TP_printk() are saved verbatim in the event format, even when they represent compile-time constant values. As an example, we can look at the format for the intel_pipe_enable event: # cat /sys/

[PATCH v2 1/5] drm/i915/display: Fix out-of-bounds access in pipe-related tracepoints

2024-09-23 Thread Gustavo Sousa
Some display trace events use array members to store frame and scanline counts for each pipe. However, those arrays are declared with 3 as the hardcoded size, which cause out-of-bounds access when the trace event is enabled on a platform that contains pipe D. For example, when looking at the last

Re: [PATCH 13/16] drm/i915/dp: Modify helper to get slice count for ultrajoiner

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:33PM +0530, Ankit Nautiyal wrote: > From: Stanislav Lisovskiy > > ultrajoiner needs 2 bigjoiners to be enabled, so modify the helper > intel_dp_dsc_get_slice_count for ultrajoiner. > > Signed-off-by: Stanislav Lisovskiy > Signed-off-by: Ankit Nautiyal > --- > dri

Re: [PATCH 15/16] drm/i915/display: Consider ultrajoiner for computing maxdotclock

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:35PM +0530, Ankit Nautiyal wrote: > Use the check for ultrajoiner while computing maxdotclock. > > v2: Add Check for HAS_UNCOMPRESSED_JOINER. (Ville) > > Signed-off-by: Ankit Nautiyal > --- > drivers/gpu/drm/i915/display/intel_display.c | 6 -- > 1 file changed

Re: [PATCH v2 5/5] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 05:48:29PM -0300, Gustavo Sousa wrote: > Quoting Gustavo Sousa (2024-09-23 17:47:08-03:00) > >Quoting Ville Syrjälä (2024-09-23 17:18:39-03:00) > >>On Mon, Sep 23, 2024 at 05:06:00PM -0300, Gustavo Sousa wrote: > >>> Quoting Ville Syrjälä (2024-09-23 16:23:27-03:00) > >>> >O

Re: [PATCH 10/16] drm/i915/display: Refactor enable_joiner_pipes

2024-09-23 Thread Ville Syrjälä
On Mon, Sep 23, 2024 at 11:43:30PM +0530, Ankit Nautiyal wrote: > Pass the current pipe into enabled_joiner_pipes(), and let it figure out > the proper bitmasks for us. > > v2: > -Simplify helper get_joiner_primary_pipes. (Ville) > -Nuke get_joiner_secondary_pipes. (Ville) > -Add more drm_WARNs an

Re: [PATCH v2 5/5] drm/i915/display: Cover all possible pipes in TP_printk()

2024-09-23 Thread Gustavo Sousa
Quoting Ville Syrjälä (2024-09-23 16:23:27-03:00) >On Mon, Sep 23, 2024 at 04:02:54PM -0300, Gustavo Sousa wrote: >> Tracepoints that display frame and scanline counters for all pipes were >> added with commit 1489bba82433 ("drm/i915: Add cxsr toggle tracepoint") >> and commit 0b2599a43ca9 ("drm/i9

Re: [PATCH v1] docs/gpu: ci: update flake tests requirements

2024-09-23 Thread Dmitry Baryshkov
On Tue, 24 Sept 2024 at 04:26, Vignesh Raman wrote: > > Update the documentation to require linking to a relevant GitLab > issue for each new flake entry instead of an email report. Added > specific GitLab issue URLs for i915, xe and other drivers. > > Signed-off-by: Vignesh Raman > --- > Docume

RE: [PATCH 2/3] drm/i915/dp: read Aux RD interval after reading the FFE preset

2024-09-23 Thread Murthy, Arun R
> > > > - /* > > > > -* The delay may get updated. The transmitter shall > > > > read the > > > > -* delay before link status during link training. > > > > -*/ > > > > - delay_us = > > > > drm_dp_128b132b_read_aux_rd_inter

RE: [PATCH 2/3] drm/i915/dp: read Aux RD interval after reading the FFE preset

2024-09-23 Thread Murthy, Arun R
> On Thu, 12 Sep 2024, Arun R Murthy wrote: > > DP Source should be reading AUX_RD interval after we get adjusted > > TX_FFE_PRESET_VALUE from the DP Sink. (before actually adjusting in DP > > Source) > > I don't think that's correct. See below. > Will correct the statement. > > Signed-off-by:

[PATCH v1] docs/gpu: ci: update flake tests requirements

2024-09-23 Thread Vignesh Raman
Update the documentation to require linking to a relevant GitLab issue for each new flake entry instead of an email report. Added specific GitLab issue URLs for i915, xe and other drivers. Signed-off-by: Vignesh Raman --- Documentation/gpu/automated_testing.rst | 15 ++- 1 file chang

RE: [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for DISPLAY_VER() == 12

2024-09-23 Thread Kandpal, Suraj
> -Original Message- > From: Roper, Matthew D > Sent: Monday, September 23, 2024 11:39 PM > To: Ville Syrjälä > Cc: Kandpal, Suraj ; intel-gfx@lists.freedesktop.org; > Shankar, Uma > Subject: Re: [PATCH 1/2] drm/i915/hotplug: Reduce SHPD_FLITER_CNT for > DISPLAY_VER() == 12 > > On Mo

Re: [PATCH 5/7] drm/i915: Move the dodgy pre-g4x wm stuff into i9xx_wm

2024-09-23 Thread Govindapillai, Vinod
On Tue, 2024-09-24 at 00:59 +0300, Ville Syrjälä wrote: > On Mon, Sep 23, 2024 at 08:35:06PM +0300, Ville Syrjälä wrote: > > On Sun, Sep 22, 2024 at 10:40:32AM +, Govindapillai, Vinod wrote: > > > On Mon, 2024-09-16 at 19:24 +0300, Ville Syrjala wrote: > > > > From: Ville Syrjälä > > > > > >

[PATCHv2 1/3] drm/i915/dp: use fsleep instead of usleep_range for LT

2024-09-23 Thread Arun R Murthy
Sleeping for < 10us use udelay, for 10us to 20ms use usleep_range() and for > 10ms use msleep. flseep() will call the particular API based on the above condition. (Documentation/timers/timers-howto.rst) Aux RD Interval value depends on the value read from the dpcd register which is updated from the

  1   2   >