From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 600BD44CF39; Tue, 16 Jun 2026 15:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781624509; cv=none; b=tg9UOXQ3n6LZRPnVflzekje7HOHTlRtELI/F1oX3m2XVIq8Q3GA73nEv+pcrcmdFQlNf5jSnvuBT/pJwbnfi4PaZ71BesOhbsxXqanCM231LYwUSCJkwkR0ErCky5lggnOxOL8VYCWLHIVuzYL2+t0udHHd/cepqajgXUsyb3JY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781624509; c=relaxed/simple; bh=WAD22yXXaVK9L+8FNsQHcvxzTpJ3CMrtoeuHakchNuo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TEAb1PJiT7HNhRetCLQkhAL5tSevZhOjm8lvRphDMfhW6cDxzXwlAH3cJzqlGZkH/XEG1Jw8MIn6JWiV0bX17J7kN9NHev+Y0Hi6jzuGcshnXFKe6ih4Y01FZiSUZ33IeRpaIK0oAKcLd2MHg/0ASCggZB/XRMFKqHJ758uAiF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DOg3wbTX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DOg3wbTX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51B841F000E9; Tue, 16 Jun 2026 15:41:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781624508; bh=srXpCY6rjvVEH7yUPyP6DAiiT9Ld/oJN55STH8YSBuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DOg3wbTXi//VWaWpWMDRx/wXrh/qki2HJTz3RYoew23DhG2oN+Y29qM+sGU31u7EX 8ObAhzZrNmTQqD5DaJbC/NX/nNpbF3g5Ze4tE3xXQ/ErTBHEXPJ7su1C6zWXvWqt/k XG3R4i6Rj0Tf9by8+del7v73ARlxH5YCHvvr1YFk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Priya Hosur , Alex Deucher Subject: [PATCH 7.0 351/378] drm/amd/pm: smu_v14_0_0: use SoftMin for gfxclk in set_soft_freq_limited_range Date: Tue, 16 Jun 2026 20:29:42 +0530 Message-ID: <20260616145128.625190965@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145109.744539446@linuxfoundation.org> References: <20260616145109.744539446@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Priya Hosur commit 03b70e0d8aa26bab89a0f1394c1c80a871925e42 upstream. In smu_v14_0_0_set_soft_freq_limited_range(), the gfxclk floor is programmed via SetHardMinGfxClk together with SetSoftMaxGfxClk. Under power_dpm_force_performance_level=high this pins HardMin to peak gfxclk. In PMFW arbitration HardMin has higher priority than SoftMax, so the firmware thermal/PPT throttler cannot clamp gfxclk via SoftMax once HardMin is set to peak. Replace SetHardMinGfxClk with SetSoftMinGfxclk so the driver still requests peak performance but the firmware throttler retains the ability to clamp gfxclk under thermal/PPT pressure. SoftMax handling is unchanged and no other clock domains are affected. Signed-off-by: Priya Hosur Acked-by: Alex Deucher Signed-off-by: Alex Deucher (cherry picked from commit 3ea273267fd29cbf6d83ee72329f59eb5042605b) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c @@ -1228,7 +1228,8 @@ static int smu_v14_0_0_set_soft_freq_lim switch (clk_type) { case SMU_GFXCLK: case SMU_SCLK: - msg_set_min = SMU_MSG_SetHardMinGfxClk; + /* SoftMin lets PMFW throttle gfxclk; HardMin would override SoftMax. */ + msg_set_min = SMU_MSG_SetSoftMinGfxclk; msg_set_max = SMU_MSG_SetSoftMaxGfxClk; break; case SMU_FCLK: