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 8CF2630F7EB for ; Thu, 7 May 2026 05:04:21 +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=1778130263; cv=none; b=VG26tlgJSXaxIdXQsp5aLC8E4RsonmxwYPcLH3Xg5tV9YYYkoXZVC/yMxtODNMJYn2bcrp0EYbDYM8vngZwfY3WwJT9btsxfB8/RPwXnZjYBAeYwN0KqqdJoM+x05AQE4BsM4Q9saOx+qOGphwXAx6pNO6he4N4mirf2mbpS4VY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778130263; c=relaxed/simple; bh=hgqjW8KfkqTcrWolB9guuKyPRLtFQrE2y7JWIKYzEvg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O2FdXu+QSSej5y9bVw+/xUxiM8vs7kvluzKLVMNvUOrkYbK8+gfDwLiFqgy0GGPSASIwbAX8Pw++FrgBuRUS3AFqFI7361+I98BJQtE5wLc7sa5fGr/tcNAa7rC1iHbdtrjcULumnjJIJ0XUT2Auk/c+6nPAMNueejEK9dIgtnE= 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=LO7AI3SB; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=P+Q6ElVk; 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="LO7AI3SB"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="P+Q6ElVk" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64744AEW151144 for ; Thu, 7 May 2026 05:04:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=udpIyFeLuuX33ymGmzPtSW/W 6I5xBEaw/yKDVf5r3nM=; b=LO7AI3SBaYnt4ROPEdpYdRP8zwPlm/jqsw3QVPs2 N2BFAHROpPN7i+v+QhuTpWO0uzfzEU0SSjkHITB047Eak/tvPxrEIdcGARAEyaDh yUL+w25b34apgLNyaHZUS3wOqHTwgfsP+IYJHT8ZcRAlDeU+vCZl5/YhlNnl8gEg 7YH81a5IHJF7EOUoQsJZp38AlkRf6LN4plyXG2yU3TpN1thKeUlBsIj5APdx/RJf u4jw4s6G5Tw/Vx3zOvAIdpKaSbwEK4dNWuQsNP3fRq04EKRT8S03bCGHV49TuNGj xPukBWGxaC42wtX1PJ65PYJj/ypzP/AjGEth+pc65kehyw== Received: from mail-dl1-f71.google.com (mail-dl1-f71.google.com [74.125.82.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e0kctr4s0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 07 May 2026 05:04:20 +0000 (GMT) Received: by mail-dl1-f71.google.com with SMTP id a92af1059eb24-12c8ccc7593so1140380c88.1 for ; Wed, 06 May 2026 22:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778130259; x=1778735059; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=udpIyFeLuuX33ymGmzPtSW/W6I5xBEaw/yKDVf5r3nM=; b=P+Q6ElVkI7/poSx+Vq1A4Y4nwQDbfRE9OD4qt9v28wunZUXPdIYyWB8Cng0l0wTUtr ftVIw0vt6qY1fRS8F2LFmlIHAdNW5rCL3mnXz4derxkirYUaWwkxBLU2qZo6omdlNOG9 ey+UT+/5XMEkBbsFGIgSB/QLGam8pwcfmlsnyeYQjVn8x8JLWNIb7UreZIUGGTgU/647 wzfIdEB1WpAiguZsJch/sPs5tsUT1bDtBNODF4YYQNVd4MTiQEQUZ5bcGPho+4LLUbUh NmiNKYZvsIX41f4bG4e7jASsS93ZWxy6PYqZQhhfUFxZalaQmj+vHSkmEr6GQT4vPkzd 6GLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778130259; x=1778735059; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=udpIyFeLuuX33ymGmzPtSW/W6I5xBEaw/yKDVf5r3nM=; b=VotPQJpdClDcX+gUD1IAooFmBEiAW+dDbByfg4SQ6LSxrRkHpdPHY/Vp0F7W18K8/q dSLWl9nxo6YKXnF/eFWOyKCz1MjXM/3PKX1PE4SxutPBZS9w3a5I25RTKtYFsLa11NdJ y3ClLmYU0YlQgj70CZs6397KvV1KRGZBknrXN5O0qsg58+SZu2WMDSEz6FetotlbWn2z i6XBMp3jmEeg3uS0iQ8dl8RzszME47Tb1LTXfovEQ4G2cLhxQquitgX4vxORX69aUbhr LA/pcI12dRK4NDjCETT8rQedJVd+xwvNwbwZwt2cjlmTC/IC51hE/0M+LFD1wybwvYa3 G6Fw== X-Forwarded-Encrypted: i=1; AFNElJ9stQ+Sf3wWd38m4mUvbAD3sCIcwtCp4TCTOZKOg3EKCiSDB5UYIezrkF3gG38FML1jVPUhk5/jvV+dz+M=@vger.kernel.org X-Gm-Message-State: AOJu0Yzy3RLnF8R1yRmB2/BuGTEJND43fJqi7j0DpwQ0QGs9HhBY5c// wj8i4VYD4TZqkaOMjblGn0oMtHOKOc5Aj0UL7K6VfvjOD275CCRoXCk938JfHGcZ3WACm5Q2S/p 7LnNBOVCuKBWGViPgxkFWLRDQSprneqe5fwtu/krUAcXOwZ6UlB1ewxQkWFFsjDWXEw69ZoxVq+ c= X-Gm-Gg: AeBDiet1hJ5ur2YjLM1W+tQrpq+2CgQYe2V8eilIKMEB69wOZDhfw0vHIhr8saTlF5a R7ElY/EVIrtyhYbHAjOA+axgrQQnlj7zETLUevzsL+1Vz7Kn8pyOwqmjkLp2MLIxCjSCGFkaWTM 62md/ugS8+MFStnGWRjeslF3TG7qdFyPtLkSKaCale7MNv56+hiyFvLYE2xnMQN8TWVKp1N8uXV pEVyNCFZyDvC+hwb19DV2jFD8d8Adqt7RQkyw2gQVXjfIsBAL/XaF9lqZ8brXt7ElOOYfUvQOMp et36setVkIgKbzRSiJPC05boVUdkjB5P5cWZvIKO2WFk2yDTgUX9TmnCxrV0jXBK8SV5Ub7HxF7 EhiBCTAlw1NNQArEJzMIi8Txd0O9NkMVec2eISp4hhgmxfaAYbt0Yxeb1UfJsdEQBfjDxk0Qn1/ w= X-Received: by 2002:a05:7022:f005:b0:12d:e539:98e0 with SMTP id a92af1059eb24-131963a0fa4mr3238565c88.39.1778130259267; Wed, 06 May 2026 22:04:19 -0700 (PDT) X-Received: by 2002:a05:7022:f005:b0:12d:e539:98e0 with SMTP id a92af1059eb24-131963a0fa4mr3238544c88.39.1778130258627; Wed, 06 May 2026 22:04:18 -0700 (PDT) Received: from QCOM-aGQu4IUr3Y (i-global052.qualcomm.com. [199.106.103.52]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2f56cec592asm7142762eec.5.2026.05.06.22.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2026 22:04:18 -0700 (PDT) Date: Thu, 7 May 2026 13:04:11 +0800 From: Shawn Guo To: Jingyi Wang Cc: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Luca Weiss , Bartosz Golaszewski , Konrad Dybcio , aiqun.yu@oss.qualcomm.com, tingwei.zhang@oss.qualcomm.com, trilok.soni@oss.qualcomm.com, yijie.yang@oss.qualcomm.com, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Gokul Krishna Krishnakumar Subject: Re: [PATCH v5 4/5] remoteproc: qcom: pas: Add late attach support for subsystems Message-ID: References: <20260409-knp-soccp-v5-0-805a492124da@oss.qualcomm.com> <20260409-knp-soccp-v5-4-805a492124da@oss.qualcomm.com> <7bd01424-e611-449f-b5e0-7c823ad3b978@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=us-ascii Content-Disposition: inline In-Reply-To: <7bd01424-e611-449f-b5e0-7c823ad3b978@oss.qualcomm.com> X-Authority-Analysis: v=2.4 cv=XsPK/1F9 c=1 sm=1 tr=0 ts=69fc1d54 cx=c_pps a=JYo30EpNSr/tUYqK9jHPoA==:117 a=b9+bayejhc3NMeqCNyeLQQ==:17 a=kj9zAlcOel0A:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=DzB75-1vIS7bBwd3HdEA:9 a=CjuIK1q_8ugA:10 a=Fk4IpSoW4aLDllm1B1p-:22 X-Proofpoint-GUID: xNbe3twoj1cswyyj317BZf-Chdd-DlE1 X-Proofpoint-ORIG-GUID: xNbe3twoj1cswyyj317BZf-Chdd-DlE1 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTA3MDA0NiBTYWx0ZWRfX+w48cIrUCWJT uTgI+Ahy+lzLOR3A3jNwLnfJMu2AA1zb6mLtjiC29nk0/WCLkVMgAOoBNQ1QPMpJbh/3P1QLzUZ WEeMUiUCvI/DKeN2eWSloD9dTjOJriAMFSgmprWsIIfZxiM590hkEL4RszH9qw2MWmMhhQ3F03o rEpVtdPp8F5KSOzJXPHM/NTYUHmub4Z6N8Ct4gbECZaVyeAqsBu3YEm5yTNVxt1ksF9Om8UAKwm gSJq1rQ3nx440JY4aZZ0kNAH5BER+1QdAqtRX5HatwHu54mSqUKzVBt5iQDoariPOGVf1OvJjPW PKQ6cCFk1T7dfMNzgYHVyfEEGgYng/cwSjnJmMncLNf/g8Yrl+LfE0m/+8HpfuGczKtPYBJRjMv ai4vDmB9pni6x5vv4BrQmMxNgiXfskeTxhZTlKUrLpubwRKTQd3qBcjMoEbYTasrQqzSABd1DU9 +3LBL9VKKhehSC5gLdw== 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-05-06_02,2026-05-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 adultscore=0 suspectscore=0 phishscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605070046 On Tue, Apr 14, 2026 at 12:56:11PM +0800, Jingyi Wang wrote: > > > On 4/11/2026 10:59 AM, Bjorn Andersson wrote: > > On Thu, Apr 09, 2026 at 01:52:27AM -0700, Jingyi Wang wrote: > > > Subsystems can be brought out of reset by entities such as bootloaders. > > > As the irq enablement could be later than subsystem bring up, the state > > > of subsystem should be checked by reading SMP2P bits and performing ping > > > test. > > > > > Hi Bjorn, > > > > > I still don't understand. > > > > Are you saying that devm_request_threaded_irq() will succeed and then > > calling irq_get_irqchip_state() will not work? Or are you saying that > > SMP2P driver isn't reliable and we're loosing the ready or fatal bits? > > > > This says the ready state is getting from irq_get_irqchip_state() > instead of q6v5_ready_interrupt(like what rproc start do) Hi Jingyi, I guess Bjorn is questioning "performing ping test" part. Is that really required? I'm testing this patch with Nord ADSP which is brought up by bootloader. I have to remove the ping test to get the ADSP attached, as it appears that Nord ADSP doesn't support pong. Are we good to just check ready bit for telling whether a subsystem/dsp is already running and remoteproc should attach to instead of powering up it? May I ask you to copy me on the new posting of the series? I would like to make sure it works for Nord ADSP as well. Thanks! Shawn