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 942C0355F22 for ; Fri, 3 Jul 2026 15:07:08 +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=1783091230; cv=none; b=DSwtRiWgEajGCbqWRH5WoXU5NTIsoBuedBQzRPF/BgtKlloj3hCgcEbSDao1l8IszKR9oK3R/HVUpAIDVMpDUJja4Qem62UWaIlME+XT+m8jANfiz4F/7PxxKPpbzeIM+0AfIYURwtSCfFynNydSkwoEkwWPF3B0F3hxqtRy49M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783091230; c=relaxed/simple; bh=0w/d6iSpR9UaaKp/rDddcaeduOnJK9KBBmjSerbTYtU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ewfzfFsfEcUeIQjQvKCIOxzRu5VDAjXxbE6tHO8+qcqooBz8GB8c2VV+Zt67k9vwxqNO6tdvKr0cplmMwV0TUe46ETmKDHWt23sYS+/08J8L/Jp83r8D8Z5OB9OFJ1nFcL1Qe5hgweGAA59JLD8CvTufsOPJNyKq48ncjMqZQl4= 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=I2laStE7; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Kk2Nlrbt; 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="I2laStE7"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Kk2Nlrbt" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 663D16e7053891 for ; Fri, 3 Jul 2026 15:07:07 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= g/Y1MW5COel2wWx4p2DALR7RRNLnSVd1oYyWrSpSJXk=; b=I2laStE7JVO14Zny RUxphdbyneMw1OsRlTiKt0N99oI1NUu4z/tGStXgdRwGaWC+kYOJ+B0YCoFSgdZk 3kFuL3t4LyLKsVcAQDoHbZBAdp6uHK+DAp1Lvyg/4TDPszJd3VK2f1OAfufBvxXB HWDTC78TO/jS0BMzX1rmYzGuPS6h6LYKvonLQlGWwobLQEmNeTVNVD4wtPSFw69b /YWG2WQvs0zTl/iG/65M0nNCwOOvyH982WAl8ISIzOHiWx6RisnoNPrGzuYlQBIy r2Ayt+rO6n7GP7/qDetmB7+9Y3D3G/UW048SZ4923U0oQOznFMwLEf/z/Q75j3d6 OswDTA== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f6dkkgdcp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Jul 2026 15:07:07 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-92e66fe6152so14503385a.1 for ; Fri, 03 Jul 2026 08:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783091227; x=1783696027; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=g/Y1MW5COel2wWx4p2DALR7RRNLnSVd1oYyWrSpSJXk=; b=Kk2NlrbtX5tIlouE3x/4D2leuzq3KKQeJkZ6SIOpP4gpp+0O27zN+6VCWCeQthxtEw COoV1yLlqG2x0C1GWyGgS7EE0O3/H4eJ5pTDqKN6vBdI8oPkqHoxwg4wEsM5lN7INizC MLJUunjdENKia5ngfeMH5UkO8M/IzRjBUjg/6jyaAfHuw8qZ/QP1Gzi33R0XrTczBIPP Y5DRjclspOpKfHge5B+AkA5Et2N8q1sVrdaTUbPOtL9+BPP4FeUgoOlofaNgD05nObgQ yrgKIoph51MbdBib+UuE2TFfcvym3ohQBR3yKVI7oFOhQuDfC9vJdkjqhjG6ZkHVL+Km pYYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783091227; x=1783696027; h=content-transfer-encoding:content-type: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:content-type; bh=g/Y1MW5COel2wWx4p2DALR7RRNLnSVd1oYyWrSpSJXk=; b=QcGXEVnGM5ywWQf2QZv57bK0qR1bKk3Diou4UGhqtkyQS30G9Ib8ED+jbfcf50Z6Zb UV3HQtNBvkTdSOz5sfV92/ZL2YeYjBp8QkvAKimOqSs7kvDSjjhdDcxTQVd04ojidDdb 6PKhnTdwIkFHoLg6LPLXncSd5/Mal6cA86M3euwFti65H9zjW1cDLagqfYHNtNUoVinj oxQAW4j6JoiG8dXJVESb5kSENvwewOgihuRk9kzOGnTMzci2E9JCl9q+LixzHBAfu0t1 VcB3nXgH3DK8dRNJAJtHradp6tHwYj22u50Y1WeZIcronvaiy/Pkusnmp/VZSqVDz41S 8nYA== X-Forwarded-Encrypted: i=1; AFNElJ+ThZA+qFsAFOmMkbjTa0TVnZexFBrnhtMPJ0+naAxWPqz9mgqq9GoWxQoK6bZ+JPb9o2JJjRI=@vger.kernel.org X-Gm-Message-State: AOJu0YxtTHiVx/LszISFDY+OZ2nE3+w03P0PDzKnxXWRHgfduaPlKnXJ fKgLspEirxa4CbDq5pNjAGDy/KLCikvhSDxkotpRVurbv5/c/O2fLNi6sYVm5wSMMQWduOxe/nh aYLwTQXq/brtCPWq5lEK9+wCWPIR1fUVAVs606GTUJ0KjkpvyNnTDuIOIXlM= X-Gm-Gg: AfdE7cld/X6w6P9C96m/dZQMUmX1J/Qr28qn9DiYa6KyRnjE5sRG3n65OcvRE7PpiXx NCDRak50yYnbPqDgtsLLUTnpSx5fvEyhvSMO16LnMi5wC9OKaAXw3leDVgmglJHhuLvtGi0ccrI YyknQ/9B/WOjNVE2Ky8vBPa9Xzu7pNbsezISnA5sHCXRW9ku85cUbAQBGg8fq2AorisweteVKgx pUKi7Cdh5aYeNjvHC5FoKjJM3R9xL5EaRMfKvqlisfzaRqBH8beAK9WENh4lgP8NQH6U6UArvpD pvLkqZaIqkPlz3bol1dm8ixw8hRcLjD/hO6GfpjI2sk32cYRZhOXyAz/wuUSjf3g0EAMm2wECxX GPjizceuDEyeoxDVEgLPq/vm6bIxI3pg2Eo8= X-Received: by 2002:a05:620a:171e:b0:92e:705f:1626 with SMTP id af79cd13be357-92e784f65a3mr825404185a.6.1783091226794; Fri, 03 Jul 2026 08:07:06 -0700 (PDT) X-Received: by 2002:a05:620a:171e:b0:92e:705f:1626 with SMTP id af79cd13be357-92e784f65a3mr825395785a.6.1783091226326; Fri, 03 Jul 2026 08:07:06 -0700 (PDT) Received: from [192.168.120.193] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c12b628d65dsm295433566b.35.2026.07.03.08.07.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2026 08:07:05 -0700 (PDT) Message-ID: Date: Fri, 3 Jul 2026 17:06:59 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 01/14] firmware: qcom: Add a generic PAS service To: Sumit Garg , andersson@kernel.org, konradybcio@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-remoteproc@vger.kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, robin.clark@oss.qualcomm.com, sean@poorly.run, akhilpo@oss.qualcomm.com, lumag@kernel.org, abhinav.kumar@linux.dev, jesszhan0024@gmail.com, marijn.suijten@somainline.org, airlied@gmail.com, simona@ffwll.ch, vikash.garodia@oss.qualcomm.com, bod@kernel.org, mchehab@kernel.org, elder@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, jjohnson@kernel.org, mathieu.poirier@linaro.org, trilokkumar.soni@oss.qualcomm.com, mukesh.ojha@oss.qualcomm.com, pavan.kondeti@oss.qualcomm.com, jorge.ramirez@oss.qualcomm.com, tonyh@qti.qualcomm.com, vignesh.viswanathan@oss.qualcomm.com, srinivas.kandagatla@oss.qualcomm.com, amirreza.zarrabi@oss.qualcomm.com, jenswi@kernel.org, op-tee@lists.trustedfirmware.org, apurupa@qti.qualcomm.com, skare@qti.qualcomm.com, linux-kernel@vger.kernel.org, Sumit Garg , Harshal Dev References: <20260702115835.167602-1-sumit.garg@kernel.org> <20260702115835.167602-2-sumit.garg@kernel.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260702115835.167602-2-sumit.garg@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDE0OSBTYWx0ZWRfX/AneMKniZ24h LWzH8NRn0cLS6KiKwr30LqMVaJCI22J/wsAMQQSFoo0yHg+puoctKV1obvCfKVG0eqTMmYGcawS A5gSfMwodQBgmVIcyNom45WkCk3ZELqRWUhQZ7fY2GagRbIu0+lFEzzpCK7PjBLyKTVLw3nlbWC Xlu+myJhpbny2fVRIXOz54zyoMI81i62n0LIY6Sth63jBRzgZBtcOXnck0FXvYMHZ5P94jxtTZO tXlbX2zMdz5xMPtt6eDzYy1VN3lLeogLMwLieXOB46R700tjzLB84pr/OVt8fGIwt/msmjvsdW/ PWEo4eIX/STNS/RNfb4QSgOBT4xNeeOD1APIIXSCzMMZczfPexzRJz8mkiVESexl3kIoWJXLQ8Q h9uaWHwdXkb/Jr0eQpaEJhZkNbJzLQJmEViQJ8mCX2GyKsXbXWAnBTn6DCSqY3HW8aZt0A3Tr2Z n//q7NY7kG6BVXNGczQ== X-Authority-Analysis: v=2.4 cv=LeUMLDfi c=1 sm=1 tr=0 ts=6a47d01b cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=DWWpLck2SfFL7czMIZ0A:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-ORIG-GUID: AgFDZ1ZCEkllcJmjQtfvLnBidv3sV6zw X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDE0OSBTYWx0ZWRfX5cv9cDYbVy87 SFA03KGa1ml3V+0GC0sRoVO+Ob0HOguga9im6aT7PVNr3DO+BK1Ks1IKXunQPnDyRBbsiDbYre6 YuGAUFRM7tQNEpPzrONL9P0/nnGidiM= X-Proofpoint-GUID: AgFDZ1ZCEkllcJmjQtfvLnBidv3sV6zw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-03_02,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030149 On 7/2/26 1:58 PM, Sumit Garg wrote: > From: Sumit Garg > > Qcom platforms has the legacy of using non-standard SCM calls > splintered over the various kernel drivers. These SCM calls aren't > compliant with the standard SMC calling conventions which is a > prerequisite to enable migration to the FF-A specifications from Arm. > > OP-TEE as an alternative trusted OS to Qualcomm TEE (QTEE) can't > support these non-standard SCM calls. And even for newer architectures > using S-EL2 with Hafnium support, QTEE won't be able to support SCM > calls either with FF-A requirements coming in. And with both OP-TEE > and QTEE drivers well integrated in the TEE subsystem, it makes further > sense to reuse the TEE bus client drivers infrastructure. > > The added benefit of TEE bus infrastructure is that there is support > for discoverable/enumerable services. With that client drivers don't > have to manually invoke a special SCM call to know the service status. > > So enable the generic Peripheral Authentication Service (PAS) provided > by the firmware. It acts as the common layer with different TZ > backends plugged in whether it's an SCM implementation or a proper > TEE bus based PAS service implementation. > > Reviewed-by: Mukesh Ojha > Tested-by: Mukesh Ojha # Lemans > Reviewed-by: Harshal Dev > Tested-by: Vignesh Viswanathan # IPQ9650 > Signed-off-by: Sumit Garg > --- Reviewed-by: Konrad Dybcio Konrad