[PATCH] drm/amdgpu: Fix build error when CONFIG_SUSPEND is disabled

2025-07-06 Thread Perry Yuan
`). Reviewed-by: Lijo Lazar Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 4f8632737574..d3b6518a65f1 100644 --- a/drivers/gpu/drm/amd

[PATCH] drm/amdgpu: Fix parameter compatibility issue in amdgpu_vkms_early_init

2025-01-19 Thread Perry Yuan
/amdgpu/amdgpu_vkms.c:805:16: error: initialization of ‘int (*)(struct amdgpu_ip_block *)’ from incompatible pointer type ‘int (*)(void *)’ [-Werror=incompatible-pointer-types] .early_init = amdgpu_vkms_early_init, Acked-by: Yifan Zhang Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu

[PATCH v2 3/3] drm/amdgpu: optimize RLC powerdown notification on Vangogh

2023-10-24 Thread Perry Yuan
.882 msecs [ 110.884405] PM: Some devices failed to suspend, or early wake event detected Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 drivers/gpu/drm/amd/include/kgd_pp_interface.h | 1 + drivers/gpu/drm/amd/pm/amdgpu_dpm.c

[PATCH v2 2/3] drm/amdgpu: avoid sending csib command when system resumes from S3

2023-10-24 Thread Perry Yuan
]] *ERROR* ib ring test failed (-110). PM: resume of devices complete after 2373.995 msecs PM: Finishing wakeup. v1-v2: * align csib_initialized with other failed with space[Kevin] * check return value check for gfx_v10_0_wait_for_idle()[Kevin] Signed-off-by: Perry Yuan --- drivers/gpu/drm

[PATCH v2 1/3] drm/amdgpu: ungate power gating when system suspend

2023-10-24 Thread Perry Yuan
d -62 Acked-by: Yang Wang Reviewed-by: Kenneth Feng Signed-off-by: Perry Yuan Signed-off-by: Kun Liu --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

[PATCH 2/3] drm/amdgpu: avoid sending csib command when system resumes from S3

2023-10-23 Thread Perry Yuan
]] *ERROR* ib ring test failed (-110). PM: resume of devices complete after 2373.995 msecs PM: Finishing wakeup. Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 + drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 29

[PATCH 3/3] drm/amdgpu: optimize RLC powerdown notification on Vangogh

2023-10-23 Thread Perry Yuan
.882 msecs [ 110.884405] PM: Some devices failed to suspend, or early wake event detected Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 drivers/gpu/drm/amd/include/kgd_pp_interface.h | 1 + drivers/gpu/drm/amd/pm/amdgpu_dpm.c

[PATCH 1/3] drm/amdgpu: ungate power gating when system suspend

2023-10-23 Thread Perry Yuan
d -62 Signed-off-by: Perry Yuan Signed-off-by: Kun Liu --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index d9ccacd06fba..6399bc71c56d 100644 --- a/drivers/gp

[PATCH 3/3] drm/amdgpu: skip the invalid workload type

2023-02-24 Thread Perry Yuan
If some invalid workload types exposed by the power profile sysfs node, it will be failed to set the unsuported profiles. So we can skip to show the invalid workload type in the profiles list to avoid that failure happen. Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/pm/swsmu/smu13

[PATCH 2/3] drm/amdgpu: map new capped and uncapped mode power profiles for Vangogh

2023-02-24 Thread Perry Yuan
Capped and Uncapped workload types are supported, each workload type has different performance thresholds and pstate conditions. * capped mode is used by power centric workload * uncapped mode is used by perf centric workload Signed-off-by: Perry Yuan --- .../drm/amd/pm/swsmu/inc/pmfw_if

[PATCH 1/3] drm/amdgpu/pm: add capped/uncapped power profile modes

2023-02-24 Thread Perry Yuan
ss/drm/card0/device/pp_power_profile_mode` 3) check current mode: $ cat /sys/class/drm/card0/device/pp_power_profile_mode 1 3D_FULL_SCREEN 3 VIDEO 4 VR 5COMPUTE 6 CUSTOM 8 CAPPED 9 UNCAPPED* Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/i

[PATCH 0/3] enable new capped/uncapped power profiles

2023-02-24 Thread Perry Yuan
Centric Workload (Uncapped)0 Power Centric Workload (Capped) 1 Perry Yuan (3): drm/amdgpu/pm: add capped/uncapped power profile modes drm/amdgpu: map new capped and uncapped mode power profiles for Vangogh drm/amdgpu: skip the invalid workload type drivers/gpu/drm/amd/include

[PATCH v3 2/3] drm/amd/display: change GPU match with IP version for Vangogh

2022-11-02 Thread Perry Yuan
Use ip versions (10,3,1) to match the GPU after Vangogh switched to use IP discovery path. Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b

[PATCH v3 3/3] drm/amdgpu: remove the DID of Vangogh from pciidlist

2022-11-02 Thread Perry Yuan
change the vangogh family to use IP discovery path to initialize IP list, this needs to remove the DID from the PCI ID list to allow the IP discovery path to set all the IP versions correctly. Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 --- 1 file changed, 3

[PATCH v3 1/3] drm/amdgpu: add Vangogh APU flag to IP discovery path

2022-11-02 Thread Perry Yuan
Add the missing apu flag for Vangogh when using IP discovery code path to initialize IPs Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu

[PATCH v2 3/3] drm/amdgpu: remove the DID of Vangogh from pciidlist

2022-11-02 Thread Perry Yuan
change the vangogh family to use IP discovery path to initialize IP list, this needs to remove the DID from the PCI ID list to allow the IP discovery path to set all the IP versions correctly. Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 --- 1 file changed, 3

[PATCH v2 2/3] drm/amd/display: change GPU match with IP version for Vangogh

2022-11-02 Thread Perry Yuan
Use ip versions (10,3,1) to match the GPU after Vangogh switched to use IP discovery path. Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b

[PATCH v2 1/3] drm/amdgpu: add Vangogh APU flag to IP discovery path

2022-11-02 Thread Perry Yuan
Add the missing apu flag for Vangogh when using IP discovery code path to initialize IPs Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu

[PATCH 1/2] drm/amdgpu: remove the DID of Vangogh from pciidlist

2022-10-31 Thread Perry Yuan
change the vangogh family to use IP discovery path to initialize IP list, this needs to remove the DID from the PCI ID list to allow the IP discovery path to set all the IP versions correctly. Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 --- 1 file changed, 3

[PATCH 2/2] drm/amdgpu: add Vangogh APU flag to IP discovery path

2022-10-31 Thread Perry Yuan
Add the missing apu flag for Vangogh when using IP discovery code path to initialize IPs Signed-off-by: Perry Yuan --- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu

[PATCH v1] drm/amd/display: add connector type check for CRC source set

2021-11-19 Thread Perry Yuan
047] amdgpu_dm_crtc_set_crc_source+0x1ae/0x3e0 [amdgpu] [ 117.731149] crtc_crc_open+0x174/0x220 [drm] [ 117.731162] full_proxy_open+0x168/0x1f0 [ 117.731165] ? open_proxy_open+0x100/0x100 BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1546 Reviewed-by: Harry Wentland Signed-off-by: Perry Yuan --- drivers/gpu/drm/

[PATCH v1] drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs

2021-11-11 Thread Perry Yuan
test on one APU system. $ cat /sys/class/drm/card0/device/pp_dpm_sclk 0: 200Mhz 1: 1040Mhz * 2: 1600Mhz The current GFXCLK value is updated at runtime. BugLink: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5260 Reviewed-by: Huang Ray Signed-off-by: Perry Yuan --- .../amd/pm/swsmu/smu11