AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Teodor Bostan <teobsn@gmail.com>
To: amd-gfx@lists.freedesktop.org, kenneth.feng@amd.com,
	alexander.deucher@amd.com
Cc: christian.koenig@amd.com, mario.limonciello@amd.com,
	dri-devel@lists.freedesktop.org, Teodor Bostan <teobsn@gmail.com>
Subject: [PATCH] drm/amd/pm: Add PPTable power limit quirk for ASUS G14 GA402R
Date: Wed, 29 Jul 2026 02:46:26 +0300	[thread overview]
Message-ID: <20260728234626.86008-1-teobsn@gmail.com> (raw)

ASUS ROG Zephyrus G14 (2022) GA402RJ and GA402RK laptops use custom AC
power limits of 100W (RX 6700S) and 105W (RX 6800S). On resume from
suspend, the SMU firmware resets to the reference vBIOS default of 80W,
hard-capping GPU performance.

Override SocketPowerLimitAc in sienna_cichlid_patch_pptable_quirk for
these subsystem IDs so the driver restores the platform's intended AC
power limit when reloading PPTable during boot and resume.

Signed-off-by: Teodor Bostan <teobsn@gmail.com>
---
 .../gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
index cef628752..10d330edb 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
@@ -479,6 +479,7 @@ static int sienna_cichlid_patch_pptable_quirk(struct smu_context *smu)
 	struct amdgpu_device *adev = smu->adev;
 	uint32_t *board_reserved;
 	uint16_t *freq_table_gfx;
+	uint16_t *power_limit;
 	uint32_t i;
 
 	/* Fix some OEM SKU specific stability issues */
@@ -501,6 +502,18 @@ static int sienna_cichlid_patch_pptable_quirk(struct smu_context *smu)
 		}
 	}
 
+	/* Fix some OEM SKU specific power limit issues */
+	if ((adev->pdev->device == 0x73EF) &&
+	    (adev->pdev->subsystem_vendor == 0x1043)) {
+		if (adev->pdev->subsystem_device == 0x1DEC) {
+			GET_PPTABLE_MEMBER(SocketPowerLimitAc, &power_limit);
+			power_limit[PPT_THROTTLER_PPT0] = 100;
+		} else if (adev->pdev->subsystem_device == 0x1DCC) {
+			GET_PPTABLE_MEMBER(SocketPowerLimitAc, &power_limit);
+			power_limit[PPT_THROTTLER_PPT0] = 105;
+		}
+	}
+
 	return 0;
 }
 
-- 
2.55.0


             reply	other threads:[~2026-07-29 13:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28 23:46 Teodor Bostan [this message]
2026-07-29 13:24 ` [PATCH] drm/amd/pm: Add PPTable power limit quirk for ASUS G14 GA402R Alex Deucher
2026-07-30  7:28   ` Wang, Yang(Kevin)

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=20260728234626.86008-1-teobsn@gmail.com \
    --to=teobsn@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kenneth.feng@amd.com \
    --cc=mario.limonciello@amd.com \
    /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