diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1657-drm-amdgpu-fix-invalid-use-of-change_bit.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1657-drm-amdgpu-fix-invalid-use-of-change_bit.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1657-drm-amdgpu-fix-invalid-use-of-change_bit.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1657-drm-amdgpu-fix-invalid-use-of-change_bit.patch new file mode 100644 index 00000000..2a7490c1 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1657-drm-amdgpu-fix-invalid-use-of-change_bit.patch @@ -0,0 +1,36 @@ +From bb5de14dd4d922ae4711dfa6802c79aac628207f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Mon, 18 Mar 2019 11:09:54 +0100 +Subject: [PATCH 1657/2940] drm/amdgpu: fix invalid use of change_bit +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We only need to clear the bit in a 32bit integer. + +This fixes a crah on ARM64 and PPC64LE caused by +"drm/amdgpu: update the vm invalidation engine layout V2" + +Signed-off-by: Christian König <christian.koenig@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +Cc: stable@vger.kernel.org +--- + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- + 1 file changed, 1 insertion(+), 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 593f93d5feb2..efde1c9866f8 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +@@ -702,7 +702,7 @@ static int gmc_v9_0_allocate_vm_inv_eng(struct amdgpu_device *adev) + } + + ring->vm_inv_eng = inv_eng - 1; +- change_bit(inv_eng - 1, (unsigned long *)(&vm_inv_engs[vmhub])); ++ vm_inv_engs[vmhub] &= ~(1 << ring->vm_inv_eng); + + dev_info(adev->dev, "ring %s uses VM inv eng %u on hub %u\n", + ring->name, ring->vm_inv_eng, ring->funcs->vmhub); +-- +2.17.1 + |