[PATCH V2 4/7] drm/amd/pm: move SMU13.0.0 related pptable settings to smu_v13_0_0_ppt.c

2022-09-18 Thread Evan Quan
Separate those ASIC specific settings from common helpers. Signed-off-by: Evan Quan Change-Id: Ie3224b8719d48c6e6936b738df379959bd1df4ad --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c| 1 - .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 16 +--- 2 files changed, 13

[PATCH V2 2/7] drm/amd/pm: drop the pptable related workarounds for SMU 13.0.0

2022-09-18 Thread Evan Quan
The pptable in the vbios is fully ready. The related workarounds in driver are not needed any more. Signed-off-by: Evan Quan Change-Id: I2549cd1acd6eebde361ed8e27d5631bd57644e52 -- v1->v2: - drop unrelated and unnecessary changes(Alex, Guchun) --- .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_

[PATCH V2 3/7] drm/amd/pm: revise the implementations for pptable retrieving

2022-09-18 Thread Evan Quan
Add a new member to flag where to get the pptable. So that, we can separate those ASIC specific ones from common helpers. Signed-off-by: Evan Quan Change-Id: I814db70b5cedc225578bcb4988663de7dcf535af --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 31 drivers/gpu/drm/amd/pm

[PATCH V2 1/7] drm/amd/pm: add support for 3794 pptable for SMU13.0.0

2022-09-18 Thread Evan Quan
Enable 3794 pptable support for SMU13.0.0. Signed-off-by: Evan Quan Change-Id: Ia208531c9eb96611b6136975bcbd8d27007b9e14 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers

[PATCH] drm/amd/pm: add missing SetMGpuFanBoostLimitRpm mapping for SMU 13.0.7

2022-09-01 Thread Evan Quan
Missing SetMGpuFanBoostLimitRpm mapping leads to loading failure for SMU 13.0.7. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I2ea606ad5089b2612069614349c3a228406ef928 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] drm/amd/pm: update SMU 13.0.0 driver_if header

2022-08-22 Thread Evan Quan
To fit the latest 78.53 PMFW. Signed-off-by: Evan Quan Change-Id: I16b36a3c209c82fc2d48325f7e6ef5a702678782 --- .../inc/pmfw_if/smu13_driver_if_v13_0_0.h | 31 +++ drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 2 +- 2 files changed, 19 insertions(+), 14 deletions(-) diff

[PATCH 3/3] drm/amd/pm: add missing ->fini_xxxx interfaces for some SMU13 asics

2022-08-09 Thread Evan Quan
Without these, potential memory leak may be induced. Signed-off-by: Evan Quan Change-Id: Ied7cd204d44d739dece11774c9d29e7a192fd341 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 ++ drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 2 ++ 2 files changed, 4 insertions(+) diff

[PATCH 2/3] drm/amd/pm: add missing ->fini_microcode interface for Sienna Cichlid

2022-08-09 Thread Evan Quan
To avoid any potential memory leak. Signed-off-by: Evan Quan Change-Id: Ide94e85d862c10aae93e04e3ce64c0451e5e1570 --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers

[PATCH 1/3] drm/amdgpu: disable 3DCGCG/CGLS temporarily due to stability issue

2022-08-09 Thread Evan Quan
Some stability issues were reported with these features. Signed-off-by: Evan Quan Change-Id: I5fccae63bd530d6ff9e4167bb1c44319830806f9 --- drivers/gpu/drm/amd/amdgpu/soc21.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/pm: add 3715 softpptable support for SMU13.0.0

2022-08-08 Thread Evan Quan
Add support for 3715 softpptable. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: Iae7360ce853a6b5fde38025d528640c9b88fc54c --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu

[PATCH 2/2] drm/amd/pm: enable GFX ULV feature support for SMU13.0.0

2022-07-26 Thread Evan Quan
The feature is ready with latest firmwares. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I4907ef8c96eb8933db01818d7431afb3778d1afd --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu

[PATCH 1/2] drm/amd/pm: update driver if header for SMU 13.0.0

2022-07-26 Thread Evan Quan
And get the version bumped to 0x2C to match the latest PMFW. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: Ie4bc8fa0831ae6d1735c2dca27331ff6f6229e30 --- .../gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h

[PATCH 2/2] drm/amdgpu: move mes self test after drm sched re-started

2022-07-20 Thread Evan Quan
From: Jack Xiao mes self test rely on vm mapping, move it after drm sched re-started so that vm mapping can work during gpu reset. Signed-off-by: Jack Xiao Acked-and-tested-by: Evan Quan Change-Id: Ib202c04d86191ca47da90d27c2a8cf9e7c8e6732 --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3

[PATCH 1/2] drm/amdgpu: drop non-necessary call trace dump

2022-07-20 Thread Evan Quan
This extra call trace dump comes out in every gpu reset. And it gives people a wrong impression that something went wrong. Although actually there was not. Signed-off-by: Evan Quan Change-Id: I884af405b6b3cd52b9024408a21fd39811a01f4d --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 - 1 file

