[PATCH v2] drm/amd/amdgpu: Add Descriptions to Process Isolation and Cleaner Shader Sysfs Functions

2024-12-05 Thread Srinivasan Shanmugam
partitions through the sysfs interface. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam Suggested-by: Alex Deucher --- v2: - Incorporated feedbacks for function descriptions (Alex) drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 45 + 1 file c

[PATCH] drm/amdgpu: Added Debug Logging for Process Isolation

2025-01-06 Thread Srinivasan Shanmugam
Added debug logging to provide insights into KGD/KFD scheduling, cleaner shader emission, and isolation processes. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 30 + drivers/gpu/drm/amd/amdgpu

Re: [PATCH v2] drm/amdgpu: Fix error handling in amdgpu_ras_add_bad_pages

2025-01-01 Thread SRINIVASAN SHANMUGAM
Ping!? On 12/17/2024 3:08 PM, Srinivasan Shanmugam wrote: It ensures that appropriate error codes are returned when an error condition is detected Fixes the below; drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2849 amdgpu_ras_add_bad_pages() warn: missing error code here? 'amdgpu_umc_pages_in_

[PATCH] drm/amdgpu/mes: Add cleaner shader fence address handling in MES for GFX11

2025-02-07 Thread Srinivasan Shanmugam
e state before executing new tasks. Cc: lin cao Cc: Jingwen Chen Cc: Christian König Cc: Alex Deucher Suggested-by: Shaoyun Liu Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/me

[PATCH v2] drm/amdgpu/mes: Add cleaner shader fence address handling in MES for GFX11

2025-02-07 Thread Srinivasan Shanmugam
e state before executing new tasks. Cc: lin cao Cc: Jingwen Chen Cc: Christian König Cc: Alex Deucher Suggested-by: Shaoyun Liu Signed-off-by: Srinivasan Shanmugam --- v2: The checks for amdgpu_sriov_is_mes_info_enable were removed to simplify the resource management logic in the MES initial

[PATCH v3] drm/amdgpu/mes: Add cleaner shader fence address handling in MES for GFX11

2025-02-07 Thread Srinivasan Shanmugam
e state before executing new tasks. Cc: lin cao Cc: Jingwen Chen Cc: Christian König Cc: Alex Deucher Suggested-by: Shaoyun Liu Signed-off-by: Srinivasan Shanmugam --- v2: The checks for amdgpu_sriov_is_mes_info_enable were removed to simplify the resource management logic in the MES initial

[PATCH] drm/amdgpu: Update VM flush condition for 'enforce_isolation'

2024-12-10 Thread Srinivasan Shanmugam
aner shader is emitted when necessary in scenarios requiring enforced isolation. Fixes: 2feee98e6f2c ("drm/amdgpu: Update VM flush condition for 'enforce_isolation'") Cc: Christian König Cc: Alex Deucher Suggested-by: Christian König Signed-off-by: Srinivasan Shanmuga

[PATCH v2] drm/amd/display: Fix NULL pointer dereference in dmub_tracebuffer_show

2024-12-12 Thread Srinivasan Shanmugam
("drm/amd/display: Make DMCUB tracebuffer debugfs chronological") Cc: Leo Li Cc: Tom Chung Cc: Rodrigo Siqueira Cc: Roman Li Cc: Alex Hung Cc: Aurabindo Pillai Cc: Harry Wentland Cc: Hamza Mahfooz Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam --- v2: -

[PATCH] drm/amd/display: Fix NULL pointer dereference in dmub_tracebuffer_show

2024-12-12 Thread Srinivasan Shanmugam
("drm/amd/display: Make DMCUB tracebuffer debugfs chronological") Cc: Leo Li Cc: Tom Chung Cc: Rodrigo Siqueira Cc: Roman Li Cc: Alex Hung Cc: Aurabindo Pillai Cc: Harry Wentland Cc: Hamza Mahfooz Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/

[PATCH v2] drm/amdgpu: Fix error handling in amdgpu_ras_add_bad_pages

2024-12-17 Thread Srinivasan Shanmugam
Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- v2: - s/-EIO/-EINVAL, retained the use of -EINVAL from amdgpu_umc_pages_in_a_row & and amdgpu_ras_mca2pa_by_idx, when the RAS context is not initialized or the convert_ras_err_addr function is unavailab

[PATCH] drm/amdgpu: Fix error handling in amdgpu_ras_add_bad_pages

2024-12-13 Thread Srinivasan Shanmugam
Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index db081618e85c..2af

[PATCH] drm/amdgpu: Add mutex locking to VMID Manager Initialization for Process Isolation

2025-01-09 Thread Srinivasan Shanmugam
VMIDs is done correctly and without interference Fixes: 96595204195d ("drm/amdgpu: Make enforce_isolation setting per GPU") Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH] drm/amdgpu/gfx10: Add cleaner shader for GFX10.1.10

