All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] 0 MHz is not a valid current frequency (v3)
@ 2021-10-15  0:50 Luben Tuikov
  2021-10-15  0:50 ` [PATCH 1/5] drm/amd/pm: Slight function rename (v2) Luben Tuikov
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Luben Tuikov @ 2021-10-15  0:50 UTC (permalink / raw)
  To: amd-gfx; +Cc: Luben Tuikov

Some ASICs support low-power functionality for the whole ASIC or just
an IP block. When in such low-power mode, some sysfs interfaces would
report a frequency of 0, e.g.,

$cat /sys/class/drm/card0/device/pp_dpm_sclk
0: 500Mhz 
1: 0Mhz *
2: 2200Mhz 
$_

An operating frequency of 0 MHz doesn't make sense, and this interface
is designed to report only operating clock frequencies, i.e. non-zero,
and possibly the current one.

When in this low-power state, round to the smallest
operating frequency, for this interface, as follows,

$cat /sys/class/drm/card0/device/pp_dpm_sclk
0: 500Mhz *
1: 2200Mhz 
$_

v2: Fix description to reflect change in patch 1--add an 's'.
v3: Don't tag a current if current is 0.

Luben Tuikov (5):
  drm/amd/pm: Slight function rename (v2)
  drm/amd/pm: Rename cur_value to curr_value
  drm/amd/pm: Rename freq_values --> freq_value
  dpm/amd/pm: Sienna: 0 MHz is not a current clock frequency (v2)
  dpm/amd/pm: Navi10: 0 MHz is not a current clock frequency (v2)

 .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c   | 57 ++++++++------
 .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c   | 74 ++++++++++++-------
 2 files changed, 83 insertions(+), 48 deletions(-)


base-commit: b81c53cdbe1482b1f4013ba7a41bca2174cde109
-- 
2.33.1.558.g2bd2f258f4


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/5] 0 MHz is not a valid current frequency (v2)
@ 2021-10-13 16:11 Luben Tuikov
  2021-10-13 16:11 ` [PATCH 1/5] drm/amd/pm: Slight function rename (v2) Luben Tuikov
  0 siblings, 1 reply; 7+ messages in thread
From: Luben Tuikov @ 2021-10-13 16:11 UTC (permalink / raw)
  To: amd-gfx; +Cc: Luben Tuikov

Some ASIC support low-power functionality for the whole ASIC or just
an IP block. When in such low-power mode, some sysfs interfaces would
report a frequency of 0, e.g.,

$cat /sys/class/drm/card0/device/pp_dpm_sclk
0: 500Mhz 
1: 0Mhz *
2: 2200Mhz 
$_

An operating frequency of 0 MHz doesn't make sense, and this interface
is designed to report only operating clock frequencies, i.e. non-zero,
and possibly the current one.

When in this low-power state, round to the smallest
operating frequency, for this interface, as follows,

$cat /sys/class/drm/card0/device/pp_dpm_sclk
0: 500Mhz *
1: 2200Mhz 
$_

v2: Fix description to reflect change in patch 1--add an 's'.

Luben Tuikov (5):
  drm/amd/pm: Slight function rename (v2)
  drm/amd/pm: Rename cur_value to curr_value
  drm/amd/pm: Rename freq_values --> freq_value
  dpm/amd/pm: Sienna: 0 MHz is not a current clock frequency
  dpm/amd/pm: Navi10: 0 MHz is not a current clock frequency

 .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c   | 60 +++++++++------
 .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c   | 73 ++++++++++++-------
 2 files changed, 86 insertions(+), 47 deletions(-)

-- 
2.33.1.558.g2bd2f258f4


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-15  0:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15  0:50 [PATCH 0/5] 0 MHz is not a valid current frequency (v3) Luben Tuikov
2021-10-15  0:50 ` [PATCH 1/5] drm/amd/pm: Slight function rename (v2) Luben Tuikov
2021-10-15  0:50 ` [PATCH 2/5] drm/amd/pm: Rename cur_value to curr_value Luben Tuikov
2021-10-15  0:50 ` [PATCH 3/5] drm/amd/pm: Rename freq_values --> freq_value Luben Tuikov
2021-10-15  0:50 ` [PATCH 4/5] dpm/amd/pm: Sienna: 0 MHz is not a current clock frequency (v2) Luben Tuikov
2021-10-15  0:50 ` [PATCH 5/5] dpm/amd/pm: Navi10: " Luben Tuikov
  -- strict thread matches above, loose matches on Subject: below --
2021-10-13 16:11 [PATCH 0/5] 0 MHz is not a valid current " Luben Tuikov
2021-10-13 16:11 ` [PATCH 1/5] drm/amd/pm: Slight function rename (v2) Luben Tuikov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.