RE: linux-next: build warnings after merge of the drm-intel tree

2024-04-05 Thread Golani, Mitulkumar Ajitkumar
Hi, Thanks @Stephen Rothwell. I corrected the documentation and sent a patch with fixes. https://patchwork.freedesktop.org/series/132061/ Regards, Mitul > -Original Message- > From: Stephen Rothwell > Sent: Friday, April 5, 2024 8:47 AM > To: Daniel Vetter ; Jani Nikula > ; Joonas

Re: [PATCH v2 02/17] drm/i915/psr: Disable PSR when bigjoiner is used

2024-04-05 Thread Hogander, Jouni
On Fri, 2024-04-05 at 00:34 +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Bigjoiner seem to be causing all kinds of grief to the PSR > code currently. I don't believe there is any hardware issue > but the code simply not handling this correctly. For now > just disable PSR when bigjoiner

✗ Fi.CI.BAT: failure for drm/dp: correct struct member name in documentation

2024-04-05 Thread Patchwork
== Series Details == Series: drm/dp: correct struct member name in documentation URL : https://patchwork.freedesktop.org/series/132062/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14531 -> Patchwork_132062v1 Summary

RE: [PATCH v5 07/19] drm/i915/psr: Call intel_psr_init_dpcd in intel_dp_detect

2024-04-05 Thread Manna, Animesh
> -Original Message- > From: Hogander, Jouni > Sent: Wednesday, April 3, 2024 2:30 PM > To: intel-gfx@lists.freedesktop.org > Cc: Manna, Animesh ; Hogander, Jouni > > Subject: [PATCH v5 07/19] drm/i915/psr: Call intel_psr_init_dpcd in > intel_dp_detect > > Currently panel replay dpcd

Re: [PATCH 12/12] drm/probe-helper: Switch to per-device debugs

2024-04-05 Thread Jani Nikula
On Thu, 04 Apr 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > Switch to per-device debugs so that we know which > device we're dealing with. Again see the first handful of patches in the series [1]. It cleans up the mode printing as well. BR, Jani. [1]

Re: [PATCH v7 6/6] drm/i915: Implement fbdev emulation as in-kernel client

2024-04-05 Thread Hogander, Jouni
On Fri, 2024-04-05 at 10:59 +0200, Thomas Zimmermann wrote: > Hi > > Am 05.04.24 um 10:34 schrieb Hogander, Jouni: > [...] > > >   > > > diff --git a/drivers/gpu/drm/i915/i915_driver.c > > > b/drivers/gpu/drm/i915/i915_driver.c > > > index e0f13c62a1832..69178b73845e1 100644 > > > ---

✗ Fi.CI.SPARSE: warning for Enable Aux Based EDP HDR (rev2)

2024-04-05 Thread Patchwork
== Series Details == Series: Enable Aux Based EDP HDR (rev2) URL : https://patchwork.freedesktop.org/series/132009/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +./arch/x86/include/asm/bitops.h:116:1:

RE: [PATCH v5 08/19] drm/i915/psr: Unify panel replay enable/disable sink

2024-04-05 Thread Manna, Animesh
> -Original Message- > From: Hogander, Jouni > Sent: Wednesday, April 3, 2024 2:30 PM > To: intel-gfx@lists.freedesktop.org > Cc: Manna, Animesh ; Hogander, Jouni > > Subject: [PATCH v5 08/19] drm/i915/psr: Unify panel replay enable/disable > sink > > Unify enabling and disabling of

[PATCH] drm/dp: correct struct member name in documentation

2024-04-05 Thread Mitul Golani
Correct struct member name to 'mode' instead of 'operation mode' in 'drm_dp_as_sdp' structure description. Fixes: 0bbb8f594e33 ("drm/dp: Add Adaptive Sync SDP logging") Cc: Mitul Golani Cc: Ankit Nautiyal Cc: Jani Nikula Signed-off-by: Mitul Golani --- include/drm/display/drm_dp_helper.h | 2

Re: [PATCH 10/12] drm/client: Use [CONNECTOR:%d:%s] formatting

2024-04-05 Thread Jani Nikula
On Thu, 04 Apr 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > Switch to the canonical [CONNECTOR:%d:%s] etc. format for > printing out kms objects. I've been pinging for reviews on [1] for a while now. :/ I'm just doing what you do in patches 9-10 in one go, and I very much prefer having

✓ Fi.CI.BAT: success for Enable Aux Based EDP HDR (rev2)

2024-04-05 Thread Patchwork
== Series Details == Series: Enable Aux Based EDP HDR (rev2) URL : https://patchwork.freedesktop.org/series/132009/ State : success == Summary == CI Bug Log - changes from CI_DRM_14532 -> Patchwork_132009v2 Summary --- **SUCCESS**

RE: [PATCH v5 06/19] drm/i915/psr: Do not write registers/bits not applicable for panel replay

2024-04-05 Thread Manna, Animesh
> -Original Message- > From: Hogander, Jouni > Sent: Wednesday, April 3, 2024 2:30 PM > To: intel-gfx@lists.freedesktop.org > Cc: Manna, Animesh ; Hogander, Jouni > > Subject: [PATCH v5 06/19] drm/i915/psr: Do not write registers/bits not > applicable for panel replay > > Bspec is

Re: [PATCH 11/12] drm/client: Streamline mode selection debugs