2025-01-20 Thread Srinivasan Shanmugam
. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 14 ++ .../drm/amd/amdgpu/gfx_v10_0_cleaner_shader.h | 35 + .../amdgpu/gfx_v10_1_10_cleaner_shader.asm| 126 ++ 3 files changed, 175

Re: [PATCH] drm/amdgpu/gfx10: Enable cleaner shader for GFX10.1.1/10.1.2 GPUs

2025-01-24 Thread SRINIVASAN SHANMUGAM
On 1/24/2025 10:01 PM, Marek Olšák wrote: Does this commit really enable it though? Or is it just for sysfs? Yes it enables cleaner shader support not only sysfs. Best regards, Srini Marek On Fri, Jan 24, 2025 at 1:42 AM Srinivasan Shanmugam wrote: Enable the cleaner shader for

[PATCH v2] drm/amdgpu/gfx10: Add cleaner shader for GFX10.1.10

2025-01-23 Thread Srinivasan Shanmugam
. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c| 14 ++ .../drm/amd/amdgpu/gfx_v10_0_cleaner_shader.h | 35 + .../amdgpu/gfx_v10_1_10_cleaner_shader.asm| 126 ++ 3 files changed, 175

[PATCH] drm/amdgpu/gfx10: Enable cleaner shader for GFX10.1.1/10.1.2 GPUs

2025-01-23 Thread Srinivasan Shanmugam
Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 1878c83ff7e3..938f7d60a0ee 100644 --- a/drivers/gpu/drm/amd

[PATCH] drm/amdgpu/gfx10: Extend Cleaner Shader Support for Additional GFX10.3.x Versions

2025-01-24 Thread Srinivasan Shanmugam
: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 938f7d60a0ee..9816e2a4d62e 100644 --- a

[PATCH] drm/amd/amdgpu: Prevent null pointer dereference in GPU bandwidth calculation

2025-01-20 Thread Srinivasan Shanmugam
ie link width") Cc: Christian König Cc: Alex Deucher Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/a

[PATCH v3] drm/amd/amdgpu: Prevent null pointer dereference in GPU bandwidth calculation

2025-01-20 Thread Srinivasan Shanmugam
Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam Suggested-by: Lijo Lazar --- v3: change the else s/parent/adev->pdev (Lijo) drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH v2] drm/amd/amdgpu: Prevent null pointer dereference in GPU bandwidth calculation

2025-01-20 Thread Srinivasan Shanmugam
Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam Suggested-by: Lijo Lazar --- v2: Use the device itself if no upstream bridge is found (Lijo) drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/am

[PATCH v4] drm/amd/amdgpu: Prevent null pointer dereference in GPU bandwidth calculation

2025-01-20 Thread Srinivasan Shanmugam
Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam Suggested-by: Lijo Lazar --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c in

[PATCH] drm/amdgpu/gfx12: Add Cleaner Shader Support for GFX12.0 GPUs

2025-01-13 Thread Srinivasan Shanmugam
ensures that GPU resources are reset between workloads, preventing data leaks and ensuring accurate computation. By enabling the cleaner shader, this update enhances the security and reliability of GPU operations on GFX12.0 hardware. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan

[PATCH] drm/amdgpu/gfx10: Enable cleaner shader for GFX10.3.2/10.3.4/10.3.5 GPUs

2025-01-04 Thread Srinivasan Shanmugam
König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 88393c2c08e4..5ba263fe5512 100644 --- a/drivers/gpu

[PATCH v2] drm/amdgpu/gfx10: Enable cleaner shader for GFX10.3.2/10.3.4/10.3.5 GPUs

2025-01-04 Thread Srinivasan Shanmugam
: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- v2: Updated commit message drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 88393c2c08e4

[PATCH] drm/amdgpu: Fix Circular Locking Dependency in AMDGPU GFX Isolation

2025-01-03 Thread Srinivasan Shanmugam
0xe7/0x120 [ 606.303449] ? __pfx_kthread+0x10/0x10 [ 606.303463] ret_from_fork+0x3c/0x60 [ 606.303476] ? __pfx_kthread+0x10/0x10 [ 606.303489] ret_from_fork_asm+0x1a/0x30 [ 606.303512] Fixes: afefd6f24502 ("drm/amdgpu: Implement Enforce Isolation Handler for KGD/KFD serialization")

[PATCH v2] drm/amdgpu: Fix Circular Locking Dependency in AMDGPU GFX Isolation

