diff options
| author | Flora Cui <flora.cui@amd.com> | 2019-05-28 03:52:42 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-05-29 10:52:10 -0400 |
| commit | 02122753f1d0ac39d8c89f20f541a519a3002e92 (patch) | |
| tree | 1d93d11b618d0e7d108536427f7938ee7ad46ceb | |
| parent | c08e56c647ba8e4964ffc9e43360f16c9740337e (diff) | |
drm/amdgpu: reserve stollen vram for raven series
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>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 3b7370d914a5..72837b8c7031 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |||
| @@ -624,9 +624,8 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev) | |||
| 624 | */ | 624 | */ |
| 625 | switch (adev->asic_type) { | 625 | switch (adev->asic_type) { |
| 626 | case CHIP_VEGA10: | 626 | case CHIP_VEGA10: |
| 627 | return true; | ||
| 628 | case CHIP_RAVEN: | 627 | case CHIP_RAVEN: |
| 629 | return (adev->pdev->device == 0x15d8); | 628 | return true; |
| 630 | case CHIP_VEGA12: | 629 | case CHIP_VEGA12: |
| 631 | case CHIP_VEGA20: | 630 | case CHIP_VEGA20: |
| 632 | default: | 631 | default: |
