mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 19:42:31 -04:00
drm/amdgpu: Generalize is_multi_chiplet with a common helper v2
It is not necessary to be ip generation specific v2: rename the helper to is_multi_aid (Lijo) Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
c9df2dcf90
commit
b9c58f4e32
@@ -1334,6 +1334,11 @@ static inline struct amdgpu_device *amdgpu_ttm_adev(struct ttm_device *bdev)
|
||||
return container_of(bdev, struct amdgpu_device, mman.bdev);
|
||||
}
|
||||
|
||||
static inline bool amdgpu_is_multi_aid(struct amdgpu_device *adev)
|
||||
{
|
||||
return !!adev->aid_mask;
|
||||
}
|
||||
|
||||
int amdgpu_device_init(struct amdgpu_device *adev,
|
||||
uint32_t flags);
|
||||
void amdgpu_device_fini_hw(struct amdgpu_device *adev);
|
||||
|
||||
Reference in New Issue
Block a user