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 A29CD35CBD4 for ; Mon, 2 Feb 2026 10:57:23 +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=1770029845; cv=none; b=LRMtv6pDAaj0X0eCDKlzygTae2XnQY7LetJB8TQVlC6EImZx9IBHciLkTNErLHzJKmb329ZGGZc2gisWAQnrVPNgfS+kpawW+71H5/Pc40ilitkXu4EEEpvImKAXrR/TDoediPIf0HqzY5beDFrJpov+Mc87D4CaeVXrr+jZLfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770029845; c=relaxed/simple; bh=TFTxp9Whu76WPWc8LoRr1IbswWOT2EZOfWCEsAXG3cE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=muaZ1HChRcvp6Wrs8bVX5ydDAdn46iIlawg1CHZrwkg16ANS1pvN+sQrWdGdMO71hA9V3uDIu0K6cAdTWdnvrHBr/E2tmeCTm1uLo9H6gESzmf0eQtq3fwMoifwPN6nEbiYZOeOLU0HF9hPSPIyE0me4eveeoY9GqYTGyW21Cwo= 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=Dpt1V3u9; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=fPTVHbo5; 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="Dpt1V3u9"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="fPTVHbo5" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61285EQM2596340 for ; Mon, 2 Feb 2026 10:57:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= UuulFgRx9rd/kvUwhvAhL2lf6p7QUWW0dftJxb5MCVA=; b=Dpt1V3u9rKUpY5Oi GIjOPuOONwb0nuY3VNAVkxQHYXLsyznSjcYRh/g8lQmTfq8Mft9pVlCt5jsoOxFo RFH2Tya5hatwejqa0yztCYXi82sGp+Q/9C5NFJXRtQWiZY3VcuJrJJ7k/jhTLlT8 uVbTosc1f7IGFO5gz5p47UG0DyX6w9MgenSLUOs9lalDMPCCChdc3//mvNVu3Tti kdly3kRD6R1IfsXWyJ5KtkkYrmWnIbLF+BxttNFvUNMvlOFG9Cek7GZP/qDYRVpa uOu4Gl3u8IWYq3Ro4W+nrenvnls67qtvuP2iQVLgc/u3g7ML0x5bHr9uQ0AyA9hn rZ5Rjg== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c1awdd4an-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 02 Feb 2026 10:57:22 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-8b2fdf3a190so30820085a.0 for ; Mon, 02 Feb 2026 02:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1770029842; x=1770634642; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UuulFgRx9rd/kvUwhvAhL2lf6p7QUWW0dftJxb5MCVA=; b=fPTVHbo5wUOSfOKVziEtvkjOMOzbXeQDw9tREExTRWFiavEyDUCN0vWQwmo+oVajqZ PGenC8zewOi/jvtDoyXo345xS6JtP35Xa6ohAmTOqsAmnLb1WMmnyo2hrcq/Argb2ZWC /IktTUWd6gKlsFzPdV1JPSxTLWX2T/0/GAWfMJ1n/ifgcRaoEjGeL1UYMNK9idu6aPuR hQ4R0Jp0pajoSYkPo1uBpJXZdacjNlefx+qB9Qy9n3uK7WWYrACnZww/pXUR6C+J3/rD Ml758mhJfl2nu+b8wgzfWuNuTbdVWlYgNZT0U82A3LOoYMTijwgnOzN3/d7e7lMVb4WR PUWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770029842; x=1770634642; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UuulFgRx9rd/kvUwhvAhL2lf6p7QUWW0dftJxb5MCVA=; b=Jl77MXaVPV6LgW6JsB1TtsP+PW41f5qi3nL9+XNLS6/joPxHoSXIqGz0kmGGHO4woD FJ8lIjOn41nRbWm0gAaOoFC7VuDXfjHRJOBIsHUyGhKoYiUYkRxTLi+Uku58h9/Fl/It LMPLpH4kU1maCQWPCyE36nt+YlZhvq5IZqfPF2SqmGprW9/Kp5KN0eeYP0js1EJOhaci pAtVm9qQPnDcf+tTu3awBIhO4NbuapQAtnE6jH6fUtu8PezYjAMmrRrqYggKmUEY2oiz dVep0ZNJugLo0zlQmtGcRY3NQSucXNQzNzjtJGehXfAwhqNUcdksokGTyw/lyVNky5wp nyBA== X-Forwarded-Encrypted: i=1; AJvYcCVwDao435s8nfMPcCZExKG24n24fgZmoqnCs8DU3TGCCehlEtIfU/je3yIS2EN9nMZ59mPi0l+AsI/IiXY=@vger.kernel.org X-Gm-Message-State: AOJu0YyRTTn+9/ymgDqxshj0RhEls+9AtPRA5PJCVfBJ13Rp14OT5Q3j KL+5ZPp4rfUvoZZraPtzo65J3d65HVqByR0F7UpbXswJlNWlYl238SmFRUc00+vOnHDn2ttytRd cckLqPuuEmYncHioOPEcdGDcE/jxwT+jVeYAhxlTtDykPj50XREZIVId/A09p2LGTxyQ= X-Gm-Gg: AZuq6aIByuiqkLo+AOVG2TdoBnlk5K+RMRXe8hssbu7lNZIjp/ZQ3efWIsQ0411Ib/a BBz7u+LCkpgzzzHPyxkPqtFYftR2+0LuDpVrVLgY5mQ24GdXhw4z3Q5JiyV+hcQGIOLdcZYOvAZ CMA4rFjMNq8Qwa1ApF+l3zU1CvaWqYhjWo7mcH7RGtrLiOMrAfi24oojiF4A81aXamRTEG6japa pY1gTNPQuOrPqW9vCkm8FUp5IjZ8/kiD08ysweNpMpD6NnnzjKPHgPw1IzT1RQB5vlb00mxOZz3 4C0uVR5t8Ifv5dlvnJ8jKmnEwXC2v0U2rzyTacb3VZXq8o94k7IimUeN9rEFUSD3J437AmMXMgZ a9A+3ow9OHZBx8If75dim43LuU7r5XLEOnDPPGYsfnaRsKafkL41h1ElR+adhPOzWFfk= X-Received: by 2002:a05:620a:4141:b0:8b2:6eba:c45d with SMTP id af79cd13be357-8c9eb20cebcmr1085527485a.2.1770029841916; Mon, 02 Feb 2026 02:57:21 -0800 (PST) X-Received: by 2002:a05:620a:4141:b0:8b2:6eba:c45d with SMTP id af79cd13be357-8c9eb20cebcmr1085526585a.2.1770029841519; Mon, 02 Feb 2026 02:57:21 -0800 (PST) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8dbf183ccbsm843100366b.34.2026.02.02.02.57.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Feb 2026 02:57:19 -0800 (PST) Message-ID: <9b4ce86a-8529-4c55-9dcf-caecf81e46d8@oss.qualcomm.com> Date: Mon, 2 Feb 2026 11:57:16 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] remoteproc: qcom_wcnss: Fix handling the lack of PD regulators in v3 To: Val Packett , Bjorn Andersson , Mathieu Poirier , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Cc: =?UTF-8?Q?Matti_Lehtim=C3=A4ki?= , Luca Weiss , Vladimir Lypak , =?UTF-8?B?QmFybmFiw6FzIEN6w6ltw6Fu?= , Dmitry Baryshkov , ~postmarketos/upstreaming@lists.sr.ht, linux@mainlining.org, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, llvm@lists.linux.dev References: <20260201210230.911220-1-val@packett.cool> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260201210230.911220-1-val@packett.cool> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: NjvPskruZVZYSe6JXCwWiEXLNkz-NEqO X-Proofpoint-ORIG-GUID: NjvPskruZVZYSe6JXCwWiEXLNkz-NEqO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjAyMDA4OCBTYWx0ZWRfX6nLs45t6hOgg PGHmaqPmN+yUMp04ocf2Lxphu388gejKJVHS2nrpNAbzyN/9O1Hevz96ENuOVzTL8BshRpfkMHA CFuAiT9tJzx+/j7i7U9Aj5+BlMwfrQ+yQcFe/LdMLTSre9i5DaWe+XMQKVjCR4jiE8F11qQXAVV 3Pgh82zhKQRid6TDcYnuEDsb6jcmKW/MkTX0wlGoTkbNcy+6dlb9x0ogDZ+bAUWSXip+xTMKOgQ xZkH84EI3nyd3PVW3JPKKpQX6MBuECMZcupmS7YyB9jC0vvdHHlar+B8v3BGxqQV9g5PWS8pdt0 AhpjccAag7qqU3pV1LmJYx6BHYKTz5q1nlCSH6env8IuDQ2t8VJocPUMR85W6uJ1IXJ6pcQ8KGy MjRDxsmkyjXpbFmGkyrSEbFpTl3RX+BB2cDBXI1em4PyTlJl64DA78tKrtfQ8yMUMQSGgZNg21g wt+neOZfhdzXmDoUlGQ== X-Authority-Analysis: v=2.4 cv=T8OBjvKQ c=1 sm=1 tr=0 ts=69808312 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=1XiK3UaZtGXvnlVxuGgA:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-02_03,2026-01-30_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 clxscore=1015 suspectscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602020088 On 2/1/26 9:55 PM, Val Packett wrote: > The changes introduced to handle single power domain platforms have > swapped the info pointer increment from num_pd_vregs to num_pds, which > would shift the info pointer past the end of the array for pronto-v3, > which does not list power domain regulators in vregs. > > This showed up as a difference between GCC- and LLVM-compiled kernels > on SDM632 devices, where only with LLVM one would get the > "regulator request with no identifier" error, because the out-of-bounds > memory ended up being zeroed. Fix by skipping the increment when there > are more power domains than regulators. > > Signed-off-by: Val Packett > --- Reviewed-by: Konrad Dybcio Konrad