diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2995-drm-amd-amdgpu-Fix-offset-for-vmid-selection-in-debu.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2995-drm-amd-amdgpu-Fix-offset-for-vmid-selection-in-debu.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2995-drm-amd-amdgpu-Fix-offset-for-vmid-selection-in-debu.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2995-drm-amd-amdgpu-Fix-offset-for-vmid-selection-in-debu.patch new file mode 100644 index 00000000..257bb7a9 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2995-drm-amd-amdgpu-Fix-offset-for-vmid-selection-in-debu.patch @@ -0,0 +1,35 @@ +From b2e76aebcb968ab62bd13e45548f4046c5f96bff Mon Sep 17 00:00:00 2001 +From: Tom St Denis <tom.stdenis@amd.com> +Date: Tue, 16 Jul 2019 07:23:22 -0400 +Subject: [PATCH 2995/4256] drm/amd/amdgpu: Fix offset for vmid selection in + debugfs interface +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The register debugfs interface was using the wrong bitmask for vmid +selection for GFX_CNTL. + +Signed-off-by: Tom St Denis <tom.stdenis@amd.com> +Acked-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +index 87b32873046f..59849ed9797d 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +@@ -132,7 +132,7 @@ static int amdgpu_debugfs_process_reg_op(bool read, struct file *f, + me = (*pos & GENMASK_ULL(33, 24)) >> 24; + pipe = (*pos & GENMASK_ULL(43, 34)) >> 34; + queue = (*pos & GENMASK_ULL(53, 44)) >> 44; +- vmid = (*pos & GENMASK_ULL(48, 45)) >> 54; ++ vmid = (*pos & GENMASK_ULL(58, 54)) >> 54; + + use_ring = 1; + } else { +-- +2.17.1 + |