From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 58FB33C416A for ; Thu, 10 Sep 2026 08:53:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789030398; cv=none; b=ZkFoDOexYVqYxGfd+2KJQls0mxo99WtG6KrwcmkgtZQKDUbfLpxFB6zNKBj865Bn6cHUcO6dpl+ZNja41N8IRAAEjVFE8GmBAfQrRlNxGTojxhZY9wi9h+8w0XDYSvEyQmX71O7K1ZsPto/t576VYdeo+8Bo48iHHb04U9Boiog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789030398; c=relaxed/simple; bh=d8KDuRYWR1jjdlo/NJSCtDW6e8Mhy/fYII5dmeq+Dtg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=VbEgqZ+p8sqlmNoolF+qxbmciVLZLVQGExAs/zpA/G9zMrbcJ5QuoE08Qf7GROGvJWO764BASidToPt+SZraDXzMCU+xhHcyUv6omB36V9YPmG8h7/7CjWMHZ8ztu7wFw6UNrc4kUlQAgLxC4ddKW6j1bnexF5dOVeft046JQ70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=gJ+ZaAks; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ViQrMuSp; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="gJ+ZaAks"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ViQrMuSp" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68A8puFV1589650 for ; Thu, 10 Sep 2026 08:53:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=+nC3lJJpzf1gMhzYC6kkJn e0t72nVkii43gBGN+DZdE=; b=gJ+ZaAksNLEAtj4Tr8Rs+AWGDdRzHWq/4tzwDt x5z41CwffQGcYzkDD0FBf8mogNLos4R6wkgeanPUpNv3+SmwfY9G9foJvr7/JICt X/XL+x9mcuQ7D+xTwoE/eeRtC0S7DTI5e6DquBevYwLsIJZHRxU4TenZ1tPg59vF xISNSKDXiNmW/FvlvzQeI4hxZFhjRDrPOrcHabpRJtfFHtu/C93Ojs4ApXaESwHv p67Wqd5WDCaZpn16+aWVakBMOa3ve48QIG8TmDFa6LlVornE00qa4JWcTS48xUka 8KATAGc188UpuSXoeM64CPuwmUWTIGIa4/B2vuk4TMOp/6Fw== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gkcyhaxav-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 10 Sep 2026 08:53:09 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cbe77d6864dso9692091a12.2 for ; Thu, 10 Sep 2026 01:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789030389; x=1789635189; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=+nC3lJJpzf1gMhzYC6kkJne0t72nVkii43gBGN+DZdE=; b=ViQrMuSpI8iknkrLZJ06Dwuj9aUYxVnDLYvokAMks9c+m5Ojk/xxkKsUtBaow3lSL9 jd3oJPgVlWFs+3b6Kz3kQUR/nKgE+c8pqE+qxOvUbMCSEhPywp+eyhqAyqlQy+o7PRJW LPu89tNwPg72t3FGGR75SqCUisEzAeNBmgor54UmlafEOv2hFrjhphdiPb9hwI7yVsvs aXOA/9WrZfB8jsccUbj9mM96A4HwKkvVzQQph1QyHQ9T48wZJrzK1mTm6ogSll5BDXH8 x0763A2sDOmbwaMnRqkR85Bc9GB4fu1r/YY5Ro/REt5sXEoBXVrDEZUBUqIh4fIRhRry Fq2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789030389; x=1789635189; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=+nC3lJJpzf1gMhzYC6kkJne0t72nVkii43gBGN+DZdE=; b=PGhzhJfENqhBgsUWiPfxHC7eUNe92HR9a8VR505sRZe3G5d2v8ikuEAtg+Y2BLab27 0l5ZIl6jExOFP1++hoUTbLTw/Nd0J06n4+4mqOVIGBHsqIA6QfPng5YWM1u1MOfoTJCC v9LF+m53shKHWC734Hz0WOYhy4t4xcPpj3Lgn6DR2oLUNThbFwz3OQ4KjmaGYmLOSvhR 4sNMEeteIpIkmWIm2G5z22XQB4ITdKu4ClcMWiH+dgWT0kZMkNui1RM80rDY1rKNvfyZ iPfQaZLAKPxvjuYxzYQh+5gyAGssdWsenWvBhJvEIti9UacCd7PXp6jQy5sfSQXe2VtO 5zww== X-Forwarded-Encrypted: i=1; AKwUvBzpSykEtyGd5eAzxhMo/lp4UXuqpVYouOAeZVq/ZgxWdEKUO4facy9I8QfN026qQwfqar4UMDp9Huw3YQM=@vger.kernel.org X-Gm-Message-State: AFuF++mc9nr77wSpnErlrE/me3B8Z4fgwndzRR9ju1hm+i93ewhZA8w2 4gqDAzA5zMa6Up7Kaekcm0uzcEU/jZ8FaXahDGqnELfZUdAunR1GMkyZT6JRSJFT3F4fIAh/u1Q JdITBbAEEPdDGk0GX4KB40o32jifWF0LK1XdrDaYMTFe6rVMNR0yJWO8r6b1S+zSnlouqPQz0ji 8= X-Gm-Gg: AYBFou39apmETpoicCD+kB39igFufjCVMEiHjIYdhplU245Wtee11kkFTy74hA6O9k5 +YC6U6H5C8LZV3A7x4md/3gMQMgYI/UvTEa5SvFDTsEmff4uVvEFvQ0WZXj5xXvbqKA1hq614nq KxEGlp7f/itA5mbZuKnkaWhzntgCh70vFvTqgo0wZWAsDDRISbNuWDVRRTWpTmzLCrSguvgrJE2 eqMpsMSLqOs7LQu6oNl6Uq+o7n3FuJBkrzqTUOCLFR4JN2R2THrkNqtk4hvOl9tlB+FPFxp762b Tclw/9r9qL7DItpgaS6qQ7iD2+eZSE+bWN83P2RhJ7ZS3oVT7V/YCugsnq4t0HolHC4j0He1A2/ ehOZ68ukng0+QAdQIcKRy/AqQGqmr X-Received: by 2002:a05:6a21:32a2:b0:3cd:3e77:1dcd with SMTP id adf61e73a8af0-3da39d18cd8mr61113404637.1.1789030388863; Thu, 10 Sep 2026 01:53:08 -0700 (PDT) X-Received: by 2002:a05:6a21:32a2:b0:3cd:3e77:1dcd with SMTP id adf61e73a8af0-3da39d18cd8mr61113353637.1.1789030388391; Thu, 10 Sep 2026 01:53:08 -0700 (PDT) Received: from hu-mkshah-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3397d6d1c16sm12398722eec.13.2026.09.10.01.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 01:53:07 -0700 (PDT) From: Maulik Shah Subject: [PATCH 0/2] soc: qcom: rpmh-rsc: Updates for RPMh read requests Date: Thu, 10 Sep 2026 14:23:00 +0530 Message-Id: <20260910-rsc_read-v1-0-c9b7fa3cdde2@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOxvomoC/yXM3QpAQBCG4VvRHNtaK7+3IondwThAM0jJvVscP vV+3wWCTChQBhcwHiS0zB5RGIAd23lARc4bjDapLiKtWGzD2DplMpfmBcaZ7RLw+crY0/ldVfV v2bsJ7fbu4b4fSd/Fx2wAAAA= X-Change-ID: 20260910-rsc_read-27d689e37cb5 To: Bjorn Andersson , Konrad Dybcio , Kamal Wadhwa , Dmitry Baryshkov , Mark Brown Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Maulik Shah X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789030385; l=1718; i=maulik.shah@oss.qualcomm.com; s=20240109; h=from:subject:message-id; bh=d8KDuRYWR1jjdlo/NJSCtDW6e8Mhy/fYII5dmeq+Dtg=; b=JpGG5HBItxGPWyBRer1pe3J8PlRVAUFf7qJYx4FyJufbPOWYJABbJUXmCQ+SqbIP4AJmQa2sm DBHIE0OKNMlDxSAj5I9OESkFmvtZ2YxXyqQbOVEWt8C40s64z14SUdX X-Developer-Key: i=maulik.shah@oss.qualcomm.com; a=ed25519; pk=bd9h5FIIliUddIk8p3BlQWBlzKEQ/YW5V+fe759hTWQ= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTEwMDA5OSBTYWx0ZWRfX40sumgTaqwpb nuUYP00aKvpuyz2f1xL92RLuuwZv0iRs8YSf+cWeCeu08hoYrDhXPhl2lqXCrWK4K6xd5hu0xEF W0uoDU0wZmdQADgIo48ZrVfJmASXNDTtYdF2FjG7ZuQb5+1cwbeEEEbNVGbzOJ4zyipJZsWah2T SBs2AJQZsEbRQQxLKleMPn01Q6fcBwRRPt3k7CNZQRWnEBceBbGZeHejGaUzA3YscrvpWoqLiIc qFjLIzefPtSOxgPpFTwW/ydJvshU2DtUwvgHknyQuyNv3ooIvpDeQOSf+TjZFVVzaQjsW2L5Kre tTGSxNUZFdI2dDuFJtQpjePjyPjHpkaOmppHbgIACCVbMaiKkXqT3A4zeD9JHRPeOoWPNBcB01y g1xdESXkuB2buv8LgvuLifCqP5cpNEFBnaNQ9bwE9sjta7Uu7332Cbfv8/bz7pFnc64THmGNJJ/ xPObqVTGrFZEJadyrZA== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTEwMDA5OSBTYWx0ZWRfX6G7zmVyeRU7t fVELGaSLojxskbffNClu8YtLs2kqFnl7CZI/E9EXtEYA9/nIiNvT6BOPtmiMt2aMeyKz+UhwLos rV2VVvfLn/MF9e94aO365dibUwftZTY= X-Authority-Analysis: v=2.4 cv=YKgKWhGx c=1 sm=1 tr=0 ts=6aa26ff5 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=ts3Mm_KoVmGOfMA9V3wA:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-ORIG-GUID: fZVODzuCjLp4785XlP-GMrh7V2gilMAW X-Proofpoint-GUID: fZVODzuCjLp4785XlP-GMrh7V2gilMAW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-10_03,2026-09-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 adultscore=0 malwarescore=0 phishscore=0 impostorscore=0 spamscore=0 priorityscore=1501 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609100099 This series carries two RPMh read request updates. RSC v4.5 and newer expect read commands to use a 4-byte message payload, while write commands continue to use 8 bytes. Update the message length used for read requests on those controllers. Some platforms either do not support RPMh read requests or AOSS does not respond to them. Issuing a read there can occupy an ACTIVE TCS indefinitely and block subsequent write requests. Skip read commands on sm8150 and sc8180x [1] returning a zero resource level so callers avoid error handling for an unsupported read path. Patch-1 do not have any dependency. Fixes tag is not required as existing SoCs on upstream are all lower than v4.5 version. Patch-1 can be applied as preparation for Hawi SoC support. Patch-2 of the series carries fixes tag. I do not have sm8150 or sc8180x to verify patch-2. If there are reports like [1] of read requests not working on past SoC the list can be expanded within newly added rpmh_rsc_no_rpmh_read() API. [1] https://lore.kernel.org/linux-arm-msm/0a73bc50-71f4-43f8-9d95-14a763d63c61@oss.qualcomm.com/ Signed-off-by: Maulik Shah --- Maulik Shah (2): soc: qcom: rpmh-rsc: Update CMD_MSGID_LEN to 4 bytes for read request soc: qcom: rpmh-rsc: Skip read requests on unsupported platforms drivers/soc/qcom/rpmh-internal.h | 2 ++ drivers/soc/qcom/rpmh-rsc.c | 20 +++++++++++++++++--- drivers/soc/qcom/rpmh.c | 6 ++++++ 3 files changed, 25 insertions(+), 3 deletions(-) --- base-commit: c68a982815dcce5464e3bf2a31ac94f5146c04ca change-id: 20260910-rsc_read-27d689e37cb5 Best regards, -- Maulik Shah