mirror of
https://github.com/gnif/vendor-reset.git
synced 2025-12-27 06:19:29 +01:00
Do not reset when device is under control of amdgpu.
This commit is contained in:
parent
8d5922b434
commit
1394ebdd37
@ -1,5 +1,5 @@
|
|||||||
PACKAGE_NAME="vendor-reset"
|
PACKAGE_NAME="vendor-reset"
|
||||||
PACKAGE_VERSION="0.0.2"
|
PACKAGE_VERSION="0.0.3"
|
||||||
BUILT_MODULE_NAME[0]="${PACKAGE_NAME}"
|
BUILT_MODULE_NAME[0]="${PACKAGE_NAME}"
|
||||||
MAKE[0]="make KDIR=${kernel_source_dir}"
|
MAKE[0]="make KDIR=${kernel_source_dir}"
|
||||||
CLEAN="make KDIR=${kernel_source_dir} clean"
|
CLEAN="make KDIR=${kernel_source_dir} clean"
|
||||||
|
|||||||
@ -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 */
|
/* disable bus reset for the card, seems to be an issue with all of em */
|
||||||
pdev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
|
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);
|
priv = kzalloc(sizeof *priv, GFP_KERNEL);
|
||||||
if (!priv)
|
if (!priv)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user