linux-xiaomi-chiron/drivers/gpu/drm/amd/amdgpu
Peter Wu 1db4496f16 drm/amdgpu: fix power state when port pm is unavailable
When PCIe port PM is not enabled (system BIOS is pre-2015 or the
pcie_port_pm=off parameter is set), legacy ATPX PM should still be
marked as supported. Otherwise the GPU can fail to power on after
runtime suspend. This affected a Dell Inspiron 5548.

Ideally the BIOS date in the PCI core is lowered to 2013 (the first year
where hybrid graphics platforms using power resources was introduced),
but that seems more risky at this point and would not solve the
pcie_port_pm=off issue.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98505
Reported-and-tested-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: <stable@vger.kernel.org> # 4.8+
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-11-23 13:57:14 -05:00
..
amdgpu.h drm/amdgpu: Attach exclusive fence to prime exported bo's. (v5) 2016-11-11 10:20:04 -05:00
amdgpu_acp.c drm/amdgpu: fix crash in acp_hw_fini 2016-11-07 12:40:52 -05:00
amdgpu_acp.h
amdgpu_acpi.c
amdgpu_afmt.c
amdgpu_amdkfd.c
amdgpu_amdkfd.h
amdgpu_amdkfd_gfx_v7.c
amdgpu_amdkfd_gfx_v8.c
amdgpu_atombios.c
amdgpu_atombios.h
amdgpu_atpx_handler.c drm/amdgpu: fix power state when port pm is unavailable 2016-11-23 13:57:14 -05:00
amdgpu_benchmark.c
amdgpu_bios.c
amdgpu_bo_list.c drm/amdgpu: Attach exclusive fence to prime exported bo's. (v5) 2016-11-11 10:20:04 -05:00
amdgpu_cgs.c drm/amdgpu: add support for new smc firmware on iceland 2016-10-28 15:26:51 -04:00
amdgpu_connectors.c drm/amdgpu: make sure ddc_bus is valid in connector unregister 2016-10-31 12:27:52 -04:00
amdgpu_connectors.h
amdgpu_cs.c drm/amdgpu: avoid drm error log during S3 on RHEL7.3 2016-10-21 11:18:57 -04:00
amdgpu_ctx.c
amdgpu_device.c drm/amdgpu:fix vpost_needed routine 2016-11-15 14:06:07 -05:00
amdgpu_display.c
amdgpu_dpm.c
amdgpu_dpm.h
amdgpu_drv.c drm/amdgpu: add some error handling to amdgpu_init v2 2016-10-31 12:44:58 -04:00
amdgpu_drv.h
amdgpu_encoders.c
amdgpu_fb.c
amdgpu_fence.c drm/amdgpu: fix fence slab teardown 2016-10-24 17:01:22 -04:00
amdgpu_gart.c
amdgpu_gds.h
amdgpu_gem.c
amdgpu_gfx.c
amdgpu_gfx.h
amdgpu_gtt_mgr.c
amdgpu_i2c.c
amdgpu_i2c.h
amdgpu_ib.c
amdgpu_ih.c
amdgpu_ih.h
amdgpu_ioc32.c
amdgpu_irq.c drm/amdgpu: cancel reset work on fini 2016-10-24 16:59:55 -04:00
amdgpu_irq.h
amdgpu_job.c
amdgpu_kms.c drm/amdgpu: disable runtime pm in certain cases 2016-10-31 11:49:58 -04:00
amdgpu_mn.c
amdgpu_mode.h
amdgpu_object.c drm/drivers: add support for using the arch wc mapping API. 2016-10-26 16:48:01 +10:00
amdgpu_object.h
amdgpu_pll.c
amdgpu_pll.h
amdgpu_pm.c
amdgpu_pm.h
amdgpu_powerplay.c
amdgpu_powerplay.h
amdgpu_prime.c drm/amdgpu: Attach exclusive fence to prime exported bo's. (v5) 2016-11-11 10:20:04 -05:00
amdgpu_ring.c
amdgpu_sa.c
amdgpu_sync.c
amdgpu_test.c
amdgpu_trace.h
amdgpu_trace_points.c
amdgpu_ttm.c
amdgpu_ttm.h
amdgpu_ucode.c
amdgpu_ucode.h
amdgpu_uvd.c
amdgpu_uvd.h
amdgpu_vce.c
amdgpu_vce.h
amdgpu_virt.h
amdgpu_vm.c drm/amdgpu: fix a vm_flush fence leak 2016-10-24 17:00:51 -04:00
atom.c
atom.h
atombios_crtc.c
atombios_crtc.h
atombios_dp.c
atombios_dp.h
atombios_encoders.c
atombios_encoders.h
atombios_i2c.c
atombios_i2c.h
ci_dpm.c drm/amdgpu: fix s3 resume back, uvd dpm randomly can't disable. 2016-10-26 15:39:32 -04:00
ci_dpm.h
ci_smc.c
cik.c
cik.h
cik_dpm.h
cik_ih.c
cik_ih.h
cik_sdma.c
cik_sdma.h
cikd.h
clearstate_ci.h
clearstate_defs.h
clearstate_vi.h
cz_dpm.c
cz_dpm.h
cz_ih.c
cz_ih.h
cz_smc.c
cz_smumgr.h
dce_v6_0.c drm/amdgpu: move atom scratch register save/restore to common code 2016-10-21 11:18:11 -04:00
dce_v6_0.h
dce_v8_0.c drm/amdgpu: move atom scratch register save/restore to common code 2016-10-21 11:18:11 -04:00
dce_v8_0.h
dce_v10_0.c drm/amdgpu: move atom scratch register save/restore to common code 2016-10-21 11:18:11 -04:00
dce_v10_0.h
dce_v11_0.c drm/amdgpu: move atom scratch register save/restore to common code 2016-10-21 11:18:11 -04:00
dce_v11_0.h
dce_virtual.c
dce_virtual.h
gfx_v6_0.c
gfx_v6_0.h
gfx_v7_0.c
gfx_v7_0.h
gfx_v8_0.c drm/amdgpu/st: move ATC CG golden init from gfx to mc 2016-10-21 11:18:37 -04:00
gfx_v8_0.h
gmc_v6_0.c
gmc_v6_0.h
gmc_v7_0.c
gmc_v7_0.h
gmc_v8_0.c drm/amdgpu/st: move ATC CG golden init from gfx to mc 2016-10-21 11:18:37 -04:00
gmc_v8_0.h
iceland_ih.c
iceland_ih.h
iceland_sdma_pkt_open.h
Kconfig drm/amdgpu: remove DRM_AMD_POWERPLAY 2016-10-04 11:15:59 -04:00
kv_dpm.c drm/amdgpu/dpm: flush any thermal work on fini 2016-10-24 17:00:10 -04:00
kv_dpm.h
kv_smc.c
Makefile
ObjectID.h
ppsmc.h
r600_dpm.h
sdma_v2_4.c
sdma_v2_4.h
sdma_v3_0.c
sdma_v3_0.h
si.c
si.h
si_dma.c
si_dma.h
si_dpm.c drm/amdgpu/si_dpm: workaround for SI kickers 2016-10-27 13:59:24 -04:00
si_dpm.h
si_ih.c
si_ih.h
si_smc.c
sislands_smc.h
smu_ucode_xfer_vi.h
tonga_ih.c
tonga_ih.h
tonga_sdma_pkt_open.h
uvd_v4_2.c
uvd_v4_2.h
uvd_v5_0.c
uvd_v5_0.h
uvd_v6_0.c
uvd_v6_0.h
vce_v2_0.c
vce_v2_0.h
vce_v3_0.c drm/amdgpu/vce3: only enable 3 rings on new enough firmware (v2) 2016-10-25 13:57:11 -04:00
vce_v3_0.h
vi.c drm/amdgpu: add support for new smc firmware on iceland 2016-10-28 15:26:51 -04:00
vi.h
vi_dpm.h
vid.h