OSDN Git Service

drm/amdgpu: reserve stollen vram for raven series
authorFlora Cui <flora.cui@amd.com>
Tue, 28 May 2019 07:52:42 +0000 (15:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2019 14:52:10 +0000 (09:52 -0500)
to avoid screen corruption during modprobe.

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

index 3b7370d..72837b8 100644 (file)
@@ -624,9 +624,8 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev)
         */
        switch (adev->asic_type) {
        case CHIP_VEGA10:
-               return true;
        case CHIP_RAVEN:
-               return (adev->pdev->device == 0x15d8);
+               return true;
        case CHIP_VEGA12:
        case CHIP_VEGA20:
        default: