diff mbox

HAX drm/amdgpu: Disallow suspending

Message ID 20180713105335.27082-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson July 13, 2018, 10:53 a.m. UTC
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@intel.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

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,