[PATCH 2/2] drm/amd/amdgpu: disable ASPM in some situations

2025-04-05 Thread Kenneth Feng
disable ASPM with some ASICs on some specific platforms. required from PCIe controller owner. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b

[PATCH 1/2] drm/amd/amdgpu: decouple ASPM with pcie dpm

2025-04-01 Thread Kenneth Feng
ASPM doesn't need to be disabled if pcie dpm is disabled. So ASPM can be independantly enabled. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/dr

[PATCH] drm/amd/display: port the workload profile setting logic into dm

2025-03-25 Thread Kenneth Feng
reset the workload type. It is fine that when DAL's work task exits the MALL optimization, it does not set back the workload type to 3d fullscreen or compute since the work task in base driver can make sure the workload type can be set back once there are jobs in the ring. Signed-off-by: Ken

[PATCH] drm/amd/amdgpu: Revert "drm/amd/amdgpu: shorten the gfx idle worker timeout"

2025-03-18 Thread Kenneth Feng
This reverts commit b00fb9765ea4b05198d67256118445c6f13f9ddf. Reason for revert: this causes some tests fail with call trace. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH 1/2] drm/amd/amdgpu: shorten the gfx idle worker timeout

2025-03-15 Thread Kenneth Feng
Shorten the gfx idle worker timeout. This is to sync with DAL when there is no activity on the screen. Original 1 second can not sync with DAL, so DAL can not apply MALL when the workload type is not bootup default. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2

[PATCH 2/2] drm/amd/pm: prevent skipping the workload setting back to bootup default

2025-03-11 Thread Kenneth Feng
This is a bug fix. The scenario is that the same client can add the certain workload type refcount multiple times. Then the same client can not remove this setting when it wants to get back to the default bootup workload. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

[PATCH] drm/amd/display: reset the workload type when using MALL

2025-03-07 Thread Kenneth Feng
the thread to detect the ring jobs and can set back to the 3D fullscreen later. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c

[PATCH] drm/amd/pm: always allow ih interrupt from fw

2025-02-28 Thread Kenneth Feng
always allow ih interrupt from fw on smu v14 based on the interface requirement Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c b

[PATCH] drm/amd/pm: add fan abnormal detection

2025-02-26 Thread Kenneth Feng
add fan abnormal detection on smu v14.0.2&smu v14.0.3 Signed-off-by: Kenneth Feng --- .../gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c| 52 +++ 1 file changed, 52 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c b/drivers/gpu/drm/amd/pm/swsmu/s

[PATCH] drm/amd/pm: disable gfxoff on the specific sku

2025-02-26 Thread Kenneth Feng
disable gfxoff on the specific sku based on the requirement Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13

[PATCH] drm/amd/pm: disable gfxoff on the specific sku

2025-02-25 Thread Kenneth Feng
disable gfxoff on the specific sku based on the requirement. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index

[PATCH] drm/amd/pm: extend the gfxoff delay for compute workload

2025-02-14 Thread Kenneth Feng
extend the gfxoff delay for compute workload on smu 14.0.2/3 to fix the kfd test issue. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 +++ drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 14 ++ drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 1

[PATCH] drm/amd/amdgpu: change the config of cgcg on gfx12

2025-01-19 Thread Kenneth Feng
change the config of cgcg on gfx12 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c index 2a7199880041..16842fa8dae0 100644

[PATCH] drm/amdgpu: disable gfxoff with the compute workload on gfx12

2025-01-09 Thread Kenneth Feng
Disable gfxoff with the compute workload on gfx12. This is a workaround for the opencl test failure. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b

[PATCH] drm/amdgpu: disable gfxoff with the compute workload on gfx12

2025-01-09 Thread Kenneth Feng
Disable gfxoff with the compute workload on gfx12. This is a workaround for the opencl test failure. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b

[PATCH v3] drm/amd/pm: add the interface to set and save the bootup workload type

