Re: [PATCH v3 1/1] drm/panfrost: Replace fdinfo's profiling debugfs knob with sysfs

2024-03-11 Thread Adrián Larumbe
On 11.03.2024 11:02, Boris Brezillon wrote: > On Wed, 6 Mar 2024 08:33:47 + > Tvrtko Ursulin wrote: > > > On 06/03/2024 01:56, Adrián Larumbe wrote: > > > Debugfs isn't always available in production builds that try to squeeze > > > every single byte out of the kernel image, but we still need

Re: [PATCH v3 6/7] arm64: dts: qcom: sm8650: add GPU nodes

2024-03-11 Thread Konrad Dybcio
On 2/16/24 12:03, Neil Armstrong wrote: Add GPU nodes for the SM8650 platform. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 166 +++ 1 file changed, 166 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm

[drm-intel:for-linux-next 4/6] drivers/gpu/drm/i915/display/intel_bios.c:3417:24: error: implicit declaration of function 'intel_opregion_vbt_present'; did you mean 'intel_opregion_asle_present'?

2024-03-11 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm-intel for-linux-next head: 0e7dd6fe96020e6b7f5e068bf1c66078e0b145d3 commit: 9d9bb71f3e115b75ec5e38f087e159a87fc0413a [4/6] drm/i915: Extract opregion vbt presence check config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20240312/20240

[PATCH v2] Fix divide-by-zero regression on DP MST unplug with nouveau

2024-03-11 Thread Chris Bainbridge
Fix a regression when using nouveau and unplugging a StarTech MSTDP122DP DisplaypPort 1.2 MST hub (the same regression does not appear when using a Cable Matters DisplayPort 1.4 MST hub). Trace: divide error: [#1] PREEMPT SMP PTI CPU: 7 PID: 2962 Comm: Xorg Not tainted 6.8.0-rc3+ #744 Hard

[drm-misc:drm-misc-next 3/3] drivers/iommu/Kconfig:14:error: recursive dependency detected!

2024-03-11 Thread kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next head: b33651a5c98dbd5a919219d8c129d0674ef74299 commit: 674dc7f61aefea81901c21402946074927e63f1a [3/3] drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue config: x86_64-rhel-8.3-rust (attached as .config) compiler

Re: [10/13] drm/fbdev-generic: Fix locking with drm_client_buffer_vmap_local()

2024-03-11 Thread Sui Jingfeng
Hi, On 2024/2/27 18:14, Thomas Zimmermann wrote: Temporarily lock the fbdev buffer object during updates to prevent memory managers from evicting/moving the buffer. Moving a buffer object while update its content results in undefined behaviour. Fbdev-generic updates its buffer object from a sh

Re: [PATCH v4 00/10] Make PCI's devres API more consistent

2024-03-11 Thread Bjorn Helgaas
On Mon, Mar 11, 2024 at 12:45:15PM +0100, Philipp Stanner wrote: > Gentle ping because the Merge Window opened 8-) Thanks; I'll look at this for v6.10. It's too late to add significant changes for the v6.9 merge window since it's already open. Bjorn > On Fri, 2024-03-01 at 12:29 +0100, Philipp

Re: [09/13] drm/gem: Acquire reservation lock in drm_gem_{pin/unpin}()

2024-03-11 Thread Sui Jingfeng
Hi, On 2024/2/27 18:14, Thomas Zimmermann wrote: Acquire the buffer object's reservation lock in drm_gem_pin() and remove locking the drivers' GEM callbacks where necessary. Same for unpin(). DRM drivers and memory managers modified by this patch will now have correct dma-buf locking semantics

Re: [PATCH 10/12] drm/imx: ldb: switch to imx_legacy_bridge / drm_bridge_connector

2024-03-11 Thread kernel test robot
Hi Dmitry, kernel test robot noticed the following build errors: [auto build test ERROR on 1843e16d2df9d98427ef8045589571749d627cf7] url: https://github.com/intel-lab-lkp/linux/commits/Dmitry-Baryshkov/dt-bindings-display-fsl-imx-drm-drop-edid-property-support/20240311-192356 base

[PATCH v2] drm/i915/hwmon: Fix locking inversion in sysfs getter

2024-03-11 Thread Janusz Krzysztofik
In i915 hwmon sysfs getter path we now take a hwmon_lock, then acquire an rpm wakeref. That results in lock inversion: <4> [197.079335] == <4> [197.085473] WARNING: possible circular locking dependency detected <4> [197.091611] 6.8.0-rc7-Patchwo

Re: [PATCH] drm: Don't return unsupported formats in drm_mode_legacy_fb_format

2024-03-11 Thread Frej Drejhammar
Hi Thomas, Thanks for the review and suggestions. My experience with the drm parts of the kernel is limited to some weekends trying to fix the regression, so I'm afraid I have some questions to check my understanding before making a v2 of the patch. Thomas Zimmermann writes: > I suggest to swit

Re: [PATCH 0/5] drm/i915: cleanup dead code

2024-03-11 Thread Lucas De Marchi
On Mon, Mar 11, 2024 at 05:43:00PM +, Tvrtko Ursulin wrote: On 06/03/2024 19:36, Lucas De Marchi wrote: Remove platforms that never had their PCI IDs added to the driver and are of course marked with requiring force_probe. Note that most of the code for those platforms is actually used by s

Re: [PATCH] drm/i915/hwmon: Fix locking inversion in sysfs getter