2025-01-09 Thread Srinivasan Shanmugam
0xe7/0x120 [ 606.303449] ? __pfx_kthread+0x10/0x10 [ 606.303463] ret_from_fork+0x3c/0x60 [ 606.303476] ? __pfx_kthread+0x10/0x10 [ 606.303489] ret_from_fork_asm+0x1a/0x30 [ 606.303512] Fixes: afefd6f24502 ("drm/amdgpu: Implement Enforce Isolation Handler for KGD/KFD serialization&quo

[PATCH] drm/amd/display: Fix error pointers in amdgpu_dm_crtc_mem_type_changed

2025-01-15 Thread Srinivasan Shanmugam
Li Cc: Tom Chung Cc: Rodrigo Siqueira Cc: Roman Li Cc: Alex Hung Cc: Aurabindo Pillai Cc: Harry Wentland Cc: Hamza Mahfooz Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 + 1 file changed, 5 insertions(

[PATCH v2] drm/amdgpu: Replace Mutex with Spinlock for RLCG register access to avoid Priority Inversion in SRIOV

2025-02-15 Thread Srinivasan Shanmugam
rom_fork+0x3c/0x60 [ 253.019468] ? __pfx_kthread+0x10/0x10 [ 253.019701] ret_from_fork_asm+0x1a/0x30 [ 253.019939] Fixes: e864180ee49b ("drm/amdgpu: Add lock around VF RLCG interface") Cc: lin cao Cc: Jingwen Chen Cc: Victor Skvortsov Cc: Zhigang Luo Cc: Christian König Cc: Alex Deuche

[PATCH] drm/amdgpu: Add parameter documentation for amdgpu_sync_fence

2025-03-20 Thread Srinivasan Shanmugam
Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index c5f9db6b32a4..5576ed0b508f 100644 --

[PATCH] drm/amdgpu: Implement WQ_MEM_RECLAIM workqueue for Process Isolation

2025-03-16 Thread Srinivasan Shanmugam
xa0 Fixes: afefd6f24502 ("drm/amdgpu: Implement Enforce Isolation Handler for KGD/KFD serialization") Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 17 ++

[PATCH] drm/amdgpu/gfx11: Add Cleaner Shader Support for GFX11.5 GPUs

2025-03-19 Thread Srinivasan Shanmugam
-Novales Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index 8261308fc1f2

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

2025-04-05 Thread SRINIVASAN SHANMUGAM
goto err; Reviewed-by: Srinivasan Shanmugam

Re: [PATCH 2/2] drm/amdgpu: cleanup amdgpu_vm_flush v3

2025-04-05 Thread SRINIVASAN SHANMUGAM
On 4/4/2025 7:46 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. While at it remove amdgpu_vm_need_pipeline_sync(), we also

[PATCH] drm/amdgpu/gfx10: Add Cleaner Shader Support for GFX10.3.x GPUs

2025-03-26 Thread Srinivasan Shanmugam
-Novales Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index

Re: [PATCH] drm/amdgpu: Fix Manual Execution of Cleaner Shader in Gang Submissions

2025-03-27 Thread SRINIVASAN SHANMUGAM
On 3/27/2025 2:54 PM, Christian König wrote: Over all this change doesn't seem to make much sense to me. Why exactly is isolation->spearhead not pointing to the dummy kernel job we submit? Does the owner check or gang_submit check in amdgpu_device_enforce_isolation() fail to set up the spear

Re: [PATCH 3/3] drm/amdgpu: adjust enforce_isolation handling

2025-04-10 Thread SRINIVASAN SHANMUGAM
On 4/9/2025 8:12 PM, Alex Deucher wrote: On Wed, Apr 9, 2025 at 10:36 AM SRINIVASAN SHANMUGAM wrote: On 4/8/2025 9:30 PM, Alex Deucher wrote: Switch from a bool to an enum and allow more options for enforce isolation. There are now 3 modes of operation: - Disabled (0) - Enabled

[PATCH] drm/amdgpu/gfx11: Add Cleaner Shader Support for GFX11.5.2/11.5.3 GPUs

2025-04-10 Thread Srinivasan Shanmugam
: Mario Sopena-Novales Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 28 ++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Re: [PATCH] drm/amdgpu: cleanup amdgpu_vm_flush v5

2025-04-09 Thread SRINIVASAN SHANMUGAM
crash caused by incorrect check v5: once more fix the logic Signed-off-by: Christian König Reviewed-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 94 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 5

Re: [PATCH 3/3] drm/amdgpu: adjust enforce_isolation handling

2025-04-09 Thread SRINIVASAN SHANMUGAM
On 4/8/2025 9:30 PM, Alex Deucher wrote: Switch from a bool to an enum and allow more options for enforce isolation. There are now 3 modes of operation: - Disabled (0) - Enabled (serialization and cleaner shader) (1) - Enabled in legacy mode (no serialization or cleaner shader) (2) This provid

Re: [PATCH] drm/amdgpu: cleanup amdgpu_vm_flush v5

2025-04-09 Thread SRINIVASAN SHANMUGAM
On 4/9/2025 7:16 PM, SRINIVASAN SHANMUGAM wrote: On 4/9/2025 7:11 PM, SRINIVASAN SHANMUGAM wrote: On 4/9/2025 6:45 PM, SRINIVASAN SHANMUGAM wrote: On 4/9/2025 4:15 PM, Christian König wrote: This reverts commit c2cc3648ba517a6c270500b5447d5a1efdad5936. Turned out that this has some

Re: [PATCH] drm/amdgpu: cleanup amdgpu_vm_flush v5

2025-04-09 Thread SRINIVASAN SHANMUGAM
On 4/9/2025 6:45 PM, SRINIVASAN SHANMUGAM wrote: On 4/9/2025 4:15 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. While

Re: [PATCH] drm/amdgpu: cleanup amdgpu_vm_flush v5

2025-04-09 Thread SRINIVASAN SHANMUGAM
On 4/9/2025 7:11 PM, SRINIVASAN SHANMUGAM wrote: On 4/9/2025 6:45 PM, SRINIVASAN SHANMUGAM wrote: On 4/9/2025 4:15 PM, Christian König wrote: This reverts commit c2cc3648ba517a6c270500b5447d5a1efdad5936. Turned out that this has some negative consequences for some workloads. Instead check

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 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

Re: [PATCH 5/8] drm/amdgpu: rework how the cleaner shader is emitted v3

2025-03-13 Thread SRINIVASAN SHANMUGAM
On 2/18/2025 9:43 PM, Christian König wrote: Instead of emitting the cleaner shader for every job which has the enforce_isolation flag set only emit it for the first submission from every client. v2: add missing NULL check v3: fix another NULL pointer deref Signed-off-by: Christian König ---

Re: [PATCH 1/8] drm/amdgpu: grab an additional reference on the gang fence v2

2025-03-13 Thread SRINIVASAN SHANMUGAM
On 3/7/2025 7:18 PM, Christian König wrote: We keep the gang submission fence around in adev, make sure that it stays alive. v2: fix memory leak on retry Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 +- 1 file changed, 9 insertions(+), 1 delet

Re: [PATCH 5/8] drm/amdgpu: rework how the cleaner shader is emitted v3

2025-03-13 Thread SRINIVASAN SHANMUGAM
On 3/7/2025 7:18 PM, Christian König wrote: Instead of emitting the cleaner shader for every job which has the enforce_isolation flag set only emit it for the first submission from every client. v2: add missing NULL check v3: fix another NULL pointer deref Signed-off-by: Christian König ---

Re: [PATCH 1/8] drm/amdgpu: grab an additional reference on the gang fence v2

2025-03-14 Thread SRINIVASAN SHANMUGAM
Thanks for these patches and feedback's. The series is: Acked-by: Srinivasan Shanmugam On 3/14/2025 7:50 PM, Christian König wrote: Am 14.03.25 um 05:09 schrieb SRINIVASAN SHANMUGAM: On 3/7/2025 7:18 PM, Christian König wrote: We keep the gang submission fence around in adev, make sure

Re: [PATCH 2/2] drm/amdgpu: cleanup amdgpu_vm_flush v3

2025-04-07 Thread SRINIVASAN SHANMUGAM
On 4/7/2025 5:44 PM, Christian König wrote: Am 05.04.25 um 09:32 schrieb SRINIVASAN SHANMUGAM: On 4/4/2025 7:46 PM, Christian König wrote: This reverts commit c2cc3648ba517a6c270500b5447d5a1efdad5936. Turned out that this has some negative consequences for some workloads. Instead check if

Re: [PATCH] drm/amdgpu/gfx: replace a comma with a semicolon

2025-04-11 Thread SRINIVASAN SHANMUGAM
inc_return(&counter), + owner = (void *)(unsigned long)atomic_inc_return(&counter); r = amdgpu_job_alloc_with_ib(ring->adev, &entity, owner, 64, 0, &job); Reviewed-by: Srinivasan Shanmugam

[PATCH] drm/amdgpu: Add NULL check for 'bo_va' in update_bo_mapping

2025-04-11 Thread Srinivasan Shanmugam
thout being checked. 140 break; Fixes: 16856d135622 ("drm/amdgpu: update userqueue BOs and PDs") Cc: Christian König Cc: Alex Deucher Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 4 +++- 1 file chan

[PATCH 1/2] drm/amdgpu: Add PACKET3_RUN_CLEANER_SHADER_9_0 for Cleaner Shader execution

2025-04-11 Thread Srinivasan Shanmugam
, it fetches and runs the cleaner shader instructions from the specified location in the packet. Thus by preventing data leaks and ensuring that previous job states do not interfere with subsequent workloads. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers

Cleaner Shader Management for GFX v9.0 Architecture

2025-04-11 Thread Srinivasan Shanmugam
refines the handling logic of cleaner shader emissions for other GFX v9.0 variants Srinivasan Shanmugam (2): drm/amdgpu: Add PACKET3_RUN_CLEANER_SHADER_9_0 for Cleaner Shader execution drm/amdgpu: Enhance Cleaner Shader Handling in GFX v9.0 Architecture drivers/gpu/drm/amd/amdgpu

[PATCH 2/2] drm/amdgpu: Enhance Cleaner Shader Handling in GFX v9.0 Architecture

2025-04-11 Thread Srinivasan Shanmugam
, 9.2.2, 9.3.0, and 9.4.0, while retaining PACKET3_RUN_CLEANER_SHADER for version 9.4.2. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam Suggested-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 21 - 1 file changed, 20 insertions(+), 1

[PATCH v2 0/2] Cleaner Shader Management for GFX v9.0 Architecture

2025-04-11 Thread Srinivasan Shanmugam
v2: Simplified logic in second patch (Alex). Srinivasan Shanmugam (2): drm/amdgpu: Add PACKET3_RUN_CLEANER_SHADER_9_0 for Cleaner Shader execution drm/amdgpu: Enhance Cleaner Shader Handling in GFX v9.0 Architecture v2 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 8 +++- drivers/gpu

[PATCH v2 2/2] drm/amdgpu: Enhance Cleaner Shader Handling in GFX v9.0 Architecture v2

2025-04-11 Thread Srinivasan Shanmugam
, 9.2.2, 9.3.0, and 9.4.0, while retaining PACKET3_RUN_CLEANER_SHADER for version 9.4.2. v2: Simplify logic (Alex). Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam Suggested-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 8 +++- 1 file changed, 7

[PATCH v2 1/2] drm/amdgpu: Add PACKET3_RUN_CLEANER_SHADER_9_0 for Cleaner Shader execution

2025-04-11 Thread Srinivasan Shanmugam
, it fetches and runs the cleaner shader instructions from the specified location in the packet. Thus by preventing data leaks and ensuring that previous job states do not interfere with subsequent workloads. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers

Re: [PATCH] drm/amdgpu: cleanup amdgpu_vm_flush v6

2025-04-11 Thread SRINIVASAN SHANMUGAM
, fix crash caused by incorrect check v5: once more fix the logic v6: separate cleaner shader checks as suggested by Srini Signed-off-by: Christian König Reviewed-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 106

[PATCH] drm/amd/display: Add NULL pointer checks in dm_force_atomic_commit()

2025-04-17 Thread Srinivasan Shanmugam
. Cc: Harry Wentland Cc: Nicholas Kazlauskas Cc: Tom Chung Cc: Roman Li Cc: Alex Hung Cc: Aurabindo Pillai Signed-off-by: Srinivasan Shanmugam --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/gpu

[PATCH v2] drm/amd/display: Fix NULL pointer dereferences in dm_update_crtc_state() v2

2025-04-20 Thread Srinivasan Shanmugam
d return -EINVAL to indicate an invalid state when the pointer is NULL. Cc: Harry Wentland Cc: Nicholas Kazlauskas Cc: Tom Chung Cc: Rodrigo Siqueira Cc: Roman Li Cc: Alex Hung Cc: Aurabindo Pillai Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam Reviewed-by: Aurabindo P

[PATCH] drm/amdgpu: Refine Cleaner Shader MEC firmware version for GFX10.1.x GPUs

2025-04-17 Thread Srinivasan Shanmugam
eaner shader for GFX10.1.10") Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10

[PATCH v2] drm/amdgpu: Add NULL check for 'bo_va' in update_bo_mapping v2

2025-04-22 Thread Srinivasan Shanmugam
without being checked. 140 break; v2: Refactor `amdgpu_gem_update_bo_mapping()` to move the last update fence logic to `amdgpu_gem_va_update_vm()`. (Christian) Fixes: 16856d135622 ("drm/amdgpu: update userqueue BOs and PDs") Cc: Christian König Cc: Alex Deu

[PATCH] drm/amdgpu/userq: Fix unreachable code in amdgpu_runtime_idle_check_userq()

2025-04-27 Thread Srinivasan Shanmugam
-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index b9a1ef343c79..801603510d56 100644 --- a/drivers/gpu/drm/amd

[PATCH] drm/amdgpu: Refactor amdgpu_gem_va_ioctl for Handling Last Fence Update and Timeline Management

2025-04-23 Thread Srinivasan Shanmugam
Cc: Christian König Suggested-by: Christian König Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 96 +++-- 1 file changed, 41 insertions(+), 55 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/display: Fix NULL pointer dereference for program_lut_mode in dcn401_populate_mcm_luts

2025-04-23 Thread Srinivasan Shanmugam
t;funcs->program_lut_mode(mpc, MCM_LUT_SHAPER, MCM_LUT_ENABLE, lut_bank_a, mpcc_id); Cc: Yihan Zhu Cc: Harry Wentland Cc: Nicholas Kazlauskas Cc: Tom Chung Cc: Rodrigo Siqueira Cc: Roman Li Cc: Alex Hung Cc: Aurabindo Pillai Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam

Re: [PATCH] drm/amd/display: Fix NULL pointer dereference for program_lut_mode in dcn401_populate_mcm_luts

2025-04-23 Thread SRINIVASAN SHANMUGAM
mpc->funcs->program_lut_mode(mpc, MCM_LUT_SHAPER, MCM_LUT_ENABLE, lut_bank_a, mpcc_id); Cc: Yihan Zhu Cc: Harry Wentland Cc: Nicholas Kazlauskas Cc: Tom Chung Cc: Rodrigo Siqueira Cc: Roman Li Cc: Alex Hung Cc: Aurabindo Pillai Reported-by: Dan Carpenter Signed-off-by: Srinivasan Sha

Re: [PATCH] drm/amdgpu: cleanup amdgpu_vm_flush v7

2025-04-15 Thread SRINIVASAN SHANMUGAM
, fix crash caused by incorrect check v5: once more fix the logic v6: separate cleaner shader checks as suggested by Srini v7: re-order incorrect check Signed-off-by: Christian König Reviewed-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 6 +- drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amdgpu: Add Support for enforcing isolation without Cleaner Shader

2025-04-28 Thread Srinivasan Shanmugam
Adjusted the enforce isolation setting handling to include the ability to disable the cleaner shader without affecting isolation between tasks. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd

Re: [PATCH] drm/amdgpu/mes: keep enforce isolation up to date

2025-02-17 Thread SRINIVASAN SHANMUGAM
On 2/17/2025 7:44 PM, Alex Deucher wrote: On Sat, Feb 15, 2025 at 3:02 AM SRINIVASAN SHANMUGAM wrote: On 2/14/2025 11:05 PM, Alex Deucher wrote: Re-send the mes message on resume to make sure the mes state is up to date. Fixes: 8521e3c5f058 ("drm/amd/amdgpu: limit single process i

[PATCH] drm/amdkfd: Fix Circular Locking Dependency in 'svm_range_cpu_invalidate_pagetables'

2025-02-18 Thread Srinivasan Shanmugam
11: 0246 R12: 0001 [ 223.426986] R13: 7fff5c3e5470 R14: 7fff5c3e53e0 R15: 7fff5c3e5410 [ 223.427004] Fixes: 4683cfecadeb ("drm/amdkfd: deregister svm range") Cc: Philip Yang Cc: Alex Sierra Cc: Felix Kuehling Cc: Christian König Cc: Alex Deucher

Re: [PATCH] drm/amdgpu/gfx: delete stray tabs

2025-03-10 Thread SRINIVASAN SHANMUGAM
inactive[idx] = false; + amdgpu_amdkfd_start_sched(adev, idx); + adev->gfx.kfd_sch_inactive[idx] = false; } } mutex_unlock(&adev->enforce_isolation_mutex); Thanks! Reviewed-by: Srinivasan Shanmugam

[PATCH] drm/amd/display: Fix NULL pointer dereferences in dm_update_crtc_state()

2025-03-11 Thread Srinivasan Shanmugam
Cc: Aurabindo Pillai Reported-by: Dan Carpenter Signed-off-by: Srinivasan Shanmugam --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 20 +++ 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd

Re: [PATCH 6/8] drm/amdgpu: stop reserving VMIDs to enforce isolation

2025-03-12 Thread SRINIVASAN SHANMUGAM
On 3/7/2025 7:18 PM, Christian König wrote: That was quite troublesome for gang submit. Completely drop this approach and enforce the isolation separately. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 9 +--

Re: [PATCH 6/8] drm/amdgpu: stop reserving VMIDs to enforce isolation

2025-03-12 Thread SRINIVASAN SHANMUGAM
On 3/7/2025 7:18 PM, Christian König wrote: That was quite troublesome for gang submit. Completely drop this approach and enforce the isolation separately. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 9 +

Re: [PATCH 3/8] drm/amdgpu: overwrite signaled fence in amdgpu_sync

2025-03-12 Thread SRINIVASAN SHANMUGAM
On 3/7/2025 7:18 PM, Christian König wrote: This allows using amdgpu_sync even without peeking into the fences for a long time. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/driv

Re: [PATCH] drm/amd/amdgpu: Add missing parameter for amdgpu_sdma_register_on_reset_callbacks

2025-03-05 Thread SRINIVASAN SHANMUGAM
On 2/24/2025 6:54 PM, Christian König wrote: Am 24.02.25 um 12:45 schrieb Srinivasan Shanmugam: This commit updates the documentation for the function amdgpu_sdma_register_on_reset_callbacks to include a description for the 'adev' parameter. The 'adev' parameter

[PATCH] drm/amdgpu: Fix annotation for dce_v6_0_line_buffer_adjust function

2025-03-05 Thread Srinivasan Shanmugam
Updated description for the 'other_mode' parameter. This parameter is used to determine the display mode of another display controller that may be sharing the line buffer. Cc: Ken Wang Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/

[PATCH] drm/amdgpu: Rename VCN clock gating function for consistency

2025-02-13 Thread Srinivasan Shanmugam
vcn_v2_5_enable_clock_gating() instead Cc: Leo Liu Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c b/drivers/gpu/drm/amd

Re: [PATCH] drm/amdgpu/gfx: only call mes for enforce isolation if supported

2025-02-13 Thread SRINIVASAN SHANMUGAM
ion(adev, i, true); + if (adev->enable_mes && adev->gfx.enable_cleaner_shader) + amdgpu_mes_set_enforce_isolation(adev, i, true); } adev->enforce_isolation[i] = partition_values[i]; } Reviewed-by: Srinivasan Shanmugam

[PATCH] drm/amdgpu: Fix crashes in enforce_isolation sysfs handling on non-supported systems

2025-02-13 Thread Srinivasan Shanmugam
By adding these NULL pointer checks and improving error handling, we can prevent crashes when the enforce_isolation sysfs file is accessed on non-supported systems. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 17

[PATCH] drm/amdgpu: Replace Mutex with Spinlock for RLCG register access to avoid Priority Inversion in SRIOV

2025-02-14 Thread Srinivasan Shanmugam
Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 9 +++-- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/a

Re: [PATCH] drm/amdgpu: Replace Mutex with Spinlock for RLCG register access to avoid Priority Inversion in SRIOV

2025-02-14 Thread SRINIVASAN SHANMUGAM
On 2/14/2025 2:39 PM, Christian König wrote: Am 14.02.25 um 09:57 schrieb Srinivasan Shanmugam: RLCG Register Access is a way for virtual functions to safely access GPU registers in a virtualized environment., including TLB flushes and register reads. When multiple threads or VFs try to access

[PATCH] drm/amdkfd: Fix error handling for missing PASID in 'kfd_process_device_init_vm'

2025-02-16 Thread Srinivasan Shanmugam
ve kfd driver use same PASID values from graphic driver") Reported by: Dan Carpenter Cc: Xiaogang Chen Cc: Felix Kuehling Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdkfd/kfd_process.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] drm/amdgpu/mes: keep enforce isolation up to date

2025-02-14 Thread SRINIVASAN SHANMUGAM
On 2/14/2025 11:05 PM, Alex Deucher wrote: Re-send the mes message on resume to make sure the mes state is up to date. Fixes: 8521e3c5f058 ("drm/amd/amdgpu: limit single process inside MES") Signed-off-by: Alex Deucher Cc: Shaoyun Liu Cc: Srinivasan Shanmugam --- drivers/gpu/drm/

Re: [PATCH] drm/amdkfd: Fix Circular Locking Dependency in 'svm_range_cpu_invalidate_pagetables'

2025-02-19 Thread SRINIVASAN SHANMUGAM
On 2/20/2025 10:25 AM, Felix Kuehling wrote: On 2025-02-18 15:51, Philip Yang wrote: On 2025-02-18 11:01, Srinivasan Shanmugam wrote: This commit addresses a circular locking dependency in the svm_range_cpu_invalidate_pagetables function. The function previously held a lock while determining

Re: [PATCH] drm/amdgpu/mes: keep enforce isolation up to date

2025-02-21 Thread SRINIVASAN SHANMUGAM
On 2/17/2025 8:05 PM, Alex Deucher wrote: On Mon, Feb 17, 2025 at 9:18 AM SRINIVASAN SHANMUGAM wrote: On 2/17/2025 7:44 PM, Alex Deucher wrote: On Sat, Feb 15, 2025 at 3:02 AM SRINIVASAN SHANMUGAM wrote: On 2/14/2025 11:05 PM, Alex Deucher wrote: Re-send the mes message on resume to make

