[PATCH v2 3/3] drm/radeon: Expose vddc through hwmon

2020-10-09 Thread Sandeep Raghuraman
Create hwmon attribute for vddc, that uses previously declared get_current_vddc() callback if there's an implementation available. Also hides vddc, if there is no implementation for the current chipset (as per Alexander Deucher's suggestion). Signed-off-by: Sandeep Raghuraman --- d

[PATCH v2 2/3] drm/radeon: Add implementation of get_current_vddc for Sumo

2020-10-09 Thread Sandeep Raghuraman
Add implementation of get_current_vddc() callback for Sumo. Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/radeon/radeon_asic.c | 1 + drivers/gpu/drm/radeon/radeon_asic.h | 1 + drivers/gpu/drm/radeon/sumo_dpm.c| 20 3 files changed, 22 insertions(+) diff

[PATCH v2 1/3] drm/radeon: Add new callback that exposes vddc

2020-10-09 Thread Sandeep Raghuraman
This patch adds a callback for reporting vddc, to the dpm field of the radeon_asic structure. Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/radeon/radeon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index

Re:

2020-10-09 Thread Sandeep Raghuraman
On 10/9/20 12:44 PM, Thomas Zimmermann wrote: > Hi > > Am 09.10.20 um 08:47 schrieb Thomas Zimmermann: >> NACK for the entire lack of any form of commit description. > > Please see the documentation at [1] on how to describe the changes and > getting your patches merged. Yes, I tried to use g

[PATCH v2 1/1] drm/radeon: Add sclk frequency as hwmon sensor

2020-09-09 Thread Sandeep Raghuraman
This patch adds support for reporting sclk values for Radeon GPUs, where supported. Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/radeon/radeon_pm.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b

Re: [PATCH 1/2] drm/radeon: Add sclk frequency as hwmon sensor

2020-09-07 Thread Sandeep Raghuraman
On 9/1/20 2:03 AM, Alex Deucher wrote: > On Sun, Aug 30, 2020 at 3:25 AM Sandeep Raghuraman > wrote: >> >> This patch series adds support for reporting sclk and vddc values for Radeon >> GPUs, where supported. > > This commit message should be specific to this

[PATCH 2/2] drm/radeon: Add vddc hwmon sensor

2020-08-30 Thread Sandeep Raghuraman
Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/radeon/radeon.h | 1 + drivers/gpu/drm/radeon/radeon_asic.c | 1 + drivers/gpu/drm/radeon/radeon_asic.h | 1 + drivers/gpu/drm/radeon/radeon_pm.c | 21 + drivers/gpu/drm/radeon/sumo_dpm.c| 20

[PATCH 1/2] drm/radeon: Add sclk frequency as hwmon sensor

2020-08-30 Thread Sandeep Raghuraman
This patch series adds support for reporting sclk and vddc values for Radeon GPUs, where supported. Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/radeon/radeon_pm.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon

[PATCH 1/1] AMDGPU : Fix bug in reporting voltage for CIK

2020-08-27 Thread Sandeep Raghuraman
incorrectly used, instead of the VDDGFX mask. This patch changes the code to use the correct defined constants (and apply the correct bitshift), thus resulting in correct voltage reporting. Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +- 1 file changed

[PATCH 1/1] AMDGPU: Specify get_argument function for ci_smu_funcs

2020-08-27 Thread Sandeep Raghuraman
smum_send_msg_to_smc() function, attempts to call the corresponding get_argument() function of ci_smu_funcs. However, the get_argument() function is not defined in ci_smu_funcs. This patch fixes the bug by specifying the correct get_argument() function. Signed-off-by: Sandeep Raghuraman

[PATCH 1/1] AMDGPU: Fix bug where DPM is not enabled after hibernate and resume

2020-08-06 Thread Sandeep Raghuraman
I've tested on my R9 390 and it seems to work correctly for both suspend and hibernate use cases, and has been stable so far. Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/1] AMDGPU: Replace invalid device ID with a valid device ID

2020-06-10 Thread Sandeep Raghuraman
ID 67B1, and it works fine without problems. Signed-off-by: Sandeep Raghuraman --- drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr

Re: [PATCH 1/1] AMDGPU: Correctly initialize thermal controller for GPUs with Powerplay table v0 (e.g Hawaii)

2020-04-16 Thread Sandeep Raghuraman
Initialize thermal controller fields in the PowerPlay table for Hawaii GPUs, so that fan speeds are reported. Signed-off-by: Sandeep Raghuraman --- .../drm/amd/powerplay/hwmgr/processpptables.c | 28 +++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/amd