2024-04-05 Thread Thomas Zimmermann
Hi Am 04.04.24 um 22:33 schrieb Ville Syrjala: From: Ville Syrjälä Get rid of all the redundant debugs and just wait until the end to print which mode (and of which type) we picked. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_client_modeset.c | 65 +--- 1

Re: [PATCH v7 6/6] drm/i915: Implement fbdev emulation as in-kernel client

2024-04-05 Thread Hogander, Jouni
On Fri, 2024-03-01 at 14:42 +0100, Thomas Zimmermann wrote: > Replace all code that initializes or releases fbdev emulation > throughout the driver. Instead initialize the fbdev client by a > single call to intel_fbdev_setup() after i915 has registered its > DRM device. Just like similar code in

Re: [PATCH 1/6] drm/modes: add drm_mode_print() to dump mode in drm_printer

2024-04-05 Thread Thomas Zimmermann
Hi Am 07.03.24 um 21:39 schrieb Jani Nikula: Add a printer based function for dumping the modeline, so it's not limited to KMS debug. Note: The printed output intentionally does not have the "Modeline" prefix. Prefix, if any, is for the caller to decide when initializing drm_printer.

Re: [PATCH] drm/dp: correct struct member name in documentation

2024-04-05 Thread Stephen Rothwell
Hi Mitul, Thanks. On Fri, 5 Apr 2024 12:21:59 +0530 Mitul Golani wrote: > > Correct struct member name to 'mode' instead of 'operation mode' > in 'drm_dp_as_sdp' structure description. > > Fixes: 0bbb8f594e33 ("drm/dp: Add Adaptive Sync SDP logging") Reported-by: Stephen Rothwell > Cc:

Re: [PATCH 12/12] drm/probe-helper: Switch to per-device debugs

2024-04-05 Thread Thomas Zimmermann
Hi Am 05.04.24 um 10:25 schrieb Jani Nikula: On Thu, 04 Apr 2024, Ville Syrjala wrote: From: Ville Syrjälä Switch to per-device debugs so that we know which device we're dealing with. Again see the first handful of patches in the series [1]. It cleans up the mode printing as well. This

Re: [PATCH 0/6] drm: debug logging improvements

2024-04-05 Thread Thomas Zimmermann
Hi, with your Oops on [5/6] fixed and my comment on [1/6] considered: Reviewed-by: Thomas Zimmermann Best regards Thomas Am 07.03.24 um 21:39 schrieb Jani Nikula: Switch a handful of places over to drm device based logging and WARNs, unify connector and crtc logging, etc. Jani Nikula (6):

RE: [PATCH v5 04/19] drm/i915/psr: Do not update phy power state in case of non-eDP panel replay

2024-04-05 Thread Manna, Animesh
> -Original Message- > From: Hogander, Jouni > Sent: Wednesday, April 3, 2024 2:30 PM > To: intel-gfx@lists.freedesktop.org > Cc: Manna, Animesh ; Hogander, Jouni > > Subject: [PATCH v5 04/19] drm/i915/psr: Do not update phy power state in > case of non-eDP panel replay > > Currently

Re: [PATCH 07/12] drm/client: Use array notation for function arguments

2024-04-05 Thread Thomas Zimmermann
Hi Am 04.04.24 um 22:33 schrieb Ville Syrjala: From: Ville Syrjälä Use the array notation rather that the pointer notation for function arguments. This makes it clear to the reader that we are in fact dealing with an array rather than a single pointer. Functionally the two are equivalent.

Re: [PATCH 00/12] drm/client: Use after free and debug improvements

2024-04-05 Thread Thomas Zimmermann
Hi Reviewed-by: Thomas Zimmermann for the whole series. Best regards Thomas Am 04.04.24 um 22:33 schrieb Ville Syrjala: From: Ville Syrjälä Various improvements to the drm/client code: - Fix a use after free (fairly routinely hit by i915 CI) - Debug print improvements - Cleanups/etc.

Re: [PATCH v7 5/6] drm/i915: Implement fbdev client callbacks

2024-04-05 Thread Hogander, Jouni
On Fri, 2024-03-01 at 14:42 +0100, Thomas Zimmermann wrote: > Move code from ad-hoc fbdev callbacks into DRM client functions > and remove the old callbacks. The functions instruct the client > to poll for changed output or restore the display. > > The DRM core calls both, the old callbacks and

Re: [PATCH 06/12] drm/client: Constify modes

