mirror of
https://github.com/gnif/vendor-reset
synced 2024-11-10 07:10:30 +00:00
AMD: allocate amd_fake_dev struct for polaris10.
This commit is contained in:
parent
2d08232dc2
commit
afbc509011
@ -72,10 +72,15 @@ static int amd_polaris10_reset(struct vendor_reset_dev *vdev)
|
||||
struct amd_vendor_private *priv = amd_private(vdev);
|
||||
struct amd_fake_dev *adev = &priv->adev;
|
||||
|
||||
ret = amd_fake_dev_init(adev, vdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
amdgpu_atombios_scratch_regs_engine_hung(adev, true);
|
||||
ret = vi_gpu_pci_config_reset(adev);
|
||||
amdgpu_atombios_scratch_regs_engine_hung(adev, false);
|
||||
|
||||
amd_fake_dev_fini(adev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user