[PATCH v2] drm/amdkfd: Fix Circular Locking Dependency in 'svm_range_cpu_invalidate_pagetables'

2025-02-24 Thread Srinivasan Shanmugam
0 [ 223.426975] R10: 7f4675e81a50 R11: 0246 R12: 0001 [ 223.426986] R13: 7fff5c3e5470 R14: 7fff5c3e53e0 R15: 7fff5c3e5410 [ 223.427004] Fixes: 3e5199134e47 ("drm/amdkfd: pause autosuspend when creating pdd") Cc: Jesse Zhang Cc: Yunxiang Li Cc: Philip Ya

[PATCH] drm/amd/amdgpu: Add missing parameter for amdgpu_sdma_register_on_reset_callbacks

2025-02-24 Thread Srinivasan Shanmugam
the below with gcc W=1: drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c:474: warning: Function parameter or struct member 'adev' not described in 'amdgpu_sdma_register_on_reset_callbacks' Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/dr

[PATCH] drm/amdgpu: Fix correct parameter desc for VCN idle check functions

2025-02-24 Thread Srinivasan Shanmugam
m/amd/amdgpu/vcn_v4_0_5.c:1460: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v4_0_5_is_idle' drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c:1460: warning: Excess function parameter 'handle' description in 'vcn_v4_0_5_is_idle'

