Reverting this patch restores the GPU to functionality:

drm/amdgpu: check alignment on CPU page for bo map

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index dc4d6ae71476..a01c158bc29f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -2198,8 +2198,8 @@ int amdgpu_vm_bo_map(struct amdgpu_device *adev,
        uint64_t eaddr;

        /* validate the parameters */
-       if (saddr & AMDGPU_GPU_PAGE_MASK || offset & AMDGPU_GPU_PAGE_MASK ||
-           size == 0 || size & AMDGPU_GPU_PAGE_MASK)
+       if (saddr & ~PAGE_MASK || offset & ~PAGE_MASK ||
+           size == 0 || size & ~PAGE_MASK)
                return -EINVAL;

        /* make sure object fit at this offset */
@@ -2264,8 +2264,8 @@ int amdgpu_vm_bo_replace_map(struct amdgpu_device *adev,
        int r;

        /* validate the parameters */
-       if (saddr & AMDGPU_GPU_PAGE_MASK || offset & AMDGPU_GPU_PAGE_MASK ||
-           size == 0 || size & AMDGPU_GPU_PAGE_MASK)
+       if (saddr & ~PAGE_MASK || offset & ~PAGE_MASK ||
+           size == 0 || size & ~PAGE_MASK)
                return -EINVAL;

        /* make sure object fit at this offset */

As nearly all POWER distros ship a 64k page kernel, the switch from 
AMDGPU_GPU_PAGE_MASK to PAGE_MASK may be at fault.

As an aside, it seems there is little to no QA for POWER desktop systems from 
the Debian developers.  If this is due to lack of hardware access, we may be 
able to assist.

----- Original Message -----
> From: "Timothy Pearson" <tpear...@raptorengineering.com>
> To: "990279" <990...@bugs.debian.org>
> Sent: Saturday, July 24, 2021 11:42:02 PM
> Subject: Also affects stable...

> Just hit this upgrading a stable box from 4.19.0-6-powerpc64le to
> 4.19.0-17-powerpc64le.  AMD RX480, works perfectly again after downgrading to
> the older kernel.

Reply via email to