2025-01-07 Thread Kenneth Feng
add the interface to set and save the bootup workload type v2: add is_support_sw_smu check and pm mutex lock. v3: return before the scoreboard is set. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 44 +++ drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h

[PATCH v2 1/2] drm/amd/pm: add the interface to set and save the bootup workload type

2025-01-07 Thread Kenneth Feng
add the interface to set and save the bootup workload type v2: add is_support_sw_smu check and pm mutex lock. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 39 +++ drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 3 ++ drivers/gpu/drm/amd/pm

[PATCH v2 2/2] drm/amd/display: set the workload based on MALL status

2025-01-07 Thread Kenneth Feng
set the workload based on MALL status Signed-off-by: Kenneth Feng --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c b/drivers/gpu/drm/amd/display

[PATCH 2/2] drm/amd/display: set the workload based on MALL status

2024-12-25 Thread Kenneth Feng
set the workload based on MALL status Signed-off-by: Kenneth Feng --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c b/drivers/gpu/drm/amd/display

[PATCH 1/2] drm/amd/pm: add the interface to set and save the bootup workload type

2024-12-25 Thread Kenneth Feng
add the interface to set and save the bootup workload type Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 27 +++ drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 3 +++ drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + drivers/gpu/drm/amd/pm

[PATCH] drm/amd/pm: Initialize power profile mode

2024-12-04 Thread Kenneth Feng
From: Lijo Lazar Refactor such that individual SMU IP versions can choose the startup power profile mode. If no preference, then use the generic default power profile selection logic. Signed-off-by: Lijo Lazar --- .../gpu/drm/amd/include/kgd_pp_interface.h| 1 + drivers/gpu/drm/amd/pm/sws

[PATCH v2] drm/amd/pm: Set SMU v13.0.7 default workload type

2024-12-04 Thread Kenneth Feng
erformance for the lightweighted/medium workload. For the high workload, the performance is the same between 3D fullscreen mode and bootup mode. v2: set the default workload in ASIC specific file Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 + 1 file

[PATCH] drm/amd/pm: set the default workload type to bootup type on smu v13.0.7

2024-12-03 Thread Kenneth Feng
erformance for the lightweighted/medium workload. For the high workload, the performance is the same between 3D fullscreen mode and bootup mode. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/g

[PATCH] drm/amd/pm: skip the power source check on smu v14.0.2/3

2024-11-18 Thread Kenneth Feng
skip the power source check on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c index

[PATCH v2] drm/amd/pm: disable pcie speed switching on Intel platform for smu v14.0.2/3

2024-11-18 Thread Kenneth Feng
disable pcie speed switching on Intel platform for smu v14.0.2/3 based on Intel's requirement. v2: align the setting with smu v13. Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 26 --- 1 file changed, 23 insertions(+), 3 deletions(-) diff

[PATCH] drm/amdgpu/pm: skip the power source check on smu v14.0.2/3

2024-11-18 Thread Kenneth Feng
skip the power source check on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c index 5460f8e62264

[PATCH] drm/amdgpu/pm: add gen5 display to the user on smu v14.0.2/3

2024-11-18 Thread Kenneth Feng
add gen5 display to the user on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c| 8 ++-- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h | 2 +- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c | 2 +- drivers/gpu/drm/amd/pm/swsmu

[PATCH] drm/amd/pm: disable pcie speed switching on Intel platform for smu v14.0.2/3

2024-11-18 Thread Kenneth Feng
disable pcie speed switching on Intel platform for smu v14.0.2/3 based on Intel's requirement. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt

[PATCH] drm/amd/pm: always pick the pptable from IFWI

2024-10-31 Thread Kenneth Feng
always pick the pptable from IFWI on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 65 +-- 1 file changed, 1 insertion(+), 64 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm

[PATCH v5] drm/amd/pm: correct the workload setting

2024-10-30 Thread Kenneth Feng
real workload mask is combined with driver workload mask and end user workload mask. v3: apply this to the other ASICs as well. v4: simplify the code v5: refine the code based on the review comments. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 49

[PATCH v4] drm/amd/pm: correct the workload setting

2024-10-30 Thread Kenneth Feng
real workload mask is combined with driver workload mask and end user workload mask. v3: apply this to the other ASICs as well. v4: simplify the code Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 39 --- drivers/gpu/drm/amd/pm/swsmu/inc

[PATCH v3] drm/amd/pm: correct the workload setting

2024-10-29 Thread Kenneth Feng
real workload mask is combined with driver workload mask and end user workload mask. v3: apply this to the other ASICs as well. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 43 +-- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 5 ++- .../gpu

[PATCH v2] drm/amd/pm: correct the workload setting

2024-10-24 Thread Kenneth Feng
real workload mask is combined with driver workload mask and end user workload mask. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 44 +-- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 5 ++- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 31

[PATCH] drm/amd/pm: correct the workload setting

2024-10-22 Thread Kenneth Feng
Correct the workload setting in order not to mix the setting with the end user. Update the workload mask accordingly. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 17 ++-- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 4 +- .../drm/amd/pm/swsmu/smu13

[PATCH v2] drm/amd/pm: update deep sleep status on smu v14.0.2/3

2024-10-16 Thread Kenneth Feng
disable deep sleep during the compute workload for the potential performance loss on smu v14.0.2/3 V2: consider the case when the compute workload is set twice Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 10 +- 1 file changed, 9 insertions

[PATCH] drm/amd/pm: update deep sleep status on smu v14.0.2/3

2024-10-16 Thread Kenneth Feng
disable deep sleep during the compute workload for the potential performance loss on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14

[PATCH] drm/amd/pm: update overdrive function on smu 14.0.2/3

2024-10-11 Thread Kenneth Feng
update overdrive function on smu 14.0.2/3 Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 61 ++- 1 file changed, 19 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu

[PATCH] drm/amd/pm: update the driver-fw interface file for smu v14.0.2/3

2024-10-10 Thread Kenneth Feng
update the driver-fw interface file for smu v14.0.2/3 Signed-off-by: Kenneth Feng --- .../swsmu/inc/pmfw_if/smu14_driver_if_v14_0.h | 132 +++--- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h | 2 +- 2 files changed, 85 insertions(+), 49 deletions(-) diff --git a/drivers/gpu/drm

[PATCH] drm/amd/pm: update workload mask after the setting

2024-09-20 Thread Kenneth Feng
update workload mask after the setting, to fix: https://gitlab.freedesktop.org/drm/amd/-/issues/3625 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 6 +- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 3 +++ drivers/gpu/drm/amd/pm/swsmu/smu14

[PATCH] drm/amd/pm: fix the pp_dpm_pcie issue on smu v14.0.2/3

2024-09-06 Thread Kenneth Feng
fix the pp_dpm_pcie issue on smu v14.0.2/3 as below: 0: 2.5GT/s, x4 250Mhz 1: 8.0GT/s, x4 616Mhz * 2: 8.0GT/s, x4 1143Mhz * the middle level can be removed since it is always skipped on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 3 +++ 1

[PATCH] drm/amd/pm: update the features set on smu v14.0.2/3

2024-09-05 Thread Kenneth Feng
update the features set on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 11 ++- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 9 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amd/pm: add guard band interface on smu v14.0.2/3

2024-08-19 Thread Kenneth Feng
add guard band interface on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- .../gpu/drm/amd/include/kgd_pp_interface.h| 1 + drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 19 +++ drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 3 +++ drivers/gpu/drm/amd/pm/swsmu

[PATCH] drm/amd/pm: update message interface for smu v14.0.2/3

2024-08-19 Thread Kenneth Feng
update message interface for smu v14.0.2/3 Signed-off-by: Kenneth Feng --- .../pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h | 18 ++ .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 1 - 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu

[PATCH] drm/amd/amdgpu: add HDP_SD support on gc 12.0.0/1

