diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/2890-drm-amdgpu-add-gmc-basic-support-for-Arcturus.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/2890-drm-amdgpu-add-gmc-basic-support-for-Arcturus.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/2890-drm-amdgpu-add-gmc-basic-support-for-Arcturus.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/2890-drm-amdgpu-add-gmc-basic-support-for-Arcturus.patch new file mode 100644 index 00000000..22f2987b --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/2890-drm-amdgpu-add-gmc-basic-support-for-Arcturus.patch @@ -0,0 +1,40 @@ +From 168f24115b0596175e2ba4a867535db93d9d1d06 Mon Sep 17 00:00:00 2001 +From: Le Ma <le.ma@amd.com> +Date: Tue, 4 Sep 2018 14:52:25 +0800 +Subject: [PATCH 2890/2940] drm/amdgpu: add gmc basic support for Arcturus + +Add initial GMC support for Arcturus + +Signed-off-by: Le Ma <le.ma@amd.com> +Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +index d1b6d15309d1..07c1ca0b6a59 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +@@ -880,6 +880,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev) + case CHIP_VEGA10: /* all engines support GPUVM */ + case CHIP_VEGA12: /* all engines support GPUVM */ + case CHIP_VEGA20: ++ case CHIP_ARCTURUS: + default: + adev->gmc.gart_size = 512ULL << 20; + break; +@@ -995,6 +996,10 @@ static int gmc_v9_0_sw_init(void *handle) + else + amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48); + break; ++ case CHIP_ARCTURUS: ++ /* Keep the vm size same with Vega20 */ ++ amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48); ++ break; + default: + break; + } +-- +2.17.1 + |