[PATCH] drm/amd/amdgpu: add POLARIS12 PCI ID

2017-03-16 Thread Evan Quan
Change-Id: I730eed1bca04725696cd086e9c6ba1a31bafd8a7 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index d

[PATCH] drm/amdgpu/smu9: update to latest driver interface

2017-04-04 Thread Evan Quan
Signed-off-by: Evan Quan <evan.q...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h | 57 -- 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/p

[PATCH] drm/amdgpu: update smu9 driver interface

2017-04-19 Thread Evan Quan
Signed-off-by: Evan Quan <evan.q...@amd.com> Signed-off-by: Alex Deucher <alexander.deuc...@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu9_dr

[PATCH] drm/amdgpu: fix missing endian-safe guard

2017-08-10 Thread Evan Quan
Change-Id: I84a838d2d14318c1514f5146ae81ab58560b767b Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH] drm/amdgpu: jt_size was wrongly counted twice

2017-08-10 Thread Evan Quan
Change-Id: Ic6c031f160cb5ed5744ed302f0d819505ece427e Signed-off-by: Evan Quan <evan.q...@amd.com> Signed-off-by: Huang Rui <ray.hu...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.

[PATCH 2/3] drm/amd/powerplay: updated vega10 fan control

2017-07-28 Thread Evan Quan
Change-Id: Ifbeb1f0c8e195cc9cb1e9cff975284d96d49b193 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) mode change 100644 => 100755 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_

[PATCH 1/3] drm/amdgpu: update vega10 golden setting

2017-07-28 Thread Evan Quan
Change-Id: I44c22b126824ccb022bf5cefa1d73639ac1a53c7 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 49de169..8

[PATCH 3/3] drm/amd/powerplay: update didt configs

2017-07-28 Thread Evan Quan
Change-Id: I1506f4c6e9320a1e90a89be55368328cbaab7844 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/d

[PATCH 3/3] drm/amd/powerplay: update didt configs

2017-07-28 Thread Evan Quan
Change-Id: I1506f4c6e9320a1e90a89be55368328cbaab7844 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/d

[PATCH] drm/amd/powerplay: fixed wrong data type declaration for ppfeaturemask

2017-07-05 Thread Evan Quan
Change-Id: Icbe9fa02e653edf365880fc03089e5cf01716d52 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu

[PATCH 4/6] drm/amd/powerplay: added support for new se_cac_idx APIs to cgs

2017-07-06 Thread Evan Quan
Change-Id: If2ac93808d1922fe3dbec64a58f674a9c342088d Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 4 drivers/gpu/drm/amd/include/cgs_common.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cg

[PATCH 1/6] drm/amd/powerplay: added index gc cac read/write apis for vega10

2017-07-06 Thread Evan Quan
Change-Id: I1a62db8c764d368e6ba08440ad1761adb55d85fd Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/soc15.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH 5/6] drm/amd/powerplay: added grbm_idx_mutex lock/unlock to cgs v2 - v2: rename param 'en' as 'lock'

2017-07-06 Thread Evan Quan
Change-Id: If7088d6046c84355b8f1308d584ab6524ceab724 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 12 drivers/gpu/drm/amd/include/cgs_common.h | 5 + 2 files changed, 17 insertions(+) diff --git a/drivers/gpu/drm/amd/

[PATCH 2/6] drm/amd/powerplay: added new se_cac_idx r/w APIs v2 - v2: added missing spinlock init

2017-07-06 Thread Evan Quan
Change-Id: I9f16ec9f5bab9abe83e9df01609893b38bb691fe Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 3/6] drm/amd/powerplay: added soc15 support for new se_cac_idx APIs

2017-07-06 Thread Evan Quan
Change-Id: I9b925397d7ac61bcf9f0e8850f2d8b3dabd4a105 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/soc15.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c

[PATCH] drm/amd/powerplay: ACG frequency added in PPTable

2017-08-22 Thread Evan Quan
Change-Id: If1df87cf4a458d59ce2545a813c4594118fa4c3d Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 11 --- drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h | 6 -- 2 files changed, 12 insertions(+), 5 deletions(-) diff

[PATCH 2/2] drm/amdgpu: support polaris10/11/12 new cp firmwares

2017-08-20 Thread Evan Quan
Newer versions of the CP firmware require changes in how the driver initializes the hw block. Change the firmware name for new firmware to maintain compatibility with older kernels. Change-Id: I32e3382768a2d9ff1e2978bcadb3bd44afb3db01 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drive

[PATCH 1/2] drm/amd/powerplay: unhalt mec after loading

2017-08-20 Thread Evan Quan
Change-Id: I3bead05f0bccdcecb1409329d7d28324947794c4 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c b/drivers/gpu/d

[PATCH 1/2] drm/amdgpu: drop SMU_DRIVER_IF_VERSION check for some vega10 variants

2017-06-27 Thread Evan Quan
Change-Id: I68d47d2f9c9021514543ac9386012cc4056b2fe5 Signed-off-by: Evan Quan <evan.q...@amd.com> --- .../gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | 30 +- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_sm

[PATCH 2/2] drm/amdgpu: add ACG SMU firmware for other vega10 variants

2017-06-27 Thread Evan Quan
Change-Id: Id15108d2dc192b2d6e80b07369cb9b01098687b2 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 8 +++- drivers/gpu/drm/amd/amdgpu/soc15.c| 2 -- drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 3 ++- 3 files chan

[PATCH 2/2] drm/amd/amgpu: update vega10 sdma golden setting

2017-09-20 Thread Evan Quan
Change-Id: I96cd1d463a5743f918a03cad5160ea0bbd908ad0 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

[PATCH 1/2] drm/amd/amgpu: update raven sdma golden setting

2017-09-20 Thread Evan Quan
Change-Id: Ia41bf64501557723fa811ad98a7b5630f12d9ed8 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

[PATCH] drm/amd/amdgpu: add vega10/raven mmhub/athub golden settings

2017-09-20 Thread Evan Quan
Change-Id: I28e9ca38b68234d0325a5b8a01d135649939c0af Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_

[PATCH] drm/amdgpu/psp: prevent page fault by checking write_frame address

2017-10-16 Thread Evan Quan
Change-Id: If3b79428b32ffab57b4e75f9c20c2b2d7e600223 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 31 --- drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 31 --- 2 files changed, 40 insertions(

[PATCH] drm/amdgpu/psp: prevent page fault by checking write_frame address(v2) -v2: update the ring_buffer_end address

2017-10-16 Thread Evan Quan
Change-Id: If3b79428b32ffab57b4e75f9c20c2b2d7e600223 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 16 ++-- drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 16 ++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/d

[PATCH 1/4] drm/amdgpu: fixed raven psp cmd prepare and submit

2017-09-10 Thread Evan Quan
Change-Id: I9b7ebc99b7c75c03fb46d16c4c49348dd551325e Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/psp_v10_0.c b/drivers/gpu/drm/amd/

[PATCH 2/4] drm/amdgpu: added api for stopping psp ring

2017-09-10 Thread Evan Quan
Change-Id: I53bcacd531d8df801a49acd0409c3f27b49fb1be Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 2 ++ drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 23 +++ drivers/gpu/drm/amd/

[PATCH 3/4] drm/amdgpu: stop psp ring on suspend

2017-09-10 Thread Evan Quan
Otherwise, the ring will fail to create on next resume. Change-Id: Ia25aded6c838ab8022ebf9f42adc9045133343ca Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 10 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 1 + 2 files changed, 11 inse

[PATCH 4/4] drm/amdgpu: enable raven to load firmwares by psp at default

2017-09-10 Thread Evan Quan
Change-Id: I7a0427555b34111e4e7600aa1e8b9cae31b44af7 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/

[PATCH 4/4] drm/amd/powerplay: get raven sclk and mclk levels

2017-09-29 Thread Evan Quan
Change-Id: I40fa698cd9a25df43aa4bf476c4aa0a8b043edf9 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 48 +- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmg

[PATCH 1/4] drm/amd/powerplay: added new raven ppsmc messages

2017-09-29 Thread Evan Quan
Change-Id: I598f8ab583fc9c7045a4852d6972df90a82f7472 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h b/drivers/gpu/d

[PATCH 3/4] drm/amd/powerplay: get raven current sclk and mclk

2017-09-29 Thread Evan Quan
Change-Id: I17120a53bc3cebd8cc7eb9f3d83124905632a409 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 28 -- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmg

[PATCH] drm/amd/powerplay: fix typo on avfs disable

2017-09-29 Thread Evan Quan
Change-Id: I172c1e05ce026b5d600f5b3607778ab48ee2c812 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/d

[PATCH 2/4] drm/amd/powerplay: get raven max/min gfx clocks

2017-09-29 Thread Evan Quan
Change-Id: I56e713e16b9a794857e7ecbb7ca47e0ddd727862 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 20 drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.h | 2 ++ 2 files changed, 22 insertions(+) diff --git a/drivers/g

[PATCH] drm/amd/powerplay: fixed wrong return vaule on error

2017-09-26 Thread Evan Quan
Change-Id: Ib7d42e49e4b1d1743125fd7f443cf60e486c3af3 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertun

[PATCH] drm/amdgpu: declare the new firmware files needed by polaris asics

2017-09-01 Thread Evan Quan
Change-Id: If0f280979d85c118dc05ebfa37207b8544abfa45 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

[PATCH] drm/amd/powerplay: suppress KASAN out of bounds warning in vega10_populate_all_memory_levels

2017-11-06 Thread Evan Quan
Change-Id: I437e3e08cd48943de277c5d3eefdbaf21fd6a489 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pow

[PATCH] drm/amd/powerplay: wrong control mode cause the fan spins faster unnecessarily

2017-11-01 Thread Evan Quan
t; /sys/class/hwmon/hwmon0/pwm1_enable '# cat /sys/class/hwmon/hwmon0/pwm1 122 The fan speed get faster wronly even with its original mode echo back. Change-Id: I51b0586ac17e0d663925c87d548847b31c79d68a Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr

[PATCH] drm/amd/powerplay: describe the PCIE link speed in right GT/s

2017-10-26 Thread Evan Quan
Change-Id: Icfd2c50ce168d8ccf3cc329eb906a56bab0a8c1d Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/ci_dpm.c| 6 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 6 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 +++

[PATCH 2/2] drm/amd/powerplay: remove uncessary extra gfxoff control call

2018-06-12 Thread Evan Quan
Gfxoff is already enabled in amdgpu_device_ip_set_powergating_state. So, no need to enable it again in pp_late_init. Change-Id: Id33d2dac192645fc9dcdfaf5825420093a87f814 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 8 1 file changed, 8 deletions(-) diff

[PATCH 1/2] drm/amdgpu: fix parsing indirect register list v2

2018-06-12 Thread Evan Quan
WARN_ON possible buffer overflow and avoid unnecessary dereference. v2: change BUG_ON to WARN_ON Change-Id: Id7dcf60acf524f290460d2ffe3f1f5f46354 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff

[PATCH] drm/amdgpu: detect buffer overflow and avoid unnecessary dereference

2018-05-29 Thread Evan Quan
Change-Id: Id7dcf60acf524f290460d2ffe3f1f5f46354 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 7c5a850

[PATCH] drm/amd/powerplay: fix wrong clock adjust sequence

2018-06-05 Thread Evan Quan
The clocks should be adjusted after display configuration changed. Otherwise, the socclk and memclk may be forced on an unnecessary higher level. Change-Id: I0170e968ba1f64d15d4238b658eefc307adc2642 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 13 ++--- 1

[PATCH] drm/amdgpu: typo fix for vega20 cg flags

2018-05-27 Thread Evan Quan
Change-Id: If807cc3e9e9e10f8b132095c0a7b537be6285107 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 9

[PATCH 1/2] drm/amdgpu: correct SMU11 SYSPLL0 clock id values

2018-05-27 Thread Evan Quan
Change-Id: I8dfafcce9e4ed6dabb7025a5a822d1135de6cb8a Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/include/atomfirmware.h | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h b/drivers/gpu/d

[PATCH 2/2] drm/amd/powerplay: bug fixs for getsmuclockinfo

2018-05-27 Thread Evan Quan
The .syspll_id and .dfsdid are not initialzed correctly. And le32_to_cpu transfer is needed on the output. Signed-off-by: Evan Quan <evan.q...@amd.com> Change-Id: I491e70b276554f38e1a296970892347474814e75 --- drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 4 +++- 1 file chan

[PATCH] drm/amd/powerplay: initialize uvd/vce powergate status v2

2018-06-20 Thread Evan Quan
On UVD/VCE dpm disabled, the powergate status should be set as true. So that we will not try to gate them(enable dpm for now). v2: added check for uvd/vce powergate status before gating Change-Id: I569a5aa216b5e7d64a2b504f2ff98cc83ca802d5 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd

[PATCH] drm/amd/powerplay: initialize uvd/vce powergate status v3

2018-06-20 Thread Evan Quan
: I569a5aa216b5e7d64a2b504f2ff98cc83ca802d5 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 23 ++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c index 45c8f2d..28b172e 100644

[PATCH 1/2] drm/amd/powerplay: correct smc display config for multi monitor

2018-06-20 Thread Evan Quan
Need to take into account multi-head with synced displays. Change-Id: I2ad53f47ce1dff0fa8f6ae944986567443cca04e Signed-off-by: Evan Quan Acked-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 2/2] drm/amd/powerplay: drop unnecessary uclk hard min setting

2018-06-20 Thread Evan Quan
We don't need to set uclk hard min here because this will be set with other clocks on power state change. Change-Id: I05d28f881f5cff5108b9dea36e95a917d58c123a Signed-off-by: Evan Quan Acked-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 10 -- 1 file changed

[PATCH 1/2] drm/amd/powerplay: retrieve the real-time coreClock values - currently, the coreClock vaule for min/max performance level on raven is hard-coded. - use the real-time vaule retrieved by Get

2017-10-20 Thread Evan Quan
Change-Id: Ic581d8f7acc4ba7b545a611c071815a5c53f8bb5 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 28 ++ 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmg

[PATCH 2/2] drm/amdgpu/psp: prevent page fault by checking write_frame address(v3) - Prevent a possible buffer overflow when updating the ring buffer by bounds checking the command frame against the a

2017-10-20 Thread Evan Quan
v2: update the ring_buffer_end address v3: update the commit log Change-Id: If3b79428b32ffab57b4e75f9c20c2b2d7e600223 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 16 ++-- drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 16 +

[PATCH] drm/amdgpu/psp: fix compile warnings on buffer address print

2017-10-22 Thread Evan Quan
fmt, ##__VA_ARGS__) Change-Id: Ie807eba4594d588561a1d4427ccb2286cc5f5065 Signed-off-by: Evan Quan <evan.q...@amd.com> Reported-by: Rex Zhu <rex@amd.com> --- drivers/gpu/drm/amd/amdgpu/psp_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-

[PATCH 2/4] drm/amd/powerplay: remove unused parameter of phm_start_thermal_controller

2017-12-29 Thread Evan Quan
Change-Id: Id6039cb50b73bdf8a6df37e5383f4bea4ae737ed Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 14 +++--- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 4 ++-- drivers/gpu/drm/amd/powerplay/inc/hardwareman

[PATCH 4/4] drm/amd/powerplay: set pp_num_states as 0 on error situation

2017-12-29 Thread Evan Quan
Change-Id: Ia27af812631666d2c9d54da156fd3451bd738d4b Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/amd_powerplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_power

[PATCH 3/4] drm/amd/powerplay: removed hwmgr_handle_task unused parameter and given a better name for other parameter

2017-12-29 Thread Evan Quan
Change-Id: Iea827bdd8346da1286da8928044fb564c22ca63b Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h| 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 10 +- drivers/gpu/drm/amd/include/kgd_pp_interface.h | 2 +- drivers/g

[PATCH 1/4] drm/amd/powerplay: show the right unit for the temp printed out

2017-12-29 Thread Evan Quan
Change-Id: I30ea29aa85ab89c0017ecb4e0ab469db5ab5c103 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 7/7] drm/amd/powerplay: export the thermal ranges of Carrizo

2018-01-02 Thread Evan Quan
Change-Id: I861e3e6d4ec553171cbf369eca4ac9d834478290 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/d

[PATCH 4/7] drm/amd/powerplay: export thermal range through temp sysfs

2018-01-02 Thread Evan Quan
Change-Id: I903ebb4d75ec0628e9720b6fee915c907e594613 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanage

[PATCH 2/7] drm/amd/powerplay: new cgs interface setting dpm thermal range

