aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2023-06-29 18:01:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-07-07 13:51:48 -0400
commit8c45b31909b730f9c7b146588e038f9c6553394d (patch)
tree27f12af8ef769cfec105097e5da5bd4623c8ff19 /drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
parentdrm/amd/amdgpu: Add cu_occupancy sysfs file to GFX9.4.3 (diff)
downloadlinux-rng-8c45b31909b730f9c7b146588e038f9c6553394d.tar.xz
linux-rng-8c45b31909b730f9c7b146588e038f9c6553394d.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c')
0 files changed, 0 insertions, 0 deletions