From: Alex Deucher <alexander.deucher@xxxxxxx> The vbios uses memory from the start of vram for the pre-OS framebuffer. Reserve this at driver load time to prevent the driver from using it for other things which may cause atrifacts on screen before the console has kicked in. Signed-off-by: Alex Deucher <alexander.deucher at amd.com> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com> --- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c index 5617cf6..056a41c 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c @@ -851,7 +851,7 @@ static int gmc_v6_0_sw_init(void *handle) adev->gmc.mc_mask = 0xffffffffffULL; - adev->gmc.stolen_size = 256 * 1024; + adev->gmc.stolen_size = 32 * 1024 * 1024; adev->need_dma32 = false; dma_bits = adev->need_dma32 ? 32 : 40; diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c index 80054f3..cf1b0f8 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c @@ -998,7 +998,7 @@ static int gmc_v7_0_sw_init(void *handle) */ adev->gmc.mc_mask = 0xffffffffffULL; /* 40 bit MC */ - adev->gmc.stolen_size = 256 * 1024; + adev->gmc.stolen_size = 32 * 1024 * 1024; /* set DMA mask + need_dma32 flags. * PCIE - can handle 40-bits. diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index d71d4cb..c8c5ca2 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c @@ -1096,7 +1096,7 @@ static int gmc_v8_0_sw_init(void *handle) */ adev->gmc.mc_mask = 0xffffffffffULL; /* 40 bit MC */ - adev->gmc.stolen_size = 256 * 1024; + adev->gmc.stolen_size = 32 * 1024 * 1024; /* set DMA mask + need_dma32 flags. * PCIE - can handle 40-bits. diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 070946e..e55d32d 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -848,7 +848,7 @@ static int gmc_v9_0_sw_init(void *handle) * It needs to reserve 8M stolen memory for vega10 * TODO: Figure out how to avoid that... */ - adev->gmc.stolen_size = 8 * 1024 * 1024; + adev->gmc.stolen_size = 32 * 1024 * 1024; /* set DMA mask + need_dma32 flags. * PCIE - can handle 44-bits. -- 2.7.4