[PATCH v3] drm/amdkfd: Fix Circular Locking Dependency in 'svm_range_cpu_invalidate_pagetables'

2025-02-24 Thread Srinivasan Shanmugam
0 [ 223.426975] R10: 7f4675e81a50 R11: 0246 R12: 0001 [ 223.426986] R13: 7fff5c3e5470 R14: 7fff5c3e53e0 R15: 7fff5c3e5410 [ 223.427004] Fixes: 3e5199134e47 ("drm/amdkfd: pause autosuspend when creating pdd") Cc: Jesse Zhang Cc: Yunxiang Li Cc: Philip Ya

[PATCH v4] drm/amdkfd: Fix Circular Locking Dependency in 'svm_range_cpu_invalidate_pagetables'

2025-02-24 Thread Srinivasan Shanmugam
5] R10: 7f4675e81a50 R11: 0246 R12: 0001 [ 223.426986] R13: 7fff5c3e5470 R14: 7fff5c3e53e0 R15: 7fff5c3e5410 [ 223.427004] Fixes: 3e5199134e47 ("drm/amdkfd: pause autosuspend when creating pdd") Cc: Jesse Zhang Cc: Yunxiang Li Cc: Philip Ya

[PATCH v5] drm/amdkfd: Fix Circular Locking Dependency in 'svm_range_cpu_invalidate_pagetables'