2024-08-07 Thread Kenneth Feng
add HDP_SD support on gc 12.0.0/1 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/soc24.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c index 7d641d0dadba..b0c3678cfb31 100644 --- a/drivers/gpu/drm/amd

[PATCH] drm/amd/pm: add overdrive support on smu v14.0.2/3

2024-07-29 Thread Kenneth Feng
add overdrive support on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- .../gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c| 11 +- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 888 +- 2 files changed, 896 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu

[PATCH] drm/amd/pm: update powerplay structure on smu v14.0.2/3

2024-07-28 Thread Kenneth Feng
update powerplay structure on smu v14.0.2/3 Signed-off-by: Kenneth Feng --- .../amd/pm/swsmu/inc/smu_v14_0_2_pptable.h| 53 +-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0_2_pptable.h b/drivers/gpu/drm/amd/pm

[PATCH] amdgpu/pm: support gpu_metrics sysfs interface for smu v14.0.2/3

2024-07-03 Thread Kenneth Feng
support gpu_metrics sysfs interface for smu v14.0.2/3 Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 86 ++- 1 file changed, 84 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm

[PATCH 2/2] Revert "drm/amd/amdgpu: add module parameter for jpeg"

2024-06-19 Thread Kenneth Feng
Doorbell needs to be configured after power up during each playback Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 3 files changed, 8 deletions

[PATCH 1/2] Revert "drm/amd/pm: workaround to pass jpeg unit test"

2024-06-19 Thread Kenneth Feng
playback Doorbell needs to be configured after power up during each playback Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 +- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 30 +-- 2 files changed, 2 insertions(+), 31 deletions(-) diff

[PATCH 2/2] drm/amd/pm: enable thermal alert on smu 14.0.2/3

2024-05-15 Thread Kenneth Feng
enable thermal alert on smu 14.0.2/3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h | 8 +++ .../gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c| 68 ++- .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 35 +- 3 files changed, 108 insertions

[PATCH 1/2] drm/amd/amdgpu: add thm 14.0.2 header file

2024-05-15 Thread Kenneth Feng
add thm 14.0.2 header file v2: add license, update to latest changes (Alex) Signed-off-by: Kenneth Feng Signed-off-by: Alex Deucher --- .../include/asic_reg/thm/thm_14_0_2_offset.h | 228 + .../include/asic_reg/thm/thm_14_0_2_sh_mask.h | 940 ++ 2 files changed, 1168

[PATCH 2/2] drm/amd/amdgpu: use the default reset for ras recovery

2024-04-29 Thread Kenneth Feng
use the default reset for ras recovery Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index a037e8fba29f..f92b2c4f0d5c 100644

[PATCH 1/2] drm/amd/amdgpu: customized the reset to skip soft recovery

2024-04-29 Thread Kenneth Feng
customized the reset to skip soft recovery Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm

[PATCH] drm/amd/pm: fix the high voltage issue after unload

2024-03-27 Thread Kenneth Feng
fix the high voltage issue after unload on smu 13.0.10 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 26 ++ drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 27 +-- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 + .../drm/amd

[PATCH] drm/amd/pm: denote S to the deep sleep clock

2024-02-07 Thread Kenneth Feng
denote S to the deep sleep clock for the clock output on smu v13.0.0/v13.0.7/v13.0.10 Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 27 +-- .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 27 +-- 2 files changed, 38 insertions

[PATCH] drm/amd/pm: denote S to the actual clock

2024-02-07 Thread Kenneth Feng
denote S to the actual clock in smu v13.0.0/v13.0.7/v13.0.10 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 12 ++-- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 12 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff

[PATCH] drm/amd/pm: update the power cap setting

2024-01-19 Thread Kenneth Feng
update the power cap setting for smu_v13.0.0/smu_v13.0.7 Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 54 ++- .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 54 ++- 2 files changed, 104 insertions(+), 4 deletions(-) diff --git

