diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5243-drm-amdgpu-gmc9-don-t-keep-stolen-memory-on-vega12.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/5243-drm-amdgpu-gmc9-don-t-keep-stolen-memory-on-vega12.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5243-drm-amdgpu-gmc9-don-t-keep-stolen-memory-on-vega12.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5243-drm-amdgpu-gmc9-don-t-keep-stolen-memory-on-vega12.patch new file mode 100644 index 00000000..52f08d1e --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5243-drm-amdgpu-gmc9-don-t-keep-stolen-memory-on-vega12.patch @@ -0,0 +1,39 @@ +From adc0ac47cfc049e1a8a26c03a8af1bc745fbb6a1 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Thu, 30 Aug 2018 09:44:31 -0500 +Subject: [PATCH 5243/5725] drm/amdgpu/gmc9: don't keep stolen memory on vega12 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +vega12 does not appear to be affected by the same issue +as vega10. Enable the full stolen memory handling on +vega12. Reserve the appropriate size at init time to avoid +display artifacts and then free it at the end of init once +the new FB is up and running. + +Change-Id: Ie03e8aecc0ad5f03a079c4beaaf8deee53481590 +Acked-by: Christian König <christian.koenig@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +index f5db31c..be59cb8 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +@@ -706,8 +706,9 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev) + switch (adev->asic_type) { + case CHIP_RAVEN: + return false; +- case CHIP_VEGA10: + case CHIP_VEGA12: ++ return false; ++ case CHIP_VEGA10: + case CHIP_VEGA20: + default: + return true; +-- +2.7.4 + |