mirror of
https://github.com/gnif/vendor-reset
synced 2025-02-26 01:11:58 +00:00
Unmap mmio post reset.
This commit is contained in:
parent
95bcd0f0f1
commit
4ecfddfc0e
@ -70,6 +70,11 @@ int amd_common_post_reset(struct vendor_reset_dev *dev)
|
|||||||
struct amd_vendor_private *priv = amd_private(dev);
|
struct amd_vendor_private *priv = amd_private(dev);
|
||||||
struct pci_dev *pdev = dev->pdev;
|
struct pci_dev *pdev = dev->pdev;
|
||||||
|
|
||||||
|
if (priv->mmio) {
|
||||||
|
iounmap(priv->mmio);
|
||||||
|
priv->mmio = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (priv->saved_state)
|
if (priv->saved_state)
|
||||||
{
|
{
|
||||||
pci_load_and_free_saved_state(pdev, &priv->saved_state);
|
pci_load_and_free_saved_state(pdev, &priv->saved_state);
|
||||||
|
@ -162,11 +162,11 @@ static int amd_vega10_reset(struct vendor_reset_dev *dev)
|
|||||||
smu_resp, sol, mp1_intr ? "yes" : "no",
|
smu_resp, sol, mp1_intr ? "yes" : "no",
|
||||||
psp_bl_ready ? "yes" : "no");
|
psp_bl_ready ? "yes" : "no");
|
||||||
|
|
||||||
// if (!sol)
|
if (!sol)
|
||||||
// {
|
{
|
||||||
// pci_warn(dev->pdev, "Vega10: Timed out waiting for SOL to be valid\n");
|
pci_warn(dev->pdev, "Vega10: Timed out waiting for SOL to be valid\n");
|
||||||
// return -EINVAL;
|
return -EINVAL;
|
||||||
// }
|
}
|
||||||
|
|
||||||
pci_info(dev->pdev, "Vega10: Entering BACO\n");
|
pci_info(dev->pdev, "Vega10: Entering BACO\n");
|
||||||
ret = vega10_baco_set_state(adev, BACO_STATE_IN);
|
ret = vega10_baco_set_state(adev, BACO_STATE_IN);
|
||||||
|
Loading…
Reference in New Issue
Block a user