2018-01-02 Thread Evan Quan
Change-Id: Ib4156edff8e3daaead720956142d8540df3254d8 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 13 + drivers/gpu/drm/amd/include/cgs_common.h | 7 +++ 2 files changed, 20 insertions(+) diff --git a/drivers/gpu/drm/amd/

[PATCH 5/7] drm/amd/powerplay: export vega10 specific thermal ranges

2018-01-02 Thread Evan Quan
Change-Id: If240a45dd2538e93185802b1fce54fd83de89de0 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/g

[PATCH 6/7] drm/amd/powerplay: export the thermal ranges of VI asics

2018-01-02 Thread Evan Quan
Change-Id: I569179443c73c793153d5c499dd2f203f89e3ca2 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 26 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/g

[PATCH] drm/amd/powerplay: use ffs/fls instead of implementing our own

2018-01-02 Thread Evan Quan
Change-Id: I2683296f7b08cc637ed54b0b4b7db03b8818e658 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 27 -- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_h

[PATCH 1/7] drm/amd/powerplay: correct PP_TemperatureRange member type since negative values are part of the valid range

2018-01-02 Thread Evan Quan
Change-Id: I68bb53691fb2edca66c09391ab5e60357496283c Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c | 4 ++-- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 4 ++-- drivers/gpu/drm/amd/powerplay/inc/power_state.h | 4 +

[PATCH 3/7] drm/amd/powerplay: new hw manager interface for retrieving device specific thermal range

2018-01-02 Thread Evan Quan
Change-Id: Icae6e15c7494d12bf8a194b9f1a352e0dcdef4ed Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h

[PATCH] drm/amd/powerplay: fix compile warning

2018-01-03 Thread Evan Quan
by default] drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hardwaremanager.c:231:9: warning: (near initialization for 'range.min') [enabled by default] Change-Id: I321ef2f0c5fe3ff27c0414145b53c0e0250bf837 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay

[PATCH 1/3] drm/amd/powerplay: export vega10 specific thermal ranges (V2)

2018-01-03 Thread Evan Quan
V2: new header file to hold the common SMU7Thermal structure Change-Id: If240a45dd2538e93185802b1fce54fd83de89de0 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 16 ++ drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h

[PATCH 3/3] drm/amd/powerplay: export the thermal ranges of Carrizo (V2)

2018-01-03 Thread Evan Quan
V2: reuse the SMUThermal structure defined in pp_thermal.h Change-Id: I861e3e6d4ec553171cbf369eca4ac9d834478290 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/d

[PATCH 2/3] drm/amd/powerplay: export the thermal ranges of VI asics (V2)

2018-01-03 Thread Evan Quan
V2: move the SMU7Thermal structure to newly created header file Change-Id: I569179443c73c793153d5c499dd2f203f89e3ca2 Signed-off-by: Evan Quan <evan.q...@amd.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 21 + drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h

[PATCH 08/13] drm/amd/powerplay: correct smc display config setting

2018-06-19 Thread Evan Quan
Multi monitor situation should be taked into consideration. Also, there is no need to setup UCLK hard min clock level. Change-Id: Icf1bc9b420a4048d9071e386308d30999491 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 13 ++--- 1 file changed, 2

[PATCH 13/13] drm/amd/powerplay: cosmetic fix

2018-06-19 Thread Evan Quan
Fix coding style and drop unused variable. Change-Id: I9630f39154ec6bc30115e75924b35bcbe028a1a4 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 10 +++--- .../gpu/drm/amd/powerplay/inc/vega12/smu9_driver_if.h | 18 +- 2 files changed

[PATCH 12/13] drm/amd/powerplay: correct vega12 thermal support as true

2018-06-19 Thread Evan Quan
Thermal support is enabled on vega12. Change-Id: I7069a65c6b289dbfe4a12f81ff96e943e878e6fa Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c b/drivers/gpu/drm

[PATCH 11/13] drm/amd/powerplay: set vega12 pre display configurations

2018-06-19 Thread Evan Quan
PPSMC_MSG_NumOfDisplays is set as 0 and uclk is forced as highest. Change-Id: I2400279d3c979d99f4dd4b8d53f051cd8f8e0c33 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH 04/13] drm/amd/powerplay: revise default dpm tables setup

2018-06-19 Thread Evan Quan
Initialize the soft/hard min/max level correctly and handle the dpm disabled situation. Change-Id: I9a1d303ee54ac4c9687f72c86097b008ae398c05 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 334 - 1 file changed, 132 insertions(+), 202

[PATCH 05/13] drm/amd/powerplay: retrieve all clock ranges on startup

2018-06-19 Thread Evan Quan
So that we do not need to use PPSMC_MSG_GetMin/MaxDpmFreq to get the clock ranges on runtime. Since that causes some problems. Change-Id: Ia0d6390c976749538b35c8ffde5d1e661b4944c0 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 69

[PATCH 06/13] drm/amd/powerplay: revise clock level setup

2018-06-19 Thread Evan Quan
Make sure the clock level set only on dpm enabled. Also uvd/vce/soc clock also changed correspondingly. Change-Id: I1db2e2ac355fd5aea1c0a25c2b140d039a590089 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 318 ++--- 1 file changed, 211

[PATCH 10/13] drm/amd/powerplay: apply clocks adjust rules on power state change

2018-06-19 Thread Evan Quan
The clocks hard/soft min/max clock levels will be adjusted correspondingly. Change-Id: I2c4b6cd6756d40a28933f0c26b9e1a3d5078bab8 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 162 + drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h | 2

[PATCH 09/13] drm/amd/powerplay: correct vega12 max num of dpm level

2018-06-19 Thread Evan Quan
Use MAX_NUM_CLOCKS instead of VG12_PSUEDO* macros for the max number of dpm levels. Change-Id: Ida49f51777663a8d68d05ddcd41f4df0d8e61481 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff

[PATCH 01/13] drm/amd/powerplay: correct vega12 bootup values settings

2018-06-19 Thread Evan Quan
The vbios firmware structure changed between v3_1 and v3_2. So, the code to setup bootup values needs different paths based on header version. Change-Id: I15140c4d80a91022f66a5052f4b9303fdab4ed9d Signed-off-by: Evan Quan Acked-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr

[PATCH 02/13] drm/amd/powerplay: smc_dpm_info structure change

2018-06-19 Thread Evan Quan
A new member Vr2_I2C_address is added. Change-Id: I9821365721c9d73e1d2df2f65dfa97f39f0425c6 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/include/atomfirmware.h | 5 - drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 2 ++ drivers/gpu/drm/amd/powerplay

[PATCH 03/13] drm/amd/powerplay: drop the acg fix

2018-06-19 Thread Evan Quan
This workaround is not needed any more. Change-Id: I81cb20ecd52d242af26ca32860baacdb5ec126c9 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr

[PATCH 07/13] drm/amd/powerplay: initialize uvd/vce powergate status

2018-06-19 Thread Evan Quan
On UVD/VCE dpm disabled, the powergate status should be set as true. Change-Id: I569a5aa216b5e7d64a2b504f2ff98cc83ca802d5 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amd/powerplay: set correct base for THM/NBIF/MP1 IP

2018-08-16 Thread Evan Quan
Set correct address base for vega20. Change-Id: I7435980e2ca156ee2b443a97899d40aaba4876cb Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c b/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amdgpu: fix sdma doorbell range setting

2018-08-21 Thread Evan Quan
Use the old doorbell range setting until the driver is able to support more sdma queues. Change-Id: I80fc067fc64878d3c7dc3d38bbe1c6c94bec397f Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH] drm/amd/powerplay: expose vega20 OD features

2018-08-24 Thread Evan Quan
Vega20 simplifies the OD logics and it can not fit old OD interfaces. Thus we design new OD interfaces for vega20. Change-Id: I888faec46a81287ae24f452ce16b42c1f6d06d7d Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 8 + drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

[PATCH] drm/amd/powerplay: added vega20 overdrive support

2018-08-29 Thread Evan Quan
Vega20 supports only sclk voltage overdrive. And user can only tell three groups of . SMU firmware will recalculate the frequency/voltage curve. Other intermediate levles will be stretched/shrunk accordingly. Change-Id: I403cb38a95863db664cf06d030ac42a19bff6b33 Signed-off-by: Evan Quan

[PATCH 1/3] drm/amd/powerplay: slow UCLK switch when multiple displays not in sync

2018-07-19 Thread Evan Quan
Slow switch for UCLK when there is multiple displays and they are not in sync. Change-Id: I8a296400d8b96443cc95518905307fc76c9f9e44 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu

[PATCH 2/3] drm/amd/powerplay: correct the argument for PPSMC_MSG_SetUclkFastSwitch

2018-07-19 Thread Evan Quan
The argument was set wrongly. Fast/slow switch was asked when there is actually a slow/fast switch needed. Change-Id: Ibcfdf741dea1700cc3796f84291606231e732f4b Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- drivers/gpu/drm/amd/powerplay/hwmgr

[PATCH 3/3] drm/amd/powerplay: disallow slow switch if NBPState is disabled

2018-07-19 Thread Evan Quan
Otherwise there may be potential SMU performance issues. Change-Id: I05a09bb05407f7b3705d79a1d2c6628385c80461 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 5 - drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 5 - 2 files changed, 8 insertions

[PATCH] drm/amd/powerplay: allow slow switch only if NBPState enabled v2

2018-07-23 Thread Evan Quan
Otherwise there may be potential SMU performance issues. v2: fix commit description and coding style Change-Id: I05a09bb05407f7b3705d79a1d2c6628385c80461 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 3 ++- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c

[PATCH] drm/amd/powerplay: fixed uninitialized value

2018-07-18 Thread Evan Quan
The 'result' is not initialized correctly. It causes the API return an error code even on success. Change-Id: I14aea88b4022b490fb073bc1d4713f4edb96fb46 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm/amd/powerplay: fix compile warning for wrong data type

2018-09-04 Thread Evan Quan
do_div expects the 1st argument in 64bit instead of 32bit. Change-Id: Id2032a43727e7f1fa516d3565354d412a561 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amd/powerplay: fix compile warning for wrong data type V2

2018-09-04 Thread Evan Quan
do_div expects the 1st argument in 64bit instead of 32bit. Drop the usage of do_div as it seems unnecessary. V2: drop usage of do_div completely Change-Id: Id2032a43727e7f1fa516d3565354d412a561 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 4 ++-- 1 file

[PATCH] drm/amd/powerplay: added vega20 overdrive support V3

2018-08-31 Thread Evan Quan
: separate clock from voltage OD settings Change-Id: I403cb38a95863db664cf06d030ac42a19bff6b33 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 45 +++ .../gpu/drm/amd/include/kgd_pp_interface.h| 2 + .../drm/amd/powerplay/hwmgr/vega20_hwmgr.c| 289

[PATCH] drm/amd/powerplay: correct data type to support under voltage

2018-08-29 Thread Evan Quan
For under voltage, negative value will be applied to voltage offset. Update the data type to cover this case. Change-Id: I955da13fd9777320b0605b6b620133d596b573be Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH] drm/amd/powerplay: added vega20 overdrive support V2

2018-08-30 Thread Evan Quan
: I403cb38a95863db664cf06d030ac42a19bff6b33 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c| 30 ++ .../drm/amd/powerplay/hwmgr/vega20_hwmgr.c| 281 +- 2 files changed, 310 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH 07/10] drm/amdgpu: reduce the idle period that RLC has to wait before request CGCG

2018-07-05 Thread Evan Quan
Gfxoff feature may depends on the CGCG(on vega12, that's the case). This change will help to enable gfxoff feature more frequently. Change-Id: I021577e331b7beb19796bd6f5465b867f6038974 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 11 +++ 1 file changed, 7

[PATCH 10/10] drm/amd/powerplay: no need to mask workable gfxoff feature for vega12

2018-07-05 Thread Evan Quan
Gfxoff feature for vega12 is workable. So, there is no need to mask it any more. Change-Id: I7e4d05c5c0acc2aa2b077eaaaf6f13589c87114b Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH 05/10] drm/amdgpu: drop mmRLC_PG_CNTL clear

2018-07-05 Thread Evan Quan
This may break gfxoff support since this register will be set by smc fw(for vega12, that's the case). Change-Id: Id3108c63634a2f941289021bfbd78588c0f6c4d6 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH 08/10] drm/amdgpu: use the accessible target rlc safe mode Apis directly

2018-07-05 Thread Evan Quan
No need to do double dereference to reach the Apis. They are accessible directly. Change-Id: I4b810c5e1981e0810df36a701b20edaf1f6af207 Signed-off-by: Evan Quan --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm

  1   2   3   4   >