mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-02-10 11:22:43 +01:00
Do not reset when device is under control of amdgpu.
This commit is contained in:
@@ -36,6 +36,10 @@ int amd_common_pre_reset(struct vendor_reset_dev *dev)
|
||||
/* disable bus reset for the card, seems to be an issue with all of em */
|
||||
pdev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
|
||||
|
||||
/* do not try to reset the card under amdgpu, it will cause problems */
|
||||
if (pdev->dev.driver && strcmp(pdev->dev.driver->name, "amdgpu"))
|
||||
return -ENOTTY;
|
||||
|
||||
priv = kzalloc(sizeof *priv, GFP_KERNEL);
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user