From: jsg Date: Fri, 19 Nov 2021 03:08:23 +0000 (+0000) Subject: drm/amdkfd: fix resume error when iommu disabled in Picasso X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e971b9030c95e36638f619c9913e8caec499d092;p=openbsd drm/amdkfd: fix resume error when iommu disabled in Picasso From Yifan Zhang 832fad367cac9ca075a1aff92e21dc77ea308e96 in linux 5.10.y/5.10.80 6f4b590aae217da16cfa44039a2abcfb209137ab in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_device.c b/sys/dev/pci/drm/amd/amdkfd/kfd_device.c index 903170e5934..5751bddc9ca 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_device.c +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_device.c @@ -744,6 +744,7 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd, kfd_double_confirm_iommu_support(kfd); if (kfd_iommu_device_init(kfd)) { + kfd->use_iommu_v2 = false; dev_err(kfd_device, "Error initializing iommuv2\n"); goto device_iommu_error; }