[PATCH 4/4] drm/amd/pm: revise the driver reloading fix for SMU 13.0.0 and 13.0.7

2022-07-19 Thread Evan Quan
fail issue for smu13") Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Acked-by: Alex Deucher Change-Id: I4e93f08f930ebeb1ed134307e62b4c53a9885066 -- v1->v2: - limit the impacts to legacy ASICs(Hawking) --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 7 --- 1 file changed

[PATCH 2/4] drm/amd/pm: update SMU13.0.0 driver_if header

2022-07-19 Thread Evan Quan
To fit the latest 78.49.0 PMFW. Also, bump the version to 0x2B. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Acked-by: Alex Deucher Change-Id: Icbf79cca25dbfd2850425e9e4afbb77cf1ff28db --- .../drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h| 4 ++-- drivers/gpu/drm/amd/pm

[PATCH 3/4] drm/amd/pm: correct smu 13.0.0/7 mp1 state setup

2022-07-19 Thread Evan Quan
Only PP_MP1_STATE_UNLOAD is supported for now. For other mp1 state, we should just ignore it. Otherwise, there will be errors coming out. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Acked-by: Alex Deucher Change-Id: I15427d6daf14d5c82a6e7f9d32fdea60a80fd0ec --- .../drm/amd/pm/swsmu

[PATCH 1/4] drm/amd/pm: enable GPO feature support for SMU13.0.0

2022-07-19 Thread Evan Quan
The feature is ready with latest firmwares. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Acked-by: Alex Deucher Change-Id: I581a7aae2618134a9d196cd383cdabf3516efec0 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCH V2] drm/amd/display: correct idle_power_optimizations disablement return value

2022-07-06 Thread Evan Quan
ect the return value to reflect the real result of disablement. Fixes: 235c67634230 ("drm/amd/display: add DCN32/321 specific files for Display Core") Signed-off-by: Evan Quan Acked-by: Alex Deucher Change-Id: If87d4cf76f6cfb36d607f051ff32f9c7870b4d6d -- v1->v2: - correct the hash tag

[PATCH] drm/amd/display: correct idle_power_optimizations disablement return value

2022-07-06 Thread Evan Quan
ect the return value to reflect the real result of disablement. Fixes: e40fcd4a ("drm/amd/display: add DCN32/321 specific files for Display Core") Cc: Signed-off-by: Evan Quan Change-Id: If87d4cf76f6cfb36d607f051ff32f9c7870b4d6d --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c |

[PATCH] drm/amd/pm: update SMU 13.0.0 driver_if header

2022-06-30 Thread Evan Quan
And bump the version to 0x2A. Signed-off-by: Evan Quan Change-Id: I2b66b9a289177a979201fca2056ff11e0b81f2bb --- .../gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h | 3 ++- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 2 +- 2 files changed, 3 insertions(+), 2

[PATCH 2/2] drm/amd/pm: enable VR0 HOT support for SMU 13.0.0

2022-06-21 Thread Evan Quan
Enable VR0 Hot support for SMU 13.0.0. Signed-off-by: Evan Quan Acked-by: Alex Deucher Change-Id: I11a642033d6e0885877cf48c1f1e07f30de4622e --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13

[PATCH 1/2] drm/amdgpu: update GFX11 cs settings

2022-06-21 Thread Evan Quan
Update GFX11 cs related settings. Signed-off-by: Evan Quan Acked-by: Alex Deucher Change-Id: If99a46ef4178fb4cd686008038923d3b15efa452 --- drivers/gpu/drm/amd/amdgpu/clearstate_gfx11.h | 307 +- 1 file changed, 158 insertions(+), 149 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 1/2] drm/amd/pm: enable UCLK DS feature for SMU 13.0.0

2022-06-10 Thread Evan Quan
The feature is ready with latest PMFW and IFWI. Signed-off-by: Evan Quan Change-Id: I0b1ea6a32bc092eec4b95118a1442597688ee8d0 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b

[PATCH 2/2] drm/amd/pm: enable MACO support for SMU 13.0.0

2022-06-10 Thread Evan Quan
Enable BAMACO reset support for SMU 13.0.0. Signed-off-by: Evan Quan Change-Id: I67696671c216790a0b6d5b84f7d4b430d734ac3c -- v1->v2: - maximum code sharing around smu13.0.0 and smu13.0.7 --- .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c| 3 +- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_pp

[PATCH V3] drm/amdgpu: enable ASPM support for PCIE 7.4.0/7.6.0

2022-06-07 Thread Evan Quan
Enable ASPM support for PCIE 7.4.0 and 7.6.0. Signed-off-by: Evan Quan Change-Id: Ib3b0e106ff43ad49f0f815e6eeb5c756b6bf4550 -- v1->v2: - support LTR disabled scenario(Lijo) --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c |

[PATCH V2 6/6] drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.0/7

2022-06-05 Thread Evan Quan
PMFW will handle that properly. Driver involvement may cause some unexpected issues. Signed-off-by: Evan Quan Change-Id: I77da7d894485a3ac6a1a956e4d2605d0bc730c25 --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[PATCH V2 5/6] drm/amd/pm: fix compile warnings about redefined MAX_PCIE_CONF

2022-06-05 Thread Evan Quan
m drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:33: drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h:55: note: this is the location of the previous definition 55 | #define MAX_PCIE_CONF 3 Signed-off-by: Evan Quan Change-Id: Iacc4ff4007b74d5db54c1e66cb237e55b70975b0 --- drivers/gpu/

[PATCH V2 4/6] drm/amd/pm: drop redundant declarations

2022-06-05 Thread Evan Quan
Drop those redundant declarations in smu_v13_0.h. Signed-off-by: Evan Quan Change-Id: I54e43d072235f006b937878c126bcd8ef81ea6f7 --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h b

[PATCH V2 3/6] drm/amd/pm: enable mode1 reset support for SMU 13.0.0

2022-06-05 Thread Evan Quan
Fulfill the interfaces for mode1 reset related. Signed-off-by: Evan Quan Change-Id: I03bb1f7f3b88bf304a188bb6939c043805df8f10 -- v1->v2: - drop invalid psp alive check(Lijo) --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 1 + .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c|

[PATCH V2 2/6] drm/amdgpu: avoid to perform undesired clockgating operation

2022-06-05 Thread Evan Quan
Make sure the clockgating feature is supported before action. Otherwise, the feature may be disabled unexpectedly on enablement request. Signed-off-by: Evan Quan Change-Id: Ie20e6c5975c2a0af40dc52189e3df97161300117 --- drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c | 10 -- 1 file changed, 8

[PATCH V2 1/6] drm/amdgpu: enable ASPM support for PCIE 7.4.0/7.6.0

2022-06-05 Thread Evan Quan
Enable ASPM support for PCIE 7.4.0 and 7.6.0. Signed-off-by: Evan Quan Change-Id: Ib3b0e106ff43ad49f0f815e6eeb5c756b6bf4550 --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c| 109

[PATCH] drm/amdgpu: suppress the compile warning about 64 bit type

2022-05-30 Thread Evan Quan
Suppress the compile warning below: drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c:1292 gfx_v11_0_rlc_backdoor_autoload_copy_ucode() warn: should '1 << id' be a 64 bit type? Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Evan Quan Cha

[PATCH] drm/amdgpu: suppress compile warnings

2022-05-30 Thread Evan Quan
prototype for function 'gfx_v11_0_rlc_stop' [-Wmissing-prototypes] Signed-off-by: Evan Quan Change-Id: I679436c91cb98afb9fcbef8942fd90a17e5234b5 --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 12 ++-- 2 files changed

[PATCH] drm/amd/pm: suppress compile warnings about possible unaligned accesses

2022-05-30 Thread Evan Quan
ed, which can lead to unaligned accesses [-Wunaligned-access] Signed-off-by: Evan Quan Change-Id: I855062e987effd563ccc09336caad75f02751bb6 --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0_7_pptable.h | 9 ++--- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0_pptable.h | 9 ++--- drivers/gpu/dr

[PATCH 2/3] drm/amd/pm: update SMU 13.0.0 driver_if header

2022-05-24 Thread Evan Quan
To fit the latest 78.39.0 PMFW. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: Ie8280606729fa8b80a0abf1bc94f16c4b06191d4 -- v1->v2: - coding style fixes(Hawking) --- .../drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h | 6 ++ drivers/gpu/drm/amd/pm/swsmu/

[PATCH 3/3] drm/amd/pm: enable fclk ds feature for SMU 13.0.0

2022-05-24 Thread Evan Quan
The feature is ready with latest 78.39.0 PMFW. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I99096e23ed7ebcd5aaada84b7f11ad9e3d3cd8b8 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu

[PATCH 1/3] drm/amd/pm: correct the way for retrieving current uclk frequency

2022-05-24 Thread Evan Quan
There is some problem with average frequency reading. Thus, we switch to the target frequency reading instead. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I50fd370bbca68159cb1a4f69b05232f907af2bb9 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 +- 1 file

[PATCH] drm/amdgpu: suppress some compile warnings

2022-05-19 Thread Evan Quan
Suppress two compile warnings about "no previous prototype". Reported-by: kernel test robot Signed-off-by: Evan Quan Change-Id: I74d029c6ebd8bf6bc08edada7a992d04786330d8 --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +- drivers/gpu/drm/amd/amdgpu/soc21.c| 1

[PATCH 6/6] drm/amd/pm: enable memory temp reading for SMU 13.0.0

2022-05-16 Thread Evan Quan
With the latest vbios, the memory temp reading is working. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I3b4679f03e5ff7cf8e0b68c095d210e608149fcb --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH 5/6] drm/amd/pm: enable more dpm features for SMU 13.0.0

2022-05-16 Thread Evan Quan
Enable OOB Monitor and SOC CG which are ready since 78.38.0. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Acked-by: Alex Deucher Change-Id: I0d7334106917ac83fff2b673ec7e9eb096089afe --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 3/6] drm/amd/pm: update SMU 13.0.0 driver_if header

2022-05-16 Thread Evan Quan
To align with 78.37.0 and later PMFWs. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I17c3a6b466c921cb5ffe5025a94023fae478c80e --- .../inc/pmfw_if/smu13_driver_if_v13_0_0.h | 22 +-- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 2 +- 2 files changed, 11

[PATCH 2/6] drm/amd/pm: skip dpm disablement on suspend for SMU 13.0.0

2022-05-16 Thread Evan Quan
Since PMFW will handle this properly. Driver involvement is unnecessary. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I19be26eed090d57040553f5cdff9534072f08106 --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm

[PATCH 4/6] drm/amd/pm: correct the softpptable ids used for SMU 13.0.0

2022-05-16 Thread Evan Quan
To better match with the pptable_id settings from VBIOS. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Acked-by: Alex Deucher Change-Id: I3379443067a5df3a2fb04ff1bc48e8c8f28e1c66 --- .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c| 47 ++- 1 file changed, 35 insertions

[PATCH 1/6] drm/amd/pm: enable more dpm features for SMU 13.0.0

2022-05-16 Thread Evan Quan
Enable MP0CLK DPM and FW Dstate since they are already supported by latest 78.36.0 PMFW. Signed-off-by: Evan Quan Reviewed-by: Hawking Zhang Change-Id: I75b6129dab509a51ccaf92bbc0b094eae41ea20f --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 3 +++ 1 file changed, 3 insertions

[PATCH] drm/amd/pm: suppress compile warning about possible unaligned accesses

2022-05-07 Thread Evan Quan
d than 'struct smu_13_0_0_overdrive_table' and is usually due to 'struct smu_13_0_0_powerplay_table' being packed, which can lead to unaligned accesses [-Wunaligned-access] Reported-by: kernel test robot Signed-off-by: Evan Quan Change-Id: Ibba9dbfcc6440d0bdf0fbe0534ce6a82ab6d5d10 --- drivers/g

[PATCH V2] drm/amd/pm: fix the compile warning

2022-04-26 Thread Evan Quan
Fix the compile warning below: drivers/gpu/drm/amd/amdgpu/../pm/legacy-dpm/kv_dpm.c:1641 kv_get_acp_boot_level() warn: always true condition '(table->entries[i]->clk >= 0) => (0-u32max >= 0)' Reported-by: kernel test robot CC: Alex Deucher Signed-off-by: Evan

[PATCH] drm/amd/pm: fix the compile warning

2022-04-24 Thread Evan Quan
Fix the compile warning below: drivers/gpu/drm/amd/amdgpu/../pm/legacy-dpm/kv_dpm.c:1641 kv_get_acp_boot_level() warn: always true condition '(table->entries[i]->clk >= 0) => (0-u32max >= 0)' Reported-by: kernel test robot CC: Alex Deucher Signed-off-by: Evan

[PATCH V2] drm/amd/pm: fix the deadlock issue observed on SI

2022-04-11 Thread Evan Quan
e. Fixes: 3712e7a49459 ("drm/amd/pm: unified lock protections in amdgpu_dpm.c") Reported-by: Paul Menzel Reported-by: Arthur Marsh Link: https: //lore.kernel.org/all/9e689fea-6c69-f4b0-8dee-32c4cf7d8...@molgen.mpg.de/ BugLink: https: //gitlab.freedesktop.org/drm/amd/-/issues/1957 Signe

[PATCH] drm/amd/pm: fix the deadlock issue observed on SI

2022-04-11 Thread Evan Quan
By placing those unrelated code outside of adev->pm.mutex protections or restructuring the call flow, we can eliminate the deadlock issue. This comes with no real logics change. Fixes: 3712e7a49459 ("drm/amd/pm: unified lock protections in amdgpu_dpm.c") Signed-off-by: Evan Qu

[PATCH V3] drm/amdgpu: expand cg_flags from u32 to u64

2022-04-01 Thread Evan Quan
With this, we can support more CG flags. Signed-off-by: Evan Quan Acked-by: Alex Deucher Reviewed-by: Hawking Zhang Change-Id: Iccf13c2f9c570ca6a4654291fc4876556125c3b8 -- v1->v2: - amdgpu_debugfs_gca_config_read: add a new rev to support CG flag upper 32 bits(Alex) v2->v3: - use

[PATCH] drm/amdgpu: expand cg_flags from u32 to u64

2022-03-30 Thread Evan Quan
With this, we can support more CG flags. Signed-off-by: Evan Quan Acked-by: Alex Deucher Change-Id: Iccf13c2f9c570ca6a4654291fc4876556125c3b8 -- v1->v2: - amdgpu_debugfs_gca_config_read: add a new rev to support CG flag upper 32 bits(Alex) --- drivers/gpu/drm/amd/amdgpu/amdgp

[PATCH 12/12] drm/amd/pm: revise the implementations for asic reset

2022-02-10 Thread Evan Quan
Instead of having an interface for every reset method, we replace them with a new interface which can support all reset methods. Signed-off-by: Evan Quan Change-Id: I4c8a7121dd65c2671085673dd7c13cf7e4286f3d --- drivers/gpu/drm/amd/amdgpu/aldebaran.c| 2 +- drivers/gpu/drm/amd/amdgpu

[PATCH 11/12] drm/amd/pm: drop extra non-necessary null pointers checks

2022-02-10 Thread Evan Quan
They are totally redundant. The checks before them can guard they cannot be NULL. Signed-off-by: Evan Quan Change-Id: I9f31734f49a8093582fc321ef3d93233946006e3 --- .../gpu/drm/amd/pm/powerplay/amd_powerplay.c | 182 ++ .../amd/pm/powerplay/hwmgr/hardwaremanager.c | 42

[PATCH 10/12] drm/amd/pm: drop nonsense !smu->ppt_funcs check

2022-02-10 Thread Evan Quan
Since the "smu->ppt_funcs" was already well installed at early_init phase, the checks afterwards make nonsense. Signed-off-by: Evan Quan Change-Id: I07a945035a87b23032e4911bba768edacbd5e65a --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 20 +--- drivers/gpu/drm

[PATCH 09/12] drm/amd/pm: drop redundant !pp_funcs check

2022-02-10 Thread Evan Quan
As it can be covered by the "!adev->pm.dpm_enabled" check. As long as "adev->pm.dpm_enabled != NULL", "pp_funcs != NULL" can be also guarded. Signed-off-by: Evan Quan Change-Id: Iec801f18a0069ad5fd384c4133016977fb2b67e8 --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c

[PATCH 06/12] drm/amd/pm: correct the checks for sriov(pp_one_vf)

2022-02-10 Thread Evan Quan
By setting pm_enabled as false for non pp_one_vf sriov case, we can avoid the check for (amdgpu_sriov_vf(adev) && !amdgpu_sriov_is_pp_one_vf(adev)) in every routine. Signed-off-by: Evan Quan Change-Id: I3859529183cd26dce98c57dc87eab5273ecc949b --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_sm

[PATCH 07/12] drm/amd/pm: correct the checks for granting gpu reset APIs

2022-02-10 Thread Evan Quan
Those gpu reset APIs can be granted when: - System is up and dpm features are enabled. - System is under resuming and dpm features are not yet enabled. Under such scenario, the PMFW is already alive and can support those gpu reset functionalities. Signed-off-by: Evan Quan Change-Id

[PATCH 08/12] drm/amd/pm: add proper check for amdgpu_dpm before granting pp_dpm_load_fw

2022-02-10 Thread Evan Quan
Make sure the interface get granted only when amdgpu_dpm enabled. Signed-off-by: Evan Quan Change-Id: Ia1d1123470fab89b41b24ea80dcb319570aa7438 --- drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 6 ++ drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 3 --- 2 files changed, 6

[PATCH 05/12] drm/amd/pm: move the check for dpm enablement to amdgpu_dpm.c

2022-02-10 Thread Evan Quan
Instead of checking this in every instance(framework), moving that check to amdgpu_dpm.c is more proper. And that can make code clean and tidy. Signed-off-by: Evan Quan Change-Id: I2f83a3b860e8aa12cc86f119011f520fbe21a301 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 5 +- drivers/gpu

[PATCH 04/12] drm/amd/pm: use adev->pm.dpm_enabled for dpm enablement check

2022-02-10 Thread Evan Quan
adev->pm.dpm_enabled instead of hwmgr->pm_en can better reflect whether the dpm features are actually enabled. Signed-off-by: Evan Quan Change-Id: I6896dcee19bb473d26115cdcb12b6efd554b30f9 --- drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c| 39 +++--- drivers/gpu/drm/amd/pm/legacy-dpm/si

[PATCH 03/12] drm/amd/pm: drop unneeded !smu->pm_enabled check

2022-02-10 Thread Evan Quan
As smu->pm_enabled is a prerequisite for adev->pm.dpm_enabled. So, with adev->pm.dpm_enabled set, it can be guarded that smu->pm_enabled is also set. Thus the extra check for "!smu->pm_enabled" is totally unnecessary. Signed-off-by: Evan Quan Change-Id: I6ff67137d447e6a

[PATCH 02/12] drm/amd/pm: drop unused interfaces

2022-02-10 Thread Evan Quan
Drop those interfaces which never get used. Signed-off-by: Evan Quan Change-Id: Ia22d395145a1003faca5ac792dca6a30ef2cae54 --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 13 - drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 5 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 4

[PATCH 01/12] drm/amd/pm: drop unused structure members

2022-02-10 Thread Evan Quan
Drop those members which get never used. Signed-off-by: Evan Quan Change-Id: Iec70ad1dfe2059be26843f378588e6c894e9cae8 --- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm

[PATCH] drm/amd/pm: fix enabled features retrieving on Renoir and Cyan Skillfish

2022-02-09 Thread Evan Quan
For Cyan Skillfish and Renoir, there is no interface provided by PMFW to retrieve the enabled features. So, we assume all features are enabled. Fixes: 7ade3ca9cdb5 ("drm/amd/pm: correct the usage for 'supported' member of smu_feature structure") Signed-off-by: Evan Quan

[PATCH 4/7] drm/amd/pm: fulfill Navi1x implementations for DriverSmuConfig setting

2022-02-07 Thread Evan Quan
Fulfill the implementations for DriverSmuConfig setting on Navi1x. Signed-off-by: Evan Quan Change-Id: I244766a893b4070dfdf171451f6338d33572ec1d --- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/drivers/gpu/drm/amd/pm

[PATCH 6/7] drm/amdgpu: disable MMHUB PG for Picasso

2022-02-07 Thread Evan Quan
MMHUB PG needs to be disabled for Picasso for stability reasons. Signed-off-by: Evan Quan Change-Id: Iea0ec757582a764ab5a000d7cc411fb814ffb19f --- drivers/gpu/drm/amd/amdgpu/soc15.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b

[PATCH 7/7] drm/amd/pm: fix some OEM SKU specific stability issues

2022-02-07 Thread Evan Quan
Add a quirk in sienna_cichlid_ppt.c to fix some OEM SKU specific stability issues. Signed-off-by: Evan Quan Change-Id: I172c6429c54253788dbf28f7acf877375f2bfc5b --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 32 ++- 1 file changed, 31 insertions(+), 1 deletion(-) diff

[PATCH 5/7] drm/amd/pm: fulfill Sienna_Cichlid implementations for DriverSmuConfig setting

2022-02-07 Thread Evan Quan
Fulfill the implementations for DriverSmuConfig setting on Sienna_Cichlid. Signed-off-by: Evan Quan Change-Id: Ic519c8d4fcfeefdda79ba9ed01b235824d76e40f --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 54 +++ 1 file changed, 54 insertions(+) diff --git a/drivers/gpu/drm/amd

[PATCH 2/7] drm/amd/pm: fulfill the support for DriverSmuConfig table

2022-02-07 Thread Evan Quan
Enable the support for DriverSmuConfig table on Navi1x and Sienna_Cichlid. Signed-off-by: Evan Quan Change-Id: Ie510f8b06b7a4910b1574b6e9affa875805ef868 --- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 + drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 9 + .../gpu

[PATCH 3/7] drm/amd/pm: correct the default DriverSmuConfig table settings

2022-02-07 Thread Evan Quan
For Some ASICs, with the PMFW default settings, we may see the power consumption reported via metrics table is "Very Erratic". With the socket power alpha filter set as 10/100ms, we can correct that issue. Signed-off-by: Evan Quan Change-Id: Ia352579e1cc7a531cb1de5c835fe5bf132d5dd20 --

[PATCH 1/7] drm/amd/pm: correct UMD pstate clocks for Dimgrey Cavefish and Beige Goby

2022-02-07 Thread Evan Quan
Correct the UMD pstate profiling clocks for Dimgrey Cavefish and Beige Goby. Signed-off-by: Evan Quan Change-Id: I74fdbcf2cfa11f97ae16e4921449ab7cdb7e43c9 --- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 26 +++ .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.h | 8 ++ 2

[PATCH V3 7/7] drm/amd/pm: revise the implementation of smu_cmn_disable_all_features_with_exception

2022-01-27 Thread Evan Quan
As there is no internal cache for enabled ppfeatures now. Thus the 2nd parameter will be not needed any more. Signed-off-by: Evan Quan Change-Id: I0c1811f216c55d6ddfabdc9e099dc214c21bdf2e --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 9 ++--- drivers/gpu/drm/amd/pm/swsmu/inc

[PATCH V3 6/7] drm/amd/pm: avoid consecutive retrieving for enabled ppfeatures

2022-01-27 Thread Evan Quan
As the enabled ppfeatures are just retrieved ahead. We can use that directly instead of retrieving again and again. Signed-off-by: Evan Quan Change-Id: I08827437fcbbc52084418c8ca6a90cfa503306a9 --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 10 +- 1 file changed, 9 insertions(+), 1

[PATCH V3 5/7] drm/amd/pm: drop the cache for enabled ppfeatures

2022-01-27 Thread Evan Quan
related DPM features. All those are performed without driver's notice. Also considering driver does not actually interact with PMFW such frequently, the benefit brought by such cache is very limited. Signed-off-by: Evan Quan Change-Id: I20ed58ab216e930c7a5d223be1eb99146889f2b3 --- drivers

[PATCH V3 3/7] drm/amd/pm: update the data type for retrieving enabled ppfeatures

2022-01-27 Thread Evan Quan
Use uint64_t instead of an array of uint32_t. This can avoid some non-necessary intermediate uint32_t -> uint64_t conversions. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Change-Id: I4e217357203a23440f058d7e25f55eaebd15c5ef --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c |

[PATCH V3 4/7] drm/amd/pm: correct the usage for 'supported' member of smu_feature structure

2022-01-27 Thread Evan Quan
The supported features should be retrieved just after EnableAllDpmFeatures message complete. And the check(whether some dpm feature is supported) is only needed when we decide to enable or disable it. Signed-off-by: Evan Quan Change-Id: I07c9a5ac5290cd0d88a40ce1768d393156419b5a --- drivers

[PATCH V3 2/7] drm/amd/pm: unify the interface for retrieving enabled ppfeatures

2022-01-27 Thread Evan Quan
Instead of having two which do the same thing. Signed-off-by: Evan Quan Change-Id: I6302c9b5abdb999c4b7c83a0d1852181208b1c1f -- v1->v2: - use SMU IP version check rather than an asic type check(Alex) --- .../amd/pm/swsmu/smu11/cyan_skillfish_ppt.c | 2 +- .../gpu/drm/amd/pm/swsmu/sm

[PATCH V3 1/7] drm/amd/pm: correct the way for retrieving enabled ppfeatures on Renoir

2022-01-27 Thread Evan Quan
As other dGPU asics, Renoir should use smu_cmn_get_enabled_mask() for that job. Signed-off-by: Evan Quan Acked-by: Alex Deucher Change-Id: I9e845ba84dd45d0826506de44ef4760fa851a516 --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH V2 7/7] drm/amd/pm: revise the implementation of smu_cmn_disable_all_features_with_exception

2022-01-25 Thread Evan Quan
As there is no internal cache for enabled ppfeatures now. Thus the 2nd parameter will be not needed any more. Signed-off-by: Evan Quan Change-Id: I0c1811f216c55d6ddfabdc9e099dc214c21bdf2e --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 9 ++--- drivers/gpu/drm/amd/pm/swsmu/inc

[PATCH V2 6/7] drm/amd/pm: avoid consecutive retrieving for enabled ppfeatures

2022-01-25 Thread Evan Quan
As the enabled ppfeatures are just retrieved ahead. We can use that directly instead of retrieving again and again. Signed-off-by: Evan Quan Change-Id: I08827437fcbbc52084418c8ca6a90cfa503306a9 --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 10 +- 1 file changed, 9 insertions(+), 1

[PATCH V2 5/7] drm/amd/pm: drop the cache for enabled ppfeatures

2022-01-25 Thread Evan Quan
related DPM features. All those are performed without driver's notice. Also considering driver does not actually interact with PMFW such frequently, the benefit brought by such cache is very limited. Signed-off-by: Evan Quan Change-Id: I20ed58ab216e930c7a5d223be1eb99146889f2b3 --- drivers

[PATCH V2 4/7] drm/amd/pm: correct the usage for 'supported' member of smu_feature structure

2022-01-25 Thread Evan Quan
The supported features should be retrieved just after EnableAllDpmFeatures message complete. And the check(whether some dpm feature is supported) is only needed when we decide to enable or disable it. Signed-off-by: Evan Quan Change-Id: I07c9a5ac5290cd0d88a40ce1768d393156419b5a --- drivers

[PATCH V2 2/7] drm/amd/pm: unify the interface for retrieving enabled ppfeatures

2022-01-25 Thread Evan Quan
Instead of having two which do the same thing. Signed-off-by: Evan Quan Change-Id: I6302c9b5abdb999c4b7c83a0d1852181208b1c1f --- .../amd/pm/swsmu/smu11/cyan_skillfish_ppt.c | 2 +- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 6 +- .../drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 6

[PATCH V2 1/7] drm/amd/pm: correct the way for retrieving enabled ppfeatures on Renoir

2022-01-25 Thread Evan Quan
As other dGPU asics, Renoir should use smu_cmn_get_enabled_mask() for that job. Signed-off-by: Evan Quan Change-Id: I9e845ba84dd45d0826506de44ef4760fa851a516 --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm

[PATCH 2/2] drm/amd/pm: fix the deadlock observed on performance_level setting

2022-01-25 Thread Evan Quan
The sub-routine(amdgpu_gfx_off_ctrl) tried to obtain the lock adev->pm.mutex which was actually hold by amdgpu_dpm_force_performance_level. A deadlock happened then. Signed-off-by: Evan Quan Change-Id: Id692829381dedc6380f5464d74107d696f7abca1 --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c |

[PATCH 1/2] drm/amd/pm: correct the MGpuFanBoost support for Beige Goby

2022-01-25 Thread Evan Quan
The existing way cannot handle Beige Goby well as a different PPTable data structure(PPTable_beige_goby_t instead of PPTable_t) is used there. Signed-off-by: Evan Quan Change-Id: I02208c011e93c4d37769bd022e65e9084faa97e4 --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 6 +++--- 1

[PATCH 7/7] drm/amd/pm: revise the implementation of smu_cmn_disable_all_features_with_exception

2022-01-20 Thread Evan Quan
As there is no internal cache for enabled ppfeatures now. Thus the 2nd parameter will be not needed any more. Signed-off-by: Evan Quan Change-Id: I0c1811f216c55d6ddfabdc9e099dc214c21bdf2e --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 9 ++--- drivers/gpu/drm/amd/pm/swsmu/inc

