diff options
| author | Harish Kasiviswanathan <[email protected]> | 2024-05-01 21:07:59 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-17 21:40:37 +0000 |
| commit | 3ed181b8ff43fc03c85d43a726e578bd131d39e4 (patch) | |
| tree | dbb2840515087e2bc87941c1f1a7225c2e0289a6 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amdgpu: fix compiler 'side-effect' check issue for RAS_EVENT_LOG() (diff) | |
| download | kernel-3ed181b8ff43fc03c85d43a726e578bd131d39e4.tar.gz kernel-3ed181b8ff43fc03c85d43a726e578bd131d39e4.zip | |
drm/amdkfd: Ensure gpu_id is unique
gpu_id needs to be unique for user space to identify GPUs via KFD
interface. In the current implementation there is a very small
probability of having non unique gpu_ids.
v2: Add check to confirm if gpu_id is unique. If not unique, find one
Changed commit header to reflect the above
v3: Use crc16 as suggested-by: Lijo Lazar <[email protected]>
Ensure that gpu_id != 0
Signed-off-by: Harish Kasiviswanathan <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
