linux/drivers/gpu/drm/amd/pm/swsmu/smu11
Yang Wang 6c9e0328d1 drm/amd/pm: refactor PPT limits by controller and power source
The scalar PPT model has several structural limitations:

- Controller identity, power source, capability, and PMFW state share
  the same fields.
- Combined callbacks cannot address PPT0 and PPT1 independently.
- Cached current limits can become stale after PMFW reset.

Refactor the model around these rules:

- Index ranges by AC/DC source and PPT0/PPT1 controller.
- Store normal and overdrive capabilities separately.
- Pass the controller to get and set callbacks.
- Keep slow and fast names as semantic aliases.

Assign each value to a single owner:

- PPTable or platform initialization supplies constant capabilities.
- PMFW supplies runtime state.
- Common code selects the active source and overdrive range.

Van Gogh defaults are initialized once, while firmware without PPT query
support remains usable. Capable SMU 13.0.6 and SMU 15.0.8 platforms
expose PPT1 through the same interface. A writable controller must also
provide a setter callback.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2026-08-06 09:26:07 -04:00
..
arcturus_ppt.c drm/amd/pm: refactor PPT limits by controller and power source 2026-08-06 09:26:07 -04:00
arcturus_ppt.h
cyan_skillfish_ppt.c drm/amd/pm: use milliwatts for GPU power sensors 2026-07-28 19:17:33 -04:00
cyan_skillfish_ppt.h drm/amdgpu: add basic ppt functions for cyan_skilfish 2021-07-23 10:08:02 -04:00
Makefile drm/amdgpu: add basic ppt functions for cyan_skilfish 2021-07-23 10:08:02 -04:00
navi10_ppt.c drm/amd/pm: refactor PPT limits by controller and power source 2026-08-06 09:26:07 -04:00
navi10_ppt.h
sienna_cichlid_ppt.c drm/amd/pm: refactor PPT limits by controller and power source 2026-08-06 09:26:07 -04:00
sienna_cichlid_ppt.h drm/amd/pm: correct UMD pstate clocks for Dimgrey Cavefish and Beige Goby 2022-02-11 16:12:42 -05:00
smu_v11_0.c drm/amd/pm: refactor PPT limits by controller and power source 2026-08-06 09:26:07 -04:00
vangogh_ppt.c drm/amd/pm: refactor PPT limits by controller and power source 2026-08-06 09:26:07 -04:00
vangogh_ppt.h