From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5FEAC54F51 for ; Wed, 29 Jul 2026 13:16:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3D73E10EC36; Wed, 29 Jul 2026 13:16:35 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="rsyKqCtK"; dkim-atps=neutral Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8DEA810E5C1 for ; Tue, 28 Jul 2026 23:47:26 +0000 (UTC) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-494049206c6so256885e9.2 for ; Tue, 28 Jul 2026 16:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785282445; x=1785887245; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=I0sepYElNWpFKOjgjeV3qn5PVGIr7EC4aWTxpcIRLkc=; b=rsyKqCtKuutrmZAHJsHlg5XnCVqH75FvECxefavw5vtOyKQj7AVFCPxR7kMNB/WSeS Po5WzAy59ckUf/BpEnnK9eYOwVfrgLrD9DWckSwO4HGK2KHeV2QvT708maDSKQgkgNon 8bRMN3cT2orIUMkJRAPoLc59WKsYgUUlSVMlGeFDn4lkoQ/prjcFubnwYocjn/ouhMMz d1y+7TcYjvbuxnj3Xr0qd9jof0LG3XSRNm2b8yiZQZjRfDHh9OD/8jyo5ecZlp6hul1b NMpUwmRmnzYZttfwVhP3InFVcLab+85wtIWxUykFJdTFhn86cqW0DayyId4A1M7DEgwR Wnsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785282445; x=1785887245; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=I0sepYElNWpFKOjgjeV3qn5PVGIr7EC4aWTxpcIRLkc=; b=N9HgZrtckWMHiZ6Ah1aVPj1bN5EmgAPe4V4LHnuWnmxF0fjyZLpC7irzCpF8Ge3KDY R8dKRHAT8vhDK/aQvDj+lDxw/ru7JFRNFLDmr07ho2HHmBaygUJ9TfTh0dVdEzyX0FiH fjf5x4miQuiegYIza9gcmrehxyImnLaUOYAhXntEmLxgBsIjUdDONVTgLoBMyvKsvDyX /1OUjy/6u5p6r48mZqVdD95WrjFDTFnvVLDdACN1B11GbXqNQmoAb/HkwL2iIV9zG63o zEtf7uzEFt4A1nQz/CXq2AirBN9tka5ZDAcZSB8PZ06AOMcMsYPxJpk+h7SYJBTeot9l DWbQ== X-Gm-Message-State: AOJu0Yw/ADz8oPW/YJm/GPtpQ4/BzzFtay0v21WLMGubU7hA3R0ZfUbp 6M2qPLjQWEuR60GiPsXo8QR0qE1TG8mWnVVVXMhIFY/xRvPH/XOUljKsG80YFaYAc84= X-Gm-Gg: AR+sD10/zJLb8CfTtD936ktPGho145Q0tdzN0MAjA276rc3jxfb7Z0zIx6NbazMlmwz XDAy0r2DV21BV2VvzZ1XCpY+KrEhZ2AJINfiJ+z5Ipb3Y2Av501v/16d5iLO4CZSoh/oSDLOjEV BiLar5LJZC+nx41c6NwpyDYtBZCJFBewrWGC3xabq9rI3kTxkLgctYeRGMFVM5ndJZ07TL8QocM rVo1KkxTlHwSdfTmd1J37//0ed/upypI8j4yMC6/1TRMUEJSDfOdrm5X9yzHuHgtJKfpOnny1+I h599E3jIbJpwcnFaO7kRhsVcuMDGqPwF5W/fLdu4Vr5Z0/H5sSLwKINmgdRNhcgbzZ45WxmlFpM P9CNoR21X8U7y4LvTWy/u6o4a8i/aC2SghRkiVZ6t02ehRl39dc2FshWj0fYsJ9VRKk4NOqskZJ RfaYhtrHbbbSFb3jvqx5Lz6+Qn+syB8W/j31bES5A994KsWiTLiRhY286JexzJFZnRqgRxO1Y= X-Received: by 2002:a05:600c:1d19:b0:495:4505:dad0 with SMTP id 5b1f17b1804b1-496c641546bmr34409585e9.2.1785282444813; Tue, 28 Jul 2026 16:47:24 -0700 (PDT) Received: from zephyrus-teodor ([92.84.22.76]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-496c45b1c76sm108157275e9.6.2026.07.28.16.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 16:47:24 -0700 (PDT) From: Teodor Bostan 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 Subject: [PATCH] drm/amd/pm: Add PPTable power limit quirk for ASUS G14 GA402R Date: Wed, 29 Jul 2026 02:46:26 +0300 Message-ID: <20260728234626.86008-1-teobsn@gmail.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 29 Jul 2026 13:16:19 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" 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 --- .../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