From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 D2C573C3BE6 for ; Wed, 22 Apr 2026 09:38:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776850712; cv=none; b=TrxCt1IBXZNwXetd/SMlDAqcjURqeFMi/291TQsi9UbMdF7sIS6Rx3PNcy7kxrYfX0IDFv0gB+jrC4kuZG0LaJGnRW0hY4Ms+ArH8xMbBMFrQiHkHZFcTUzOdeghCwwGaiotypu3h1MZlKF8PflGlY5RbgiO8px6SuCt2kpcTAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776850712; c=relaxed/simple; bh=OoH9c8E/wn5FrrTOM9zb/djBmlVgHz76+CzvecM34X8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=B9hkeNWCOFBesfS2hg48KVDtalZ58ZiuwEbUiPDBMfo5j/6DCUuRuDNjIRBLLbyea2TAzuHbqtMQxirs6eguM6T90isnUIn0sz/7fQNSrjT9lR09QySW6oUliiazl0mdJ6P2kJCSp8e3uEVXzM3+Ync6FRhJ6FXLO+P0QIX3HZA= 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=Ztb7zrM9; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=JFDFfZ8I; arc=none smtp.client-ip=205.220.180.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="Ztb7zrM9"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="JFDFfZ8I" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63M5AlOo3377462 for ; Wed, 22 Apr 2026 09:38:30 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= 1V6KAOfun+E8wCUnyXxLRGpcFdc9Hel4k7ATRwu+OA4=; b=Ztb7zrM9Mw2hinAD 42YBcdCcOi594hJSUcMrQk4d0luQV2HEyT/bniRA2KdKI0G5EWrN/zv7zXRWrg06 UxO4hsvaZHi2qj1MNdWhka4KaUyQu++RS3exQoVfrF3MLS13lP2CmaPVaDt8nCqd xnMjXsA43VwP18FMqerAeDQmP61Tz90rzPiduRSeoitE98QgQaftW+52cIFKNE8Y mgES3zORsB4tgldDVX+wIo2+CB9DjkOpzDUOFb0+Hxz9tCFE2Irsfir1hFKPHsV6 v31+vfcfG6cjIai6N93MqUGDIF4mXNBgbLSDVtn+J5WX36rlyfAa/on+w7cMmXJ+ L5Ic5w== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dpeng2ts2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 22 Apr 2026 09:38:29 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-82f6b984b3aso2884230b3a.3 for ; Wed, 22 Apr 2026 02:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776850709; x=1777455509; 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=1V6KAOfun+E8wCUnyXxLRGpcFdc9Hel4k7ATRwu+OA4=; b=JFDFfZ8I3tHxtpjqjQ/oHzc9pmFSOB0/5tfhp2XWCc58FWCfKnfTEGSn3bETw6LvT7 xivQnSataDT/+WR/4n1u3NDvB/DWsNTPZiT/WHGrjGD70fixn2X2jf163EaAVJ4hnWCu TncZ6o6ZLtSvtvIYTimjQ+axE15F54NJYQrY3VdUFc/+ab1LweFkSSR4e0f28TskKvTb +b1GvhbGpgoGBz3C1nrCjb2OOocWWOxwkXX2ILfO1yqu0RrPqb3UbhgFimmyeQxEuSwc 05/pbmh2h+hEsDvPVmF6QAa4CLi6QJElRvBLj85mV0kdIf9IfiEo0lzrb8ajxD1viM70 5vtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776850709; x=1777455509; 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=1V6KAOfun+E8wCUnyXxLRGpcFdc9Hel4k7ATRwu+OA4=; b=TLcDZrrCvtobCTatlp+OR+u9HLC8U9REXtNMJawOHAZw/ojIfOk5MD5H2rJKvFTahs ZrFx+Z1JlR36gB2Nt9Q5Qf7VxNiVXrVs1ouvfKplE340m3fH2URO8JQym8tj7+phddrU QZ8x7i3MPn2JOBfcKUqirXWHHZzlJPnXDJV2B4nyv6LKrJOBary1oM0ZDaAc6nSEK6wW pjdNjYQiVsv07I76UmzyTnSzy3hVLQ/6P6bP42as88vIsfmgxX/qqXi71UK9oXdDq3M0 MI9sogo/c39F1rK9Wuk2pSem2i0EDvY9tC5S68zNdk1kCRwWdN0WVccAJy4yDKXMHz7y w5fA== X-Forwarded-Encrypted: i=1; AFNElJ919T32KIhfaX1bozO+bwpao4/avvPFZMQ56Pj7vzZELWXpoHiekN8Byz0ebIZvkBdOGnAnyQO8TI+WPRI=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8LQdTi3KVScgXb/Z+p16+XAvP/dUoTPuFelrLAumzZ9zjsGTx 0xLyC4EFoon5yGmxI46VzEJZ1qctIMUVCJl5Cq0n7sTCthD6gEVMMbuzm7xqxDrgoTGuTpsRRnY xIKIS14c7s9B6vGiDSC2uB1XS3HgJLN0PsE1yfEs1Y1uuvkokcK7yiyrv9NzWEqXw2Bg= X-Gm-Gg: AeBDieuduY0e90Cu8ryJowFbvLMbyRvI2xs5d5Fw82YpOubahySrLSPPlqV6lLexH7N PsNiJ37GTXQ5anTXuXIpycNmet1JIxKIozD9Ck568Vh4NOf8pJ5YAeacph08yqGYU1ashHA6V5H nabbFuBFYqrhFvco2cJbdb9r9eG7zwxSjckbzx1wNv0rW6Mcxq4px1D2lNFHwQIVuHdyrZ/eFI5 VLW7qJ9Fjq8btUMph0E1m+nmD0aopg0K3ll2hPPXnIg4DIBQT2C3Jirqzzfli1H0mUNrgi7zqZZ bOOkHRq3eE+5X1mu2Yqg6xWjYzKbI5fpAqH68lCMMPoSCeAip6Xg+Yi7/Y7dxCYWcVErZkp2w0w 0tR3dHF6rhX4s/fhXwAP0R8UaGIenpr0+kKDp1sNTH2wpAFZZAwC4V5t4eJb4 X-Received: by 2002:a05:6a00:1307:b0:82a:6b97:34ae with SMTP id d2e1a72fcca58-82f8c8fb893mr21864623b3a.32.1776850708586; Wed, 22 Apr 2026 02:38:28 -0700 (PDT) X-Received: by 2002:a05:6a00:1307:b0:82a:6b97:34ae with SMTP id d2e1a72fcca58-82f8c8fb893mr21864572b3a.32.1776850708023; Wed, 22 Apr 2026 02:38:28 -0700 (PDT) Received: from [10.204.79.66] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8ec0307esm16782410b3a.53.2026.04.22.02.38.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2026 02:38:27 -0700 (PDT) Message-ID: Date: Wed, 22 Apr 2026 15:08:22 +0530 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 3/4] arm64: dts: qcom: sdm630: describe adsp_mem region properly To: Nickolay Goppen , Konrad Dybcio , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, quic_chennak@quicinc.com, quic_bkumar@quicinc.com References: <20260415-qcom-sdm660-cdsp-adsp-fastrpc-dts-fix-v1-0-03b475b29554@mainlining.org> <20260415-qcom-sdm660-cdsp-adsp-fastrpc-dts-fix-v1-3-03b475b29554@mainlining.org> <70d4dbe7-0e5b-4065-858e-b5a57bbf45e3@oss.qualcomm.com> <54b1be0d-1ec3-405c-b1ff-bc759b80e7bc@oss.qualcomm.com> <905374e9-1d90-4789-871f-f28e5d7ff8b1@oss.qualcomm.com> Content-Language: en-US From: Ekansh Gupta In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=CNUamxrD c=1 sm=1 tr=0 ts=69e89715 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=NEAV23lmAAAA:8 a=VwQbUJbxAAAA:8 a=OuZLqq7tAAAA:8 a=EUspDBNiAAAA:8 a=awelrzymAIGObDfGqe0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 a=AKGiAy9iJ-JzxKVHQNES:22 X-Proofpoint-GUID: J38nt6KxYUNf01xVSka3XJBKUc_zoY7m X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDIyMDA5MSBTYWx0ZWRfX8apDCxcqJtl4 0PoeNmE6WYlu8TTIQaru/Oy9zDRt8h4ujVTLEMGCd+NEgTOlpnY1M/3jNgWTx1wNq4noJrFmYQq Z1+Z6MSLapupN5I3iIxDSCPN/JqSyYyUZvtSNBvitvQmvwqd1P9Fdgol3HtedBSTb0S9upiycem DTGrG/ZnQbH1FdV2k3+4GG+hpQrmvlk8F38535JUlOIX0nehfyRYkPZ+b47s9hjdJWeUH4F4/3l w6bwCy/cEtr0T8oOkduHNz4F/NiydTE9eMd9RGwDilxc4PYbFruH1y+s/SA23ef4oX6uLCYTk6s DJ+xf3iF2p4izW7wPns8keZ25YaE+3FzIAHeLeGGwAaB8dSQByWVbhFAHQPhMnn+1CTTEWvAcbS GS1ysE7gp3vwWn4mLgfv0DNCA05Rnvl7CVC5m2aLe5obEyivdgDK2U1fZr0zKZXcqACRicou0gg SXMGFj3Rig8CuhFDsHw== X-Proofpoint-ORIG-GUID: J38nt6KxYUNf01xVSka3XJBKUc_zoY7m X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-22_01,2026-04-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 bulkscore=0 suspectscore=0 clxscore=1015 spamscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604220091 On 21-04-2026 14:02, Nickolay Goppen wrote: > > 21.04.2026 11:29, Ekansh Gupta wrote: >> On 17-04-2026 20:45, Ekansh Gupta wrote: >>> On 15-04-2026 15:22, Konrad Dybcio wrote: >>>> On 4/15/26 11:40 AM, Nickolay Goppen wrote: >>>>> Downstream [1] this region is marked as shared and reusable so >>>>> describe it that way. >>>>> >>>>> [1]: https://github.com/xiaomi-sdm660/android_kernel_xiaomi_sdm660/ >>>>> blob/11-EAS/arch/arm/boot/dts/qcom/sdm660.dtsi#L448 >>>>> >>>>> Signed-off-by: Nickolay Goppen >>>>> --- >>>> +Ekansh some insight, please? >>>> >>>> We're giving away that memory via qcom_scm_assign_mem() anyway >>>> and I would assume that making it not-"no-map" could introduce issues >>>> when the OS tries to access that region >>>> >>> With the current version and the upcoming planned enhancements, I don't >>> see any major benefits of making this as not-"no-map". >>> >>> With posted enhancements[1], the plan is to qcom_scm_assign_mem() the >>> entire memory-region to lpass VMIDs. and un-assign it only during >>> fastrpc_rpmsg_remove(). There have been implementation in downstream >>> where this memory is dumped in case of SSR or audio PDR using minidump, >>> so marking it `reusable` might make sense there, but that dump logic is >>> not added upstream. >>> >>> Upon checking the DT, I see a bigger problem here, this memory-region >>> looks to me unused, it's not added under fastrpc adsp node(ref. [2]). >>> Please correct me if I am wrong about this point. >>> >>> [1] >>> https://lore.kernel.org/all/20260409062617.1182-1- >>> jianping.li@oss.qualcomm.com/ >>> [2] >>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/ >>> tree/arch/arm64/boot/dts/qcom/lemans.dtsi#n7500 >> Just had a new finding on this. There is one more reason why it is not >> added as no-map in downstream. This audio PD carve-out region is not >> defined for most of the platform's memory-map. >> >> With a change to qcom_scm the memory during boot-up, issue was observed >> on RB3Gen2[1], where EFI firmware was loaded in the memory region which >> was causing boot-up issues. >> >> So defining it as no-map might not be correct and it might need be >> changed for all DT files. > So It needs to be set as not-"no-map"? Yes, that's correct, but I think the static address setting should also be removed. As it is not present in memory-maps, I don't think assigning some static address would be correct in this case. Konrad, till now I have checked this for multiple platforms and I see carveout defined only for lemans, monaco and hamoa. I believe, for other platforms, we should move to `shared-dma-pool` with `alloc-ranges`. >> I don't have a history of why it was added as a "no-map" region on >> upstream but looks like same has been followed for almost all the >> platforms. This needs to be modified based on the memory-maps and the >> region needs to allocate memory in a dynamic manner. >> >> [1] https://github.com/qualcomm-linux/kernel/pull/487 >> >> //Ekansh >>> //Ekansh >>>> Konrad >>>> >>>> >>>>>   arch/arm64/boot/dts/qcom/sdm630.dtsi | 3 ++- >>>>>   1 file changed, 2 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/ >>>>> boot/dts/qcom/sdm630.dtsi >>>>> index 4b47efdb57b2..13094b5e9339 100644 >>>>> --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi >>>>> +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi >>>>> @@ -495,8 +495,9 @@ venus_region: venus@9f800000 { >>>>>           }; >>>>>             adsp_mem: adsp-region@f6000000 { >>>>> +            compatible = "shared-dma-pool"; >>>>>               reg = <0x0 0xf6000000 0x0 0x800000>; >>>>> -            no-map; >>>>> +            reusable; >>>>>           }; >>>>>             qseecom_mem: qseecom-region@f6800000 { >>>>>