[PATCH] drm/amd/pm: add power save mode workload for smu 13.0.10

2023-12-12 Thread Kenneth Feng
add power save mode workload for smu 13.0.10, so that in compute mode, pmfw will add 35mv voltage margin since some applications requres higher voltages. Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 23 +++ 1 file changed, 13 insertions(+), 10

[PATCH v2] drm/amd/pm: fix the high voltage and temperature issue

2023-10-25 Thread Kenneth Feng
fix the high voltage and temperature issue after the driver is unloaded on smu 13.0.0, smu 13.0.7 and smu 13.0.10 v2 - fix the code format and make sure it is used on the unload case only. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 25

[PATCH v2] drm/amd/pm: fix the high voltage and temperature issue

2023-10-24 Thread Kenneth Feng
fix the high voltage and temperature issue after the driver is unloaded on smu 13.0.0, smu 13.0.7 and smu 13.0.10 v2 - fix the code format and make sure it is used on the unload case only. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 36

[PATCH] drm/amd/amdgpu: avoid to disable gfxhub interrupt when driver is unloaded

2023-10-23 Thread Kenneth Feng
avoid to disable gfxhub interrupt when driver is unloaded on gmc 11 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c index

[PATCH] drm/amd/pm: fix the high voltage and temperature issue on smu 13

2023-10-20 Thread Kenneth Feng
fix the high voltage and temperature issue after the driver is unloaded on smu 13.0.0, smu 13.0.7 and smu 13.0.10 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 36 +++ drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c| 4 +-- drivers/gpu/drm/amd

[PATCH] drm/amd/pm: workaround for the wrong ac power detection on smu 13.0.0

2023-08-24 Thread Kenneth Feng
workaround for the wrong ac power detection on smu 13.0.0 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 3 +-- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH] drm/amd/pm: allow the user to force BACO on smu v13.0.0/7

2023-08-15 Thread Kenneth Feng
allow the user to force BACO on smu v13.0.0/7 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 +- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 3 ++- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 3 ++- 3 files changed, 5 insertions

[PATCH] drm/amd/pm: add unique_id for gc 11.0.3

2023-08-10 Thread Kenneth Feng
drm/amd/pm: add unique_id for gc 11.0.3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 5aed023f7402..c69701da94ea 100644 --- a/drivers/gpu/drm

[PATCH v2] drm/amd/pm: disallow the fan setting if there is no fan on smu 13.0.0

2023-08-09 Thread Kenneth Feng
drm/amd/pm: disallow the fan setting if there is no fan on smu 13.0.0 V2: depend on pm.no_fan to check Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13

[PATCH] drm/amd/pm: disallow the fan setting if there is no fan on smu13

2023-08-08 Thread Kenneth Feng
disallow the fan setting if there is no fan on smu13 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu13

[PATCH] drm/amd/pm: correct the pcie width for smu 13.0.0

2023-07-27 Thread Kenneth Feng
correct the pcie width value in pp_dpm_pcie for smu 13.0.0 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm

[PATCH] drm/amd/pm: add abnormal fan detection for smu 13.0.0

2023-06-19 Thread Kenneth Feng
add abnormal fan detection for smu 13.0.0 Signed-off-by: Kenneth Feng --- 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/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c index

[PATCH v2] drm/amd/pm: workaround for compute workload type on some skus

2023-06-08 Thread Kenneth Feng
On smu 13.0.0, the compute workload type cannot be set on all the skus due to some other problems. This workaround is to make sure compute workload type can also run on some specific skus. v2: keep the variable consistent Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu13

[PATCH] drm/amd/pm: workaround for compute workload type on some skus

2023-06-08 Thread Kenneth Feng
On smu 13.0.0, the compute workload type cannot be set on all the skus due to some other problems. This workaround is to make sure compute workload type can also run on some specific skus. Signed-off-by: Kenneth Feng --- .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 26 +++ 1

[PATCH] drm/amd/pm: update smu-driver if header for smu 13.0.0 and smu 13.0.10

2023-06-04 Thread Kenneth Feng
update smu-driver if header for smu 13.0.0 and smu 13.0.10 Signed-off-by: Kenneth Feng Change-Id: I540aaa99fac2216f2d1a28fd79c68dd77a495f8b --- .../inc/pmfw_if/smu13_driver_if_v13_0_0.h | 33 ++- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm

[PATCH] drm/amd/pm: re-enable ac/dc on smu_v13_0_0/10

2023-02-14 Thread Kenneth Feng
re-enable ac/dc on smu_v13_0_0/10 Signed-off-by: Kenneth Feng --- 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/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c index

[PATCH] drm/amd/amdgpu: implement mode2 reset on smu_v13_0_10

2023-02-09 Thread Kenneth Feng
implement mode2 reset on smu_v13_0_10 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 7 + drivers/gpu/drm/amd/amdgpu/smu_v13_0_10.c | 303 ++ drivers/gpu/drm/amd/amdgpu/smu_v13_0_10.h

[PATCH] drm/amd/amdgpu: enable athub cg on gc 11.0.3

2023-02-01 Thread Kenneth Feng
enable athub cg on gc 11.0.3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/soc21.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 2ea0b9142868..0615fdbf0a64 100644 --- a/drivers

[PATCH] drm/amd/pm: skip disabling all smu features on smu_v13_0_10 in suspend

2022-11-09 Thread Kenneth Feng
skip disabling all smu features on smu_v13_0_10 in suspend Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index 4fe75dd2b329

[PATCH v2] drm/amd/pm: enable mode1 reset on smu_v13_0_10

2022-11-07 Thread Kenneth Feng
enable mode1 reset and prioritize debug port on msu_v13_0_10 as a more reliable message processing v2 - move mode1 reset callback to smu_v13_0_0_ppt.c Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/soc21.c| 1 + drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 4

[PATCH] drm/amd/amdgpu: temporary workaround to skip ras error for gc_v11_0_3

2022-11-02 Thread Kenneth Feng
temporary workaround to skip ras error for gc_v11_0_3 until IFWI release later Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/amdgpu: skip ras late init if it is not supported

2022-11-02 Thread Kenneth Feng
skip ras late init on gc_11_0_3 if it is not supported, in order to prevent the hardware init exception. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers

[PATCH] drm/amd/pm: allow gfxoff on gc_11_0_3

2022-10-20 Thread Kenneth Feng
allow gfxoff on gc_11_0_3 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

[PATCH 2/2] drm/amd/pm: enable thermal alart on smu_v13_0_10

2022-10-14 Thread Kenneth Feng
enable thermal alart on smu_v13_0_10 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c index 3d436e7f6e95

[PATCH 1/2] drm/amd/pm: update driver-if header for smu_v13_0_10

2022-10-14 Thread Kenneth Feng
update driver-if header for smu_v13_0_10 and merge with smu_v13_0_0 Signed-off-by: Kenneth Feng --- .../inc/pmfw_if/smu13_driver_if_v13_0_0.h | 87 +++ drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 3 +- .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c| 6 +- 3 files

[PATCH] drm/amd/pm: improve BAMACO code for smu_v13_0

2022-08-22 Thread Kenneth Feng
For runtime pm case: 1. prompt in dmesg for BAMACO feature test 2. set BACO by defatul and the user can select BAMACO Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c| 7 ++ drivers/gpu/drm/amd/amdgpu

[PATCH] drm/amd/pm: add mode1 support on smu_v13_0_7

2022-08-11 Thread Kenneth Feng
add mode1 support since it's missing on smu_v13_0_7 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/

[PATCH] drm/amd/amdgpu: add ih cg and hdp sd on smu_v13_0_7

2022-08-10 Thread Kenneth Feng
add ih cg and hdp sd on smu_v13_0_7 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/soc21.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index bbbf760f8ad2..686e17770c63 100644 --- a

