diff options
| author | Lijo Lazar <[email protected]> | 2022-11-29 08:30:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:50:08 +0000 |
| commit | 7a1efad04c210594069c4ab9f9c25039cd6915e4 (patch) | |
| tree | 11ae0c349f56b6ea501d794550d6fd89311a9db3 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu: Derive active clusters from SDMA (diff) | |
| download | kernel-7a1efad04c210594069c4ab9f9c25039cd6915e4.tar.gz kernel-7a1efad04c210594069c4ab9f9c25039cd6915e4.zip | |
drm/amdgpu: Use mask for active clusters
Use a mask of available active clusters instead of using only the number
of active clusters.
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 3858d29baef1..279057ec7a0b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1070,7 +1070,8 @@ struct amdgpu_device { bool job_hang; bool dc_enabled; - uint32_t num_aid; + /* Mask of active clusters */ + uint32_t aid_mask; }; static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev) |
