aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorganglxie <[email protected]>2025-07-02 08:56:22 +0000
committerAlex Deucher <[email protected]>2025-07-15 18:07:53 +0000
commit660261df61fb7fd972aae0f09b17c2b899f1e282 (patch)
tree7347e908afa587c4e9969a5d196d0cf145610f51 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amd/display: Disable CRTC degamma LUT for DCN401 (diff)
downloadkernel-660261df61fb7fd972aae0f09b17c2b899f1e282.tar.gz
kernel-660261df61fb7fd972aae0f09b17c2b899f1e282.zip
drm/amdgpu: refine eeprom data check
add eeprom data checksum check before driver unload. reset eeprom and save correct data to eeprom when check failed Signed-off-by: ganglxie <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 1c54b2e5a225..648a829559e1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -2512,6 +2512,7 @@ amdgpu_pci_remove(struct pci_dev *pdev)
struct drm_device *dev = pci_get_drvdata(pdev);
struct amdgpu_device *adev = drm_to_adev(dev);
+ amdgpu_ras_eeprom_check_and_recover(adev);
amdgpu_xcp_dev_unplug(adev);
amdgpu_gmc_prepare_nps_mode_change(adev);
drm_dev_unplug(dev);