Skip to content

Commit

Permalink
somehow auto suspend not work then crash in remove() (#215)
Browse files Browse the repository at this point in the history
Signed-off-by: Min Ma <min.ma@amd.com>
  • Loading branch information
mamin506 authored Aug 22, 2024
1 parent ed3147d commit 62e2cba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/driver/amdxdna/aie2_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,10 @@ static void aie2_hw_stop(struct amdxdna_dev *xdna)
xdna_mailbox_stop_channel(ndev->mgmt_chann);
xdna_mailbox_destroy_channel(ndev->mgmt_chann);
ndev->mgmt_chann = NULL;
xdna_mailbox_destroy(ndev->mbox);
ndev->mbox = NULL;
if (ndev->mbox) {
xdna_mailbox_destroy(ndev->mbox);
ndev->mbox = NULL;
}
aie2_psp_stop(ndev->psp_hdl);
aie2_smu_stop(ndev);
pci_clear_master(pdev);
Expand Down

0 comments on commit 62e2cba

Please sign in to comment.