drm/amdgpu: keep stolen memory on picasso
authorFlora Cui <flora.cui@amd.com>
Fri, 17 May 2019 03:33:56 +0000 (11:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2019 17:47:05 +0000 (12:47 -0500)
otherwise screen corrupts during modprobe.

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 3fd79e07944db131d0b6a2b8e9a004e8b44e0528..4e6fcaeb13037cc8db89b502999d975a0e6168aa 100644 (file)
@@ -626,6 +626,7 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev)
        case CHIP_VEGA10:
                return true;
        case CHIP_RAVEN:
+               return (adev->pdev->device == 0x15d8);
        case CHIP_VEGA12:
        case CHIP_VEGA20:
        default: