drm/amdgpu: do not enable asic reset for raven2
authorjsg <jsg@openbsd.org>
Wed, 2 Mar 2022 12:58:57 +0000 (12:58 +0000)
committerjsg <jsg@openbsd.org>
Wed, 2 Mar 2022 12:58:57 +0000 (12:58 +0000)
From Chen Gong
8840d963e56685f8750c710b1d567a283712c554 in linux 5.15.y/5.15.26
1e2be869c8a7247a7253ef4f461f85e2f5931b95 in mainline linux

sys/dev/pci/drm/amd/amdgpu/soc15.c

index 7542169..dcdbbdf 100644 (file)
@@ -607,8 +607,8 @@ soc15_asic_reset_method(struct amdgpu_device *adev)
 static int soc15_asic_reset(struct amdgpu_device *adev)
 {
        /* original raven doesn't have full asic reset */
-       if ((adev->apu_flags & AMD_APU_IS_RAVEN) &&
-           !(adev->apu_flags & AMD_APU_IS_RAVEN2))
+       if ((adev->apu_flags & AMD_APU_IS_RAVEN) ||
+           (adev->apu_flags & AMD_APU_IS_RAVEN2))
                return 0;
 
        switch (soc15_asic_reset_method(adev)) {