From 9917242b8d5e1be9f9ddab51c00685f2199172b9 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 14 Nov 2020 17:53:50 +1100 Subject: [PATCH] [amd] all: always disable bus reset as early as possible --- src/amd/common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/common.c b/src/amd/common.c index 7a62722..fc1ddbf 100644 --- a/src/amd/common.c +++ b/src/amd/common.c @@ -41,6 +41,9 @@ int amd_common_pre_reset(struct vendor_reset_dev *dev) struct pci_dev *pdev = dev->pdev; int ret, i; + /* disable bus reset for the card, seems to be an issue with all of them */ + dev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET; + /* do not try to reset the card under amdgpu, it will cause problems */ if (pdev->driver && !strcmp(pdev->driver->name, "amdgpu")) return -ENOTTY;