mirror_ubuntu-kernels/drivers/gpu/drm/amd
Philip Yang 8c45b31909 drm/amdkfd: Skip handle mapping SVM range with no GPU access
If the SVM range has no GPU access nor access-in-place attribute,
validate and map to GPU should skip the range.

Add NULL pointer check if find_first_bit(ctx->bitmap, MAX_GPU_INSTANCE)
returns MAX_GPU_INSTANCE as gpuidx if ctx->bitmap is empty.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-07-07 13:51:48 -04:00
..
acp
amdgpu drm/amd/amdgpu: Add cu_occupancy sysfs file to GFX9.4.3 2023-07-07 13:51:48 -04:00
amdkfd drm/amdkfd: Skip handle mapping SVM range with no GPU access 2023-07-07 13:51:48 -04:00
amdxcp drm/amdxcp: fix Makefile to build amdxcp module 2023-06-09 12:32:53 -04:00
display drm/amd/display: Clean up warnings in amdgpu_dm _mst_types, _plane, _psr.c 2023-07-07 13:51:47 -04:00
include drm/amdgpu: add the accelerator PCIe class 2023-06-09 12:48:57 -04:00
pm drm/amd/pm: avoid unintentional shutdown due to temperature momentary fluctuation 2023-06-30 13:12:16 -04:00