[PATCH revert] Revert "drm/amdgpu: use GMC v9 KIQ workaround only for the GFXHUB"

2018-11-16 Thread Chengming Gui
With GFXOFF enabled, this patch will cause PCO amdgpu_test failed, but GFXOFF is necessary for PCO, so revert the patch. This reverts commit b83761bb0b09ec11c924afe9d88e458cb16a0372. Signed-off-by: Jack Gui --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH] amd/amdgpu: fix typo about amdgpu_sriov_vf

2018-12-10 Thread Chengming Gui
Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index a9c853a..08f443f 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

[PATCH] drm/amd/amdgpu: fix Polaris10 PCIe dpm feature issue (v2)

2019-03-21 Thread Chengming Gui
use pcie_bandwidth_available to get real link state to update pcie table. v2: fix incorrect initialized return value Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH] drm/amd/amdgpu: fix Polaris10 PCIe dpm feature issue.

2019-03-20 Thread Chengming Gui
use pcie_bandwidth_available to get real link state to update pcie table. Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/amdgpu: fix incorrect translation about the PCIe MLW info

2019-03-18 Thread Chengming Gui
Max Link Width's full mask is 0x3f, and it's highest bit express X16. Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd

[PATCH 2/2] drm/amd/powerplay: Enable "disable dpm" feature for vega20 power functions.

2019-05-10 Thread Chengming Gui
use pm_enabled to control all power related functions about vega20. Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 48 +++--- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c b

[PATCH 1/2] drm/amd/powerplay: Enable "disable dpm" feature to support swSMU debug

2019-05-10 Thread Chengming Gui
add pm_enabled to control the dpm off/on. Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 34 +++--- drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 1 + drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 34 ++ 3

[PATCH] drm/amd/powerplay: Fix code error for translating int type to bool type correctly

2019-05-21 Thread Chengming Gui
Fix code error to support value < 0 or > 1. Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 3

[PATCH] drm/amd/powerplay: add set/get_power_profile_mode for Raven

2019-04-22 Thread Chengming Gui
Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 92 +++ drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h | 1 - drivers/gpu/drm/amd/powerplay/inc/smu10.h | 14 ++-- 3 files changed, 100 insertions(+), 7 deletions(-) diff --git

[PATCH] drm/amd/powerplay: enable UMDPSTATE support on raven2

2019-04-22 Thread Chengming Gui
Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c index b508b72..c2fa6bc 100644 --- a/drivers/gpu/drm

[PATCH 2/2] drm/amd/powerplay: add arcturus_is_dpm_running function for arcturus

2019-08-12 Thread Chengming Gui
add arcturus_is_dpm_running function Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c index

[PATCH 1/2] drm/amd/powerplay: remove redundancy debug log about smu unsupported features

2019-08-12 Thread Chengming Gui
remove redundancy debug log about smu unsupported features Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c index e6fcbdf

[PATCH 2/3] drm/amd/powerplay: force sclk limit for peak profile

2019-07-18 Thread Chengming Gui
force different GFX clocks with different SKUs for navi10: XL (other rev_id): 1625MHz XT (F1/C1): 1755MHz XTX(F0/C0): 1830MHz Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 + drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 2

[PATCH 3/3] drm/amd/powerplay: add mutex lock to protect dpm context resource

2019-07-18 Thread Chengming Gui
add mutex lock to protect dpm context resource Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 5 +++-- drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 1 + drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 8 3 files changed, 12 insertions(+), 2

[PATCH 1/3] drm/amd/powerplay: remove mutex lock for smu_handle_task when smu late init

2019-07-18 Thread Chengming Gui
remove mutex lock when smu late init to call smu_handle_task Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 7d1bd09

[PATCH 2/2] drm/amdgpu: Add debugfs interface to set arbitrary sclk for navi14

2020-02-27 Thread Chengming Gui
add debugfs interface amdgpu_force_sclk to set arbitrary sclk for navi14 Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c| 44 ++ drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 ++ 2 files changed, 47 insertions(+) diff --git

[PATCH 1/2] Revert "drm/amdgpu: add sysfs interface to set arbitrary sclk value for navi14"

2020-02-27 Thread Chengming Gui
Revert this commit and than add debugfs interface to replace this to meet the specitic requirement. This reverts commit 3107269204f8e18f389080673f7848b420970aa5. --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 42 --- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 9

[PATCH 1/2] drm/amdgpu: add lock option for smu_set_soft_freq_range()

2020-02-28 Thread Chengming Gui
Add lock_needed param for smu_set_soft_freq_range() Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 7 ++- drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 2 +- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 14 +++--- drivers/gpu/drm/amd

[PATCH 2/2] drm/amdgpu: Add debugfs interface to set arbitrary sclk for navi14 (v2)

2020-02-28 Thread Chengming Gui
add debugfs interface amdgpu_force_sclk to set arbitrary sclk for navi14 v2: Add lock Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c| 43 ++ drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 3 ++ 2 files changed, 46 insertions(+) diff

[PATCH] drm/amdgpu: add sysfs interface to set arbitrary sclk value for navi14

2020-02-14 Thread Chengming Gui
Add sysfs interface for arbitrary clock setting pp_sclk - amdgpu_set_pp_sclk Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 42 +++ drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 9 +-- 2 files changed, 49 insertions(+), 2 deletions

[PATCH] drm/amd/amdgpu: Correct gfx10's CG sequence

2020-04-03 Thread Chengming Gui
Incorrect CG sequence will cause gfx timedout, if we keep switching power profile mode (enter profile mod such as PEAK will disable CG, exit profile mode EXIT will enable CG) when run Vulkan test case(case used for test: vkexample). Signed-off-by: Chengming Gui --- drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/pm: Correct reserved uint32_t number in beige_goby_PPTable

2021-05-20 Thread Chengming Gui
Correct reserved number according to the latest struct in drm-next Signed-off-by: Chengming Gui Change-Id: I5991a8ef53134c00348a96f776a539bad6da4fa1 --- drivers/gpu/drm/amd/pm/inc/smu11_driver_if_sienna_cichlid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[PATCH] drm/amd/pm: Update PPTable struct for beige_goby

2021-05-20 Thread Chengming Gui
Update PPTable structure since SMC#73.9/IFWI-XXX.013 Signed-off-by: Chengming Gui Reviewed-by: Tao Zhou Change-Id: I7f6a2dd85b367eb4ecbcfcd5141b1960a395ec24 --- drivers/gpu/drm/amd/pm/inc/smu11_driver_if_sienna_cichlid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git