2024-04-05 Thread kernel test robot
Hi Ville, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.9-rc2 next-20240405] [If your patch is applied to the wrong

Re: [PATCH 11/12] drm/client: Streamline mode selection debugs

2024-04-05 Thread Thomas Zimmermann
Hi this patch should probably go before [09/12]. Best regards Thomas Am 04.04.24 um 22:33 schrieb Ville Syrjala: From: Ville Syrjälä Get rid of all the redundant debugs and just wait until the end to print which mode (and of which type) we picked. Signed-off-by: Ville Syrjälä ---

Re: [PATCH v0 00/14] Make I2C terminology more inclusive for I2C Algobit and consumers

2024-04-05 Thread Wolfram Sang
Hello Easwar, On Fri, Mar 29, 2024 at 05:00:24PM +, Easwar Hariharan wrote: > I2C v7, SMBus 3.2, and I3C specifications have replaced "master/slave" > with more appropriate terms. Inspired by and following on to Wolfram's > series to fix drivers/i2c/[1], fix the terminology for users of the >

✗ Fi.CI.SPARSE: warning for drm/dp: correct struct member name in documentation

2024-04-05 Thread Patchwork
== Series Details == Series: drm/dp: correct struct member name in documentation URL : https://patchwork.freedesktop.org/series/132062/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

Re: [PATCH] drm/dp: correct struct member name in documentation

2024-04-05 Thread Dmitry Baryshkov
On Fri, Apr 05, 2024 at 12:21:59PM +0530, Mitul Golani wrote: > Correct struct member name to 'mode' instead of 'operation mode' > in 'drm_dp_as_sdp' structure description. > > Fixes: 0bbb8f594e33 ("drm/dp: Add Adaptive Sync SDP logging") > Cc: Mitul Golani > Cc: Ankit Nautiyal > Cc: Jani

Re: [PATCH 08/12] drm/client: Extract drm_connector_first_mode()

2024-04-05 Thread Jani Nikula
On Thu, 04 Apr 2024, Ville Syrjala wrote: > From: Ville Syrjälä > > Use a consistent method for picking the first mode from the > connnector's mode list. Patches 1-8 inclusive are Reviewed-by: Jani Nikula > > Signed-off-by: Ville Syrjälä > --- > drivers/gpu/drm/drm_client_modeset.c | 17

[PATCH 7/7] drm/i915/dp: Limit brightness level to vbt min brightness

2024-04-05 Thread Suraj Kandpal
Limit minimum brightness to vbt min brightness when using aux based brightness control to avoid letting the screen from going completely blank. Sometimes vbt can have some bogus values hence clamping the value for sanity in case of corner case. --v2 -Use something same mechanism to limit minimum

Re: [PATCH v7 4/6] drm/i915: Initialize fbdev DRM client with callback functions

2024-04-05 Thread Hogander, Jouni
On Fri, 2024-03-01 at 14:42 +0100, Thomas Zimmermann wrote: > Initialize i915's fbdev client by giving an instance of struct > drm_client_funcs to drm_client_init(). Also clean up with > drm_client_release(). > > Doing this in i915 prevents fbdev helpers from initializing and > releasing the

Re: [PATCH v7 6/6] drm/i915: Implement fbdev emulation as in-kernel client

2024-04-05 Thread Thomas Zimmermann
Hi Am 05.04.24 um 10:34 schrieb Hogander, Jouni: [...] diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c index e0f13c62a1832..69178b73845e1 100644 --- a/drivers/gpu/drm/i915/i915_driver.c +++ b/drivers/gpu/drm/i915/i915_driver.c @@ -816,6 +816,8 @@ int

Re: [PATCH 0/6] drm: enable W=1 warnings by default across the subsystem

2024-04-05 Thread Jani Nikula
On Thu, 04 Apr 2024, Aishwarya TCV wrote: > Observed warning "include/drm/drm_print.h:536:35: warning: '%4.4s' > directive argument is null [-Wformat-overflow=]" when building the > modules with "defconfig+kselftest-ftrace"( >

✗ Fi.CI.BAT: failure for QGV/SAGV related fixes (rev10)

2024-04-05 Thread Patchwork
== Series Details == Series: QGV/SAGV related fixes (rev10) URL : https://patchwork.freedesktop.org/series/126962/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14533 -> Patchwork_126962v10 Summary --- **FAILURE**

Re: [rebase 1/3] drm: Add drm_vblank_work_flush_all().

2024-04-05 Thread Lucas De Marchi
what does "rebase" instead of "PATCH" is supposed to mean here? And then we have a "PATCH v2" as reply to this one. Shouldn't this go to dri-devel (too)? Lucas De Marchi On Thu, Apr 04, 2024 at 12:48:11PM +0200, Maarten Lankhorst wrote: From: Maarten Lankhorst In some cases we want to flush

Re: [linux-next:master] BUILD REGRESSION 8568bb2ccc278f344e6ac44af6ed010a90aa88dc

2024-04-05 Thread Alexei Starovoitov
On Fri, Apr 5, 2024 at 8:37 AM kernel test robot wrote: > > tree/branch: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: 8568bb2ccc278f344e6ac44af6ed010a90aa88dc Add linux-next > specific files for 20240405 > > Error/Warni

RE: [PATCH v2 02/17] drm/i915/psr: Disable PSR when bigjoiner is used

2024-04-05 Thread Murthy, Arun R
> -Original Message- > From: Intel-gfx On Behalf Of > Hogander, Jouni > Sent: Friday, April 5, 2024 12:29 PM > To: ville.syrj...@linux.intel.com; intel-gfx@lists.freedesktop.org > Subject: Re: [PATCH v2 02/17] drm/i915/psr: Disable PSR when bigjoiner is used > > On Fri, 2024-04-05 at

[PATCH v2] drm: Add drm_vblank_work_flush_all().

2024-04-05 Thread Maarten Lankhorst
From: Maarten Lankhorst In some cases we want to flush all vblank work, right before vblank_off for example. Add a simple function to make this possible. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/drm_vblank_work.c | 22 ++ include/drm/drm_vblank_work.h | 2

✓ Fi.CI.BAT: success for drm/i915: PREEMPT_RT related fixups. (rev5)

2024-04-05 Thread Patchwork
== Series Details == Series: drm/i915: PREEMPT_RT related fixups. (rev5) URL : https://patchwork.freedesktop.org/series/95463/ State : success == Summary == CI Bug Log - changes from CI_DRM_14534 -> Patchwork_95463v5 Summary ---

[PATCH 5/8] drm/i915/psr: Check possible errors for panel replay as well

2024-04-05 Thread Jouni Högander
On HPD interrupt we want to check if the reason for HPD was some panel replay error detected by monitor/panel. This is already done for PSR. We want to do this for panel replay as well. Modify intel_psr_short_pulse to support panel replay as well. Signed-off-by: Jouni Högander Reviewed-by:

✗ Fi.CI.SPARSE: warning for QGV/SAGV related fixes (rev10)

2024-04-05 Thread Patchwork
== Series Details == Series: QGV/SAGV related fixes (rev10) URL : https://patchwork.freedesktop.org/series/126962/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. +./arch/x86/include/asm/bitops.h:116:1:

[PULL] drm-misc-next

2024-04-05 Thread Maarten Lankhorst
Hi Dave, Sima, Everyone seems to be out on vacation, so the pull request is pretty empty. Cheers, ~Maarten drm-misc-next-2024-04-05: drm-misc-next for v6.10: Core Changes: - Fix DRM_DISPLAY_DP_HELPER dependencies. Driver Changes: - i2c and polling fixes to ast. - Small fixes to panthor. -

✓ Fi.CI.BAT: success for Panel Replay fixes and clean ups

2024-04-05 Thread Patchwork
== Series Details == Series: Panel Replay fixes and clean ups URL : https://patchwork.freedesktop.org/series/132073/ State : success == Summary == CI Bug Log - changes from CI_DRM_14533 -> Patchwork_132073v1 Summary --- **SUCCESS**

[PATCH 10/10] Revert "drm/i915: Depend on !PREEMPT_RT."

2024-04-05 Thread Sebastian Andrzej Siewior
Once the known issues are addressed, it should be safe to enable the driver. Signed-off-by: Sebastian Andrzej Siewior --- drivers/gpu/drm/i915/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index

[PATCH 02/10] drm/i915: Don't disable interrupts on PREEMPT_RT during atomic updates

2024-04-05 Thread Sebastian Andrzej Siewior
From: Mike Galbraith Commit 8d7849db3eab7 ("drm/i915: Make sprite updates atomic") started disabling interrupts across atomic updates. This breaks on PREEMPT_RT because within this section the code attempt to acquire spinlock_t locks which are sleeping locks on PREEMPT_RT. According to the

[PATCH 06/10] drm/i915/gt: Queue and wait for the irq_work item.

2024-04-05 Thread Sebastian Andrzej Siewior
Disabling interrupts and invoking the irq_work function directly breaks on PREEMPT_RT. PREEMPT_RT does not invoke all irq_work from hardirq context because some of the user have spinlock_t locking in the callback function. These locks are then turned into a sleeping locks which can not be acquired

RE: [PATCH v2 02/17] drm/i915/psr: Disable PSR when bigjoiner is used

2024-04-05 Thread Murthy, Arun R
Forgot to add my Rb Reviewed-by: Arun R Murthy Thanks and Regards, Arun R Murthy > -Original Message- > From: Murthy, Arun R > Sent: Friday, April 5, 2024 6:30 PM > To: Hogander, Jouni ; ville.syrj...@linux.intel.com; > intel-gfx@lists.freedesktop.org > Subject:

RE: [PATCH v2 02/17] drm/i915/psr: Disable PSR when bigjoiner is used

2024-04-05 Thread Murthy, Arun R
> -Original Message- > From: Intel-gfx On Behalf Of > Hogander, Jouni > Sent: Friday, April 5, 2024 12:29 PM > To: ville.syrj...@linux.intel.com; intel-gfx@lists.freedesktop.org > Subject: Re: [PATCH v2 02/17] drm/i915/psr: Disable PSR when bigjoiner is used > > On Fri, 2024-04-05 at

Re: [Intel-gfx] [PATCH v5 0/7] Introduce __xchg, non-atomic xchg

2024-04-05 Thread Jani Nikula
On Mon, 27 Feb 2023, Peter Zijlstra wrote: > On Thu, Feb 23, 2023 at 10:24:19PM +0100, Andrzej Hajda wrote: >> On 22.02.2023 18:04, Peter Zijlstra wrote: >> > On Wed, Jan 18, 2023 at 04:35:22PM +0100, Andrzej Hajda wrote: >> > >> > > Andrzej Hajda (7): >> > >arch: rename all internal names

✗ Fi.CI.CHECKPATCH: warning for drm/i915: PREEMPT_RT related fixups. (rev5)

2024-04-05 Thread Patchwork
== Series Details == Series: drm/i915: PREEMPT_RT related fixups. (rev5) URL : https://patchwork.freedesktop.org/series/95463/ State : warning == Summary == Error: dim checkpatch failed 12b51e744085 drm/i915: Use preempt_disable/enable_rt() where recommended -:7: WARNING:COMMIT_LOG_LONG_LINE:

✗ Fi.CI.SPARSE: warning for drm/i915: PREEMPT_RT related fixups. (rev5)

2024-04-05 Thread Patchwork
== Series Details == Series: drm/i915: PREEMPT_RT related fixups. (rev5) URL : https://patchwork.freedesktop.org/series/95463/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[linux-next:master] BUILD REGRESSION 8568bb2ccc278f344e6ac44af6ed010a90aa88dc

2024-04-05 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 8568bb2ccc278f344e6ac44af6ed010a90aa88dc Add linux-next specific files for 20240405 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202404051333.7und7ppw-...@intel.com https

✗ Fi.CI.CHECKPATCH: warning for series starting with [v2] drm: Add drm_vblank_work_flush_all(). (rev2)

2024-04-05 Thread Patchwork
== Series Details == Series: series starting with [v2] drm: Add drm_vblank_work_flush_all(). (rev2) URL : https://patchwork.freedesktop.org/series/132028/ State : warning == Summary == Error: dim checkpatch failed 484c7f370590 drm: Add drm_vblank_work_flush_all(). -:33:

✗ Fi.CI.SPARSE: warning for series starting with [v2] drm: Add drm_vblank_work_flush_all(). (rev2)

2024-04-05 Thread Patchwork
== Series Details == Series: series starting with [v2] drm: Add drm_vblank_work_flush_all(). (rev2) URL : https://patchwork.freedesktop.org/series/132028/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

RE: [PATCH v2 01/17] drm/i915: Update pipes in reverse order for bigjoiner

2024-04-05 Thread Kulkarni, Vandita
> -Original Message- > From: Intel-gfx On Behalf Of Ville > Syrjala > Sent: Friday, April 5, 2024 3:04 AM > To: intel-gfx@lists.freedesktop.org > Subject: [PATCH v2 01/17] drm/i915: Update pipes in reverse order for > bigjoiner > > From: Ville Syrjälä > > With bigjoiner the master crtc

[PATCH v10 1/6] drm/i915/display: Add meaningful traces for QGV point info error handling

2024-04-05 Thread Vinod Govindapillai
From: Stanislav Lisovskiy For debug purposes we need those - error path won't flood the log, however there has been already numerous cases, when due to lack of debugs, we couldn't immediately tell what was the problem on customer machine, which slowed down the investigation, requiring to get

[PATCH v10 2/6] drm/i915/display: Extract code required to calculate max qgv/psf gv point

2024-04-05 Thread Vinod Govindapillai
From: Stanislav Lisovskiy We need that in order to force disable SAGV in next patch. Also it is beneficial to separate that code, as in majority cases, when SAGV is enabled, we don't even need those calculations. Also we probably need to determine max PSF GV point as well, however currently we

[PATCH v10 3/6] drm/i915/display: extract code to prepare qgv points mask

2024-04-05 Thread Vinod Govindapillai
Extract the code to prepare the QGV points mask as per the format expected by the pcode as this could be utlized from multiple points. Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_bw.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff

[PATCH v10 4/6] drm/i915/display: Disable SAGV on bw init, to force QGV point recalculation

2024-04-05 Thread Vinod Govindapillai
From: Stanislav Lisovskiy Problem is that on some platforms, we do get QGV point mask in wrong state on boot. However driver assumes it is set to 0 (i.e all points allowed), however in reality we might get them all restricted, causing issues. Lets disable SAGV initially to force proper QGV point

[PATCH 2/8] drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well

2024-04-05 Thread Jouni Högander
Current code is setting only intel_crtc_state->has_panel_replay in panel replay case. There are lots of stuff behind intel_crtc_state->has_psr that is needed for panel replay as well. Instead of converting each check to has_psr || has_panel_replay set has_psr in case of panel replay as well. Code

[PATCH 1/8] drm/i915/psr: Add some documentation of variables used in psr code

2024-04-05 Thread Jouni Högander
We are adding more boolean variable into intel_psr and intel_crtc_state structs. Add some documentation about these for sake of clarity. v2: Modify has_psr + has_panel_replay to mean panel replay Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna ---

[PATCH 3/8] drm/i915/psr: Intel_psr_pause/resume needs to support panel replay

2024-04-05 Thread Jouni Högander
Currently intel_psr_pause and intel_psr_resume do nothing in case of panel replay. Change them to perform pause and return also in case of panel replay. Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_psr.c | 4 ++-- 1 file changed, 2

[PATCH 6/8] drm/i915/psr: Do not write registers/bits not applicable for panel replay

2024-04-05 Thread Jouni Högander
Bspec is saying this mask register: Only PSR_MASK[Mask FBC modify] and PSR_MASK[Mask Hotplug] are used in panel replay mode. Status register: Only SRD_STATUS[SRD state] field is used in panel replay mode. Due to this stop writing and reading registers and bits not used by panel replay if panel

[PATCH 4/8] drm/i915/psr: Do not update phy power state in case of non-eDP panel replay

2024-04-05 Thread Jouni Högander
Currently panel replay is supporting only main link on mode -> Do not update phy power state for non-eDP panel replay. Bspec: 53370 v2: use intel_dp_is_edp to differentiate Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_psr.c | 12

[PATCH 0/8] Panel Replay fixes and clean ups

2024-04-05 Thread Jouni Högander
This patch set is a subset of Panel Replay selective update support set: https://patchwork.freedesktop.org/series/128193/ It contains fixes and clean ups to current Panel Replay implementation: Several needed functions are not executed for panel replay Ensure link training follows enabling

[PATCH 8/8] drm/i915/psr: Panel replay has to be enabled before link training

2024-04-05 Thread Jouni Högander
Panel replay has to be enabled on sink side before link training. Take this into account in fastset check and in initial fastset check. Signed-off-by: Jouni Högander Reviewed-by: Animesh Manna --- drivers/gpu/drm/i915/display/intel_display.c | 12

[PATCH 7/8] drm/i915/psr: Unify panel replay enable/disable sink

2024-04-05 Thread Jouni Högander
Unify enabling and disabling of psr/panel replay for a sink. Modify intel_psr_enable_sink accordingly and use it for both cases. v3: - move psr2_su_region_et_valid to be check for PSR2 only v2: - enable panel replay for sink before link training - write ALPM_CONFIG only for PSR - add

[PATCH v10 0/6] QGV/SAGV related fixes

2024-04-05 Thread Vinod Govindapillai
We have couple of customer issues, related to SAGV/QGV point calculation. Those patches contain fixes plus some additional debugs for those issues. Stanislav Lisovskiy (4): drm/i915/display: Add meaningful traces for QGV point info error handling drm/i915/display: Extract code required to

[PATCH v10 5/6] drm/i915/display: handle systems with duplicate psf gv points

2024-04-05 Thread Vinod Govindapillai
From: Stanislav Lisovskiy There could be multiple qgv and psf gv points with similar values. Apparently pcode's handling og psf and qgv points are different. For qgv case, pcode sets whatever is asked by the driver. But in case of psf gv points, it compares the bw from points before setting the

[PATCH v10 6/6] drm/i915/display: force qgv check after the hw state readout

2024-04-05 Thread Vinod Govindapillai
The current intel_bw_atomic_check do not check the possbility of a sagv configuration change after the hw state readout. Hence cannot update the sagv configuration until some other relevant changes like data rates, number of planes etc. happen. Introduce a flag to force qgv check in such cases.

✗ Fi.CI.CHECKPATCH: warning for Panel Replay fixes and clean ups

2024-04-05 Thread Patchwork
== Series Details == Series: Panel Replay fixes and clean ups URL : https://patchwork.freedesktop.org/series/132073/ State : warning == Summary == Error: dim checkpatch failed c17cab9b7282 drm/i915/psr: Add some documentation of variables used in psr code 01e4b2f7edc9 drm/i915/psr: Set

RE: [PATCH v2 01/17] drm/i915: Update pipes in reverse order for bigjoiner

2024-04-05 Thread Murthy, Arun R
> -Original Message- > From: Intel-gfx On Behalf Of Ville > Syrjala > Sent: Friday, April 5, 2024 3:04 AM > To: intel-gfx@lists.freedesktop.org > Subject: [PATCH v2 01/17] drm/i915: Update pipes in reverse order for > bigjoiner > > From: Ville Syrjälä > > With bigjoiner the master

[PATCH 05/10] drm/i915: skip DRM_I915_LOW_LEVEL_TRACEPOINTS with NOTRACE

2024-04-05 Thread Sebastian Andrzej Siewior
The order of the header files is important. If this header file is included after tracepoint.h was included then the NOTRACE here becomes a nop. Currently this happens for two .c files which use the tracepoitns behind DRM_I915_LOW_LEVEL_TRACEPOINTS. Cc: Steven Rostedt Signed-off-by: Sebastian

[PATCH 01/10] drm/i915: Use preempt_disable/enable_rt() where recommended

2024-04-05 Thread Sebastian Andrzej Siewior
From: Mike Galbraith Mario Kleiner suggest in commit ad3543ede630f ("drm/intel: Push get_scanout_position() timestamping into kms driver.") a spots where preemption should be disabled on PREEMPT_RT. The difference is that on PREEMPT_RT the intel_uncore::lock disables neither preemption nor

[PATCH 04/10] drm/i915: Disable tracing points on PREEMPT_RT

2024-04-05 Thread Sebastian Andrzej Siewior
Luca Abeni reported this: | BUG: scheduling while atomic: kworker/u8:2/15203/0x0003 | CPU: 1 PID: 15203 Comm: kworker/u8:2 Not tainted 4.19.1-rt3 #10 | Call Trace: | rt_spin_lock+0x3f/0x50 | gen6_read32+0x45/0x1d0 [i915] | g4x_get_vblank_counter+0x36/0x40 [i915] |

[PATCH 08/10] drm/i915: Drop the irqs_disabled() check

2024-04-05 Thread Sebastian Andrzej Siewior
The !irqs_disabled() check triggers on PREEMPT_RT even with i915_sched_engine::lock acquired. The reason is the lock is transformed into a sleeping lock on PREEMPT_RT and does not disable interrupts. There is no need to check for disabled interrupts. The lockdep annotation below already check if

[PATCH 07/10] drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() + spin_lock()

2024-04-05 Thread Sebastian Andrzej Siewior
execlists_dequeue() is invoked from a function which uses local_irq_disable() to disable interrupts so the spin_lock() behaves like spin_lock_irq(). This breaks PREEMPT_RT because local_irq_disable() + spin_lock() is not the same as spin_lock_irq(). execlists_dequeue_irq() and execlists_dequeue()

[PATCH 03/10] drm/i915: Don't check for atomic context on PREEMPT_RT

2024-04-05 Thread Sebastian Andrzej Siewior
The !in_atomic() check in _wait_for_atomic() triggers on PREEMPT_RT because the uncore::lock is a spinlock_t and does not disable preemption or interrupts. Changing the uncore:lock to a raw_spinlock_t doubles the worst case latency on an otherwise idle testbox during testing. Therefore I'm

[PATCH 00/10] drm/i915: PREEMPT_RT related fixups.

2024-04-05 Thread Sebastian Andrzej Siewior
Hi, The following patches are from the PREEMPT_RT queue. It is mostly about disabling interrupts/preemption which leads to problems. Unfortunately DRM_I915_LOW_LEVEL_TRACEPOINTS had to be disabled because it acquires locks from within trace points. Making the lock a raw_spinlock_t led to higher

[PATCH 09/10] drm/i915/guc: Consider also RCU depth in busy loop.

2024-04-05 Thread Sebastian Andrzej Siewior
intel_guc_send_busy_loop() looks at in_atomic() and irqs_disabled() to decide if it should busy-spin while waiting or if it may sleep. Both checks will report false on PREEMPT_RT if sleeping spinlocks are acquired leading to RCU splats while the function sleeps. Check also if RCU has been

✗ Fi.CI.BAT: failure for series starting with [v2] drm: Add drm_vblank_work_flush_all(). (rev2)

2024-04-05 Thread Patchwork
== Series Details == Series: series starting with [v2] drm: Add drm_vblank_work_flush_all(). (rev2) URL : https://patchwork.freedesktop.org/series/132028/ State : failure == Summary == CI Bug Log - changes from CI_DRM_14534 -> Patchwork_132028v2

[PATCH i-g-t v2] lib/kunit: Read results from debugfs

2024-04-05 Thread Janusz Krzysztofik
KUnit can provide KTAP reports from test modules via debugfs files, one per test suite. Using that source of test results instead of extracting them from dmesg, where they may be interleaved with other kernel messages, seems more easy to handle and less error prone. Switch to it. If KUnit

Re: [7/7] drm/i915/dp: Limit brightness level to vbt min brightness

2024-04-05 Thread Sebastian Wick
On Fri, Apr 05, 2024 at 02:07:05PM +0530, Suraj Kandpal wrote: > Limit minimum brightness to vbt min brightness when using aux > based brightness control to avoid letting the screen > from going completely blank. > Sometimes vbt can have some bogus values hence clamping the value > for sanity in

Re: [PATCH 01/12] drm/client: Fully protect modes[] with dev->mode_config.mutex

2024-04-05 Thread Ville Syrjälä
On Fri, Apr 05, 2024 at 06:24:01AM +0300, Dmitry Baryshkov wrote: > On Thu, Apr 04, 2024 at 11:33:25PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > The modes[] array contains pointers to modes on the connectors' > > mode lists, which are protected by dev->mode_config.mutex. > >

Re: [PATCH 04/12] drm/client: Add a FIXME around crtc->mode usage

2024-04-05 Thread Ville Syrjälä
On Fri, Apr 05, 2024 at 06:32:46AM +0300, Dmitry Baryshkov wrote: > On Thu, Apr 04, 2024 at 11:33:28PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > crtc->mode is legacy junk and shouldn't really be used with > > atomic drivers. > > > > Most (all?) atomic drivers do end up still

Re: [PR] i915: Add DG2 HuC to 7.10.15

2024-04-05 Thread Josh Boyer
On Mon, Apr 1, 2024 at 2:50 PM Daniele Ceraolo Spurio wrote: > > The following changes since commit 93f329774542b9b7d57abb18ea8b6542f2d8feac: > > Merge branch 'robot/pr-0-1709214990' into 'main' (2024-02-29 14:10:53 +) > > are available in the Git repository at: > >

RE: [3/7] drm/i915/dp: Fix Register bit naming

2024-04-05 Thread Kandpal, Suraj
> -Original Message- > From: Sebastian Wick > Sent: Friday, April 5, 2024 10:46 PM > To: Kandpal, Suraj > Cc: intel-gfx@lists.freedesktop.org; Borah, Chaitanya Kumar > ; Shankar, Uma > ; Nautiyal, Ankit K ; > Murthy, Arun R ; Syrjala, Ville > ; Kumar, Naveen1 > Subject: Re: [3/7]

Re: [PATCH v0 13/14] drm/nouveau: Make I2C terminology more inclusive

2024-04-05 Thread Lyude Paul
On Fri, 2024-04-05 at 09:30 -0700, Easwar Hariharan wrote: > > Thanks for the review, and for the appetite to go further! So we are > on the same page, you would prefer > renaming to controller/target like the feedback on other drm drivers > (i915, gma500, radeon)? FWIW I'm in support of this as

Re: [PATCH 1/6] drm/modes: add drm_mode_print() to dump mode in drm_printer

2024-04-05 Thread Ville Syrjälä
On Fri, Apr 05, 2024 at 10:45:42AM +0200, Thomas Zimmermann wrote: > Hi > > Am 07.03.24 um 21:39 schrieb Jani Nikula: > > Add a printer based function for dumping the modeline, so it's not > > limited to KMS debug. > > > > Note: The printed output intentionally does not have the "Modeline" > >

[PATCH 4/6] drm/xe/display: clean up a lot of cruft from compat i915_drv.h

2024-04-05 Thread Jani Nikula
There's a bunch of unused cruft. Just throw away. Cc: Lucas De Marchi Signed-off-by: Jani Nikula --- .../gpu/drm/xe/compat-i915-headers/i915_drv.h | 32 --- 1 file changed, 32 deletions(-) diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h

[PATCH 5/6] drm/xe/display: remove compat i915_gem.h

2024-04-05 Thread Jani Nikula
It's only there for GEM_BUG_ON(), but the display code no longer uses it. Good riddance. Cc: Lucas De Marchi Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 1 - drivers/gpu/drm/xe/compat-i915-headers/i915_gem.h | 9 - 2 files changed, 10 deletions(-)

[PATCH 6/6] drm/xe/display: clean up compat i915_vgpu.h

2024-04-05 Thread Jani Nikula
There's a bunch of unnecessary stuff not needed by display code. Remove. Cc: Lucas De Marchi Signed-off-by: Jani Nikula --- .../drm/xe/compat-i915-headers/i915_vgpu.h| 26 --- 1 file changed, 26 deletions(-) diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_vgpu.h

Re: [PATCH 10/12] drm/client: Use [CONNECTOR:%d:%s] formatting

2024-04-05 Thread Ville Syrjälä
On Fri, Apr 05, 2024 at 11:23:01AM +0300, Jani Nikula wrote: > On Thu, 04 Apr 2024, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Switch to the canonical [CONNECTOR:%d:%s] etc. format for > > printing out kms objects. > > I've been pinging for reviews on [1] for a while now. :/ > > I'm

Re: [PATCH v0 13/14] drm/nouveau: Make I2C terminology more inclusive

2024-04-05 Thread Danilo Krummrich
Hi Easwar, On 3/29/24 18:00, Easwar Hariharan wrote: I2C v7, SMBus 3.2, and I3C specifications have replaced "master/slave" with more appropriate terms. Inspired by and following on to Wolfram's series to fix drivers/i2c/[1], fix the terminology for users of I2C_ALGOBIT bitbanging interface,

✓ Fi.CI.BAT: success for drm/dp: correct struct member name in documentation

2024-04-05 Thread Patchwork
== Series Details == Series: drm/dp: correct struct member name in documentation URL : https://patchwork.freedesktop.org/series/132062/ State : success == Summary == CI Bug Log - changes from CI_DRM_14531 -> Patchwork_132062v1 Summary

✗ Fi.CI.CHECKPATCH: warning for drm/i915 and drm/xe display integration cleanups

2024-04-05 Thread Patchwork
== Series Details == Series: drm/i915 and drm/xe display integration cleanups URL : https://patchwork.freedesktop.org/series/132097/ State : warning == Summary == Error: dim checkpatch failed b8ca0bbab20e drm/i915: use IS_JASPERLAKE()/IS_ELKHARTLAKE() instead of IS_PLATFORM() 0706baf1630e

✗ Fi.CI.SPARSE: warning for drm/i915 and drm/xe display integration cleanups

2024-04-05 Thread Patchwork
== Series Details == Series: drm/i915 and drm/xe display integration cleanups URL : https://patchwork.freedesktop.org/series/132097/ State : warning == Summary == Error: dim sparse failed Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. -

RE: [4/7] drm/i915/dp: Fix comments on EDP HDR DPCD registers

2024-04-05 Thread Kandpal, Suraj
> -Original Message- > From: Sebastian Wick > Sent: Friday, April 5, 2024 10:55 PM > To: Kandpal, Suraj > Cc: intel-gfx@lists.freedesktop.org; Borah, Chaitanya Kumar > ; Shankar, Uma > ; Nautiyal, Ankit K ; > Murthy, Arun R ; Syrjala, Ville > ; Kumar, Naveen1 > Subject: Re: [4/7]

[PATCH] drm/xe/display: Fix double mutex initialization

2024-04-05 Thread Lucas De Marchi
All of these mutexes are already initialized by the display side since commit 3fef3e6ff86a ("drm/i915: move display mutex inits to display code"), so the xe shouldn´t initialize them. Fixes: 44e694958b95 ("drm/xe/display: Implement display support") Cc: Jani Nikula Cc: Arun R Murthy

Re: [6/7] drm/i915/dp: Write panel override luminance values

2024-04-05 Thread Sebastian Wick
On Thu, Apr 04, 2024 at 08:59:30AM +0530, Suraj Kandpal wrote: > Write panel override luminance values which helps the TCON decide > if tone mapping needs to be enabled or not. > > Signed-off-by: Suraj Kandpal > --- > .../drm/i915/display/intel_dp_aux_backlight.c | 25 +++ > 1

RE: [6/7] drm/i915/dp: Write panel override luminance values

2024-04-05 Thread Kandpal, Suraj
> -Original Message- > From: Sebastian Wick > Sent: Friday, April 5, 2024 11:02 PM > To: Kandpal, Suraj > Cc: intel-gfx@lists.freedesktop.org; Borah, Chaitanya Kumar > ; Shankar, Uma > ; Nautiyal, Ankit K ; > Murthy, Arun R ; Syrjala, Ville > ; Kumar, Naveen1 > Subject: Re: [6/7]

  1   2   >