[PATCH] drm/amd/pm: skip pptable override for smu_v13_0_7

2022-08-09 Thread Kenneth Feng
skip pptable override for smu_v13_0_7 secure boards only. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu

[PATCH] drm/amd/pm: update driver if header for smu_13_0_7

2022-07-20 Thread Kenneth Feng
update driver if header for smu_13_0_7 Signed-off-by: Kenneth Feng --- .../inc/pmfw_if/smu13_driver_if_v13_0_7.h | 24 --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 2 +- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc

[PATCH] drm/amd/pm: enable gfx ulv and gpo on smu_v13_0_7

2022-07-19 Thread Kenneth Feng
enable gfx ulv and gpo on smu_v13_0_7 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c index

[PATCH] drm/amd/pm: enable mode1 reset for smu_v13_0_7

2022-07-16 Thread Kenneth Feng
enable mode1 reset for smu_v13_0_7 since it's missing. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/soc21.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21

[PATCH] drm/amd/pm: ac/dc change for smu_v13_0

2022-07-07 Thread Kenneth Feng
fixed the issue: gpu runs in dc mode but it is expected to be in ac mode. this causes the lower performance on smu_v13_0 Signed-off-by: Kenneth Feng --- .../pm/swsmu/inc/pmfw_if/smu_v13_0_7_ppsmc.h | 9 -- drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h | 1 + .../gpu/drm/amd/pm/swsmu

[PATCH 5/5] drm/amd/pm: support BAMACO reset on smu_v13_0_7

2022-06-08 Thread Kenneth Feng
support BAMACO reset on smu_v13_0_7, take BAMACO as a subset of BACO for the low latency, and it only happens on specific platforms. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 + .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 57 ++- 2

[PATCH 4/5] drm/amd/pm: enable gfxoff on smu_v13_0_7

2022-06-08 Thread Kenneth Feng
enable gfxoff on smu_v13_0_7 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c index

[PATCH 3/5] drm/amd/pm: update the driver if header for smu_v13_0_7

2022-06-08 Thread Kenneth Feng
update the driver if header for smu_v13_0_7 Signed-off-by: Kenneth Feng --- .../inc/pmfw_if/smu13_driver_if_v13_0_7.h | 62 +-- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 2 +- 2 files changed, 45 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/amd/pm

[PATCH 2/5] drm/amd/pm: enable BACO on smu_v13_0_7

2022-06-08 Thread Kenneth Feng
enable BACO on smu_v13_0_7 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c| 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm

[PATCH 1/5] drm/amd/pm: add interface to deallocate power_context for smu_v13_0_7

2022-06-08 Thread Kenneth Feng
add interface to deallocate power_context for smu_v13_0_7 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13

[PATCH] drm/amd/amdgpu: align the cg and pg settings

2022-05-27 Thread Kenneth Feng
align the cg and pg settings between gc_v11_0 and gc_v11_2 Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/amdgpu/soc21.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 5566ddbfd188

[PATCH] drm/amd/pm: fix the issue of uploading powerplay table

2021-09-05 Thread Kenneth Feng
fix the issue of uploading powerplay table due to the dependancy of rlc. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu

[PATCH 2/2] drm/amd/pm: change the workload type for some cards

2021-08-13 Thread Kenneth Feng
change the workload type for some cards as it is needed. Signed-off-by: Kenneth Feng --- .../gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm

[PATCH 1/2] Revert "drm/amd/pm: fix workload mismatch on vega10"

2021-08-13 Thread Kenneth Feng
This reverts commit 0979d43259e13846d86ba17e451e17fec185d240. Revert this because it does not apply to all the cards. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm

[PATCH] drm/amd/pm: bug fix for the runtime pm BACO

2021-08-05 Thread Kenneth Feng
In some systems only MACO is supported. This is to fix the prolbem that runtime pm is enabled but BACO is not supported. MACO will be handled seperately. Signed-off-by: Kenneth Feng --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

  1   2   >