AMD-GFX Archive mirror
 help / color / mirror / Atom feed
From: Lijo Lazar <lijo.lazar@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: <Hawking.Zhang@amd.com>, <Alexander.Deucher@amd.com>,
	<Asad.Kamal@amd.com>, <Le.Ma@amd.com>
Subject: [PATCH v4 00/10] Add PM policy interfaces
Date: Tue, 14 May 2024 16:35:56 +0530	[thread overview]
Message-ID: <20240514110606.396234-1-lijo.lazar@amd.com> (raw)

This series adds APIs to get the supported PM policies and also set them. A PM
policy type is a predefined policy type supported by an SOC and each policy may
define two or more levels to choose from. A user can select the appropriate
level through amdgpu_dpm_set_pm_policy() or through sysfs node pm_policy. Based
on the specific PM functional area, multiple PM policies may be defined for an
SOC For ex: a policy may be defined to set the right setting for XGMI per link
power down feature and another may be defined to select the SOC Pstate
preferences.
 
Presently, XGMI PLPD and SOC Pstate policy types are supported. It also removes
the legacy sysfs interface to set XGMI PLPD as it is not used any client like
SMI tool.

v2:
 Add NULL checks to avoid access on SOCs which don't support any policy.

v3:
 Rebase and add documentation patch

v4:
 Use consistent policy type naming for read/write (Alex Deucher)

Lijo Lazar (10):
  drm/amd/pm: Add support for DPM policies
  drm/amd/pm: Update PMFW messages for SMUv13.0.6
  drm/amd/pm: Add support to select pstate policy
  drm/amd/pm: Add xgmi plpd policy to pm_policy
  drm/amd/pm: Add xgmi plpd to SMU v13.0.6 pm_policy
  drm/amd/pm: Add xgmi plpd to aldebaran pm_policy
  drm/amd/pm: Add xgmi plpd to arcturus pm_policy
  drm/amd/pm: Remove legacy interface for xgmi plpd
  drm/amd/pm: Remove unused interface to set plpd
  Documentation/amdgpu: Add PM policy documentation

 Documentation/gpu/amdgpu/thermal.rst          |   6 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c      |   4 +-
 .../gpu/drm/amd/include/kgd_pp_interface.h    |  17 ++
 drivers/gpu/drm/amd/pm/amdgpu_dpm.c           |  32 ++--
 drivers/gpu/drm/amd/pm/amdgpu_pm.c            | 136 ++++++++++++----
 drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h       |   9 +-
 drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h        |   2 +-
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c     | 113 +++++++++++--
 drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h |  40 ++++-
 .../pm/swsmu/inc/pmfw_if/smu_v13_0_6_ppsmc.h  |   3 +-
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_types.h  |   3 +-
 .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c |  64 +++++---
 .../drm/amd/pm/swsmu/smu13/aldebaran_ppt.c    |  59 ++++---
 .../gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c    |   2 +
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c  | 153 +++++++++++++-----
 drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c        |  57 +++++++
 drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h        |   2 +
 17 files changed, 533 insertions(+), 169 deletions(-)

-- 
2.25.1


             reply	other threads:[~2024-05-14 11:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-14 11:05 Lijo Lazar [this message]
2024-05-14 11:05 ` [PATCH v4 01/10] drm/amd/pm: Add support for DPM policies Lijo Lazar
2024-05-15  7:40   ` Wang, Yang(Kevin)
2024-05-15  7:57     ` Kamal, Asad
2024-05-14 11:05 ` [PATCH v4 02/10] drm/amd/pm: Update PMFW messages for SMUv13.0.6 Lijo Lazar
2024-05-14 11:05 ` [PATCH v4 03/10] drm/amd/pm: Add support to select pstate policy Lijo Lazar
2024-05-14 11:06 ` [PATCH v4 04/10] drm/amd/pm: Add xgmi plpd policy to pm_policy Lijo Lazar
2024-05-14 11:06 ` [PATCH v4 05/10] drm/amd/pm: Add xgmi plpd to SMU v13.0.6 pm_policy Lijo Lazar
2024-05-14 11:06 ` [PATCH v4 06/10] drm/amd/pm: Add xgmi plpd to aldebaran pm_policy Lijo Lazar
2024-05-14 11:06 ` [PATCH v4 07/10] drm/amd/pm: Add xgmi plpd to arcturus pm_policy Lijo Lazar
2024-05-14 11:06 ` [PATCH v4 08/10] drm/amd/pm: Remove legacy interface for xgmi plpd Lijo Lazar
2024-05-14 11:06 ` [PATCH v4 09/10] drm/amd/pm: Remove unused interface to set plpd Lijo Lazar
2024-05-14 11:06 ` [PATCH v4 10/10] Documentation/amdgpu: Add PM policy documentation Lijo Lazar
2024-05-15 19:48   ` Deucher, Alexander
2024-05-15  7:03 ` [PATCH v4 00/10] Add PM policy interfaces Lazar, Lijo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240514110606.396234-1-lijo.lazar@amd.com \
    --to=lijo.lazar@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Asad.Kamal@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=Le.Ma@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).