2024-03-11 Thread Rodrigo Vivi
On Mon, Mar 11, 2024 at 07:14:09PM +0100, Janusz Krzysztofik wrote: > On Monday, 11 March 2024 18:35:43 CET Guenter Roeck wrote: > > On 3/11/24 09:58, Rodrigo Vivi wrote: > > > On Mon, Mar 11, 2024 at 09:06:46AM +0100, Janusz Krzysztofik wrote: > > >> In i915 hwmon sysfs getter path we now take a h

Re: [PATCH] drm/i915/hwmon: Fix locking inversion in sysfs getter

2024-03-11 Thread Janusz Krzysztofik
On Monday, 11 March 2024 18:35:43 CET Guenter Roeck wrote: > On 3/11/24 09:58, Rodrigo Vivi wrote: > > On Mon, Mar 11, 2024 at 09:06:46AM +0100, Janusz Krzysztofik wrote: > >> In i915 hwmon sysfs getter path we now take a hwmon_lock, then acquire an > >> rpm wakeref. That results in lock inversion

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-11 Thread Kuogee Hsieh
On 3/8/2024 1:45 PM, Abhinav Kumar wrote: There are cases where the userspace might still send another frame after the HPD disconnect causing a modeset cycle after a disconnect. This messes the internal state machine of MSM DP driver and can lead to a crash as there can be an imbalance between

Re: [PATCH v2] drm/amdgpu: add ring buffer information in devcoredump

2024-03-11 Thread Christian König
Am 11.03.24 um 16:11 schrieb Sunil Khatri: Add relevant ringbuffer information such as rptr, wptr,rb mask, ring name, ring size and also the rings content for each ring on a gpu reset. Signed-off-by: Sunil Khatri I think printing the mask still might be useful, but that's just a nit pick. Wi

Re: [PATCH v2 28/28] fbdev/p9100: Drop now unused driver p9100

2024-03-11 Thread Sam Ravnborg
Hi Arnd. On Mon, Mar 11, 2024 at 03:05:25PM +0100, Arnd Bergmann wrote: > On Sat, Mar 9, 2024, at 19:15, Sam Ravnborg via B4 Relay wrote: > > From: Sam Ravnborg > > > > The p9100 driver is only relevant for the Sparcbook 3 machine, > > and with sun4m support removed this driver is no longer relev

Re: [PATCH 0/5] drm/i915: cleanup dead code

2024-03-11 Thread Tvrtko Ursulin
On 06/03/2024 19:36, Lucas De Marchi wrote: Remove platforms that never had their PCI IDs added to the driver and are of course marked with requiring force_probe. Note that most of the code for those platforms is actually used by subsequent ones, so it's not a huge amount of code being removed.

Re: [PATCH 02/12] dt-bindings: display: imx/ldb: drop ddc-i2c-bus property

2024-03-11 Thread Rob Herring
On Mon, 11 Mar 2024 13:20:10 +0200, Dmitry Baryshkov wrote: > The in-kernel DT files do not use ddc-i2c-bus property with the iMX LVDS > Display Bridge. If in future a need arises to support such usecase, the > panel-simple should be used, which is able to handle the DDC bus. > > Signed-off-by:

Re: [PATCH 01/12] dt-bindings: display: fsl-imx-drm: drop edid property support

2024-03-11 Thread Rob Herring
On Mon, 11 Mar 2024 13:20:09 +0200, Dmitry Baryshkov wrote: > None of the in-kernel DT files ever used edid override with the > fsl-imx-drm driver. In case the EDID needs to be specified manually, DRM > core allows one to either override it via the debugfs or to load it via > request_firmware by

Re: [PATCH] drm/i915/hwmon: Fix locking inversion in sysfs getter

2024-03-11 Thread Guenter Roeck
On 3/11/24 09:58, Rodrigo Vivi wrote: On Mon, Mar 11, 2024 at 09:06:46AM +0100, Janusz Krzysztofik wrote: In i915 hwmon sysfs getter path we now take a hwmon_lock, then acquire an rpm wakeref. That results in lock inversion: <4> [197.079335]

[PATCH v3 14/28] sparc32: Drop unused mmu models

2024-03-11 Thread Sam Ravnborg
Drop mmu models not used by LEON, including their header files. This includes removal of unused includes in various files to fix the build. With this change SHMLBA is always PAGE_SIZE so use the asm-generic variant of shmparam.h for sparc32. __ARCH_FORCE_SHMLBA is then no longer defined, but this

Re: [PATCH RFC v2 5/5] drm/msm/hdmi: make use of the drm_connector_hdmi framework

2024-03-11 Thread Dmitry Baryshkov
On Mon, 11 Mar 2024 at 19:06, Maxime Ripard wrote: > > On Mon, Mar 11, 2024 at 05:55:36PM +0200, Dmitry Baryshkov wrote: > > On Mon, 11 Mar 2024 at 17:46, Maxime Ripard wrote: > > > > > > Hi, > > > > > > On Sat, Mar 09, 2024 at 12:31:32PM +0200, Dmitry Baryshkov wrote: > > > > Setup the HDMI conn

Re: [PATCH RFC v2 5/5] drm/msm/hdmi: make use of the drm_connector_hdmi framework

2024-03-11 Thread Maxime Ripard
On Mon, Mar 11, 2024 at 05:55:36PM +0200, Dmitry Baryshkov wrote: > On Mon, 11 Mar 2024 at 17:46, Maxime Ripard wrote: > > > > Hi, > > > > On Sat, Mar 09, 2024 at 12:31:32PM +0200, Dmitry Baryshkov wrote: > > > Setup the HDMI connector on the MSM HDMI outputs. Make use of > > > atomic_check hook a

[PATCH 3/3] accel/qaic: Add fifo queued debugfs

2024-03-11 Thread Jeffrey Hugo
When debugging functional issues with workload input processing, it is useful to know if requests are backing up in the fifo, or perhaps getting stuck elsewhere. To answer the question of how many requests are in the fifo, implement a "queued" debugfs entry per-dbc that returns the number of pendin

[PATCH 1/3] accel/qaic: Add bootlog debugfs

2024-03-11 Thread Jeffrey Hugo
During the boot process of AIC100, the bootloaders (PBL and SBL) log messages to device RAM. During SBL, if the host opens the QAIC_LOGGING channel, SBL will offload the contents of the log buffer to the host, and stream any new messages that SBL logs. This log of the boot process can be very usef

[PATCH 2/3] accel/qaic: Add fifo size debugfs

2024-03-11 Thread Jeffrey Hugo
Each DMA Bridge Channel (dbc) has a unique configured fifo size which is specified by the userspace client of that dbc. Since the fifo is circular, it is useful to know the configured size when debugging issues. Add a per-dbc subdirectory in debugfs and in each subdirectory add a fifo_size entry t

[PATCH 0/3] accel/qaic: Add debugfs entries

2024-03-11 Thread Jeffrey Hugo
Add 3 debugfs entries that can be useful in debugging a variety of issues. bootlog - output the device bootloader log fifo_size - output the configured dbc fifo size queued - output how many requests are queued in the dbc fifo Bootlog is unique to the device, where as fifo_size/queued is per-db

Re: [PATCH] drm/i915/hwmon: Fix locking inversion in sysfs getter

2024-03-11 Thread Rodrigo Vivi
On Mon, Mar 11, 2024 at 09:06:46AM +0100, Janusz Krzysztofik wrote: > In i915 hwmon sysfs getter path we now take a hwmon_lock, then acquire an > rpm wakeref. That results in lock inversion: > > <4> [197.079335] == > <4> [197.085473] WARNING: po

Re: drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-03-11 Thread Abhinav Kumar
On 3/11/2024 6:43 AM, Johan Hovold wrote: On Sat, Mar 09, 2024 at 05:30:17PM +0100, Johan Hovold wrote: On Fri, Mar 08, 2024 at 09:50:17AM -0800, Abhinav Kumar wrote: On 3/8/2024 4:43 AM, Johan Hovold wrote: For this last remaining reset with the stacktrace you have mentioned below, I do

Re: [PATCH] drm/amdgpu: add ring buffer information in devcoredump

2024-03-11 Thread Christian König
Am 11.03.24 um 15:48 schrieb Khatri, Sunil: On 3/11/2024 7:29 PM, Christian König wrote: Am 11.03.24 um 13:22 schrieb Sunil Khatri: Add relevant ringbuffer information such as rptr, wptr, ring name, ring size and also the ring contents for each ring on a gpu reset. Signed-off-by: Sunil Khat

