diff options
| author | Tao Zhou <[email protected]> | 2019-09-12 09:03:14 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-10-03 14:11:02 +0000 |
| commit | d3a5a121b84ab9fdbbd9ba131668ab797745f5b7 (patch) | |
| tree | b83e711d24498c338ba545974fa93195ad66925b | |
| parent | drm/amdgpu: move umc_ras_if from gmc to umc block (diff) | |
| download | kernel-d3a5a121b84ab9fdbbd9ba131668ab797745f5b7.tar.gz kernel-d3a5a121b84ab9fdbbd9ba131668ab797745f5b7.zip | |
drm/amdgpu: add common mmhub member for adev
put mmhub_funcs and ras_if pointer into mmhub struct
Signed-off-by: Tao Zhou <[email protected]>
Reviewed-by: Guchun Chen <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 77d4e9123c8a..b29d4a34812e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -868,6 +868,9 @@ struct amdgpu_device { /* nbio */ struct amdgpu_nbio nbio; + /* mmhub */ + struct amdgpu_mmhub mmhub; + /* gfx */ struct amdgpu_gfx gfx; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h index 685e54e58700..a733898c7d55 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h @@ -28,6 +28,11 @@ struct amdgpu_mmhub_funcs { void *ras_error_status); }; +struct amdgpu_mmhub { + struct ras_common_if *ras_if; + const struct amdgpu_mmhub_funcs *funcs; +}; + int amdgpu_mmhub_ras_late_init(struct amdgpu_device *adev); #endif |
