aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
diff options
context:
space:
mode:
authorHawking Zhang <[email protected]>2023-03-04 08:39:48 +0000
committerAlex Deucher <[email protected]>2023-03-13 21:27:48 +0000
commitfec70a8601a76272b08b7b8077b3c3e3c79bdb72 (patch)
tree47857ecb529b70c8b23b407dcdea52a21a86931f /drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
parentdrm/amdgpu: Correct gfx ras_late_init callback (diff)
downloadkernel-fec70a8601a76272b08b7b8077b3c3e3c79bdb72.tar.gz
kernel-fec70a8601a76272b08b7b8077b3c3e3c79bdb72.zip
drm/amdgpu: Move mmhub ras block init to ras sw_init
Initialize mmhub ras block only when mmhub ip block supports ras features. Driver queries ras capabilities after early_init, ras block init needs to be moved to sw_init. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Stanley Yang <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
index 93430d3823c9..d21bb6dae56e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.h
@@ -48,5 +48,7 @@ struct amdgpu_mmhub {
struct amdgpu_mmhub_ras *ras;
};
+int amdgpu_mmhub_ras_sw_init(struct amdgpu_device *adev);
+
#endif