[PATCH] drm/amdgpu: Fix selfring initialization sequence on soc24

2024-09-11 Thread David Belanger
esize FB BAR") Signed-off-by: David Belanger --- drivers/gpu/drm/amd/amdgpu/soc24.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c index b0c3678cfb31..fd4c3d4f8387 10

[PATCH] drm/amdkfd: Add cache line size info

2024-08-23 Thread David Belanger
Populate cache line size info in topology based on information from IP discovery table. Signed-off-by: David Belanger --- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd

[PATCH] drm/amdgpu: Fix atomics on GFX12

2024-07-12 Thread David Belanger
If PCIe supports atomics, configure register to prevent DF from breaking atomics in separate load/store operations. Signed-off-by: David Belanger Reviewed-by: Hawking Zhang --- drivers/gpu/drm/amd/amdgpu/Makefile | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_df.h| 1 + drivers

[PATCH] drm/amdgpu: Restore uncache behaviour on GFX12

2024-07-08 Thread David Belanger
Always use MTYPE_UC if UNCACHED flag is specified. This makes kernarg region uncached and it restores usermode cache disable debug flag functionality. Do not set MTYPE_UC for COHERENT flag, on GFX12 coherence is handled by shader code. Signed-off-by: David Belanger --- drivers/gpu/drm/amd

[PATCH v3] drm/amdkfd: Fixed kfd_process cleanup on module exit.

2023-03-13 Thread David Belanger
empty lines. Signed-off-by: David Belanger --- drivers/gpu/drm/amd/amdkfd/kfd_module.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 1 + drivers/gpu/drm/amd/amdkfd/kfd_process.c | 75 +--- 3 files changed, 70 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH v2] drm/amdkfd: Fixed kfd_process cleanup on module exit.

2023-03-08 Thread David Belanger
Handle case when module is unloaded (kfd_exit) before a process space (mm_struct) is released. v2: Fixed potential race conditions by removing all kfd_process from the process table first, then working on releasing the resources. Signed-off-by: David Belanger --- drivers/gpu/drm/amd/amdkfd

[PATCH] drm/amdkfd: Fixed kfd_process cleanup on module exit.

2023-03-06 Thread David Belanger
Handle case when module is unloaded (kfd_exit) before a process space (mm_struct) is released. Signed-off-by: David Belanger --- drivers/gpu/drm/amd/amdkfd/kfd_module.c | 4 ++ drivers/gpu/drm/amd/amdkfd/kfd_process.c | 57 2 files changed, 61 insertions(+) diff

[PATCH v3] drm/amdgpu: Enable SA software trap.

2022-09-22 Thread David Belanger
Enables support for software trap for MES >= 4. Adapted from implementation from Jay Cornwall. v2: Add IP version check in conditions. v3: Remove debugger code changes. Signed-off-by: Jay Cornwall Signed-off-by: David Belanger Reviewed-by: Felix Kuehling Acked-by: Alex Deucher --- driv

[PATCH] drm/amdgpu: Enable SA software trap.

2022-09-22 Thread David Belanger
Enables support for software trap for MES >= 4. Adapted from implementation from Jay Cornwall. v2: Add IP version check in conditions. Signed-off-by: Jay Cornwall Signed-off-by: David Belanger Reviewed-by: Felix Kuehling --- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c| 6 +- .../gpu/