[PATCH v2] drm/amdkfd: Change svm_range_get_info return type

2025-04-01 Thread Ваторопин Андрей
From: Andrey Vatoropin Static analysis shows that pointer "svms" cannot be NULL because it points to the object "struct svm_range_list". Remove the extra NULL check. It is meaningless and harms the readability of the code. In the function svm_range_get_info() there is no possibility of failure.

Re: [PATCH V8 06/43] drm/colorop: Add 1D Curve subtype

2025-04-01 Thread Daniel Stone
Hi Alex, On Wed, 26 Mar 2025 at 23:50, Alex Hung wrote: > +static int drm_colorop_init(struct drm_device *dev, struct drm_colorop > *colorop, > + struct drm_plane *plane, enum drm_colorop_type > type) > +{ > + struct drm_mode_config *config = &dev->mode_config; >

Re: [PATCH 2/2] drm/amdgpu: revert "always sync the GFX pipe on ctx switch"

2025-04-01 Thread SRINIVASAN SHANMUGAM
On 3/31/2025 6:31 PM, Christian König wrote: This reverts commit c2cc3648ba517a6c270500b5447d5a1efdad5936. Turned out that this has some negative consequences for some workloads. Instead check if the cleaner shader should run directly. Signed-off-by: Christian König --- drivers/gpu/drm/amd

Re: [PATCH 6.12] drm/amd/display: Don't write DP_MSTM_CTRL after LT

2025-04-01 Thread Jani Nikula
On Mon, 31 Mar 2025, Thadeu Lima de Souza Cascardo wrote: > From: Wayne Lin > > [ Upstream commit bc068194f548ef1f230d96c4398046bf59165992 ] > > [Why] > Observe after suspend/resme, we can't light up mst monitors under specific > mst hub. This is already at stable backport stage, but it would re

RE: [PATCH] drm/amdgpu: Fix xgmi v6.4.1 link status reporting

2025-04-01 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, April 1, 2025 4:55 PM To: amd-gfx@lists.freedesktop.org; Lazar, Lijo Cc: Zhang, Hawking ; Deucher, Alexander ; Kamal, Asad Subje

Re: [PATCH 1/2] drm/amdgpu: use a dummy owner for sysfs triggered cleaner shaders

2025-04-01 Thread Christian König
Am 01.04.25 um 12:32 schrieb SRINIVASAN SHANMUGAM: > On 3/31/2025 6:31 PM, Christian König wrote: >> Otherwise triggering sysfs multiple times without other submissions in >> between only runs the shader once. >> >> Signed-off-by: Christian König >> --- >>   drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Michel Dänzer
On 2025-03-31 19:42, Alex Hung wrote: > On 3/31/25 11:04, Shengyu Qu wrote: >> Or we can add some kind of "linked with" info to plane's COLOR_PIPELINE >> property, to let userspace know that cursor plane and background plane share >> the same colorop config. So that userspace could do extra conve

[PATCH v2] drm/amdgpu: Fix CPER error handling on VFs

2025-04-01 Thread Victor Skvortsov
From: Tony Yi CPER read will loop infinitely if an error is encountered and the more bit is set. Add error checks to break upon failure. v2: added function pointer checks Suggested-by: Tony Yi Signed-off-by: Victor Skvortsov --- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 16

regression bisected RX580 GPU crash chipset overheating (kernel 6.8 and later)

2025-04-01 Thread Leo
Hi, For what I read on the reporting issue, I think the issue I am facing qualify for regression, but as I am a noob yet I'm not sure. I reported it to gitlab link as described in the maintainers list. Below is the issue report link. https://gitlab.freedesktop.org/drm/amd/-/issues/4098 Sorry for

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Harry Wentland
On 2025-04-01 11:45, Melissa Wen wrote: > On 03/31, Xaver Hugl wrote: >>> Cursor plane has no color pipeline and thus it has no colorop either. It >>> inherits color processing from its parent plane. >> >> Just to be sure: That means amdgpu will reject atomic commits that try >> to set a color p

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Harry Wentland
On 2025-04-01 11:45, Shengyu Qu wrote: > > > 在 2025/4/1 22:11, Michel Dänzer 写道: >> On 2025-04-01 14:32, Shengyu Qu wrote: >>> 在 2025/4/1 17:56, Michel Dänzer 写道: On 2025-03-31 19:42, Alex Hung wrote: > On 3/31/25 11:04, Shengyu Qu wrote: >> Or we can add some kind of "linked with

RE: [PATCH v3] drm/amdgpu: Increase KIQ invalidate_tlbs timeout

2025-04-01 Thread Kasiviswanathan, Harish
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Harish Kasiviswanathan -Original Message- From: amd-gfx On Behalf Of Jay Cornwall Sent: Monday, March 31, 2025 11:45 AM To: amd-gfx@lists.freedesktop.org Cc: Cornwall, Jay ; Russell, Kent Subject: [PATCH v3] drm/am

Re: [PATCH V8 06/43] drm/colorop: Add 1D Curve subtype

2025-04-01 Thread Simon Ser
On Tuesday, April 1st, 2025 at 17:14, Daniel Stone wrote: > > > Hi Alex, > > On Wed, 26 Mar 2025 at 23:50, Alex Hung alex.h...@amd.com wrote: > > > +static int drm_colorop_init(struct drm_device *dev, struct drm_colorop > > *colorop, > > + struct drm_plane *plane, enum drm_colorop_type

Re: [PATCH V2 1/3] drm/amd/display: Protect FPU in dml21_copy()

2025-04-01 Thread Aurabindo Pillai
On 2025-03-27 05:53, Huacai Chen wrote: Commit 7da55c27e76749b9 ("drm/amd/display: Remove incorrect FP context start") removes the FP context protection of dml2_create(), and it said "All the DC_FP_START/END should be used before call anything from DML2". However, dml21_copy() are not protected

[PATCH 4/7 V2] drm/amd/amdgpu: Refactor SDMA v5.0 reset logic into stop_queue and restore_queue functions

2025-04-01 Thread jesse.zhang
From: "jesse.zh...@amd.com" This patch refactors the SDMA v5.0 reset logic by splitting the `sdma_v5_0_reset_queue` function into two separate functions: `sdma_v5_0_stop_queue` and `sdma_v5_0_restore_queue`. This change aligns with the new SDMA reset mechanism, where the reset process is divid

[PATCH 7/7 V2] drm/amd/amdgpu: Remove deprecated SDMA reset callback mechanism

2025-04-01 Thread jesse.zhang
From: "jesse.zh...@amd.com" This patch removes the deprecated SDMA reset callback mechanism, which was previously used to register pre-reset and post-reset callbacks for SDMA engine resets. The SDMA reset callback mechanism allowed KFD and AMDGPU to register pre-reset and post-reset functions

Re: [RFC v3 04/14] drm/sched: Clarify locked section in drm_sched_rq_select_entity_fifo

2025-04-01 Thread Tvrtko Ursulin
On 31/03/2025 21:16, Tvrtko Ursulin wrote: Rq->lock only protects the tree walk so lets move the rest out. I retract this one, reinit_completion has to be in the locked section too. Next posting will be rebased accordingly but I will hold off sending it out until more comments are received.

[PATCH] drm/amdgpu: Fix xgmi v6.4.1 link status reporting

2025-04-01 Thread Lijo Lazar
Use the right register offsets for getting link status. Signed-off-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdg

RE: [PATCH v2] drm/amdgpu: Fix CPER error handling on VFs

2025-04-01 Thread Zhang, Hawking
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Skvortsov, Victor Sent: Wednesday, April 2, 2025 04:59 To: amd-gfx@lists.freedesktop.org Cc: Luo, Zhigang ; Zhang, Hawking ; Zhou1, Tao ; Zhao, Victor ; Yi, Ton

[PATCH 1/7 V2] drm/amd/amdgpu: Simplify SDMA reset mechanism by removing dynamic callbacks

2025-04-01 Thread jesse.zhang
From: "jesse.zh...@amd.com" Since KFD no longer registers its own callbacks for SDMA resets, and only KGD uses the reset mechanism, we can simplify the SDMA reset flow by directly calling the ring's `stop_queue` and `start_queue` functions. This patch removes the dynamic callback mechanism and

[PATCH 3/7 V2] drm/amdgpu: Optimize SDMA v5.0 queue reset and stop logic

2025-04-01 Thread jesse.zhang
From: "jesse.zh...@amd.com" This patch refactors the SDMA v5.0 queue reset and stop logic to improve code readability, maintainability, and performance. The key changes include: 1. **Generalized `sdma_v5_0_gfx_stop` Function**: - Added an `inst_mask` parameter to allow stopping specific SDMA

[PATCH] drm/amd: Add AMD Phenom 2 to pcie dynamic switching exclusions

2025-04-01 Thread Mario Limonciello
From: Mario Limonciello AMD RX580 when added AMD Phenom 2 has problems with overheating. This is due to changes with PCIe dynamic switching introduced by commit 466a7d115326e ("drm/amd: Use the first non-dGPU PCI device for BW limits") Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4098

RE: [PATCH] drm/amdgpu: Fix CPER error handling on VFs

2025-04-01 Thread Zhang, Hawking
[AMD Official Use Only - AMD Internal Distribution Only] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Skvortsov, Victor Sent: Wednesday, April 2, 2025 04:44 To: amd-gfx@lists.freedesktop.org Cc: Luo, Zhigang ; Zhang, Hawking ; Zhou1, Tao ; Zhao, Victor ; Yi, Ton

Re: [PATCH 1/2] drm/amdgpu: use a dummy owner for sysfs triggered cleaner shaders

2025-04-01 Thread SRINIVASAN SHANMUGAM
On 3/31/2025 6:31 PM, Christian König wrote: Otherwise triggering sysfs multiple times without other submissions in between only runs the shader once. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) di

[PATCH 1/2] drm/amd/amdgpu: decouple ASPM with pcie dpm

2025-04-01 Thread Kenneth Feng
ASPM doesn't need to be disabled if pcie dpm is disabled. So ASPM can be independantly enabled. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu

Re: [PATCH V8 11/43] drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE

2025-04-01 Thread Shengyu Qu
在 2025/3/27 7:46, Alex Hung 写道: From: Harry Wentland With the introduction of the pre-blending color pipeline we can no longer have color operations that don't have a clear position in the color pipeline. We deprecate all existing plane properties. For upstream drivers those are: - COLOR_EN

Re: [PATCH v2] ACPI: video: Handle fetching EDID as ACPI_TYPE_PACKAGE

2025-04-01 Thread Hans de Goede
Hi, On 31-Mar-25 1:46 PM, Rafael J. Wysocki wrote: > On Fri, Mar 28, 2025 at 10:09 PM Gergo Koteles wrote: >> >> The _DDC method should return a buffer, or an integer in case of an error. >> But some Lenovo laptops incorrectly return EDID as buffer in ACPI package. >> >> Calling _DDC generates th

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Xaver Hugl
> Cursor plane has no color pipeline and thus it has no colorop either. It > inherits color processing from its parent plane. Just to be sure: That means amdgpu will reject atomic commits that try to set a color pipeline on the primary plane while showing the cursor plane on top of it? Just like w

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Shengyu Qu
Sorry for vague expression. I mean that I think we shouldn't register DRM_PLANE_TYPE_CURSOR in the driver, as we don't have actual hardware support. 在 2025/4/1 0:26, Alex Hung 写道: On 3/31/25 10:12, Shengyu Qu wrote: So currently we have to hope the compositor won't use DRM_PLANE_TYPE_CURSOR

Re: [PATCH V8 03/43] drm/doc/rfc: Describe why prescriptive color pipeline is needed

2025-04-01 Thread Shengyu Qu
You are right. Sorry for the noise. 在 2025/4/1 0:41, Alex Hung 写道: On 3/31/25 10:24, Shengyu Qu wrote: 在 2025/3/27 7:46, Alex Hung 写道: From: Harry Wentland Add documentation for color pipeline API. Signed-off-by: Alex Hung Signed-off-by: Harry Wentland --- v8:   - Fix typo "definint"

Re: [PATCH V8 03/43] drm/doc/rfc: Describe why prescriptive color pipeline is needed

2025-04-01 Thread Shengyu Qu
在 2025/3/27 7:46, Alex Hung 写道: From: Harry Wentland Add documentation for color pipeline API. Signed-off-by: Alex Hung Signed-off-by: Harry Wentland --- v8: - Fix typo "definint" -> "defining" v7: - Add a commit messages v5: - Don't require BYPASS to succeed (Sebastian) - use DA

[PATCH 6.6 3/3] drm/amd/display: Don't write DP_MSTM_CTRL after LT

2025-04-01 Thread Thadeu Lima de Souza Cascardo
From: Wayne Lin [ Upstream commit bc068194f548ef1f230d96c4398046bf59165992 ] [Why] Observe after suspend/resme, we can't light up mst monitors under specific mst hub. The reason is that driver still writes DPCD DP_MSTM_CTRL after LT. It's forbidden even we write the same value for that dpcd regi

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Shengyu Qu
So currently we have to hope the compositor won't use DRM_PLANE_TYPE_CURSOR planes at all Why do we still register DRM_PLANE_TYPE_CURSOR in the driver? 在 2025/4/1 0:06, Alex Hung 写道: On 3/31/25 09:43, Shengyu Qu wrote: Hi, Thanks for reply. So currently we have to apply color conversio

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Shengyu Qu
Hi, Thanks for reply. So currently we have to apply color conversion on the background plane of the cursor to do some color space conversion. What would happen if cursor and background plane needs different conversion config? Or we just give the cursor a dedicated plane? Best regards, Shengy

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Shengyu Qu
在 2025/4/1 1:42, Alex Hung 写道: On 3/31/25 11:04, Shengyu Qu wrote: Or we can add some kind of "linked with" info to plane's COLOR_PIPELINE property, to let userspace know that cursor plane and background plane share the same colorop config. So that userspace could do extra conversion on cu

Fw: regression bisected RX580 GPU crash chipset overheating (kernel 6.8 and later)

2025-04-01 Thread Leo
Hi, For what I read on the reporting issue, I think the issue I am facing qualify for regression, but as I am a noob yet I'm not sure. I reported it to gitlab link as described in the maintainers list. Below is the issue report link. https://gitlab.freedesktop.org/drm/amd/-/issues/4098 Sorry for

[PATCH 6.6 1/3] drm/dp_mst: Factor out function to queue a topology probe work

2025-04-01 Thread Thadeu Lima de Souza Cascardo
From: Imre Deak [ Upstream commit e9b36c5be2e7fdef2cc933c1dac50bd81881e9b8 ] Factor out a function to queue a work for probing the topology, also used by the next patch. Cc: Lyude Paul Cc: dri-de...@lists.freedesktop.org Reviewed-by: Lyude Paul Signed-off-by: Imre Deak Link: https://patchwo

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Shengyu Qu
Or we can add some kind of "linked with" info to plane's COLOR_PIPELINE property, to let userspace know that cursor plane and background plane share the same colorop config. So that userspace could do extra conversion on cursor image data to avoid display wrong cursor color. 在 2025/4/1 0:50, S

[PATCH 6.12] drm/amd/display: Don't write DP_MSTM_CTRL after LT

2025-04-01 Thread Thadeu Lima de Souza Cascardo
From: Wayne Lin [ Upstream commit bc068194f548ef1f230d96c4398046bf59165992 ] [Why] Observe after suspend/resme, we can't light up mst monitors under specific mst hub. The reason is that driver still writes DPCD DP_MSTM_CTRL after LT. It's forbidden even we write the same value for that dpcd regi

[RFC v3 03/14] drm/sched: Consolidate drm_sched_job_timedout

2025-04-01 Thread Tvrtko Ursulin
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 the pending list, and then some appeared after unlock, however if t

Re: [PATCH V8 24/43] drm/amd/display: Skip color pipeline initialization for cursor plane

2025-04-01 Thread Melissa Wen
On 03/31, Xaver Hugl wrote: > > Cursor plane has no color pipeline and thus it has no colorop either. It > > inherits color processing from its parent plane. > > Just to be sure: That means amdgpu will reject atomic commits that try > to set a color pipeline on the primary plane while showing the