Skip to content

Commit cffa8e8

Browse files
rodrigovivilucasdemarchi
authored andcommitted
drm/xe: Restore pci state upon resume
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]>
1 parent 9852d85 commit cffa8e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/xe/xe_pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ static int xe_pci_resume(struct device *dev)
924924
if (err)
925925
return err;
926926

927+
pci_restore_state(pdev);
928+
927929
err = pci_enable_device(pdev);
928930
if (err)
929931
return err;

0 commit comments

Comments
 (0)