From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0D24E2F5321; Wed, 21 Jan 2026 18:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769019557; cv=none; b=sJ8Wa86HbCVLp4TAs6PmNLIm3zex0sg8ONQJLoM+Wf5hc5Bzm8EbkRBik4LEHPb1uMK6+NoHWxWFfBeauc+r3747z0y1zkvhTRA78nYyOWFlO6jTIjS7bmvrN/ZWc1JvaqN64MzwC2EUi3tBenOXtTiFdcVbJSokZD8OwKFZAAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769019557; c=relaxed/simple; bh=fi8YXBuHaRQ7JIyC5wTMO54g1FHZmA7MhlDk9R+2U1I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IuYVYvzskjtytHmnsi/gct/gLU26/7FEAfbm/yWPFjAiqmKhR15rqNjLFhNuLrLnszKBtqqi1KKS9KBNd0FJoPkZ+KbsoWLJGFEj6Qo0G+PKUW8D16CcFPU/l6JoSJPKMszN+tntgLbniQNynM9SCgXmbNDmL72y1kDml8o+1cQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LRbohpEM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LRbohpEM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C715C4CEF1; Wed, 21 Jan 2026 18:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769019556; bh=fi8YXBuHaRQ7JIyC5wTMO54g1FHZmA7MhlDk9R+2U1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LRbohpEMFoW8WpybXISfpTnfdxzBG7bIBOVGRXNEAJjvJkH0aEluDPdJID9YfsiNL izmDpA4tKDn6JjWHq7VxynGZLCnK1KI2SCVVYtskP9aVS2qoHrHaI58PL76WEOSg4E nmkeSfrclBqyArVd6WLoGnhPtkN0gOvPbz8KhxEA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yang Wang , Hawking Zhang , Alex Deucher , Sasha Levin Subject: [PATCH 6.12 040/139] drm/amd/pm: fix smu overdrive data type wrong issue on smu 14.0.2 Date: Wed, 21 Jan 2026 19:14:48 +0100 Message-ID: <20260121181412.897125028@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260121181411.452263583@linuxfoundation.org> References: <20260121181411.452263583@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yang Wang [ Upstream commit 90dbc0bc2aa60021615969841fed06790c992bde ] resolving the issue of incorrect type definitions potentially causing calculation errors. Fixes: 54f7f3ca982a ("drm/amdgpu/swm14: Update power limit logic") Signed-off-by: Yang Wang Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher (cherry picked from commit e3a03d0ae16d6b56e893cce8e52b44140e1ed985) Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c index d0aed85db18cc..f34cef26b382c 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c @@ -1672,8 +1672,9 @@ static int smu_v14_0_2_get_power_limit(struct smu_context *smu, table_context->power_play_table; PPTable_t *pptable = table_context->driver_pptable; CustomSkuTable_t *skutable = &pptable->CustomSkuTable; - uint32_t power_limit, od_percent_upper = 0, od_percent_lower = 0; + int16_t od_percent_upper = 0, od_percent_lower = 0; uint32_t msg_limit = pptable->SkuTable.MsgLimits.Power[PPT_THROTTLER_PPT0][POWER_SOURCE_AC]; + uint32_t power_limit; if (smu_v14_0_get_current_power_limit(smu, &power_limit)) power_limit = smu->adev->pm.ac_power ? -- 2.51.0