diff options
| author | Alex Deucher <[email protected]> | 2016-06-01 16:54:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-07-07 18:51:01 +0000 |
| commit | f81eb1a349d47694fe1e688336ca1b40ea3e248a (patch) | |
| tree | 72641ba96205b83fb21f4f9198fc6c3d422741dc /drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | |
| parent | drm/amdgpu: clean up atpx power control handling (diff) | |
| download | kernel-f81eb1a349d47694fe1e688336ca1b40ea3e248a.tar.gz kernel-f81eb1a349d47694fe1e688336ca1b40ea3e248a.zip | |
drm/amdgpu: add a delay after ATPX dGPU power off
ATPX dGPU power control requires a 200ms delay between
power off and on. This should fix dGPU failures on
resume from power off.
Reviewed-by: Hawking Zhang <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c index 1be2ce46921b..c5d280ce625b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c @@ -10,6 +10,7 @@ #include <linux/slab.h> #include <linux/acpi.h> #include <linux/pci.h> +#include <linux/delay.h> #include "amd_acpi.h" @@ -271,6 +272,10 @@ static int amdgpu_atpx_set_discrete_state(struct amdgpu_atpx *atpx, u8 state) if (!info) return -EIO; kfree(info); + + /* 200ms delay is required after off */ + if (state == 0) + msleep(200); } return 0; } |
