RE: [PATCH v3] drm/amdgpu: add debugfs for spirom IFWI dump

2025-05-13 Thread Zhang, Hawking
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Zhang, Morris Sent: Wednesday, May 14, 2025 14:22 To: Zhang, Hawking ; Gao, Likun ; amd-gfx@lists.freedesktop.org Subject: [PATCH v3] drm/amdgpu: add debugfs fo

[PATCH v3] drm/amdgpu: add debugfs for spirom IFWI dump

2025-05-13 Thread Shiwu Zhang
Expose the debugfs file node for user space to dump the IFWI image on spirom. For one transaction between PSP and host, it will read out the images on both active and inactive partitions so a buffer with two times the size of maximum IFWI image (currently 16MByte) is needed. v2: move the vbios gf

RE: [PATCH v2] drm/amdgpu: add debugfs for spirom IFWI dump

2025-05-13 Thread Zhang, Morris
[AMD Official Use Only - AMD Internal Distribution Only] [public] > -Original Message- > From: Lazar, Lijo > Sent: Tuesday, May 13, 2025 8:26 PM > To: Zhang, Morris ; Zhang, Hawking > ; Gao, Likun ; amd- > g...@lists.freedesktop.org > Subject: Re: [PATCH v2] drm/amdgpu: add debugfs for s

[PATCH Review 2/2] drm/amdgpu: Register aqua vanjaram jpeg poison irq

2025-05-13 Thread Stanley . Yang
Register aqua vanjaram jpeg poison irq, add jpeg poison handle. Signed-off-by: Stanley.Yang Reviewed-by: Hawking Zhang --- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 76 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.h | 7 +++ 2 files changed, 83 insertions(+) diff --git a/d

[PATCH Review 1/2] drm/amdgpu: Register aqua vanjaram vcn poison irq

2025-05-13 Thread Stanley . Yang
Register aqua vanjaram vcn poison irq, add vcn poison handle. Signed-off-by: Stanley.Yang Reviewed-by: Hawking Zhang --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 65 + drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.h | 6 +++ 2 files changed, 71 insertions(+) diff --git a/driv

RE: [PATCH v2] drm/amdgpu: lock the eviction fence for wq signals it

2025-05-13 Thread Liang, Prike
[Public] Soft ping. Regards, Prike > -Original Message- > From: Liang, Prike > Sent: Monday, May 12, 2025 10:20 AM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Liang, Prike > ; Koenig, Christian > Subject: [PATCH v2] drm/amdgpu: lock the eviction fence for wq si

Re: [PATCH v4] drm/amdgpu: read back register after written for VCN v4.0.5

2025-05-13 Thread Deucher, Alexander
[Public] Reviewed-by: Alex Deucher From: Wu, David Sent: Tuesday, May 13, 2025 6:12 PM To: amd-gfx@lists.freedesktop.org ; Koenig, Christian Cc: Deucher, Alexander ; Liu, Leo ; Jiang, Sonny ; Dong, Ruijing ; sta...@vger.kernel.org ; Limonciello, Mario Subj

[PATCH v4] drm/amdgpu: read back register after written for VCN v4.0.5

2025-05-13 Thread David (Ming Qiang) Wu
V4: add read-back for non-DPG case. This is for protection purpose as it is not used for producton. On VCN v4.0.5 there is a race condition where the WPTR is not updated after starting from idle when doorbell is used. Adding register read-back after written at function end is to ensure all reg

Re: [PATCH v2 12/14] drm/edid: introduce a helper that compares edid data from two drm_edid

2025-05-13 Thread Melissa Wen
On 08/05/2025 08:47, Jani Nikula wrote: On Tue, 06 May 2025, Melissa Wen wrote: AMD driver has a function used to compare if two edid are the same; this is useful to some of the link detection algorithms implemented by amdgpu. Since the amdgpu function can be helpful for other drivers, this

Re: [PATCH v2 04/14] drm/edid: introduce a helper that gets monitor name from drm_edid

2025-05-13 Thread Melissa Wen
On 08/05/2025 08:39, Jani Nikula wrote: On Tue, 06 May 2025, Melissa Wen wrote: Original drm_edid_get_monitor_name encapsulates raw edid in drm_edid and then call get_monitor_name. AMD still stores the display name for debugging, but it is migrating to drm_edid, on the other hand, drm_dp_mst

[PATCH v2] drm/amd/display: only collect data if debug gamut_remap is available

2025-05-13 Thread Melissa Wen
Color gamut_remap state log may be not avaiable for some hw versions, so prevent null pointer dereference by checking if there is a function to collect data for this hw version. v2: - initialize is_gamut_remap_available (Alex H) Signed-off-by: Melissa Wen --- .../amd/display/dc/hwss/dcn20/dcn20

Re: [PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread David Wu
On 2025-05-13 17:01, Alex Deucher wrote: On Tue, May 13, 2025 at 4:33 PM David Wu wrote: On 2025-05-13 15:29, Alex Deucher wrote: On Tue, May 13, 2025 at 3:01 PM David Wu wrote: On 2025-05-13 14:40, Alex Deucher wrote: On Tue, May 13, 2025 at 2:23 PM David (Ming Qiang) Wu wrote: V2: no

Re: [PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 4:33 PM David Wu wrote: > > > On 2025-05-13 15:29, Alex Deucher wrote: > > On Tue, May 13, 2025 at 3:01 PM David Wu wrote: > >> > >> On 2025-05-13 14:40, Alex Deucher wrote: > >> > >> On Tue, May 13, 2025 at 2:23 PM David (Ming Qiang) Wu > >> wrote: > >> > >> V2: not to

Re: [PATCH V9 26/43] drm/amd/display: Add support for sRGB EOTF in DEGAM block

2025-05-13 Thread Harry Wentland
On 2025-05-13 11:36, Melissa Wen wrote: > On 05/13, Pekka Paalanen wrote: >> On Mon, 12 May 2025 15:50:17 -0300 >> Melissa Wen wrote: >> >>> On 04/29, Alex Hung wrote: Expose one 1D curve colorop with support for DRM_COLOROP_1D_CURVE_SRGB_EOTF and program HW to perform the sRGB t

Re: [PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread David Wu
On 2025-05-13 15:29, Alex Deucher wrote: On Tue, May 13, 2025 at 3:01 PM David Wu wrote: On 2025-05-13 14:40, Alex Deucher wrote: On Tue, May 13, 2025 at 2:23 PM David (Ming Qiang) Wu wrote: V2: not to add extra read-back in vcn_v4_0_start and vcn_v5_0_0_start as there are read-back

Re: [Bug 220110] probably thunderbolt or pci leads to pci usage counter underflow

2025-05-13 Thread Mario Limonciello
On 5/13/2025 2:45 PM, Bjorn Helgaas wrote: From Denis's report at https://bugzilla.kernel.org/show_bug.cgi?id=220110: I am having problems with my laptop that has a thunderbolt controller to which I connected an AMD 6750XT. The topology of my system is described in this bug: https://gitlab.fr

[Bug 220110] probably thunderbolt or pci leads to pci usage counter underflow

2025-05-13 Thread Bjorn Helgaas
>From Denis's report at https://bugzilla.kernel.org/show_bug.cgi?id=220110: > I am having problems with my laptop that has a thunderbolt > controller to which I connected an AMD 6750XT. > > The topology of my system is described in this bug: > https://gitlab.freedesktop.org/drm/amd/-/issues/4014

Re: [PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 3:01 PM David Wu wrote: > > > On 2025-05-13 14:40, Alex Deucher wrote: > > On Tue, May 13, 2025 at 2:23 PM David (Ming Qiang) Wu > wrote: > > V2: not to add extra read-back in vcn_v4_0_start and vcn_v5_0_0_start as > there are read-back calls already. New comments for

RE: [PATCH v3 3/3] drm/amdgpu: read back register after written for VCN v5.0.0

2025-05-13 Thread Dong, Ruijing
[AMD Official Use Only - AMD Internal Distribution Only] The series is Reviewed-by: Ruijing Dong -Original Message- From: Wu, David Sent: Tuesday, May 13, 2025 3:22 PM To: amd-gfx@lists.freedesktop.org; Koenig, Christian Cc: Deucher, Alexander ; Liu, Leo ; Jiang, Sonny ; Dong, Ruijing

[PATCH v3 3/3] drm/amdgpu: read back register after written for VCN v5.0.0

2025-05-13 Thread David (Ming Qiang) Wu
V3: patch for VCN v5.0.0 only Similar to the previous changes made for VCN v4.0.5, the addition of register read-back support in VCN v5.0.0 is intended to prevent potential race conditions, even though such issues have not been observed yet. This change ensures consistency across different VCN var

[PATCH v3 2/3] drm/amdgpu: read back register after written for VCN v4.0.0

2025-05-13 Thread David (Ming Qiang) Wu
V3: patch for VCN v4.0.0 only Similar to the previous changes made for VCN v4.0.5, the addition of register read-back support in VCN v4.0.0 is intended to prevent potential race conditions, even though such issues have not been observed yet. This change ensures consistency across different VCN var

[PATCH v3 1/3] drm/amdgpu: read back register after written for VCN v4.0.5

2025-05-13 Thread David (Ming Qiang) Wu
V2: not to add extra read-back in vcn_v4_0_5_start as there is a read-back already. New comment for better understanding. On VCN v4.0.5 there is a race condition where the WPTR is not updated after starting from idle when doorbell is used. The read-back of regVCN_RB1_DB_CTRL register after wri

Re: [PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread David Wu
On 2025-05-13 14:40, Alex Deucher wrote: On Tue, May 13, 2025 at 2:23 PM David (Ming Qiang) Wu wrote: V2: not to add extra read-back in vcn_v4_0_start and vcn_v5_0_0_start as there are read-back calls already. New comments for better understanding. Similar to the previous changes made fo

Re: [PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 2:23 PM David (Ming Qiang) Wu wrote: > > V2: not to add extra read-back in vcn_v4_0_start and vcn_v5_0_0_start as > there are read-back calls already. New comments for better understanding. > > Similar to the previous changes made for VCN v4.0.5, the addition of > regis

Re: [PATCH V2 1/2] drm/amdgpu: read back register after written for VCN v4.0.5

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 2:23 PM David (Ming Qiang) Wu wrote: > > V2: not to add extra read-back in vcn_v4_0_5_start as there is a > read-back already. New comment for better understanding. > > On VCN v4.0.5 there is a race condition where the WPTR is not > updated after starting from idle when

Re: [PATCH 0/5] drm/amd/display: remove code duplication on dcn401

2025-05-13 Thread Melissa Wen
On 12/05/2025 14:38, Alex Hung wrote: Hi Melissa, The patchset looks good to me but there is WIP dcn401 code, meaning dcn20 and dcn401 are different. I will check how to refactor code so this patchset can fit better. I see. Let's wait a bit so. Anyway, thanks for taking a look. Melissa

RE: [PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread Dong, Ruijing
[AMD Official Use Only - AMD Internal Distribution Only] Hi David, The last register operation in vcn_v4_0_start and vcn_v5_0_0_start is write, I guess we can extend this little more to do a dummy read as the last register operation. Thanks, Ruijing -Original Message- From: Wu, David

Re: [PATCH] drm/amd/display: only collect data if debug gamut_remap is available

2025-05-13 Thread Melissa Wen
On 13/05/2025 15:27, Alex Hung wrote: On 4/25/25 14:49, Melissa Wen wrote: Color gamut_remap state log may be not avaiable for some hw versions, so prevent null pointer dereference by checking it there is a function to collect data for this hw version. Signed-off-by: Melissa Wen ---   ...

Re: [PATCH] drm/amd/display: only collect data if debug gamut_remap is available

2025-05-13 Thread Alex Hung
On 4/25/25 14:49, Melissa Wen wrote: Color gamut_remap state log may be not avaiable for some hw versions, so prevent null pointer dereference by checking it there is a function to collect data for this hw version. Signed-off-by: Melissa Wen --- .../amd/display/dc/hwss/dcn20/dcn20_hwseq.c

[PATCH V2 1/2] drm/amdgpu: read back register after written for VCN v4.0.5

2025-05-13 Thread David (Ming Qiang) Wu
V2: not to add extra read-back in vcn_v4_0_5_start as there is a read-back already. New comment for better understanding. On VCN v4.0.5 there is a race condition where the WPTR is not updated after starting from idle when doorbell is used. The read-back of regVCN_RB1_DB_CTRL register after wri

[PATCH V2 2/2] drm/amdgpu: read back register after written for VCN v4.0.0 and v5.0.0

2025-05-13 Thread David (Ming Qiang) Wu
V2: not to add extra read-back in vcn_v4_0_start and vcn_v5_0_0_start as there are read-back calls already. New comments for better understanding. Similar to the previous changes made for VCN v4.0.5, the addition of register read-back support in VCN v4.0.0 and v5.0.0 is intended to prevent pot

Re: [PATCH 1/2] drm/amdgpu: read back DB_CTRL register after written for VCN v4.0.5

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 1:54 PM Dong, Ruijing wrote: > > [AMD Official Use Only - AMD Internal Distribution Only] > > Then dummy read should not be limited to this register regVCN_RB1_DB_CTRL, it > can be any valid readable register just for posting the previous write > operations. Right. Any

RE: [PATCH 1/2] drm/amdgpu: read back DB_CTRL register after written for VCN v4.0.5

2025-05-13 Thread Dong, Ruijing
[AMD Official Use Only - AMD Internal Distribution Only] Then dummy read should not be limited to this register regVCN_RB1_DB_CTRL, it can be any valid readable register just for posting the previous write operations. Thanks, Ruijing -Original Message- From: Wu, David Sent: Tuesday, M

Re: [PATCH] Revert "drm/amd/display: Hardware cursor changes color when switched to software cursor"

2025-05-13 Thread Alex Hung
Reviewed-by: Alex Hung On 4/22/25 08:58, Melissa Wen wrote: This reverts commit 272e6aab14bbf98d7a06b2b1cd6308a02d4a10a1. Applying degamma curve to the cursor by default breaks Linux userspace expectation. On Linux, AMD display manager enables cursor degamma ROM just for implict sRGB on HW ve

Re: [PATCH] drm/amdgpu: Fix TTM validation warnings in user queue doorbell handling

2025-05-13 Thread Paneer Selvam, Arunpravin
On 5/9/2025 4:51 PM, Christian König wrote: On 5/9/25 12:10, Jesse.Zhang wrote: This patch resolves a kernel warning that occurs during user queue initialization: [ 428.714241] WARNING: CPU: 23 PID: 1965 at drivers/gpu/drm/ttm/ttm_bo.c:823 ttm_bo_validate+0x15c/0x1a0 [ttm] [ 428.714758]

Re: [PATCH 2/2] drm/amdgpu: read back DB_CTRL register for VCN v4.0.0 and v5.0.0

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 12:38 PM David (Ming Qiang) Wu wrote: > > Similar to the previous changes made for VCN v4.0.5, the addition of > register read-back support in VCN v4.0.0 and v5.0.0 is intended to > prevent potential race conditions, even though such issues have not > been observed yet. Thi

Re: [PATCH 1/2] drm/amdgpu: read back DB_CTRL register after written for VCN v4.0.5

2025-05-13 Thread David Wu
sounds great! will adjust accordingly. David On 2025-05-13 12:44, Alex Deucher wrote: On Tue, May 13, 2025 at 12:38 PM David (Ming Qiang) Wu wrote: On VCN v4.0.5 there is a race condition where the WPTR is not updated after starting from idle when doorbell is used. The read-back of regVCN_RB1

Re: [PATCH 1/2] drm/amdgpu: read back DB_CTRL register after written for VCN v4.0.5

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 12:38 PM David (Ming Qiang) Wu wrote: > > On VCN v4.0.5 there is a race condition where the WPTR is not > updated after starting from idle when doorbell is used. The read-back > of regVCN_RB1_DB_CTRL register after written is to ensure the > doorbell_index is updated before

Re: [PATCH 2/2] drm/amdgpu: read back DB_CTRL register for VCN v4.0.0 and v5.0.0

2025-05-13 Thread Mario Limonciello
On 5/13/2025 11:29 AM, David (Ming Qiang) Wu wrote: Similar to the previous changes made for VCN v4.0.5, the addition of register read-back support in VCN v4.0.0 and v5.0.0 is intended to prevent potential race conditions, even though such issues have not been observed yet. This change ensures co

Re: [PATCH 1/2] drm/amdgpu: read back DB_CTRL register after written for VCN v4.0.5

2025-05-13 Thread Mario Limonciello
On 5/13/2025 11:29 AM, David (Ming Qiang) Wu wrote: On VCN v4.0.5 there is a race condition where the WPTR is not updated after starting from idle when doorbell is used. The read-back of regVCN_RB1_DB_CTRL register after written is to ensure the doorbell_index is updated before it can work proper

[PATCH 1/2] drm/amdgpu: read back DB_CTRL register after written for VCN v4.0.5

2025-05-13 Thread David (Ming Qiang) Wu
On VCN v4.0.5 there is a race condition where the WPTR is not updated after starting from idle when doorbell is used. The read-back of regVCN_RB1_DB_CTRL register after written is to ensure the doorbell_index is updated before it can work properly. Link: https://gitlab.freedesktop.org/mesa/mesa/-/

[PATCH 2/2] drm/amdgpu: read back DB_CTRL register for VCN v4.0.0 and v5.0.0

2025-05-13 Thread David (Ming Qiang) Wu
Similar to the previous changes made for VCN v4.0.5, the addition of register read-back support in VCN v4.0.0 and v5.0.0 is intended to prevent potential race conditions, even though such issues have not been observed yet. This change ensures consistency across different VCN variants and helps avoi

RE: [PATCH 2/2] drm/amdgpu: Allow NPS2-CPX combination for VFs

2025-05-13 Thread Zhang, Hawking
[AMD Official Use Only - AMD Internal Distribution Only] Series is Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Lazar, Lijo Sent: Friday, May 9, 2025 19:37 To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Kamal, Asad ; Lin, Amber Su

Re: [PATCH V9 00/43] Color Pipeline API w/ VKMS

2025-05-13 Thread Melissa Wen
On 04/29, Alex Hung wrote: > This is an RFC set for a color pipeline API, along with implementations > in VKMS and amdgpu. It is tested with a set of IGT tests that can be > found at [1]. The IGT tests run a pixel-by-pixel comparison with an > allowable delta variation as the goal for these transfo

Re: [PATCH V9 42/43] drm/amd/display: add 3D LUT colorop

2025-05-13 Thread Melissa Wen
On 05/12, Alex Hung wrote: > > > On 5/12/25 18:52, Melissa Wen wrote: > > On 04/29, Alex Hung wrote: > > > This adds support for a 3D LUT. > > > > > > The color pipeline now consists of the following colorops: > > > 1. 1D curve colorop > > > 2. Multiplier > > > 3. 3x4 CTM > > > 4. 1D curve color

Re: [PATCH V9 26/43] drm/amd/display: Add support for sRGB EOTF in DEGAM block

2025-05-13 Thread Melissa Wen
On 05/13, Pekka Paalanen wrote: > On Mon, 12 May 2025 15:50:17 -0300 > Melissa Wen wrote: > > > On 04/29, Alex Hung wrote: > > > Expose one 1D curve colorop with support for > > > DRM_COLOROP_1D_CURVE_SRGB_EOTF and program HW to perform > > > the sRGB transform when the colorop is not in bypass.

Re: [PATCH 1/2] drm/amdgpu: Use compatible NPS mode info

2025-05-13 Thread Lazar, Lijo
On 5/9/2025 5:07 PM, Lijo Lazar wrote: > Compatible NPS modes for a partition mode are exposed through xcp_config > interface. To determine if a compute partition mode is valid, check if > the current NPS mode is part of compatible NPS modes. > > Signed-off-by: Lijo Lazar > --- > drivers/gpu/d

RE: [PATCH] drm/amd/pm: Move SMUv13.0.12 function declarations

2025-05-13 Thread Kamal, Asad
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Asad Kamal Thanks & Regards Asad -Original Message- From: Lazar, Lijo Sent: Tuesday, May 13, 2025 7:20 PM To: amd-gfx@lists.freedesktop.org Cc: Zhang, Hawking ; Deucher, Alexander ; Kamal, Asad Subject: [PATCH] drm

RE: [PATCH 3/3] drm/amd/pm: Fill pldm version for SMU v13.0.6 SOCs

2025-05-13 Thread Zhang, Hawking
[AMD Official Use Only - AMD Internal Distribution Only] Series is Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Kamal, Asad Sent: Tuesday, May 13, 2025 19:22 To: amd-gfx@lists.freedesktop.org; Lazar, Lijo Cc: Zhang, Hawking ; Ma, Le ; Zhang, Morris ; Kamal, As

Re: [RFC v2 10/13] dma-fence: Add safe access helpers and document the rules

2025-05-13 Thread Rob Clark
On Fri, May 9, 2025 at 8:34 AM Tvrtko Ursulin wrote: > > Dma-fence objects currently suffer from a potential use after free problem > where fences exported to userspace and other drivers can outlive the > exporting driver, or the associated data structures. > > The discussion on how to address thi

Re: [PATCH] drm/amd/pm: Move SMUv13.0.12 function declarations

2025-05-13 Thread Alex Deucher
On Tue, May 13, 2025 at 9:58 AM Lijo Lazar wrote: > > Move them to SMUv13.0.6 header file as they are used only in SMU > v13.0.6. > > Signed-off-by: Lijo Lazar Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 9 - > drivers/gpu/drm/amd/pm/swsmu/

[PATCH] drm/amd/pm: Move SMUv13.0.12 function declarations

2025-05-13 Thread Lijo Lazar
Move them to SMUv13.0.6 header file as they are used only in SMU v13.0.6. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 9 - drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.h | 8 2 files changed, 8 insertions(+), 9 deletions(-) diff --

Re: [PATCH] drm/amd/display: Avoid flooding unnecessary info messages

2025-05-13 Thread Yadav, Arvind
These log messages are overwhelming during the boot process. Acked-by: Arvind Yadav ~arvind On 5/13/2025 7:05 PM, Harry Wentland wrote: On 2025-05-12 23:20, Wayne Lin wrote: It's expected that we'll encounter temporary exceptions during aux transactions. Adjust logging from drm_info to drm_d

Re: [PATCH] drm/amd/display: Avoid flooding unnecessary info messages

2025-05-13 Thread Harry Wentland
On 2025-05-12 23:20, Wayne Lin wrote: > It's expected that we'll encounter temporary exceptions > during aux transactions. Adjust logging from drm_info to > drm_dbg_dp to prevent flooding with unnecessary log messages. > > Fixes: 6285f12bc54c ("drm/amd/display: Fix wrong handling for AUX_DEFER

Re: [PATCH] drm/amd/display: Avoid flooding unnecessary info messages

2025-05-13 Thread Alex Deucher
On Mon, May 12, 2025 at 11:28 PM Wayne Lin wrote: > > It's expected that we'll encounter temporary exceptions > during aux transactions. Adjust logging from drm_info to > drm_dbg_dp to prevent flooding with unnecessary log messages. > > Fixes: 6285f12bc54c ("drm/amd/display: Fix wrong handling for

Re: [PATCH V9 26/43] drm/amd/display: Add support for sRGB EOTF in DEGAM block

2025-05-13 Thread Pekka Paalanen
On Mon, 12 May 2025 15:50:17 -0300 Melissa Wen wrote: > On 04/29, Alex Hung wrote: > > Expose one 1D curve colorop with support for > > DRM_COLOROP_1D_CURVE_SRGB_EOTF and program HW to perform > > the sRGB transform when the colorop is not in bypass. > > > > With this change the following IGT te

Re: [PATCH v2] drm/amdgpu: add debugfs for spirom IFWI dump

2025-05-13 Thread Lazar, Lijo
On 5/13/2025 2:43 PM, Shiwu Zhang wrote: > Expose the debugfs file node for user space to dump the IFWI image > on spirom. > > For one transaction between PSP and host, it will read out the > images on both active and inactive partitions so a buffer with two > times the size of maximum IFWI ima

[PATCH 10/11] drm/amd/display: [FW Promotion] Release 0.1.11.0

2025-05-13 Thread Tom Chung
From: Taimur Hassan Refactoring some DMUB related structs and enum. Acked-by: Wayne Lin Signed-off-by: Taimur Hassan Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 34 +-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

[PATCH 07/11] drm/amd/display: add support for 2nd sharpening range

2025-05-13 Thread Tom Chung
From: Samson Tam [Why & How] Add support for 2nd sharpening range for cases where we want override existing DCN sharpening range. Reviewed-by: Alvin Lee Signed-off-by: Samson Tam Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/sspl/dc_spl_types.h | 4 1 file changed, 4 inser

[PATCH 11/11] drm/amd/display: Promote DAL to 3.2.334

2025-05-13 Thread Tom Chung
From: Taimur Hassan This version brings along following update: -Support external tunneling feature -Modify DCN401 DMUB reset & halt sequence -Fix the typo in dcn401 Hubp block -Skip backend validation for virtual monitors Acked-by: Wayne Lin Signed-off-by: Taimur Hassan Signed-off-by: Tom Chu

[PATCH 09/11] drm/amd/display: Add GPINT retries to ips_query_residency_info

2025-05-13 Thread Tom Chung
From: Ovidiu Bunea [why & how] GPINTs can timeout without returning any data. Since this path is only for testing purposes, it should retry several times to ensure data is collected. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Ovidiu Bunea Signed-off-by: Tom Chung --- drivers/gpu/drm/amd

[PATCH 08/11] drm/amd/display: Modify DCN401 DMUB reset & halt sequence

2025-05-13 Thread Tom Chung
From: Dillon Varone [WHY&HOW] If DMCUB is already disabled or reset, no need to send the halt command again. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Dillon Varone Signed-off-by: Tom Chung --- .../gpu/drm/amd/display/dmub/src/dmub_dcn401.c | 16 ++-- 1 file changed, 6 in

[PATCH 06/11] drm/amd/display: Fix the typo in dcn401 Hubp block

2025-05-13 Thread Tom Chung
From: Nevenko Stupar [Why & How] Fix the typo for hubp_clear_tiling, currently calls hubp2_clear_tiling for dcn401 instead of intended hubp401_clear_tiling. Reviewed-by: Aurabindo Pillai Signed-off-by: Nevenko Stupar Signed-off-by: Tom Chung --- drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn

[PATCH 05/11] drm/amd/display: Skip backend validation for virtual monitors

2025-05-13 Thread Tom Chung
From: Chiawen Huang [Why&How] Virtual monitors are now being validated during set_mode. Virtual monitors should not undergo backend validation, as the backend is intended only for physical monitors. Virtual sinks have no real backend part information and should be excluded from this validation.

[PATCH 04/11] drm/amd/display: Move mcache allocation programming from DML to resource

2025-05-13 Thread Tom Chung
From: Karthi Kandasamy [Why] mcache allocation programming is not part of DML's core responsibilities. Keeping this logic in DML leads to poor separation of concerns and complicates maintenance. [How] Refactored code to move mcache parameter preparation and mcache ID assignment into the resourc

[PATCH 03/11] drm/amd/display: Support external tunneling feature

2025-05-13 Thread Tom Chung
From: Cruise Hung [Why & How] The original code only supports the tunneling for embedded one. To support external tunneling feature, it needs to check Tunneling_Support bit register. Reviewed-by: Wenjing Liu Reviewed-by: Jun Lei Signed-off-by: Cruise Hung Signed-off-by: Tom Chung --- .../gp

[PATCH 02/11] drm/amd/display: init local variable to fix format errors

2025-05-13 Thread Tom Chung
From: Yihan Zhu [WHY & HOW] Uninitialized local variables will cause format checker complain about them. Reviewed-by: Charlene Liu Signed-off-by: Yihan Zhu Signed-off-by: Tom Chung --- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c| 16 1 file changed, 8 insertions(+), 8

[PATCH 01/11] drm/amd/display: Extend dc_plane_get_status with flags

2025-05-13 Thread Tom Chung
From: Tomasz Siemek [WHY] dc_plane_get_status may be used for reading other plane properties in the future. [HOW] Provide API for choosing plane properties to read. Reviewed-by: Charlene Liu Reviewed-by: Aric Cyr Reviewed-by: Swapnil Patel Signed-off-by: Tomasz Siemek Signed-off-by: Tom Chu

[PATCH 00/11] DC Patches May 19 2025

2025-05-13 Thread Tom Chung
This DC patchset brings improvements in multiple areas. In summary, we highlight: -Support external tunneling feature -Modify DCN401 DMUB reset & halt sequence -Fix the typo in dcn401 Hubp block -Skip backend validation for virtual monitors Cc: Daniel Wheeler Chiawen Huang (1): drm/amd/disp

[PATCH 2/3] drm/amd/pm: Update pmfw headers for smu_v_13_0_6

2025-05-13 Thread Asad Kamal
Update pmfw headers for smu_v_13_0_6 to include pldm version as part of statics metrics table Signed-off-by: Asad Kamal Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_pmfw.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/dr

[PATCH 3/3] drm/amd/pm: Fill pldm version for SMU v13.0.6 SOCs

2025-05-13 Thread Asad Kamal
Fetch pldm version from static metrics table for SMU v13.0.6 SOCs Signed-off-by: Asad Kamal Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 7 +++ drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.h | 1 + 2 files changed, 8 insertions(+) diff --git a/

[PATCH 1/3] drm/amdgpu: Add pldm version reporting

2025-05-13 Thread Asad Kamal
Add pldm version reporting through sysfs node Signed-off-by: Asad Kamal Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 3 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdg

[PATCH v2] drm/amdgpu: add debugfs for spirom IFWI dump

2025-05-13 Thread Shiwu Zhang
Expose the debugfs file node for user space to dump the IFWI image on spirom. For one transaction between PSP and host, it will read out the images on both active and inactive partitions so a buffer with two times the size of maximum IFWI image (currently 16MByte) is needed. v2: move the vbios gf

RE: [PATCH] drm/amdgpu: add debugfs for spirom IFWI dump

2025-05-13 Thread Zhang, Morris
[AMD Official Use Only - AMD Internal Distribution Only] [public] > -Original Message- > From: Zhang, Hawking > Sent: Monday, May 12, 2025 10:25 PM > To: Zhang, Morris ; Gao, Likun ; > amd-gfx@lists.freedesktop.org > Subject: RE: [PATCH] drm/amdgpu: add debugfs for spirom IFWI dump > > [

Re: [RFC v4 04/16] drm/sched: Avoid double re-lock on the job free path

2025-05-13 Thread Philipp Stanner
On Fri, 2025-04-25 at 11:20 +0100, Tvrtko Ursulin wrote: > Currently the job free work item will lock sched->job_list_lock first > time > to see if there are any jobs, free a single job, and then lock again > to > decide whether to re-queue itself if there are more finished jobs. > > Since drm_sch

RE: [PATCH] drm/amdgpu: Fix circular locking in userq creation

2025-05-13 Thread Liang, Prike
[Public] > -Original Message- > From: amd-gfx On Behalf Of > Jesse.Zhang > Sent: Tuesday, May 13, 2025 10:21 AM > To: amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander ; Koenig, Christian > ; Zhang, Jesse(Jie) > Subject: [PATCH] drm/amdgpu: Fix circular locking in userq creation > >

Re: [PATCH v2 1/3] drm: Create an app info option for wedge events

2025-05-13 Thread André Almeida
Hi Krzysztof, Thanks for the feedback. Em 12/05/2025 03:08, Krzysztof Karas escreveu: Hi André, [...] @@ -582,6 +584,14 @@ int drm_dev_wedged_event(struct drm_device *dev, unsigned long method) drm_info(dev, "device wedged, %s\n", method == DRM_WEDGE_RECOVERY_NONE ?

[PATCH v3 0/3] drm: Create an app info option for wedge events

2025-05-13 Thread André Almeida
This patchset implements a request made by Xaver Hugl about wedge events: "I'd really like to have the PID of the client that triggered the GPU reset, so that we can kill it if multiple resets are triggered in a row (or switch to software rendering if it's KWin itself) and show a user-friendly not

Re: [PATCH 2/4] drm/radeon: Remove unused radeon_doorbell_free

2025-05-13 Thread Dr. David Alan Gilbert
* Alex Deucher (alexdeuc...@gmail.com) wrote: > On Sun, May 11, 2025 at 8:13 AM Dr. David Alan Gilbert > wrote: > > > > * Christophe JAILLET (christophe.jail...@wanadoo.fr) wrote: > > > Le 18/04/2025 à 02:21, li...@treblig.org a écrit : > > > > From: "Dr. David Alan Gilbert" > > > > > > > > radeo

Re: Kernels >= 6.3 disable video output

2025-05-13 Thread Steven J Abner
On Fri, May 9 2025 at 03:01:13 PM +, Steven J Abner wrote: On Fri, May 9 2025 at 02:05:16 PM +, Alex Deucher wrote: bisect between 6.2.16 and 6.2.17 to identify the commit which broke Are you asking for a 'diff' output of drm and amdgpu directories between 6.2.16 (last of the 6.2 se

Re: [RFC v4 16/16] drm/sched: Embed run queue singleton into the scheduler

2025-05-13 Thread Philipp Stanner
On Fri, 2025-04-25 at 11:20 +0100, Tvrtko Ursulin wrote: > Now that the run queue to scheduler relationship is always 1:1 we can > embed it (the run queue) directly in the scheduler struct and save on > some allocation error handling code and such. > > Signed-off-by: Tvrtko Ursulin > Cc: Christia

Re: amdgpu: Reproducible soft lockups when playing games

2025-05-13 Thread Marcus Rückert
On Mon, 2025-05-12 at 14:23 +0200, Marcus Rückert wrote: > > I opened a video in clapper to take the browser out of the equation > > and > > started working in a terminal. -> kernel oops. will look into setting > > up kdump. > > > > Mesa-25.1+git1019.7c4f501e9-39.1.x86_64 > > kernel-default-6.1

Re: [RFC v4 05/16] drm/sched: Consolidate drm_sched_job_timedout

2025-05-13 Thread Philipp Stanner
On Fri, 2025-04-25 at 11:20 +0100, Tvrtko Ursulin wrote: > Reduce to one spin_unlock for hopefully a little bit clearer flow in > the > function. It may appear that there is a behavioural change with the > drm_sched_start_timeout_unlocked() now not being called if there were > initially no jobs on

[PATCH v3 2/3] drm/doc: Add a section about "App information" for the wedge API

2025-05-13 Thread André Almeida
Add a section about "App information" for the wedge API. Signed-off-by: André Almeida --- v3: - Change "app that caused ..." to "app involved ..." - Clarify that devcoredump have more information about what happened - Update that PID and APP will be empty if there's no app info --- Documentat

[PATCH 6.1.y] drm/amd/display: Don't refer to dc_sink in is_dsc_need_re_compute

2025-05-13 Thread jianqi.ren.cn
From: Wayne Lin [ Upstream commit fcf6a49d79923a234844b8efe830a61f3f0584e4 ] [Why] When unplug one of monitors connected after mst hub, encounter null pointer dereference. It's due to dc_sink get released immediately in early_unregister() or detect_ctx(). When commit new state which directly

[PATCH v3 3/3] drm/amdgpu: Make use of drm_wedge_app_info

2025-05-13 Thread André Almeida
To notify userspace about which app (if any) made the device get in a wedge state, make use of drm_wedge_app_info parameter, filling it with the app PID and name. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 19 +-- drivers/gpu/drm/amd/amdgpu/amdg

Re: amdgpu RENOIR funky complaints in dmesg

2025-05-13 Thread Borislav Petkov
On Mon, May 12, 2025 at 01:22:01PM +, Lin, Wayne wrote: > It's due to a newly merged patch which adds more logs indicating exceptions > while doing AUX transactions. These exceptions might be temporary state with > the DPRx. > Will give another patch to adjust the log. Sorry for any inconvenien

[PATCH v3 1/3] drm: Create an app info option for wedge events

2025-05-13 Thread André Almeida
When a device get wedged, it might be caused by a guilty application. For userspace, knowing which app was the cause can be useful for some situations, like for implementing a policy, logs or for giving a chance for the compositor to let the user know what app caused the problem. This is an optiona

Re: [RFC v4 10/16] drm/sched: Free all finished jobs at once

2025-05-13 Thread Philipp Stanner
On Fri, 2025-04-25 at 11:20 +0100, Tvrtko Ursulin wrote: > To implement fair scheduling we will need as accurate as possible > view > into per entity GPU time utilisation. Because sched fence execution > time > are only adjusted for accuracy in the free worker we need to process > completed jobs as

Re: [RFC v4 12/16] drm/sched: Remove idle entity from tree

2025-05-13 Thread Philipp Stanner
On Fri, 2025-04-25 at 11:20 +0100, Tvrtko Ursulin wrote: > There is no need to keep entities with no jobs in the tree so lets > remove > it once the last job is consumed. This keeps the tree smaller which > is > nicer and more efficient as entities are removed and re-added on > every > popped job.

Re: [PATCH v2 2/3] drm/doc: Add a section about "App information" for the wedge API

2025-05-13 Thread Raag Jadav
On Sun, May 11, 2025 at 07:47:44PM -0300, André Almeida wrote: > Add a section about "App information" for the wedge API. > > Signed-off-by: André Almeida > --- > Documentation/gpu/drm-uapi.rst | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/Documentation/gpu/drm-uapi.

[RFC v3 09/10] drm/i915: Protect access to driver and timeline name

2025-05-13 Thread Tvrtko Ursulin
Protect the access to driver and timeline name which otherwise could be freed as dma-fence exported is signalling fences. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 2 ++ drivers/gpu/drm/i915/i915_request.c | 5 +++-- drivers/gpu/drm/i915/i915_sw_fenc

[RFC v3 10/10] drm/xe: Make dma-fences compliant with the safe access rules

2025-05-13 Thread Tvrtko Ursulin
Xe can free some of the data pointed to by the dma-fences it exports. Most notably the timeline name can get freed if userspace closes the associated submit queue. At the same time the fence could have been exported to a third party (for example a sync_fence fd) which will then cause an use- after-

[RFC v3 05/10] drm/amdgpu: Use dma-fence driver and timeline name helpers

2025-05-13 Thread Tvrtko Ursulin
Access the dma-fence internals via the previously added helpers. Drop the macro while at it, since the length is now more manageable. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/

[RFC v3 02/10] dma-fence: Use a flag for 64-bit seqnos

2025-05-13 Thread Tvrtko Ursulin
With the goal of reducing the need for drivers to touch (and dereference) fence->ops, we move the 64-bit seqnos flag from struct dma_fence_ops to the fence->flags. Drivers which were setting this flag are changed to use new dma_fence_init64() instead of dma_fence_init(). Signed-off-by: Tvrtko Urs

[RFC v3 08/10] sync_file: Protect access to driver and timeline name

2025-05-13 Thread Tvrtko Ursulin
Protect the access to driver and timeline name which otherwise could be freed as dma-fence exported is signalling fences. Signed-off-by: Tvrtko Ursulin --- drivers/dma-buf/sync_file.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_fil

[RFC v3 07/10] dma-fence: Add safe access helpers and document the rules

2025-05-13 Thread Tvrtko Ursulin
Dma-fence objects currently suffer from a potential use after free problem where fences exported to userspace and other drivers can outlive the exporting driver, or the associated data structures. The discussion on how to address this concluded that adding reference counting to all the involved ob

[RFC v3 01/10] dma-fence: Change signature of __dma_fence_is_later

2025-05-13 Thread Tvrtko Ursulin
With the goal of reducing the need for drivers to touch (and dereference) fence->ops, we change the prototype of __dma_fence_is_later() to take fence instead of fence->ops. Signed-off-by: Tvrtko Ursulin Reviewed-by: Christian König --- drivers/dma-buf/dma-fence-chain.c | 2 +- drivers/dma-buf/

[RFC v3 06/10] drm/i915: Use dma-fence driver and timeline name helpers

2025-05-13 Thread Tvrtko Ursulin
Access the dma-fence internals via the previously added helpers. Signed-off-by: Tvrtko Ursulin Reviewed-by: Christian König --- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 4 ++-- drivers/gpu/drm/i915/i915_request.c | 2 +- drivers/gpu/drm/i915/i915_sw_fence.c| 4 ++-- 3 files

[RFC v3 04/10] sync_file: Use dma-fence driver and timeline name helpers

2025-05-13 Thread Tvrtko Ursulin
Access the dma-fence internals via the previously added helpers. Signed-off-by: Tvrtko Ursulin Reviewed-by: Christian König --- drivers/dma-buf/sync_file.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c index

  1   2   >