2025-02-24 Thread Srinivasan Shanmugam
5] R10: 7f4675e81a50 R11: 0246 R12: 0001 [ 223.426986] R13: 7fff5c3e5470 R14: 7fff5c3e53e0 R15: 7fff5c3e5410 [ 223.427004] Fixes: 3e5199134e47 ("drm/amdkfd: pause autosuspend when creating pdd") Cc: Jesse Zhang Cc: Yunxiang Li Cc: Philip Ya

[PATCH] drm/amdgpu: Fix parameter annotations for VCN clock gating functions

2025-02-25 Thread Srinivasan Shanmugam
nable_clock_gating' drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:965: warning: Excess function parameter 'adev' description in 'vcn_v3_0_enable_clock_gating' drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:965: warning: Excess function parameter 'inst' description in '

[PATCH] drm/amdgpu: Fix parameter annotation in vcn_v5_0_0_is_idle

2025-02-25 Thread Srinivasan Shanmugam
231: warning: Excess function parameter 'handle' description in 'vcn_v5_0_0_is_idle' Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

Re: [PATCH] drm/amdgpu: Fix Manual Execution of Cleaner Shader in Gang Submissions

2025-03-28 Thread SRINIVASAN SHANMUGAM
On 3/28/2025 8:28 PM, Alex Deucher wrote: On Thu, Mar 27, 2025 at 9:50 AM Christian König wrote: Am 27.03.25 um 10:37 schrieb SRINIVASAN SHANMUGAM: On 3/27/2025 2:54 PM, Christian König wrote: Over all this change doesn't seem to make much sense to me. Why exactly is isolation->s

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

2025-04-02 Thread SRINIVASAN SHANMUGAM
On 4/2/2025 7:32 PM, Christian König wrote: Otherwise triggering sysfs multiple times without other submissions in between only runs the shader once. v2: add some comment Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 14 +++--- 1 file changed, 11 ins

Re: [PATCH 2/2] drm/amdgpu: cleanup amdgpu_vm_flush v2

2025-04-04 Thread SRINIVASAN SHANMUGAM
t amdgpu_vm_clear_freed(struct amdgpu_device *adev, @@ -550,8 +551,6 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t min_vm_size, uint32_t fragment_size_default, unsigned max_level, unsigned max_bits); int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp); -bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring, - struct amdgpu_job *job); void amdgpu_vm_check_compute_bug(struct amdgpu_device *adev); struct amdgpu_task_info * Requesting for feedback's that is marked as *[1]* , *[2]* & *[3]* addressed ,  with this, the patch is: Reviewed-by: Srinivasan Shanmugam

[PATCH] drm/amdgpu: Fix Manual Execution of Cleaner Shader in Gang Submissions

2025-03-25 Thread Srinivasan Shanmugam
ence for cleaner shader calls. - Updated the `amdgpu_vm_flush` function to properly initialize `isolation->spearhead` to the job's scheduled fence when the cleaner shader is required. Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amd

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

2025-04-03 Thread SRINIVASAN SHANMUGAM
On 4/3/2025 2:40 PM, Christian König wrote: Am 03.04.25 um 05:15 schrieb SRINIVASAN SHANMUGAM: On 4/2/2025 7:32 PM, Christian König wrote: Otherwise triggering sysfs multiple times without other submissions in between only runs the shader once. v2: add some comment Signed-off-by: Christian

[PATCH v2] drm/amdgpu: Refactor amdgpu_gem_va_ioctl for Handling Last Fence Update and Timeline Management v2

2025-05-17 Thread Srinivasan Shanmugam
review comments from Christian. Cc: Alex Deucher Cc: Christian König Suggested-by: Christian König Signed-off-by: Srinivasan Shanmugam --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 82 + 1 file changed, 30 insertions(+), 52 deletions(-) diff --git a/drivers/gpu/drm/amd

<    1   2   3   4   5   6   7   >