linux_dsm_epyc7002/drivers/gpu/drm/amd/powerplay/hwmgr
Lyude Paul ee006eb00a drm/amdgpu: Don't skip display settings in hwmgr_resume()
I'm not entirely sure why this is, but for some reason:

921935dc64 ("drm/amd/powerplay: enforce display related settings only on needed")

Breaks runtime PM resume on the Radeon PRO WX 3100 (Lexa) in one the
pre-production laptops I have. The issue manifests as the following
messages in dmesg:

[drm] UVD and UVD ENC initialized successfully.
amdgpu 0000:3b:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring vce1 test failed (-110)
[drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <vce_v3_0> failed -110
[drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_device_ip_resume failed (-110).

And happens after about 6-10 runtime PM suspend/resume cycles (sometimes
sooner, if you're lucky!). Unfortunately I can't seem to pin down
precisely which part in psm_adjust_power_state_dynamic that is causing
the issue, but not skipping the display setting setup seems to fix it.
Hopefully if there is a better fix for this, this patch will spark
discussion around it.

Fixes: 921935dc64 ("drm/amd/powerplay: enforce display related settings only on needed")
Cc: Evan Quan <evan.quan@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
Cc: Rex Zhu <Rex.Zhu@amd.com>
Cc: Likun Gao <Likun.Gao@amd.com>
Cc: <stable@vger.kernel.org> # v5.1+
Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-06-28 09:08:42 -05:00
..
common_baco.c drm/amdpgu: add common functions for BACO feature in PP (v2) 2019-01-25 16:15:33 -05:00
common_baco.h drm/amdpgu: add common functions for BACO feature in PP (v2) 2019-01-25 16:15:33 -05:00
hardwaremanager.c drm/amd/powerplay: support temperature emergency max values 2019-05-24 12:20:47 -05:00
hwmgr_ppt.h drm/amd/powerplay: add some new structures for Vega10 2017-03-29 23:54:52 -04:00
hwmgr.c drm/amdgpu: Don't skip display settings in hwmgr_resume() 2019-06-28 09:08:42 -05:00
Makefile drm/amdgpu/powerplay: split out common smu9 BACO code 2019-03-05 15:09:33 -05:00
pp_overdriver.c drm/amdgpu: add license to files where it was missing 2017-12-07 11:51:25 -05:00
pp_overdriver.h drm/amd/powerplay: Fix missing newlines at end of file 2017-12-06 12:47:59 -05:00
pp_psm.c drm/amd/powerplay: need to reapply the dpm level settings 2019-02-27 22:19:29 -05:00
pp_psm.h drm/amd/powerplay: enforce display related settings only on needed 2019-01-25 16:15:35 -05:00
ppatomctrl.c drm/amdgpu/pp: fix endian swapping in atomctrl_get_voltage_range 2018-07-05 16:39:51 -05:00
ppatomctrl.h drm/amd/powerplay: update ppatomctrl.c (v2) 2018-05-15 13:44:03 -05:00
ppatomfwctrl.c drm/amd/powerplay: set default fclk for no fclk dpm support case 2019-02-27 22:20:16 -05:00
ppatomfwctrl.h drm/amd/powerplay: set default fclk for no fclk dpm support case 2019-02-27 22:20:16 -05:00
ppevvmath.h
pppcielanes.c
pppcielanes.h
pptable_v1_0.h
process_pptables_v1_0.c drm/amdgpu/pp: endian fixes for process_pptables_v1_0.c 2018-08-27 11:10:08 -05:00
process_pptables_v1_0.h
processpptables.c drm/amdgpu: simplify Raven, Raven2, and Picasso handling 2018-09-14 09:38:03 -05:00
processpptables.h
smu7_clockpowergating.c drm/amd/pp: Rename enable_per_cu_power_gating to powergate_gfx 2018-07-05 16:38:48 -05:00
smu7_clockpowergating.h drm/amd/pp: Rename enable_per_cu_power_gating to powergate_gfx 2018-07-05 16:38:48 -05:00
smu7_dyn_defaults.h drm/amd/pp: Change activity_target for performance optimization on Polaris 2018-02-19 14:18:46 -05:00
smu7_hwmgr.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
smu7_hwmgr.h drm/amdgpu/powerplay: check vrefresh when when changing displays 2018-08-27 11:10:12 -05:00
smu7_powertune.c drm/amdgpu: fix several indentation issues 2019-02-13 17:51:37 -05:00
smu7_powertune.h
smu7_thermal.c drm/amd/pp: Avoid divide-by-zero in fan_ctrl_set_fan_speed_rpm 2018-10-09 17:00:25 -05:00
smu7_thermal.h drm/amd/powerplay: refine code for thermal control in powerplay 2017-09-18 23:30:31 -04:00
smu8_hwmgr.c drm/amd/powerplay/smu8_hwmgr: use struct_size() in kzalloc() 2019-02-19 15:58:27 -05:00
smu8_hwmgr.h drm/amd/pp: Rename file name cz_* to smu8_* 2018-03-15 09:58:56 -05:00
smu9_baco.c drm/amdgpu/powerplay: split out common smu9 BACO code 2019-03-05 15:09:33 -05:00
smu9_baco.h drm/amdgpu/powerplay: split out common smu9 BACO code 2019-03-05 15:09:33 -05:00
smu10_hwmgr.c drm/amd/powerplay: add set_power_profile_mode for raven1_refresh 2019-06-11 12:39:57 -05:00
smu10_hwmgr.h drm/amd/pp: Use dynamic gfx_clk rather than hardcoded values 2018-05-15 13:43:47 -05:00
smu10_inc.h drm/amd/pp: Replace rv_* with smu10_* 2018-03-15 09:57:12 -05:00
smu_helper.c drm/amd: drop use of drmP.h in atom.h 2019-06-10 23:00:01 +02:00
smu_helper.h drm/amdgpu/powerplay: factor out some pptable helpers 2018-10-10 14:49:44 -05:00
vega10_baco.c drm/amdgpu/powerplay: split out common smu9 BACO code 2019-03-05 15:09:33 -05:00
vega10_baco.h drm/amdgpu/powerplay: split out common smu9 BACO code 2019-03-05 15:09:33 -05:00
vega10_hwmgr.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
vega10_hwmgr.h drm/amd/powerplay: support Vega10 SOCclk and DCEFclk dpm level settings 2019-01-25 16:15:37 -05:00
vega10_inc.h drm/amd/include:cleanup vega10 nbio header files. 2017-12-06 12:48:21 -05:00
vega10_powertune.c drm/amdgpu: abstract the function of enter/exit safe mode for RLC 2018-11-09 16:29:12 -05:00
vega10_powertune.h drm/amd/powerplay: added didt support for vega10 2017-07-14 11:06:26 -04:00
vega10_pptable.h drm/amd/powerplay: support Vega10 fan table V3 2019-01-25 16:15:36 -05:00
vega10_processpptables.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
vega10_processpptables.h drm/amdgpu: Need to set the baco cap before baco reset 2019-05-28 14:47:42 -05:00
vega10_thermal.c drm/amd/powerplay: enable MGPU fan boost feature on Vega10 2019-01-25 16:15:36 -05:00
vega10_thermal.h drm/amd/powerplay: enable MGPU fan boost feature on Vega10 2019-01-25 16:15:36 -05:00
vega12_baco.c drm/amdgpu/powerplay: split out common smu9 BACO code 2019-03-05 15:09:33 -05:00
vega12_baco.h drm/amdgpu/powerplay: split out common smu9 BACO code 2019-03-05 15:09:33 -05:00
vega12_hwmgr.c drm/amdgpu: Add Unique Identifier sysfs file unique_id v2 2019-05-24 12:25:32 -05:00
vega12_hwmgr.h drm/amd/powerplay: support SMU metrics table on Vega12 2019-05-24 12:20:47 -05:00
vega12_inc.h drm/amdgpu/powerplay: add BACO support for vega12 2019-03-05 15:09:33 -05:00
vega12_pptable.h drm/amd/powerplay: add vega12_pptable.h 2018-03-21 14:36:55 -05:00
vega12_processpptables.c drm/amdgpu/powerplay: factor out some pptable helpers 2018-10-10 14:49:44 -05:00
vega12_processpptables.h drm/amd/powerplay: add the hw manager for vega12 (v4) 2018-03-21 14:36:56 -05:00
vega12_thermal.c drm/amdgpu/pp: split out common smumgr smu9 code 2018-07-16 11:39:22 -05:00
vega12_thermal.h drm/amd/powerplay: add the hw manager for vega12 (v4) 2018-03-21 14:36:56 -05:00
vega20_baco.c drm/amd/powerplay: apply Vega20 BACO workaround 2019-03-19 15:36:49 -05:00
vega20_baco.h drm/amd/powerplay: apply Vega20 BACO workaround 2019-03-19 15:36:49 -05:00
vega20_hwmgr.c drm/amdgpu: Add Unique Identifier sysfs file unique_id v2 2019-05-24 12:25:32 -05:00
vega20_hwmgr.h Linux 5.1-rc5 2019-04-15 15:51:49 +10:00
vega20_inc.h drm/amdgpu: also include NBIO v7.4 register mask header 2019-01-25 16:15:33 -05:00
vega20_powertune.c drm/amd/powerplay: add the hw manager for vega20 (v3) 2018-08-27 11:10:27 -05:00
vega20_powertune.h drm/amd/powerplay: add the hw manager for vega20 (v3) 2018-08-27 11:10:27 -05:00
vega20_pptable.h drm/amd/powerplay: update OD feature judgement 2018-09-19 12:37:48 -05:00
vega20_processpptables.c drm/amd/powerplay: set max fan target temperature as 105C 2019-03-11 14:28:43 -05:00
vega20_processpptables.h drm/amd/powerplay: add the hw manager for vega20 (v3) 2018-08-27 11:10:27 -05:00
vega20_thermal.c drm/amd/powerplay/vega20: enable fan RPM and pwm settings V2 2018-10-09 16:45:58 -05:00
vega20_thermal.h drm/amd/powerplay/vega20: enable fan RPM and pwm settings V2 2018-10-09 16:45:58 -05:00