From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387536; b=GY3uOSL2w5nNvmDJHYwYyW50NFBuNBp6k8Mk4OxERhv298RnvA040ndUgRyJgAKmUsfx Z00ffjyT72jKLh2xF5l1/lTVREE+KfDqzFbBhxFSsz2U85f9wzFRzyE/JL7Ci3TFOg5pk Uw3aTcmkdFvcTFhjC4hU3HFBKMeLH1536VNtN5P9oJ8+CY3HovevhyG447GiOXIPheMl5 VS/uAtgUq2+sRg3bqKpQmB7t5oRbzYtdEVOoVYQJIFATfCkZflZHeRmCmFQsRkuUJ+xsa lHHyXBcwAveS+Cu32AmB/8j91D2QRv6TSjV6Ug606Hct3ttaijVLWwQdMJop+PFsyYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387536; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=R8qxoa9zmUTFyVEBDgan+M1Iy5itcWr4btOZgh+rO3Q=; b=2GIGLoSV3lyh3UDp8vkOXAatqMvzbzbz1qm+M9uL1AhgqaTle5TmIISboDJpo2Izm9T6 1gA0pmEPmvDtluKdTmwc10rjFvkRyovm6wTrMIROoecbYiETOGY9vGSdkVuIv700AzsuW tM3OyoqCPGTgKNKiCUTEjJLE6GR2a4eh0sEhcwCl+lHPcENfWyIZS+gxtBakmsNz4Q6VT r4Tw5YEhx45WdmMEctlhtClvUPF2Mv8IwtQ8Cda8crGlIvgjwedWD2QFEldXHPVFSy474 sk9PeaUMzLOjvdGUiN8sG87ySr+7ExrcL21PHpChJ9wbYazcXvn0NxJ/DTdST0+WVwA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2jepT38f; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0C67606A322; Fri, 4 Dec 2026 12:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2jepT38f Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38D581F000C2; Fri, 4 Dec 2026 12:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387536; bh=R8qxoa9zmUTFyVEBDgan+M1Iy5itcWr4btOZgh+rO3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=2jepT38f1xRVYfmoE0PJWJw+m0V5Umpvnl59T9glFWkyJ9fkXk092ziri/x7V06QA Gsyf0ay9H1fMxF5Nb9eWXtJIjwoh+B4TawZ4QFasQPraGzOKKDZV1JwGzTjgmbzi0a NVnlkNU4cLWImjo+A9KIlPnrJlYj4Z7AP1rCKq88= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Konrad Dybcio , Abel Vesa , Gopikrishna Garmidi , Georgi Djakov , Sasha Levin Subject: [PATCH 6.1 0287/1059] interconnect: qcom: use 64-bit SMD RPM bus votes Date: Fri, 4 Dec 2026 18:56:58 +0900 Message-ID: <20261204100651.712777295@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Konrad Dybcio [ Upstream commit 24e7422ce31189502d07279c083646aaca513311 ] SMD RPM bus bandwidth requests carry a 64-bit bandwidth value. The interconnect proxy declared the KVP payload as u32, truncating votes above 4 GiB/s and advertising the wrong payload size to RPM. Use a little-endian 64-bit payload and accept a u64 value in the proxy API. This has always been the right behavior, even on msm-3.10 and 32-bit SoCs. Fixes: be06f8e7425d ("interconnect: qcom: Add interconnect RPM over SMD driver") Assisted-by: LLM Signed-off-by: Konrad Dybcio Reviewed-by: Abel Vesa Reviewed-by: Gopikrishna Garmidi Link: https://patch.msgid.link/20260904-topic-icc_rpm_64b_req-v1-1-37e24f1991a3@oss.qualcomm.com Signed-off-by: Georgi Djakov [ sashal: Dropped the icc-rpm.h hunks, which touch a struct and prototype not present in this tree, and applied the u32 to u64 prototype change in smd-rpm.h instead. ] Signed-off-by: Sasha Levin --- drivers/interconnect/qcom/smd-rpm.c | 8 ++++---- drivers/interconnect/qcom/smd-rpm.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/interconnect/qcom/smd-rpm.c b/drivers/interconnect/qcom/smd-rpm.c index dc8ff8d133a9c..07ea97722d873 100644 --- a/drivers/interconnect/qcom/smd-rpm.c +++ b/drivers/interconnect/qcom/smd-rpm.c @@ -22,7 +22,7 @@ static struct qcom_smd_rpm *icc_smd_rpm; struct icc_rpm_smd_req { __le32 key; __le32 nbytes; - __le32 value; + __le64 value; }; bool qcom_icc_rpm_smd_available(void) @@ -31,12 +31,12 @@ bool qcom_icc_rpm_smd_available(void) } EXPORT_SYMBOL_GPL(qcom_icc_rpm_smd_available); -int qcom_icc_rpm_smd_send(int ctx, int rsc_type, int id, u32 val) +int qcom_icc_rpm_smd_send(int ctx, int rsc_type, int id, u64 val) { struct icc_rpm_smd_req req = { .key = cpu_to_le32(RPM_KEY_BW), - .nbytes = cpu_to_le32(sizeof(u32)), - .value = cpu_to_le32(val), + .nbytes = cpu_to_le32(sizeof(u64)), + .value = cpu_to_le64(val), }; return qcom_rpm_smd_write(icc_smd_rpm, ctx, rsc_type, id, &req, diff --git a/drivers/interconnect/qcom/smd-rpm.h b/drivers/interconnect/qcom/smd-rpm.h index ca9d0327b8ac1..3fb4a17ec7704 100644 --- a/drivers/interconnect/qcom/smd-rpm.h +++ b/drivers/interconnect/qcom/smd-rpm.h @@ -10,6 +10,6 @@ #include bool qcom_icc_rpm_smd_available(void); -int qcom_icc_rpm_smd_send(int ctx, int rsc_type, int id, u32 val); +int qcom_icc_rpm_smd_send(int ctx, int rsc_type, int id, u64 val); #endif -- 2.53.0