[PATCH] drm/amdkfd: Add SDMA queue quantum support for GFX12

2024-09-20 Thread Sreekant Somasekharan
program SDMAx_QUEUEx_SCHEDULE_CNTL for context switch due to quantum in KFD for GFX12. Signed-off-by: Sreekant Somasekharan --- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c b/drivers

[PATCH v3] drm/amdkfd: Remove bo NULL check in gmc_v12_0_get_vm_pte() function

2024-05-14 Thread Sreekant Somasekharan
Remove bo NULL check in amdgpu/gmc_v12_0.c:gmc_v12_0_get_vm_pte() function to fix smatch warning: 'drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c:518 gmc_v12_0_get_vm_pte() warn: variable dereferenced before check 'bo' (see line 500)' Signed-off-by: Sreekant Somasekharan Suggest

[PATCH v2] drm/amdkfd: Remove bo NULL check in gmc_v12_0_get_vm_pte() function

2024-05-14 Thread Sreekant Somasekharan
Remove bo NULL check in amdgpu/gmc_v12_0.c:gmc_v12_0_get_vm_pte() function to fix smatch warning: 'drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c:518 gmc_v12_0_get_vm_pte() warn: variable dereferenced before check 'bo' (see line 500)' Signed-off-by: Sreekant Somasekharan Suggest

[PATCH] drm/amdkfd: Add GFX1201 to svm_range_get_pte_flags function

2024-05-10 Thread Sreekant Somasekharan
GFX1201 was missed in the commit below. Adding it in. 'Fixes: 7c06cc729edc ("drm/amdkfd: mark GFX12 system and peer GPU memory mappings as MTYPE_NC")' Signed-off-by: Sreekant Somasekharan --- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v2] drm/amdkfd: Check correct memory types for is_system variable

2024-05-10 Thread Sreekant Somasekharan
To catch GPU mapping of system memory, TTM_PL_TT and AMDGPU_PL_PREEMPT must be checked. 'Fixes: 3b01ca1b860d ("drm/amdkfd: mark GFX12 system and peer GPU memory mappings as MTYPE_NC")' Signed-off-by: Sreekant Somasekharan --- drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 3 ++

[PATCH 2/2] drm/amdkfd: Minor corrections to a previous commit

2024-05-09 Thread Sreekant Somasekharan
This patch rectifies mistake in previous commit: 'drm/amdkfd: mark GFX12 system and peer GPU memory mappings as MTYPE_NC'. Signed-off-by: Sreekant Somasekharan --- drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 3 ++- drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 1 + 2 files changed, 3 insert

[PATCH 1/2] drm/amdkfd: Remove bo NULL check in gmc_v12_0_get_vm_pte() function

2024-05-09 Thread Sreekant Somasekharan
Remove bo NULL check in amdgpu/gmc_v12_0.c:gmc_v12_0_get_vm_pte() function to fix smatch warning: 'drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c:518 gmc_v12_0_get_vm_pte() warn: variable dereferenced before check 'bo' (see line 500)' Signed-off-by: Sreekant Somasekharan Suggest

[PATCH] drm/amd/amdgpu: Add cu_occupancy sysfs file to GFX9.4.3

2023-06-29 Thread Sreekant Somasekharan
Include kgd_gfx_v9_get_cu_occupancy call inside kfd2kgd_calls for GFX9.4.3 to expose cu_occupancy sysfs file. Signed-off-by: Sreekant Somasekharan --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gc_9_4_3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH v2] drm/amdkfd: Expose proc sysfs folder contents after permission check

2023-04-28 Thread Sreekant Somasekharan
Access to proc sysfs folder/subfolder contents are permitted only if kfd_devcgroup_check_permission() function returns success. This will restrict users from accessing sysfs files for a process running on a device to which users has no access. Signed-off-by: Sreekant Somasekharan --- drivers

[PATCH] drm/amdkfd: Expose proc sysfs folder contents after permission check

2023-04-28 Thread Sreekant Somasekharan
Access to proc sysfs folder/subfolder contents are permitted only if kfd_devcgroup_check_permission() function returns success. This will restrict users from accessing sysfs files for a process running on a device to which users has no access. Signed-off-by: Sreekant Somasekharan --- drivers

[PATCH] drm/amdkfd: On GFX11 check PCIe atomics support and set CP_HQD_HQ_STATUS0[29]

2023-04-03 Thread Sreekant Somasekharan
amdgpu_amdkfd_device_probe() function call after per-IP early_init loop in amdgpu_device_ip_early_init() function so as to check for RS64 enabled device. Signed-off-by: Sreekant Somasekharan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 11