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 1C9C633FE06 for ; Thu, 29 Jan 2026 10:27:03 +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=1769682425; cv=none; b=fri1ZfzibwSPFkEaASd8no1CpztiGi5RN7CAzwyrVpgTx9DydT/EfN/jQfLqEp77L+Sw9xV0hFdusZBM5TsdygTQ/4QCXdeiADyffWmJ+xjDPSNAiFk3zspMKcqFlHZUqQoaWGK3R2oXvTitOYzJleV75zq3nc8x1hsxLGV83+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769682425; c=relaxed/simple; bh=Hui9zb1nk+fdGdOHzvVsAdvGu5LtC8YsvDonwPjXSq8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qSUxAvnuLu2PZXG+FD+NtTGVZ8f6UIDyAZJpS2R4gr3IwDf9ydUykHeJ5aLLzIyh4WWdeahdAJYRuwnSkjtBK/9i3jAfVcMgVU9Y6pOPH1++dj0Jf7/NHEDnaSc4hYfJXYYPVQbdgo0bERafTSv+5JPQXZ25rQiurlOCn504x5Y= 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=YqzbJf3X; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=QZLYBKkQ; 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="YqzbJf3X"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="QZLYBKkQ" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60TAPxwk3642973 for ; Thu, 29 Jan 2026 10:27:03 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= poJxw3O33HGhuN9ILVRF83I2m99nsoSK8pXDKw4sctc=; b=YqzbJf3XVsErNCF9 VBNz/ct0U2LFzE4j2NVfNJi3vOZ6st1Jo3CMmFt8e6i/yGgrwGbQePinMlmLIcPV d31XwpI0A0b5ocpuQeExeqdzs+PC5ob4THW0ArXYLqh0b0X2uHZR51cAGzNaF8f8 xVzcO4pCduevy3mViJARVHFmmiZ9wYs39HmlkP45vU6cC5CwW5d5YlXgBKJiuYGv NJBSv/9UM5Mq1jeECQQ1mKpEmolMgQg+5xtwwZPNfYKjX99kw7y/lhnyrVAWMed+ saV+RfxGOqSmF3940xlfohnT//8p9jpxASW0DX+8ubI217QTXm+BVVBY+ur83OdU 8v+24Q== 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 4c05sr004n-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Jan 2026 10:27:03 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-c634b862fcfso584657a12.2 for ; Thu, 29 Jan 2026 02:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1769682422; x=1770287222; 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=poJxw3O33HGhuN9ILVRF83I2m99nsoSK8pXDKw4sctc=; b=QZLYBKkQmRv3UU2I06YJVzHRyIRBPO8kR432cRTqSKUHTMDr4+oqdeKzVPtXBURxtt kjhKUj9OvU0R4b44lEp7qoJOEcyP7yejZLMwbxyh4vMG91JC2UO9dh5WLWedA2ASjlXd /Mi1sgaZP7o/gBlaSfzHfVWQYkObYi7cxjL7/wdJc7giGZ0d8nDa5K2kBRh6kBAfygEd r00bukkDYj3cvSNP3EbfYJVKSJZqrnCsE9p8CDWnGhoy9PIutdL4GYUE5EfIqu66KFJq tr0E2UWuA6MQuf9jFuI2oPvAXDRHQLykByBV+MuYr45fC1YKFnfPPsdmJn6rJDrTE67m pvwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769682422; x=1770287222; 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=poJxw3O33HGhuN9ILVRF83I2m99nsoSK8pXDKw4sctc=; b=YoJ/OpGY5xvxCBzz56BJmkKGthMb8dsDoNbFc6E+I0g6Urj3Z0IA2ofO371BYwdV8f i4DhOZwB8BHsECalcCEx5dx0rAtwADmVIi0Yz8e7efnTHQAhhX7sK/rJX1vh60T6y0h+ m2WrtGNjFDSUkeTOeLhZA7WG/EHVjIC7YfMHCttQeGuk/zFq9auDCABbI9EVhcQv941W rf6mYRg2Ox3hyjxQ62LhXAm3DJnuzDdlkZlhJxS3zmC2LPvV6WhN8WjieDZbdjvKgA32 llxKGmdTJvpSZSbbflu4wenvL/S4P7clWh7tI9m/dDu3VqGvnFjGBJsGrXyD1bEmz/7q 9iJA== X-Forwarded-Encrypted: i=1; AJvYcCVfBxTFulqWpXd7GOFb4lzRxgMrdNAJyWP6GlYvDjx2iOiLjYclT8gPyzSzlzGsSEd3kYYx8DN2dlNGswE=@vger.kernel.org X-Gm-Message-State: AOJu0YyfT2uauLLk5jydxwghjQP0Q8ECrR1fPpFiNDrWodfgYld0MELR 2PBaT4IUrYS8bZ1i2+j4QUYOLCjFTinYnWprV+//NygkIWXpdGmdJnrYQ7tXk9uhmQqMtsfFjJy vIjHMIW1if4y6T6mXb4kmBf/qilQiFbc2ayncRZKSz0/pbhZ73e05wStLEL/1WdP6sifWZHBYUf M= X-Gm-Gg: AZuq6aLlRb74mF/61VsMZJIrW+Sv5wKTTTfUmczVh5FMtz26R+w9LYk3386brsara53 AWvCX+MrMsisfUD8mOhcU/Wmy1CPT6PpxhituPeAji/2hg4LvJL9fHH/TzEB+i9VoFFSgYD28lY RtaHZCFIXCzdIQGdGluWVlHjlJUU5E1J5BESnKf0wb9PwJuGpTzyal5do/mJLIoVtTkA1EVdMB2 mp7urLd1wRcRrw/SsDOGwbr5js61KhTeim7OTiLJ2BzAKv26Ka7aRihY7l4odQUT6L0fxGK9RyB hVzXWlCMi3aeIl5CEanyn/EUPrKCZeMVaK5VJg+GZNM5PZC3o5+bJLrlGvApAwjBR1CwRIr78C1 it3MUoo7wzzgDqy5f/7NYgu7j/mN8aTXJQQxn7g== X-Received: by 2002:a17:903:2a87:b0:29f:e787:2b9b with SMTP id d9443c01a7336-2a870dd93a8mr83226805ad.41.1769682421786; Thu, 29 Jan 2026 02:27:01 -0800 (PST) X-Received: by 2002:a17:903:2a87:b0:29f:e787:2b9b with SMTP id d9443c01a7336-2a870dd93a8mr83226545ad.41.1769682421301; Thu, 29 Jan 2026 02:27:01 -0800 (PST) Received: from [10.206.99.28] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a88b426ae4sm45721695ad.43.2026.01.29.02.26.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jan 2026 02:27:00 -0800 (PST) Message-ID: <37e2876f-6998-4e79-8696-c7f97307a28f@oss.qualcomm.com> Date: Thu, 29 Jan 2026 15:56:55 +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 v5 3/4] misc: fastrpc: Expand context ID mask for DSP polling mode support To: Dmitry Baryshkov Cc: srini@kernel.org, linux-arm-msm@vger.kernel.org, gregkh@linuxfoundation.org, quic_bkumar@quicinc.com, linux-kernel@vger.kernel.org, quic_chennak@quicinc.com, dri-devel@lists.freedesktop.org, arnd@arndb.de, konrad.dybcio@oss.qualcomm.com References: <20251230062831.1195116-1-ekansh.gupta@oss.qualcomm.com> <20251230062831.1195116-4-ekansh.gupta@oss.qualcomm.com> Content-Language: en-US From: Ekansh Gupta In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTI5MDA2OCBTYWx0ZWRfXwJ1RpUyozSB2 H7evyX1TWHTByJV6TrXC2Nvl8Dh/phizotsKQpbAFiwZ0mi+4RtWwqKDAKONiUnOHj1FuwXByVE yTi6K7nFbkLCTtp8PuP83ZXMtHEd6CfmrrtzVrwU7bNpWXKpk2ow568YRUwiiKwqVtBkYRE6DwO LAQvHcdSQ83sDc5zfLiN1BqZ29OEnywEuPiuy2ObG3U5CwQqPo4x6gxYKJqla7Ir6FdPOnqFvFs L0DaCgvO2sVO+qMByAs/bVLNtQZVb/euvLJRA6t4ujOvG8Ke+DRc52U7EDi/kyt18OzaRE/Xb1L m7s9Of+jX6+WaA+2Kre41HVFugTgzKRYq/91pEr6vkUcSbodvzQN0MIgoXNhWMGcozDlz8CHDZU Y0WsxLswZzeiMhRg7z9Ut1A4rATRzSLmLY7NoygtR5tqv2gIK2WHfFE/xT1xM2dI89Psn+skY8y tpqzd2JI+6Nd4CXv5tQ== X-Proofpoint-ORIG-GUID: 4xdyE_AP07HOAuXR0PY_l_H6fcGNmvbo X-Authority-Analysis: v=2.4 cv=UsJu9uwB c=1 sm=1 tr=0 ts=697b35f7 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=XpT7ApHK0yhPgYAQ0KkA:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-GUID: 4xdyE_AP07HOAuXR0PY_l_H6fcGNmvbo 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-01-29_02,2026-01-28_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 clxscore=1015 spamscore=0 malwarescore=0 adultscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601290068 On 1/6/2026 8:23 AM, Dmitry Baryshkov wrote: > On Tue, Dec 30, 2025 at 11:58:30AM +0530, Ekansh Gupta wrote: >> Current FastRPC context uses a 12-bit mask: >> [ID(8 bits)][PD type(4 bits)] = GENMASK(11, 4) > Is it Linux-only representation or is it also used by the DSP? Will it > work with MSM8916? Apologies for the delay in response, had to go back to check on older DSP software. DSP will also use this but it handled properly across platforms. DSP get PD details from PD bits and mask it to use further for async call checks. Other than async call check, the context ID is majorly used for book-keeping on DSP side(no functional utility). So, it should also work on MSM8916, > >> This works for normal calls but fails for DSP polling mode. >> Polling mode expects a 16-bit layout: >> [15:8] = context ID (8 bits) >> [7:5] = reserved >> [4] = async mode bit >> [3:0] = PD type (4 bits) >> >> If async bit (bit 4) is set, DSP disables polling. With current >> mask, odd IDs can set this bit, causing DSP to skip poll updates. >> >> Update FASTRPC_CTXID_MASK to GENMASK(15, 8) so IDs occupy upper >> byte and lower byte is left for DSP flags and PD type. >> >> Reserved bits remain unused. This change is compatible with >> polling mode and does not break non-polling behavior. >> >> Bit layout: >> [15:8] = CCCCCCCC (context ID) >> [7:5] = xxx (reserved) >> [4] = A (async mode) >> [3:0] = PPPP (PD type) >> >> Signed-off-by: Ekansh Gupta >> --- >> drivers/misc/fastrpc.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>