[PATCH 6/7] drm/amd/pm: avoid consecutive retrieving for enabled ppfeatures

2022-01-20 Thread Evan Quan
As the enabled ppfeatures are just retrieved ahead. We can use that directly instead of retrieving again and again. Signed-off-by: Evan Quan Change-Id: I08827437fcbbc52084418c8ca6a90cfa503306a9 --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 10 +- 1 file changed, 9 insertions(+), 1

[PATCH 5/7] drm/amd/pm: drop the cache for enabled ppfeatures

2022-01-20 Thread Evan Quan
related DPM features. All those are performed without driver's notice. Also considering driver does not actually interact with PMFW such frequently, the benefit brought by such cache is very limited. Signed-off-by: Evan Quan Change-Id: I20ed58ab216e930c7a5d223be1eb99146889f2b3 --- drivers

[PATCH 3/7] drm/amd/pm: drop the redundant 'supported' member of smu_feature structure

2022-01-20 Thread Evan Quan
As it has exactly the same value as the 'enabled' member and also do the same thing. Signed-off-by: Evan Quan Change-Id: I07c9a5ac5290cd0d88a40ce1768d393156419b5a --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 - drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 - .../gpu/drm/amd/pm

[PATCH 4/7] drm/amd/pm: update the data type for retrieving enabled ppfeatures

2022-01-20 Thread Evan Quan
Use uint64_t instead of an array of uint32_t. This can avoid some non-necessary intermediate uint32_t -> uint64_t conversions. Signed-off-by: Evan Quan Change-Id: I4e217357203a23440f058d7e25f55eaebd15c5ef --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 +- drivers/gpu/drm/amd/pm/sw

[PATCH 2/7] drm/amd/pm: unify the interface for retrieving enabled ppfeatures

2022-01-20 Thread Evan Quan
Instead of having two which do the same thing. Signed-off-by: Evan Quan Change-Id: I6302c9b5abdb999c4b7c83a0d1852181208b1c1f --- .../amd/pm/swsmu/smu11/cyan_skillfish_ppt.c | 2 +- .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 6 +- .../drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 6

[PATCH 1/7] drm/amd/pm: correct the way for retrieving enabled ppfeatures on Renoir

2022-01-20 Thread Evan Quan
As other dGPU asics, Renoir should use smu_cmn_get_enabled_mask() for that job. Signed-off-by: Evan Quan Change-Id: I9e845ba84dd45d0826506de44ef4760fa851a516 --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm

[PATCH V3 1/7] drm/amd/pm: drop unneeded lock protection smu->mutex

2022-01-20 Thread Evan Quan
As all those APIs are already protected either by adev->pm.mutex or smu->message_lock. Signed-off-by: Evan Quan Change-Id: I1db751fba9caabc5ca1314992961d3674212f9b0 -- v1->v2: - optimize the "!smu_table->hardcode_pptable" check(Guchun) - add the lock protection(a

[PATCH] drm/amdgpu: suppress the warning about enum value 'AMD_IP_BLOCK_TYPE_NUM'

2022-01-19 Thread Evan Quan
Suppress the warning below on building htmldocs: drivers/gpu/drm/amd/include/amd_shared.h:103: warning: Enum value 'AMD_IP_BLOCK_TYPE_NUM' not described in enum 'amd_ip_block_type' Fixes: 6ee27ee27ba8 ("drm/amd/pm: avoid duplicate powergate/ungate setting") Signed-off-by: Evan Quan

[PATCH V2 7/7] drm/amd/pm: drop unneeded hwmgr->smu_lock

2022-01-16 Thread Evan Quan
As all those related APIs are already well protected by adev->pm.mutex. Signed-off-by: Evan Quan Change-Id: I36426791d3bbc9d84a6ae437da26a892682eb0cb --- .../gpu/drm/amd/pm/powerplay/amd_powerplay.c | 278 +++--- drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h | 1 - 2 fi

[PATCH V2 6/7] drm/amd/pm: drop unneeded feature->mutex

2022-01-16 Thread Evan Quan
As all those related APIs are already well protected by adev->pm.mutex. Signed-off-by: Evan Quan Change-Id: Ia2c752ff22e8f23601484f48b66151cfda8c01b5 --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 - drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 - .../gpu/drm/amd/pm/swsmu/sm

[PATCH V2 5/7] drm/amd/pm: drop unneeded smu_baco->mutex

2022-01-16 Thread Evan Quan
As those APIs related are already well protected by adev->pm.mutex. Signed-off-by: Evan Quan Change-Id: I8a7d8da5710698a98dd0f7e70c244be57474b573 --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 - drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 - .../gpu/drm/amd/pm/swsmu/sm

[PATCH V2 4/7] drm/amd/pm: drop unneeded smu->sensor_lock

2022-01-16 Thread Evan Quan
As all those related APIs are already well protected by adev->pm.mutex and smu->message_lock. Signed-off-by: Evan Quan Change-Id: I20974b2ae68d63525bc7c7f406fede2971c5fecc --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 - drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu

<    1   2   3   4   5   6   7   8   9   10   >