aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2024-09-24 12:46:29 +0000
committerAlex Deucher <[email protected]>2024-09-26 21:06:18 +0000
commit37b993225d37744f2a62bf67074a76a6cb7b8b98 (patch)
treeb68cad68d8a4900daa1e43bb392dc31da5319f4d /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu: Separate reinitialization after reset (diff)
downloadkernel-37b993225d37744f2a62bf67074a76a6cb7b8b98.tar.gz
kernel-37b993225d37744f2a62bf67074a76a6cb7b8b98.zip
drm/amdgpu: add amdgpu_device reference in ip block
To handle amdgpu_device reference for different GPUs we add it's reference in each ip block which can be used to differentiate between difference gpu devices. Signed-off-by: Sunil Khatri <[email protected]> Suggested-by: Christian König <[email protected]> Reviewed-by: Christian König <[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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index aa588752b230..ad1112ec033d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -391,6 +391,7 @@ struct amdgpu_ip_block_version {
struct amdgpu_ip_block {
struct amdgpu_ip_block_status status;
const struct amdgpu_ip_block_version *version;
+ struct amdgpu_device *adev;
};
int amdgpu_device_ip_block_version_cmp(struct amdgpu_device *adev,