Skip to content

Commit

Permalink
drm/xe: Restore pci state upon resume
Browse files Browse the repository at this point in the history
The pci state was saved, but not restored. Restore
right after the power state transition request like
every other driver.

v2: Use right fixes tag, since this was there initialy, but
    accidentally removed.

Fixes: f6761c6 ("drm/xe/display: Improve s2idle handling.")
Cc: Maarten Lankhorst <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Reviewed-by: Jonathan Cavitt <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Maarten Lankhorst <[email protected]>
(cherry picked from commit ec2d153)
Signed-off-by: Lucas De Marchi <[email protected]>
  • Loading branch information
rodrigovivi authored and lucasdemarchi committed Oct 3, 2024
1 parent 9852d85 commit cffa8e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/xe/xe_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,8 @@ static int xe_pci_resume(struct device *dev)
if (err)
return err;

pci_restore_state(pdev);

err = pci_enable_device(pdev);
if (err)
return err;
Expand Down

0 comments on commit cffa8e8

Please sign in to comment.