drm/amdgpu: Added ASIC specific check in gmc v9.0 ECC interrupt programming sequence
authorJohn Clements <john.clements@amd.com>
Fri, 20 Dec 2019 08:21:32 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Dec 2019 19:56:27 +0000 (14:56 -0500)
Devices newer then VEGA10/12 shall have these programming sequences performed by PSP BL

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index fa025ce..68f9a1f 100644 (file)
@@ -207,6 +207,11 @@ static int gmc_v9_0_ecc_interrupt_state(struct amdgpu_device *adev,
 {
        u32 bits, i, tmp, reg;
 
+       /* Devices newer then VEGA10/12 shall have these programming
+            sequences performed by PSP BL */
+       if (adev->asic_type >= CHIP_VEGA20)
+               return 0;
+
        bits = 0x7f;
 
        switch (state) {