AMD: allocate amd_fake_dev struct for polaris10.

This commit is contained in:
Adam Madsen 2020-11-09 14:24:11 -06:00
parent 2d08232dc2
commit afbc509011

View File

@ -72,10 +72,15 @@ static int amd_polaris10_reset(struct vendor_reset_dev *vdev)
struct amd_vendor_private *priv = amd_private(vdev); struct amd_vendor_private *priv = amd_private(vdev);
struct amd_fake_dev *adev = &priv->adev; 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); amdgpu_atombios_scratch_regs_engine_hung(adev, true);
ret = vi_gpu_pci_config_reset(adev); ret = vi_gpu_pci_config_reset(adev);
amdgpu_atombios_scratch_regs_engine_hung(adev, false); amdgpu_atombios_scratch_regs_engine_hung(adev, false);
amd_fake_dev_fini(adev);
return ret; return ret;
} }