aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorTao Zhou <[email protected]>2025-01-22 08:55:51 +0000
committerAlex Deucher <[email protected]>2025-02-17 19:09:29 +0000
commit4d614ce8ffd757e4c7944bf9b5598b4a250a8a61 (patch)
tree1ed8f3e2e75e0eb13e88b197986564aff5efa7ca /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amdgpu: Get timestamp from system time (diff)
downloadkernel-4d614ce8ffd757e4c7944bf9b5598b4a250a8a61.tar.gz
kernel-4d614ce8ffd757e4c7944bf9b5598b4a250a8a61.zip
drm/amdgpu: add RAS CPER ring buffer
And initialize it, this is a pure software ring to store RAS CPER data. v2: change ring size to 0x100000 v2: update the initialization of count_dw of cper ring, it's dword variable v3: skip VM inv eng for cper v3: init/fini when aca enabled Signed-off-by: Tao Zhou <[email protected]> Signed-off-by: Xiang Liu <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 0de2476c2ee7..1230ab2ba112 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3091,7 +3091,8 @@ static int amdgpu_device_ip_init(struct amdgpu_device *adev)
amdgpu_fru_get_product_info(adev);
- r = amdgpu_cper_init(adev);
+ if (amdgpu_aca_is_enabled(adev))
+ r = amdgpu_cper_init(adev);
init_failed:
@@ -3453,7 +3454,8 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev)
{
int i, r;
- amdgpu_cper_fini(adev);
+ if (amdgpu_aca_is_enabled(adev))
+ amdgpu_cper_fini(adev);
if (amdgpu_sriov_vf(adev) && adev->virt.ras_init_done)
amdgpu_virt_release_ras_err_handler_data(adev);