Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Oleksandr Natalenko
pf-kernel
Commits
feaab485
Commit
feaab485
authored
Mar 04, 2021
by
Oleksandr Natalenko
Browse files
Merge branch 'fixes-5.11' into pf-5.11
parents
ba90623a
6866249b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu.h
+0
-1
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+2
-4
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+0
-2
No files found.
drivers/gpu/drm/amd/amdgpu/amdgpu.h
View file @
feaab485
...
...
@@ -1002,7 +1002,6 @@ struct amdgpu_device {
/* s3/s4 mask */
bool
in_suspend
;
bool
in_hibernate
;
bool
in_shutdown
;
atomic_t
in_gpu_reset
;
enum
pp_mp1_state
mp1_state
;
...
...
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
View file @
feaab485
...
...
@@ -2666,8 +2666,7 @@ static int amdgpu_device_ip_suspend_phase1(struct amdgpu_device *adev)
{
int
i
,
r
;
if
(
adev
->
in_shutdown
||
!
amdgpu_acpi_is_s0ix_supported
(
adev
)
||
amdgpu_in_reset
(
adev
))
{
if
(
!
amdgpu_acpi_is_s0ix_supported
(
adev
)
||
amdgpu_in_reset
(
adev
))
{
amdgpu_device_set_pg_state
(
adev
,
AMD_PG_STATE_UNGATE
);
amdgpu_device_set_cg_state
(
adev
,
AMD_CG_STATE_UNGATE
);
}
...
...
@@ -3727,8 +3726,7 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
amdgpu_fence_driver_suspend
(
adev
);
if
(
adev
->
in_shutdown
||
!
amdgpu_acpi_is_s0ix_supported
(
adev
)
||
amdgpu_in_reset
(
adev
))
if
(
!
amdgpu_acpi_is_s0ix_supported
(
adev
)
||
amdgpu_in_reset
(
adev
))
r
=
amdgpu_device_ip_suspend_phase2
(
adev
);
else
amdgpu_gfx_state_change_set
(
adev
,
sGpuChangeState_D3Entry
);
...
...
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
View file @
feaab485
...
...
@@ -1259,7 +1259,6 @@ amdgpu_pci_shutdown(struct pci_dev *pdev)
if
(
amdgpu_ras_intr_triggered
())
return
;
adev
->
in_shutdown
=
true
;
/* if we are running in a VM, make sure the device
* torn down properly on reboot/shutdown.
* unfortunately we can't detect certain
...
...
@@ -1269,7 +1268,6 @@ amdgpu_pci_shutdown(struct pci_dev *pdev)
adev
->
mp1_state
=
PP_MP1_STATE_UNLOAD
;
amdgpu_device_ip_suspend
(
adev
);
adev
->
mp1_state
=
PP_MP1_STATE_NONE
;
adev
->
in_shutdown
=
false
;
}
static
int
amdgpu_pmops_suspend
(
struct
device
*
dev
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment