diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3057-drm-amdgpu-gfx9-only-init-the-apertures-used-by-KGD-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3057-drm-amdgpu-gfx9-only-init-the-apertures-used-by-KGD-.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3057-drm-amdgpu-gfx9-only-init-the-apertures-used-by-KGD-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3057-drm-amdgpu-gfx9-only-init-the-apertures-used-by-KGD-.patch new file mode 100644 index 00000000..0c404bc1 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3057-drm-amdgpu-gfx9-only-init-the-apertures-used-by-KGD-.patch @@ -0,0 +1,37 @@ +From 1325126db1c54a2e385dae382a55eaf83b06d459 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Mon, 1 Jan 2018 16:14:43 -0500 +Subject: [PATCH 3057/4131] drm/amdgpu/gfx9: only init the apertures used by + KGD (v2) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Use adev->vm_manager.id_mgr[0].num_ids rather than hardcoded 16. + +v2: use AMDGPU_GFXHUB rather than hardcoded 0 (Christian) + +Reviewed-by: Chunming Zhou <david1.zhou@amd.com> +Reviewed-by: Christian König <christian.koenig@amd.com> +Noticed-by: Felix Kuehling <felix.kuehling@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index 840c70b..4f50ae4 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -1526,7 +1526,7 @@ static void gfx_v9_0_gpu_init(struct amdgpu_device *adev) + /* XXX SH_MEM regs */ + /* where to put LDS, scratch, GPUVM in FSA64 space */ + mutex_lock(&adev->srbm_mutex); +- for (i = 0; i < 16; i++) { ++ for (i = 0; i < adev->vm_manager.id_mgr[AMDGPU_GFXHUB].num_ids; i++) { + soc15_grbm_select(adev, 0, 0, 0, i); + /* CP and shaders */ + if (i == 0) { +-- +2.7.4 + |