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 0232FEED8 for ; Wed, 8 Apr 2026 07:32:45 +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=1775633567; cv=none; b=OdcjxjBMnGfnrnhGCbvCYl2S3AvnyvXFLOcIlAvt3TqYPUl1QqNjpAzs4mNG1Q2jxt6D4kGiqc/4PiSrPPzVguolgRL5L538KhQdxwKytW6Ch3o931bgRscBziFGE2H+fbg8+KMCW1a5omnMNQ7+e6isr/XBeQRgS8zt6lNx0GU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775633567; c=relaxed/simple; bh=OveXBMU2Rs8ereI1m9UptjRMaYvkzfBMcmK+hgcieTk=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uR/bdKEKFkZkcWFzgJBMZuH6RRUTrubKl3YDRC8u5yA4mn/YF5LkF0rgtF1UoKRS+o7WL7aaNie/EGi02oNLpeZwBhZgWlMATkBWxr81e7AgidBcLHiMQYPU9rg9yXrnmsLWKrvdsvdGb7FpxK/5pazJARVTS08oxEOUPyQUCBk= 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=nW+T356e; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=G8s2Gcfg; 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="nW+T356e"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="G8s2Gcfg" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 637Nftwt1259641 for ; Wed, 8 Apr 2026 07:32:45 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=xckB8PPJx6+/vCorN26HvLDM xAJX+r/dYxdwC1AmZgc=; b=nW+T356eFEiWlNV25OIPnYucbssv+TRN/QY2qRAf QPRvHVVopBSmj/fSXs0NgBVDsJ9QE8h2ok+x0hvLsG6TiUlkCg3wObmLBv3a7kyl m2nzw3uI4iNng+JA9e6cvv2Wr9/bVrWoP9AgCaOtYp8dKr0uxx8E/hlWlK1ZeVQ3 WEMSL+o4zXWOunDSRMY8navjM9E6q9a8BQsXTSnLcqh6IrTx2LaLgYKULpd1TeUY /UDWZ7IRiI7V0ojXtEFPxFq2jCCBms5mBavoeF2GzEXNoWRAmbYzsK4rZpqtAOP2 9hwyvyzYAsDYq9cz/CCF+9umhTFAznHxI/Lr5T7DlLXzWQ== Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ddbttscd6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 08 Apr 2026 07:32:44 +0000 (GMT) Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-50d8e8c47a3so63112631cf.0 for ; Wed, 08 Apr 2026 00:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1775633564; x=1776238364; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=xckB8PPJx6+/vCorN26HvLDMxAJX+r/dYxdwC1AmZgc=; b=G8s2GcfgR3N3BRGa/eA7J3eg62OdrDfrV8Z8FYnzHmvDsJHPp6ajS31K8uMIrOIGra ghHUiQA6pJWPLPo7+CsyDhb/fpMY6HyJoyPTo1Mw2qgGMPBUIf+Pow6o1DM50L5FQZnF drpFKklQe/3g8Id7wbMpRbjIZyEt1CSQ1DqX0csM16Ve2Sq0NMebaepg77wGptc0fMc7 ZV4tj3RUuK2WNkfDGpbNpc/wmKlKDytILdEkdKGeSwzwgSt1a9+nIU9ToPl2ZyX8nxjN Ff8EwCqWeUbcv6SMeIsOgya5U85eVwvpF2zr4uY1VqXI5IfSMiDp5Iw4affzIz36tXMe 79sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775633564; x=1776238364; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xckB8PPJx6+/vCorN26HvLDMxAJX+r/dYxdwC1AmZgc=; b=INoG0kBV8imLArwFmIeBhQF69GaRtEBYaKVwIJTwlpIL10+WHFT7YeqOZF4kw0JnvQ IV24bUZXwOyAfL3Jn7A2Jv5rc6s2AYjQXCt4+clsK3LHkSEnEMIEkNHolk0WG2Lkkpdt leWVjQE6GUmc29qNhvgTA5ysjvTBL6YPvv/4u6Eo9rTaXQ3Ki8NXSzmNBKrP+c05+mox lq7TrdlsnfPT6hV/U82t7W25Q7VIQpdea0b9HqfB1HV4jl+QdFkJ7kVf0awV3udL7XcD 2gpvwhMri+TQI83hJDnjN+vAVJN/E3rBvICmw7ENCad4lAXWZck7dLtX35fGeBus+EO+ V/ng== X-Forwarded-Encrypted: i=1; AJvYcCW88WXFUYAULwVqR7Bd8BjElbu8VpvmocwSHwSXemDrry+svsW/Cxcy6WV6/F7HEsQTiExAT91Xopt//zoR@vger.kernel.org X-Gm-Message-State: AOJu0YyU9RbJGEFlC0ebgO5nv76ICFpDEqXrpmaNEgaataBJsceHB9II JmyZxUpNw0B7MoR3PgGcLlFbcTBZm2VH+O/HLtrWsQcAGSh1MRUPXrzwo+OWpPYi7FfXGFyQ4sk sa6lAhC7EUCHdkze1CwcmYzFYRvL0zIH4hqxEgYGdATAh+OHWpM/M3Abmf3QC1sFDWsQN X-Gm-Gg: AeBDieuXjlRIQ4GYNIWWU7QfivICXvnky896wIfSl1DAlCAwI5xtGM3THxe8bf4lMkD KZOVdx6fCBZ3GHiLvl8S12/hylSDVPg4DngBe1dKxfJ/HxBJhAXEsBL2A+a1YLPBreSev3QfDjr gF0181ajsga+JBLRQxLiJwfsGX/P+2ETtqEEHORE8QRvzYrEgQczQym2+DpMWCZLMIJ2V0JIyS7 p8Pkewaxa8iW72/rXfLrVzaxk0BZJKMX6CPzhPIgvKkLQ/SaYcxqnM/yIIPKYYCIdSx7KfwuyLs bdxSWrEbNxPvPAVQev1JFE9flN0U8/0gqCv7P7R/GkCeOfbgyBakS0vfwaUUo0xwb8gPm9j6P7q 8BK3zzWsBCIv+8ZS83m2zIcnmaEXU4TaKHud244IIbeqornfBgb339yNO X-Received: by 2002:a05:622a:124b:b0:50d:83de:4933 with SMTP id d75a77b69052e-50d83de50cfmr202934331cf.20.1775633564129; Wed, 08 Apr 2026 00:32:44 -0700 (PDT) X-Received: by 2002:a05:622a:124b:b0:50d:83de:4933 with SMTP id d75a77b69052e-50d83de50cfmr202933731cf.20.1775633563612; Wed, 08 Apr 2026 00:32:43 -0700 (PDT) Received: from trex (187.red-79-144-197.dynamicip.rima-tde.net. [79.144.197.187]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4889cb46adcsm383692655e9.4.2026.04.08.00.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 00:32:42 -0700 (PDT) From: Jorge Ramirez X-Google-Original-From: Jorge Ramirez Date: Wed, 8 Apr 2026 09:32:39 +0200 To: Trilok Soni Cc: Sumit Garg , Jorge Ramirez , vikash.garodia@oss.qualcomm.com, 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, andersson@kernel.org, konradybcio@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, dikshita.agarwal@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, mukesh.ojha@oss.qualcomm.com, pavan.kondeti@oss.qualcomm.com, tonyh@qti.qualcomm.com, vignesh.viswanathan@oss.qualcomm.com, srinivas.kandagatla@oss.qualcomm.com, amirreza.zarrabi@oss.qualcomm.com, jens.wiklander@linaro.org, op-tee@lists.trustedfirmware.org, apurupa@qti.qualcomm.com, skare@qti.qualcomm.com, harshal.dev@oss.qualcomm.com, linux-kernel@vger.kernel.org, Sumit Garg Subject: Re: [PATCH v3 11/15] media: qcom: Switch to generic PAS TZ APIs Message-ID: References: <20260327131043.627120-1-sumit.garg@kernel.org> <20260327131043.627120-12-sumit.garg@kernel.org> <439f9bbf-1ba1-465f-b5af-01ba0ebb86d4@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@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: <439f9bbf-1ba1-465f-b5af-01ba0ebb86d4@oss.qualcomm.com> X-Proofpoint-ORIG-GUID: 2awiXOhYfKXFvlfA-nrrm2bjYUQ0cosS X-Proofpoint-GUID: 2awiXOhYfKXFvlfA-nrrm2bjYUQ0cosS X-Authority-Analysis: v=2.4 cv=TOt1jVla c=1 sm=1 tr=0 ts=69d6049c cx=c_pps a=WeENfcodrlLV9YRTxbY/uA==:117 a=VPdg2FrOqWfiVCzsz0q0YA==:17 a=kj9zAlcOel0A:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=YTLieAA4xaQwPRX2avwA:9 a=CjuIK1q_8ugA:10 a=kacYvNCVWA4VmyqE58fU:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDA4MDA2NyBTYWx0ZWRfXzDBv/vP2XUNz +SF5bBexgxwLh9XnGPJMgAaXLGcJ4E35OHwwJagrxd82l0CHUgBoSoYwARK4ZlKy0AwYdXrbkvX WUiT3KaejJjMFTXwXmqj3T7EnrxJB0rDsP8l5AT0afiCsuA1+ICDDHRtw3mGwXTuR6EvAH3LN4t nsQZao6nLUVSRBQWue0wmCIqttZ3RRoKgMhckcATMFW3Pcm1kfabLBeRWTJ5cfLyEvmv1S3yFNE Ax0RbUfzqaLIByBX2IJgwyTVjpaxlj1Ha7kRZ91e59W31aonqC0WfplFdY0XsQfjtc269i+e3Vp j7w8xk+bns9xzmTWEBXuW0Ug1FCYJVQrUcUEgYWCHsHTpSaEfJeAU0flTGEpMUYZBaE27yT+P7a cRMZ4REUtxhXWMT8cg9g2aUsBHTWT3sOcr0FlCQUzTtSJr1185FnH5RLKhw0L5eSfNf1yUE5mnO 9O+r6pES8R/BOzaIoow== 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-08_03,2026-04-07_05,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604080067 On 07/04/26 15:14:22, Trilok Soni wrote: > On 4/6/2026 4:42 AM, Sumit Garg wrote: > > Hi Jorge, > > > > On Fri, Apr 03, 2026 at 11:37:07AM +0200, Jorge Ramirez wrote: > >> On 27/03/26 18:40:39, Sumit Garg wrote: > >>> From: Sumit Garg > >>> > >>> Switch qcom media client drivers over to generic PAS TZ APIs. Generic PAS > >>> TZ service allows to support multiple TZ implementation backends like QTEE > >>> based SCM PAS service, OP-TEE based PAS service and any further future TZ > >>> backend service. > >> > >> OP-TEE based PAS service relies on the linux driver to configure the > >> iommu (just as it is done on the no_tz case). This generic patch does > >> not cover that requirement. > > > > That's exactly the reason why the kodiak EL2 dtso disables venus by > > default in patch #1 due to missing IOMMU configuration. > > > >> > >> Because of that, it is probably better if the commit message doesnt > >> mention OP-TEE and instead maybe indicate that PAS wll support TEEs that > >> implement the same restrictions that QTEE (ie, iommu configuration). > > > > The scope for this patch is to just adopt the generic PAS layer without > > affecting the client functionality. the patchset cover letter + the commit message + the OP-TEE pull request being referenced gives the ilusion to users that with the current set they will get something functional (they will get a broken video platform instead if they try to use OP-TEE). That was the point I was making: IMO the commit message walks on a thin line of "completeness" QTEE and OP-TEE at this time implement different use cases (Venus with QTEE runs with Linux on EL1 , OP-TEE runs with Linux on EL2). So maybe worth mentioning this divergence. > > > >> > >> I can send an RFC for OP-TEE support based on the integration work being > >> carried out here [1] > > > > @Vikash may know better details about support for IOMMU configuration > > for venus since it's a generic functionality missing when Linux runs in > > EL2 whether it's with QTEE or OP-TEE. > > > > However, feel free to propose your work to initiate discussions again. > > Vikas and team depends on some of the IOMMU patches to get accepted > before they enable the EL2 venus support. Please reach out to him > and Prakash Gupta at Qualcomm. isn't Vikash in this thread, he can ping me too no :) ? but sure, we'll synch later