[Intel-gfx] [PATCH] HAX drm/amdgpu: Disallow suspending

Chris Wilson chris at chris-wilson.co.uk
Fri Jul 13 10:53:35 UTC 2018


Our kbl-g in the CI farm very rarely recovers from suspend, and when it
does it innundated with DMAR errors for the VegaM. This is just a quick
hack to allow testing to continue.

Cc: Tomi Sarvela <tomi.p.sarvela at intel.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 0b19482b36b8..09d0facceee2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -676,6 +676,11 @@ amdgpu_pci_shutdown(struct pci_dev *pdev)
 	amdgpu_device_ip_suspend(adev);
 }
 
+static int amdgpu_pmops_prepare(struct device *dev)
+{
+	return -ENODEV;
+}
+
 static int amdgpu_pmops_suspend(struct device *dev)
 {
 	struct pci_dev *pdev = to_pci_dev(dev);
@@ -827,6 +832,7 @@ long amdgpu_drm_ioctl(struct file *filp,
 }
 
 static const struct dev_pm_ops amdgpu_pm_ops = {
+	.prepare = amdgpu_pmops_prepare,
 	.suspend = amdgpu_pmops_suspend,
 	.resume = amdgpu_pmops_resume,
 	.freeze = amdgpu_pmops_freeze,
-- 
2.18.0



More information about the Intel-gfx mailing list