From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796212736; b=Er9pTf1crqKo+p5GeDyi7tRB1hRqC1M1L6EcaiW6UjySBcJYFKFyIcMCmDxjEK/lJjGH Q62y6C4yJ3rDLuCwEsiutU0aDXhqlQ//qSsjBINwmaCz/cNCTOuT1aFQcf8dGhrXZmMc/ 9K0MSOn8BzZbNBp6a78rXWkcZZk51RigCjrcU8omw2yVIUkXBznfu2HDYbtzFnI5jQB21 XjNpT8Y86+7xkorAFlFkEV1rqaCUXLuDfOi8mkGtgxB9/kQgsep7Ww/cWEUdXkpkAC/yl 7XNxh+wzrIshR++5kwlEOrjIOHsfG4PHnZlDAPn4SSv+FKT4q+wU6va9z6ao49lTWMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796212736; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Proofpoint-Reinject:X-QCInternal:X-QCInternal:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=qfuDHLmQhFDy3F5P52UOedrk2X0Y+dHzLrMiUjgbw8s=; b=WJOzgqhjZHXihXTRJoTqXd/NCwUUpLEOPn0BSfm++MeMPvP+GfVpRsuSyOaM2IOiI5yC mMsmwCgCZe9phNr6kwSTK9mWVV0jAExzSZNcO9rmbBkjRV9Y6FVwro2Y39KPLsYtwmBL+ DnFf2YEFYDkP9XxM/hi2EMN6mQYX7mp/GUAMc808JmYwLy+X4HT/hx8oHGTvZzyFyRwh9 c6pEp4AbLvAPuiNRtTgBr+XwY28oukfXR7Lp91n2bs63QcwcWPg9ZGn0JDpridAV1IPVa tyGDGl16r7u+mFSJuj7d36HKJ78a9izrJOTNpumFNswloEKZjJeYJ0X12GC4pA52ZBw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=F2p7FQE3; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 319D0606A31A; Wed, 2 Dec 2026 11:58:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 319D0606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=F2p7FQE3 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 6B2Br3cA1543674; Wed, 2 Dec 2026 11:58:47 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= qfuDHLmQhFDy3F5P52UOedrk2X0Y+dHzLrMiUjgbw8s=; b=F2p7FQE3KKQWZrXS hmndas+CbEVjL5Z6hl8lDq9gV7Bx8oXcjMmd9F26vYKYscbCHP9bpExwb6GFHls6 QdDKJ0mh4F2j5a7F/TCGHsvqCZz+EFQU17g5sfczGv4ekVPJ7/Ivpkszmclhnbz5 3TcNSZbQ6kzS+HRFFPPoTNyarKkuUFhPFL5XyORDLl0ymfp7Xp0Oags9R4YGxlvj KfDfe3MMNjoml5Zk0pI+4Ghr5VaFMzdpE97wjj0nzTwIwZGu9iEzUgt293aST8/9 sI8756G0WJluWxZTaaQofnO6PIBjZww6+hXuamJCMyDCsADrPOY3AtRqCNfNouHy WmBfrw== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jajuq00p9-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 02 Dec 2026 11:58:46 +0000 (GMT) Received: from pps.filterd (apblrppmta02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B2BsUG23600761; Wed, 2 Dec 2026 11:54:30 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-mohis-hyd.qualcomm.com [10.147.253.64]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 6B2BsTuq3600755 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 02 Dec 2026 11:54:30 +0000 (GMT) Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 4840500) id 03BE266D; Wed, 2 Dec 2026 17:24:29 +0530 (+0530) From: Mohit Sharma To: Srinivas Kandagatla Cc: Mohit Sharma , Srinivas Kandagatla , Bjorn Andersson , Mark Brown , Ajay Kumar Nandam , Liam Girdwood , Konrad Dybcio , Jaroslav Kysela , Takashi Iwai , Krzysztof Kozlowski , linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] ASoC: qcom: q6apm: Guard callbacks until probe data is ready Date: Wed, 2 Dec 2026 17:23:54 +0530 Message-Id: <20261202115354.3297105-1-mohit.sharma@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <9cde423b-e71a-4038-9e89-d6ecd7da5399@oss.qualcomm.com> References: <20261022144130.2443667-1-mohit.sharma@oss.qualcomm.com> <20261022144130.2443667-2-mohit.sharma@oss.qualcomm.com> <9cde423b-e71a-4038-9e89-d6ecd7da5399@oss.qualcomm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Authority-Analysis: v=2.4 cv=B8QsQ+tM c=1 sm=1 tr=0 ts=6b1007f7 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=U25_ieWMbigu5zmP0sMA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA0NyBTYWx0ZWRfX8dptGGlQnfbi M+yGADbDrD8oMFX2WTPCQdxBAkY7cFjunBcc+rChj4dSkpzQumUrGscdSVA3JxjaHve0dTXIXvn S2FPi3wqPtfgr3fHQ4zDmjULBbMdn44= X-Proofpoint-ORIG-GUID: TqaBtw30PDKCYHtCn2Da3eQO3cVdY-Cx X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0NyBTYWx0ZWRfXwM5cZOECa7g5 KZD8EQS1dR1nKwL/cQoLQuL/ChKqpY6IpDnah2sv7Kro0QlfS4+Pwwb+/4RLtV1qp+4RczaTcvQ LIZIhSPHHoHauR2On9VPfacSir1Oh1+gTIVmgUUyHhxo4fpaiy7HZkfm5Gftg5cvZmkWKwtmx7C i2UcuZc/so95VlB0OcxpLUbB12eH69RmKa9DxwNQ7WrRJDZ+gVde3BOGHwClNUkrLXFDCiLiwDW haoa4GQVA9JM26BeT2uJHUkYzKQHcBkNUnmqFe1tje0FjBMIISNXJROA6fsGS780Sr/VMuPybVe dkY7VEgWFvGJOrn2KHVdWshFGdfDswide9MzEYdK0icr0m59kITThP1CxT3BgDdp35updIYwQZi sDx6GhujOHyNkJjdKJipknM4hktl3hrjhz8n1iJ6WB0Z5IAFFqVK3IVS2pBkLgeEQDHgk0LFWn2 sCavJTIKzMwK/nvke4g== X-Proofpoint-GUID: TqaBtw30PDKCYHtCn2Da3eQO3cVdY-Cx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 adultscore=0 malwarescore=0 suspectscore=0 spamscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020047 Thanks for reviewing. There should not be a response belonging to the current driver instance while drvdata is NULL. apm_callback() processes responses to SPF-state, graph/configuration and shared-memory commands. apm_probe() publishes its fully initialized driver data before issuing GET_SPF_STATE and before populating command-issuing children. Similarly, prm_callback() only processes hardware-resource request/release responses, and q6prm publishes its driver data before exposing consumers that can issue those commands. The q6apm_is_adsp_ready() call from prm_probe() targets the APM service, not PRM. Therefore, a packet received during this interval cannot be a response to a command issued by the current driver instance. It would be stale or unsolicited, with no valid waiter or initialized client state to which it could be delivered. I agree that silently returning makes this reasoning unclear, and this should have been explained explicitly in the commit message. Thanks, Mohit