From afbc50901153b48d905497167fbffb02387de9b5 Mon Sep 17 00:00:00 2001 From: Adam Madsen Date: Mon, 9 Nov 2020 14:24:11 -0600 Subject: [PATCH] AMD: allocate amd_fake_dev struct for polaris10. --- src/amd/polaris10.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/amd/polaris10.c b/src/amd/polaris10.c index e2368d8..7831fcd 100644 --- a/src/amd/polaris10.c +++ b/src/amd/polaris10.c @@ -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; }