All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] drm/amd/pm: overdrive support for smu8 (Carrizo/Stoney)
@ 2026-12-06  4:52 ` Joshua Horne via B4 Relay
  0 siblings, 0 replies; 13+ messages in thread
From: Joshua Horne @ 2026-12-06  4:52 UTC (permalink / raw)
  To: Alex Deucher, Kenneth Feng
  Cc: Christian König, David Airlie, Simona Vetter,
	Timur Kristóf, Lijo Lazar, amd-gfx, dri-devel, linux-kernel,
	Joshua Horne

This series implements pp_od_clk_voltage for the smu8 backend, so the
graphics DPM levels of Carrizo and Stoney can be underclocked and
undervolted, or overclocked where the VBIOS declares an overdrive
limit. It uses the smu7 format and stays behind PP_OVERDRIVE_MASK.

The voltage is GfxVid, which drives the separate VDDGFX rail; the NB
rail is not touched. The allowed range is the GfxVid range of the
enabled VBIOS levels, so nothing goes above the highest stock graphics
voltage. Earlier APU overdrive support is clock-only; I can send a
clock-only version if that is preferred. Patch 4 documents in the
kernel-doc that a committed level takes effect the next time the GPU
enters it.

The series is meant to go in after "drm/amd/pm: keep smu8 sclk level
lookups within the table" [1], which was patch 1 of v1 and v2 and is
now sent on its own. The series applies and builds without it, but with
the highest level underclocked below the display's minimum engine
clock, the SclkHardMin lookup returns an index past the end of the
table, and that fix selects the highest level instead.

Known limitation: DCE 11 reads the sclk levels only once, so after a
large underclock its bandwidth calculations still assume the VBIOS
clocks. smu7 and vega10 overdrive have the same issue on DCE 11.2 and
DCE 12; the fix belongs in DC.

Tested on an A10-8700P (ASUS X555DA): underclocking, undervolting,
invalid input and S3. This VBIOS has no overdrive limit, so
overclocking is untested. Stoney is untested as well; Tested-by from
Stoney owners would be welcome, or the series can be limited to
CHIP_CARRIZO.

Changes in v3:
- Sent the lookup fix (v2 1/5) on its own [1]
- 3/4: removed two redundant comments
- Rebased onto amd-staging-drm-next

Changes in v2 (only 4/5 was resent [2], after the Sashiko review):
- 4/5: resend SclkHardMin after a commit
- 4/5: keep the exact clock for a level's VBIOS clock and the OD_RANGE
  limits

I used an AI coding assistant (Claude Code) for this series. It wrote
the code, the changelogs and a draft of this letter, and wrote and ran
the build checks and test scripts. I reviewed the series, ran the tests
on my hardware, and I am responsible for it.

[1] https://lore.kernel.org/amd-gfx/20261205-smu8-sclk-lookup-fix-v1-1-e16f35ce434c@etsu.edu/
[2] https://lore.kernel.org/amd-gfx/179481705669.12281.9149615824591242380@etsu.edu/
v1: https://lore.kernel.org/amd-gfx/20261113-smu8-overdrive-v1-0-763f07bdfca9@etsu.edu/

---
Joshua Horne (4):
      drm/amd/pm: move smu8_populate_umdpstate_clocks() up
      drm/amd/pm: show the smu8 overdrive sclk table
      drm/amd/pm: allow editing the smu8 overdrive sclk table
      drm/amd/pm: stop disabling overdrive on Carrizo and Stoney

 drivers/gpu/drm/amd/pm/amdgpu_pm.c                 |   6 +
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c     |   1 -
 .../gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c    | 325 ++++++++++++++++++++-
 .../gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.h    |   8 +
 4 files changed, 326 insertions(+), 14 deletions(-)
---
base-commit: 910fd45c4364d29810d0d10e848f8f7ef4e7b3ef
change-id: 20261113-smu8-overdrive-4208a3756d57


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

end of thread, other threads:[~2026-12-06  5:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  4:52 [PATCH v3 0/4] drm/amd/pm: overdrive support for smu8 (Carrizo/Stoney) Joshua Horne
2026-12-06  4:52 ` Joshua Horne via B4 Relay
2026-12-06  4:52 ` [PATCH v3 1/4] drm/amd/pm: move smu8_populate_umdpstate_clocks() up Joshua Horne
2026-12-06  4:52   ` Joshua Horne via B4 Relay
2026-12-06  4:52 ` [PATCH v3 2/4] drm/amd/pm: show the smu8 overdrive sclk table Joshua Horne
2026-12-06  4:52   ` Joshua Horne via B4 Relay
2026-12-06  5:14   ` sashiko-bot
2026-12-06  4:52 ` [PATCH v3 3/4] drm/amd/pm: allow editing " Joshua Horne
2026-12-06  4:52   ` Joshua Horne via B4 Relay
2026-12-06  5:15   ` sashiko-bot
2026-12-06  4:52 ` [PATCH v3 4/4] drm/amd/pm: stop disabling overdrive on Carrizo and Stoney Joshua Horne
2026-12-06  4:52   ` Joshua Horne via B4 Relay
2026-12-06  5:13   ` sashiko-bot

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.