Re: [RFC PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-11 Thread Kuogee Hsieh
On 3/6/2024 11:50 AM, Abhinav Kumar wrote: There are cases where the userspace might still send another frame after the HPD disconnect causing a modeset cycle after a disconnect. This messes the internal state machine of MSM DP driver and can lead to a crash as there can be an imbalance between

Re: [PATCH 4/5] drm/i915: Drop dead code for pvc

2024-03-11 Thread Rodrigo Vivi
On Mon, Mar 11, 2024 at 10:35:20AM -0500, Lucas De Marchi wrote: > On Mon, Mar 11, 2024 at 11:29:31AM -0400, Rodrigo Vivi wrote: > > > @@ -2907,9 +2829,7 @@ engine_init_workarounds(struct intel_engine_cs > > > *engine, struct i915_wa_list *wal > > > if (engine->flags & I915_ENGINE_FIRST_RENDER_C

Re: [PATCH 3/5] drm/i915: Update IP_VER(12, 50)

2024-03-11 Thread Rodrigo Vivi
On Mon, Mar 11, 2024 at 10:29:45AM -0500, Lucas De Marchi wrote: > On Mon, Mar 11, 2024 at 11:18:03AM -0400, Rodrigo Vivi wrote: > > On Wed, Mar 06, 2024 at 11:36:41AM -0800, Lucas De Marchi wrote: > > > With no platform declaring graphics/media IP_VER(12, 50), > > > > this is not true. > > We sti

Re: [PATCH] Fix divide-by-zero on DP unplug with nouveau

2024-03-11 Thread Imre Deak
On Mon, Mar 11, 2024 at 06:09:29PM +0200, Imre Deak wrote: > On Sat, Feb 10, 2024 at 09:24:59PM +, Chris Bainbridge wrote: > > Sorry for the delay. > > > The following trace occurs when using nouveau and unplugging a DP MST > > adaptor: > > > > divide error: [#1] PREEMPT SMP PTI > > C

Re: [PATCH] Fix divide-by-zero on DP unplug with nouveau

2024-03-11 Thread Linux regression tracking (Thorsten Leemhuis)
On 11.03.24 17:09, Imre Deak wrote: > On Sat, Feb 10, 2024 at 09:24:59PM +, Chris Bainbridge wrote: > Sorry for the delay. Happens, thx for looking onto this! >> The following trace occurs when using nouveau and unplugging a DP MST >> adaptor: > [...] >> +if (bpp_x16 == 0) >> +

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Liviu Dudau
On Mon, Mar 11, 2024 at 05:52:59PM +0200, Jani Nikula wrote: > On Mon, 11 Mar 2024, Liviu Dudau wrote: > > On Mon, Mar 11, 2024 at 04:49:30PM +0200, Jani Nikula wrote: > >> On Mon, 11 Mar 2024, Liviu Dudau wrote: > >> > So with this revert we're OK with an undefined symbol if !CONFIG_PM, but > >

Re: [PATCH] Fix divide-by-zero on DP unplug with nouveau

2024-03-11 Thread Imre Deak
On Sat, Feb 10, 2024 at 09:24:59PM +, Chris Bainbridge wrote: Sorry for the delay. > The following trace occurs when using nouveau and unplugging a DP MST > adaptor: > > divide error: [#1] PREEMPT SMP PTI > CPU: 7 PID: 2962 Comm: Xorg Not tainted 6.8.0-rc3+ #744 > Hardware name: Raze

Re: [PATCH v2] drm/drm_connector: Document Colorspace property variants

2024-03-11 Thread Sebastian Wick
On Thu, Mar 07, 2024 at 10:29:22AM +0200, Pekka Paalanen wrote: > On Wed, 6 Mar 2024 17:42:09 +0100 > Sebastian Wick wrote: > > > On Wed, Mar 06, 2024 at 10:27:21AM +0200, Pekka Paalanen wrote: > > > On Tue, 5 Mar 2024 14:51:49 +0100 > > > Sebastian Wick wrote: > > > > > > > The initial idea

RE: [REGRESSION] Divide-by-zero on DisplayPort MST unplug with nouveau

2024-03-11 Thread Saarinen, Jani
> -Original Message- > From: Jani Nikula > Sent: Monday, 11 March 2024 18.03 > To: Saarinen, Jani ; Linux regressions mailing list > ; Deak, Imre > Cc: Chris Bainbridge ; intel-gfx g...@lists.freedesktop.org>; David Airlie ; Daniel Vetter > ; ML dri-devel > Subject: RE: [REGRESSION] D

RE: [REGRESSION] Divide-by-zero on DisplayPort MST unplug with nouveau

2024-03-11 Thread Jani Nikula
On Mon, 11 Mar 2024, "Saarinen, Jani" wrote: > Hi, > >> -Original Message- >> From: Intel-gfx On Behalf Of Linux >> regression tracking (Thorsten Leemhuis) >> Sent: Monday, 11 March 2024 17.53 >> To: Deak, Imre >> Cc: regressi...@lists.linux.dev; Chris Bainbridge >> ; intel-gfx ; >> Dav

[PATCH v2] drm: Document requirements for driver-specific KMS props in new drivers

2024-03-11 Thread Sebastian Wick
When extending support for a driver-specific KMS property to additional drivers, we should apply all the requirements for new properties and make sure the semantics are the same and documented. v2: devs of the driver which introduced property shall help and ack Signed-off-by: Sebastian Wick ---

RE: [REGRESSION] Divide-by-zero on DisplayPort MST unplug with nouveau

2024-03-11 Thread Saarinen, Jani
Hi, > -Original Message- > From: Intel-gfx On Behalf Of Linux > regression tracking (Thorsten Leemhuis) > Sent: Monday, 11 March 2024 17.53 > To: Deak, Imre > Cc: regressi...@lists.linux.dev; Chris Bainbridge > ; intel-gfx ; > David Airlie ; Daniel Vetter ; ML dri-devel > > Subject: Re

Re: [PATCH RFC v2 5/5] drm/msm/hdmi: make use of the drm_connector_hdmi framework

2024-03-11 Thread Dmitry Baryshkov
On Mon, 11 Mar 2024 at 17:46, Maxime Ripard wrote: > > Hi, > > On Sat, Mar 09, 2024 at 12:31:32PM +0200, Dmitry Baryshkov wrote: > > Setup the HDMI connector on the MSM HDMI outputs. Make use of > > atomic_check hook and of the provided Infoframe infrastructure. > > > > Note: for now only AVI Info

Re: [REGRESSION] Divide-by-zero on DisplayPort MST unplug with nouveau

2024-03-11 Thread Linux regression tracking (Thorsten Leemhuis)
On 07.03.24 18:58, Chris Bainbridge wrote: > - Forwarded message from Chris Bainbridge > - > > Date: Sat, 10 Feb 2024 21:24:59 + Hmm, it looks like nobody is looking into this regression. Is there a good reason? Imre, or did you maybe just miss that Chris' regression seems to be ca

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Jani Nikula
On Mon, 11 Mar 2024, Liviu Dudau wrote: > On Mon, Mar 11, 2024 at 04:49:30PM +0200, Jani Nikula wrote: >> On Mon, 11 Mar 2024, Liviu Dudau wrote: >> > So with this revert we're OK with an undefined symbol if !CONFIG_PM, but >> > we're not happy >> > with a recursive dependency that is only trigg

Re: [PATCH RFC v2 5/5] drm/msm/hdmi: make use of the drm_connector_hdmi framework

2024-03-11 Thread Maxime Ripard
Hi, On Sat, Mar 09, 2024 at 12:31:32PM +0200, Dmitry Baryshkov wrote: > Setup the HDMI connector on the MSM HDMI outputs. Make use of > atomic_check hook and of the provided Infoframe infrastructure. > > Note: for now only AVI Infoframes are enabled. Audio Infoframes are > currenly handled separa

Re: [PATCH RFC v2 0/5] drm/msm: make use of the HDMI connector infrastructure

2024-03-11 Thread Maxime Ripard
Hi, On Sat, Mar 09, 2024 at 12:31:27PM +0200, Dmitry Baryshkov wrote: > This patchset sits on top Maxime's HDMI connector patchset ([1]). > > Currently this is an RFC exploring the interface between HDMI bridges > and HDMI connector code. This has been lightly verified on the Qualcomm > DB820c, w

Re: [PATCH RFC v2 2/5] drm/connector: hdmi: add drm_connector_hdmi_init

2024-03-11 Thread Maxime Ripard
Hi, On Sat, Mar 09, 2024 at 12:31:29PM +0200, Dmitry Baryshkov wrote: > To support connectors which do all the management on their own (like > drm_bridge_connector), add drm_connector_hdmi_init() in addition to > drmm_connector_hdmi_init(). > > Signed-off-by: Dmitry Baryshkov That's only slight

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Liviu Dudau
On Mon, Mar 11, 2024 at 04:49:30PM +0200, Jani Nikula wrote: > On Mon, 11 Mar 2024, Liviu Dudau wrote: > > On Mon, Mar 11, 2024 at 02:26:50PM +0200, Jani Nikula wrote: > >> On Mon, 11 Mar 2024, Boris Brezillon wrote: > >> > On Mon, 11 Mar 2024 13:51:46 +0200 > >> > Jani Nikula wrote: > >> > > >>

Re: [PATCH 4/5] drm/i915: Drop dead code for pvc

2024-03-11 Thread Lucas De Marchi
On Mon, Mar 11, 2024 at 11:29:31AM -0400, Rodrigo Vivi wrote: @@ -2907,9 +2829,7 @@ engine_init_workarounds(struct intel_engine_cs *engine, struct i915_wa_list *wal if (engine->flags & I915_ENGINE_FIRST_RENDER_COMPUTE) general_render_compute_wa_init(engine, wal); -

Re: [PATCH 3/5] drm/i915: Update IP_VER(12, 50)

2024-03-11 Thread Lucas De Marchi
On Mon, Mar 11, 2024 at 11:18:03AM -0400, Rodrigo Vivi wrote: On Wed, Mar 06, 2024 at 11:36:41AM -0800, Lucas De Marchi wrote: With no platform declaring graphics/media IP_VER(12, 50), this is not true. We still have #define XE_HPM_FEATURES \ .__runtime.media.ip.ver = 12, \ .__

Re: [PATCH 4/5] drm/i915: Drop dead code for pvc

2024-03-11 Thread Rodrigo Vivi
On Wed, Mar 06, 2024 at 11:36:42AM -0800, Lucas De Marchi wrote: > PCI IDs for PVC were never added and platform always marked with > force_probe. Drop what's not used and rename some places as needed. > > The registers not used anymore are also removed. > > Signed-off-by: Lucas De Marchi > ---

Re: [PATCH 3/5] drm/i915: Update IP_VER(12, 50)

2024-03-11 Thread Rodrigo Vivi
On Wed, Mar 06, 2024 at 11:36:41AM -0800, Lucas De Marchi wrote: > With no platform declaring graphics/media IP_VER(12, 50), this is not true. We still have #define XE_HPM_FEATURES \ .__runtime.media.ip.ver = 12, \ .__runtime.media.ip.rel = 50 replace the > checks throughout the

Re: drm/msm: DisplayPort hard-reset on hotplug regression in 6.8-rc1

2024-03-11 Thread Johan Hovold
On Mon, Mar 11, 2024 at 02:43:24PM +0100, Johan Hovold wrote: > So, while it may still be theoretically possible to hit the resets after > the revert, the HPD notify revert effectively "fixed" the regression in > 6.8-rc1 by removing the preconditions that now made us hit it (i.e. the > half-initia

Re: [PATCH 2/5] drm/i915: Drop dead code for xehpsdv

2024-03-11 Thread Rodrigo Vivi
On Wed, Mar 06, 2024 at 11:36:40AM -0800, Lucas De Marchi wrote: > PCI IDs for XEHPSDV were never added and platform always marked with > force_probe. Drop what's not used and rename some places to either be > xehp or dg2, depending on the platform/IP checks. > > The registers not used anymore are

[PATCH AUTOSEL 5.15 3/5] drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series

2024-03-11 Thread Sasha Levin
From: Prike Liang [ Upstream commit c671ec01311b4744b377f98b0b4c6d033fe569b3 ] Currently, GPU resets can now be performed successfully on the Raven series. While GPU reset is required for the S3 suspend abort case. So now can enable gpu reset for S3 abort cases on the Raven series. Signed-off-b

[PATCH AUTOSEL 6.1 08/13] drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series

2024-03-11 Thread Sasha Levin
From: Prike Liang [ Upstream commit c671ec01311b4744b377f98b0b4c6d033fe569b3 ] Currently, GPU resets can now be performed successfully on the Raven series. While GPU reset is required for the S3 suspend abort case. So now can enable gpu reset for S3 abort cases on the Raven series. Signed-off-b

[PATCH AUTOSEL 6.6 11/17] drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series

2024-03-11 Thread Sasha Levin
From: Prike Liang [ Upstream commit c671ec01311b4744b377f98b0b4c6d033fe569b3 ] Currently, GPU resets can now be performed successfully on the Raven series. While GPU reset is required for the S3 suspend abort case. So now can enable gpu reset for S3 abort cases on the Raven series. Signed-off-b

[PATCH AUTOSEL 6.6 06/17] drm/ttm/tests: depend on UML || COMPILE_TEST

2024-03-11 Thread Sasha Levin
From: Christian König [ Upstream commit 9d3f8a723c7950e56e0b95ab84b572caee29e065 ] At least the device test requires that no other driver using TTM is loaded. So make those unit tests depend on UML || COMPILE_TEST to prevent people from trying them on bare metal. Signed-off-by: Christian König

[PATCH AUTOSEL 6.7 17/23] drm/buddy: check range allocation matches alignment

2024-03-11 Thread Sasha Levin
From: Matthew Auld [ Upstream commit 2986314aa811c8a23aeb292edd30315495d54966 ] Likely not a big deal for real users, but for consistency we should respect the min_page_size here. Main issue is that bias allocations turns into normal range allocation if the range and size matches exactly, and in

[PATCH AUTOSEL 6.7 16/23] drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series

2024-03-11 Thread Sasha Levin
From: Prike Liang [ Upstream commit c671ec01311b4744b377f98b0b4c6d033fe569b3 ] Currently, GPU resets can now be performed successfully on the Raven series. While GPU reset is required for the S3 suspend abort case. So now can enable gpu reset for S3 abort cases on the Raven series. Signed-off-b

[PATCH AUTOSEL 6.7 11/23] drm/ttm/tests: depend on UML || COMPILE_TEST

2024-03-11 Thread Sasha Levin
From: Christian König [ Upstream commit 9d3f8a723c7950e56e0b95ab84b572caee29e065 ] At least the device test requires that no other driver using TTM is loaded. So make those unit tests depend on UML || COMPILE_TEST to prevent people from trying them on bare metal. Signed-off-by: Christian König

Re: [RFC PATCH v4 08/42] drm/doc/rfc: Describe why prescriptive color pipeline is needed

2024-03-11 Thread Pekka Paalanen
On Mon, 26 Feb 2024 16:10:22 -0500 Harry Wentland wrote: > v4: > - Drop IOCTL docs since we dropped the IOCTLs (Pekka) > - Clarify reading and setting of COLOR_PIPELINE prop (Pekka) > - Add blurb about not requiring to reject a pipeline due to >incompatible ops, as long as op can be bypass

[PATCH v2] drm/amdgpu: add ring buffer information in devcoredump

2024-03-11 Thread Sunil Khatri
Add relevant ringbuffer information such as rptr, wptr,rb mask, ring name, ring size and also the rings content for each ring on a gpu reset. Signed-off-by: Sunil Khatri --- drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drive

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Boris Brezillon
On Mon, 11 Mar 2024 14:41:42 + Liviu Dudau wrote: > On Mon, Mar 11, 2024 at 02:26:50PM +0200, Jani Nikula wrote: > > On Mon, 11 Mar 2024, Boris Brezillon wrote: > > > > > On Mon, 11 Mar 2024 13:51:46 +0200 > > > Jani Nikula wrote: > > > > > >> On Mon, 11 Mar 2024, Boris Brezillon > >

[PATCH v9 27/27] drm/sun4i: hdmi: Switch to HDMI connector

2024-03-11 Thread Maxime Ripard
The new HDMI connector infrastructure allows to remove some boilerplate, especially to generate infoframes. Let's switch to it. Reviewed-by: Jernej Skrabec Acked-by: Sui Jingfeng Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 80 ++ 1

[PATCH v9 25/27] drm/vc4: tests: Convert to plane creation helper

2024-03-11 Thread Maxime Ripard
Now that we have a plane create helper for kunit mocked drivers, let's convert to it in vc4. Reviewed-by: Maíra Canal Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/tests/vc4_mock_plane.c | 34 +++--- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/d

[PATCH v9 26/27] drm/rockchip: inno_hdmi: Switch to HDMI connector

2024-03-11 Thread Maxime Ripard
The new HDMI connector infrastructure allows to remove some boilerplate, especially to generate infoframes. Let's switch to it. Reviewed-by: Heiko Stuebner Acked-by: Heiko Stuebner Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/inno_hdmi.c | 143 +--

[PATCH v9 24/27] drm/vc4: tests: Remove vc4_dummy_plane structure

2024-03-11 Thread Maxime Ripard
The vc4_dummy_plane structure was introduced as a mean to add mock-specific fields. However, we never really used it and it's still strictly equivalent to vc4_plane (which is in the same situation vs drm_plane), so we can simply remove the vc4_dummy_plane structure and make the mock code cleaner.

[PATCH v9 23/27] drm/vc4: hdmi: Switch to HDMI connector

2024-03-11 Thread Maxime Ripard
The new HDMI connector infrastructure allows us to remove a lot of boilerplate, so let's switch to it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_hdmi.c | 638 + drivers/gpu/drm/vc4/vc4_hdmi.h | 44 +-- drivers/gpu/drm/vc4/vc4_hdmi_phy.c

[PATCH v9 22/27] drm/connector: hdmi: Create Infoframe DebugFS entries

2024-03-11 Thread Maxime Ripard
There has been some discussions recently about the infoframes sent by drivers and if they were properly generated. In parallel, there's been some interest in creating an infoframe-decode tool similar to edid-decode. Both would be much easier if we were to expose the infoframes programmed in the h

[PATCH v9 21/27] drm/tests: Add infoframes test

2024-03-11 Thread Maxime Ripard
The previous patch added the generation of the infoframes matching an HDMI connector state. Let's add a few tests to make sure it works as expected. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tests/drm_connector_test.c | 219 + 1 file changed, 219 insertions(+)

[PATCH v9 20/27] drm/connector: hdmi: Add Infoframes generation

2024-03-11 Thread Maxime Ripard
Infoframes in KMS is usually handled by a bunch of low-level helpers that require quite some boilerplate for drivers. This leads to discrepancies with how drivers generate them, and which are actually sent. Now that we have everything needed to generate them in the HDMI connector state, we can gen

[PATCH v9 19/27] drm/tests: Add RGB Quantization tests

2024-03-11 Thread Maxime Ripard
The previous commit added the infrastructure to the connector state to track what RGB Quantization should be used in a given state for an HDMI connector. Let's add some kunit tests to make sure it works as expected. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- .../gpu/drm/tests

[PATCH v9 16/27] drm/connector: hdmi: Add Broadcast RGB property

2024-03-11 Thread Maxime Ripard
The i915 driver has a property to force the RGB range of an HDMI output. The vc4 driver then implemented the same property with the same semantics. KWin has support for it, and a PR for mutter is also there to support it. Both drivers implementing the same property with the same semantics, plus th

[PATCH v9 18/27] drm/connector: hdmi: Add RGB Quantization Range to the connector state

2024-03-11 Thread Maxime Ripard
HDMI controller drivers will need to figure out the RGB range they need to configure based on a mode and property values. Let's expose that in the HDMI connector state so drivers can just use that value. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_atomic.c

[PATCH v9 15/27] drm/tests: Add HDMI connector bpc and format tests

2024-03-11 Thread Maxime Ripard
The previous patch added the bpc and format an HDMI connector needs to be set up with for a given connector state. Let's add a few tests to make sure it works as expected. Signed-off-by: Maxime Ripard --- .../gpu/drm/tests/drm_atomic_state_helper_test.c | 504 + drivers/gp

[PATCH v9 17/27] drm/tests: Add tests for Broadcast RGB property

2024-03-11 Thread Maxime Ripard
This had a bunch of kunit tests to make sure our code to handle the Broadcast RGB property behaves properly. This requires bringing a bit of infrastructure to create mock HDMI connectors, with custom EDIDs. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- .../gpu/drm/tests/drm_atom

[PATCH v9 14/27] drm/connector: hdmi: Compute bpc and format automatically

2024-03-11 Thread Maxime Ripard
Now that we have all the infrastructure needed, we can add some code that will, for a given connector state and mode, compute the best output format and bpc. The algorithm is equivalent to the one already found in i915 and vc4. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_atomic_state_h

[PATCH v9 12/27] drm/connector: hdmi: Add custom hook to filter TMDS character rate

2024-03-11 Thread Maxime Ripard
Most of the HDMI controllers have an upper TMDS character rate limit they can't exceed. On "embedded"-grade display controllers, it will typically be lower than what high-grade monitors can provide these days, so drivers will filter the TMDS character rate based on the controller capabilities. To

[PATCH v9 13/27] drm/tests: Add HDMI connector rate filter hook tests

2024-03-11 Thread Maxime Ripard
The previous patch adds a new hook for HDMI connectors to filter out configurations based on the TMDS character rate. Let's add some tests to make sure it works as expected. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- .../gpu/drm/tests/drm_atomic_state_helper_test.c | 65

[PATCH v9 11/27] drm/tests: Add TDMS character rate connector state tests

2024-03-11 Thread Maxime Ripard
The previous patch stores in the connector state the expected TMDS character rate matching the configuration of the HDMI connector. Let's add a few tests to make sure it works as expected. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- .../gpu/drm/tests/drm_atomic_state_helper_tes

[PATCH v9 09/27] drm/tests: Add HDMI TDMS character rate tests

2024-03-11 Thread Maxime Ripard
The previous patch added an helper to compute the TMDS character rate on an HDMI connector. Let's add a few tests to make sure it works as expected. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tests/drm_connector_test.c | 323 + 1 fil

[PATCH v9 08/27] drm/connector: hdmi: Add HDMI compute clock helper

2024-03-11 Thread Maxime Ripard
A lot of HDMI drivers have some variation of the formula to calculate the TMDS character rate from a mode, but few of them actually take all parameters into account. Let's create a helper to provide that rate taking all parameters into account. Reviewed-by: Dave Stevenson Signed-off-by: Maxime R

[PATCH v9 10/27] drm/connector: hdmi: Calculate TMDS character rate

2024-03-11 Thread Maxime Ripard
Most HDMI drivers have some code to calculate the TMDS character rate, usually to adjust an internal clock to match what the mode requires. Since the TMDS character rates mostly depends on the resolution, whether we need to repeat pixels or not, the bpc count and the format, we can now derive it f

[PATCH v9 07/27] drm/tests: Add output formats tests

2024-03-11 Thread Maxime Ripard
Now that we track the HDMI output format as part of the connector state, let's add a few tests to make sure it works as expected. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- .../gpu/drm/tests/drm_atomic_state_helper_test.c | 32 +++ drivers/gpu/drm/tests/drm_connector_tes

[PATCH v9 06/27] drm/connector: hdmi: Add support for output format

2024-03-11 Thread Maxime Ripard
Just like BPC, we'll add support for automatic selection of the output format for HDMI connectors. Let's add the needed defaults and fields for now. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_atomic.c | 2 ++ drivers/gpu/drm/drm_atom

[PATCH v9 03/27] drm/connector: hdmi: Create an HDMI sub-state

2024-03-11 Thread Maxime Ripard
The next features we will need to share across drivers will need to store some parameters for drivers to use, such as the selected output format. Let's create a new connector sub-state dedicated to HDMI controllers, that will eventually store everything we need. Reviewed-by: Dave Stevenson Signe

[PATCH v9 05/27] drm/tests: Add output bpc tests

2024-03-11 Thread Maxime Ripard
Now that we're tracking the output bpc count in the connector state, let's add a few tests to make sure it works as expected. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tests/Makefile | 1 + .../gpu/drm/tests/drm_atomic_state_helper_test.c

[PATCH v9 04/27] drm/connector: hdmi: Add output BPC to the connector state

2024-03-11 Thread Maxime Ripard
We'll add automatic selection of the output BPC in a following patch, but let's add it to the HDMI connector state already. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/drm_atomic.c | 5 + drivers/gpu/drm/drm_atomic_state_helper.c | 20 +++

[PATCH v9 02/27] drm/tests: connector: Add tests for drmm_connector_hdmi_init

2024-03-11 Thread Maxime Ripard
We just introduced a new initialization function for our connectors, so let's build a kunit test suite for it as well. Reviewed-by: Dave Stevenson Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tests/drm_connector_test.c | 123 + 1 file changed, 123 insertions(+)

[PATCH v9 01/27] drm/connector: Introduce an HDMI connector initialization function

2024-03-11 Thread Maxime Ripard
A lot of the various HDMI drivers duplicate some logic that depends on the HDMI spec itself and not really a particular hardware implementation. Output BPC or format selection, infoframe generation are good examples of such areas. This creates a lot of boilerplate, with a lot of variations, which

[PATCH v9 00/27] drm/connector: Create HDMI Connector infrastructure

2024-03-11 Thread Maxime Ripard
Hi, Here's a series that creates some extra infrastructure specifically targeted at HDMI controllers. The idea behind this series came from a recent discussion on IRC during which we discussed infoframes generation of i915 vs everything else. Infoframes generation code still requires some decent

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Jani Nikula
On Mon, 11 Mar 2024, Liviu Dudau wrote: > On Mon, Mar 11, 2024 at 02:26:50PM +0200, Jani Nikula wrote: >> On Mon, 11 Mar 2024, Boris Brezillon wrote: >> > On Mon, 11 Mar 2024 13:51:46 +0200 >> > Jani Nikula wrote: >> > >> >> On Mon, 11 Mar 2024, Boris Brezillon >> >> wrote: >> >> > On Mon, 11

Re: [PATCH] drm/amdgpu: add ring buffer information in devcoredump

2024-03-11 Thread Khatri, Sunil
On 3/11/2024 7:29 PM, Christian König wrote: Am 11.03.24 um 13:22 schrieb Sunil Khatri: Add relevant ringbuffer information such as rptr, wptr, ring name, ring size and also the ring contents for each ring on a gpu reset. Signed-off-by: Sunil Khatri ---   drivers/gpu/drm/amd/amdgpu/amdgpu_

Re: Proposal to add CRIU support to DRM render nodes

2024-03-11 Thread Tvrtko Ursulin
Hi Felix, On 06/12/2023 21:23, Felix Kuehling wrote: Executive Summary: We need to add CRIU support to DRM render nodes in order to maintain CRIU support for ROCm application once they start relying on render nodes for more GPU memory management. In this email I'm providing some background w

Re: [PATCH] Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue"

2024-03-11 Thread Liviu Dudau
On Mon, Mar 11, 2024 at 02:26:50PM +0200, Jani Nikula wrote: > On Mon, 11 Mar 2024, Boris Brezillon wrote: > > On Mon, 11 Mar 2024 13:51:46 +0200 > > Jani Nikula wrote: > > > >> On Mon, 11 Mar 2024, Boris Brezillon wrote: > >> > On Mon, 11 Mar 2024 13:16:19 +0200 > >> > Jani Nikula wrote: > >>

Re: [PATCH v2 28/28] fbdev/p9100: Drop now unused driver p9100

2024-03-11 Thread Arnd Bergmann
On Sat, Mar 9, 2024, at 19:15, Sam Ravnborg via B4 Relay wrote: > From: Sam Ravnborg > > The p9100 driver is only relevant for the Sparcbook 3 machine, > and with sun4m support removed this driver is no longer relevant. > > Signed-off-by: Sam Ravnborg > Acked-by: Arnd Bergmann > Acked-by: Thomas

Re: [PATCH 3/3] drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue

2024-03-11 Thread Boris Brezillon
On Mon, 11 Mar 2024 14:59:39 +0100 Boris Brezillon wrote: > On Mon, 11 Mar 2024 14:58:37 +0100 > Boris Brezillon wrote: > > > On Mon, 11 Mar 2024 13:46:23 + > > Steven Price wrote: > > > > > On 11/03/2024 13:36, Robin Murphy wrote: > > > > On 2024-03-11 1:22 pm, Boris Brezillon wrot

  1   2   >