[Bug 211277] sometimes crash at s2ram-wake (Ryzen 3500U): amdgpu, drm, commit_tail, amdgpu_dm_atomic_commit_tail

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Thu Nov 25 18:58:10 UTC 2021


https://bugzilla.kernel.org/show_bug.cgi?id=211277

--- Comment #79 from kolAflash (kolAflash at kolahilft.de) ---
@James

Got this when compiling with Linux-5.10.81:

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c: In function
‘kgd2kfd_device_init’:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c:754:6: error: implicit
declaration of function ‘kgd2kfd_resume_iommu’; did you mean
‘kgd2kfd_resume_mm’? [-Werror=implicit-function-declaration]
  754 |  if (kgd2kfd_resume_iommu(kfd))
      |      ^~~~~~~~~~~~~~~~~~~~
      |      kgd2kfd_resume_mm


Patching 5.10.81 was without problems:

$ patch -p1 -i
../../backport_patch/0001-drm-amdkfd-separate-kfd_iommu_resume-from-kfd_resume.patch
patching file drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
patching file drivers/gpu/drm/amd/amdkfd/kfd_device.c

$ patch -p1 -i
../../backport_patch/0002-drm-amdgpu-add-amdgpu_amdkfd_resume_iommu.patch
patching file drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
patching file drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h

$ patch -p1 -i
../../backport_patch/0003-drm-amdgpu-move-iommu_resume-before-ip-init-resume.patch
patching file drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

$ patch -p1 -i
../../backport_patch/0004-drm-amdgpu-init-iommu-after-amdkfd-device-init.patch
patching file drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

$ patch -p1 -i
../../backport_patch/0005-drm-amdkfd-fix-boot-failure-when-iommu-is-disabled-i.patch
patching file drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
patching file drivers/gpu/drm/amd/amdkfd/kfd_device.c

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.


More information about the dri-devel mailing list