Only disable RAS by default for aqua vanjaram on APU platform.

Signed-off-by: Stanley.Yang <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 2221460e23e4..00a3863a6017 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -2529,7 +2529,8 @@ static void amdgpu_ras_check_supported(struct 
amdgpu_device *adev)
         * Disable ras feature for aqua vanjaram
         * by default on apu platform.
         */
-       if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6))
+       if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6) &&
+           adev->gmc.is_app_apu)
                adev->ras_enabled = amdgpu_ras_enable != 1 ? 0 :
                        adev->ras_hw_enabled & amdgpu_ras_mask;
        else
-- 
2.25.1

Reply via email to