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 3DA044DD3C6 for ; Thu, 17 Sep 2026 11:41:49 +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=1789645312; cv=none; b=tug3GVecCquFmKaS8JGMhDGnyDZ5p4j9IPZvNUMk+bZ4C2hnOBwwwbAFgDBTtuxF3xVTltfKBnqxhkI8UBIXfwNSZMK9zntIkzC2f403khPgDXx/PQULuXufY2xOJfhOIUF8l1QnAMi/54N1JESogiZJnWKi8w2HMCjHmUTCuP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789645312; c=relaxed/simple; bh=v2MHTBzON2DK0lgcpN2sk1eAnI/V6LUGFqU1FW4ihmM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=f3Se4Wa/X2sOosZPCwNciwpiES6Mh9WQCKyd9jJ6v6R8eBLlvk9vPS0qpn3HncSAeOmysJ9UGS4GiV3flHyZDoqyfUXeB9jOsSqJhqb+qlQIwIv10aMOLEYaGULx23zabG3uTLIqZhYeCZoISwNvsPzMVF3m8qNmE4yTgVGOOIs= 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=mBFjUsvi; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=IyeYz7i/; 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="mBFjUsvi"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="IyeYz7i/" 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 68H9ZxRY1863582 for ; Thu, 17 Sep 2026 11:41:48 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= 6Bs8osBMXoukK4PFadPl9cbl6mgtCbhoAHX5DtiwJoY=; b=mBFjUsvi/If+6VvW pzTTQiMkWV95L3uEH0j++5bGI0ay/3pnzF2QZoN/PV2yIiITPSlGWb8gwtg6Zovg QAKkOFlKl3jx8UgcFrGXoLAxsVJHiKlXpb7KXW0nAiK7UM6hNJJ+G3k/1glgv19O 35vJxdETkQrgyLkrZ9RT3HDCCGt1XnjNAYo5aShWH7C95ByciB3nhm2aO8epfd+e 2mJgjSrF0yeGTiNRCHMU2BFWfWL5yEsD+mlkIyepGpgoj79e+/RSm3LXtv6m5n7h M052MuuLGN66mnc1fSGV7NukyoCJAOPUn/EQ6SfcbJ9pEsWhhbDAvt2Jva9H7yT8 rSiuKg== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gqy6av1cx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 17 Sep 2026 11:41:48 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cc21bc2923fso736472a12.2 for ; Thu, 17 Sep 2026 04:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789645308; x=1790250108; 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=6Bs8osBMXoukK4PFadPl9cbl6mgtCbhoAHX5DtiwJoY=; b=IyeYz7i/KIIHYPLa1S0haaOdFaxZls0HBjlYoOp8r/vTC7H0v624iH+PajIw6m/hT6 udbBhK9QTZmhi3Tr9NLNS/ysGl9nJHWhE1+MsM2uLw+hN6g6ZxFHBpuP9PM4yFnJy+8X V81+ms2YXBodcL/I7RQsV3+nlDQYZSS6TIfX2vsZZJjy8Mp0aPFMYDr4ourhssDZFXk4 jz45IRLZnoLFveJvb53HHiUelpMdFZbGFefkYQ7dBNxYJU9YWGvuVxtbNRuuM9vlnq6T 87mvVNXEuJTdKGE4fELTLDmvCnSC8K5Sg0ds4c5jFiSP9CB9qnz3qCZHDOClU0YIrV+S EamA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789645308; x=1790250108; 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=6Bs8osBMXoukK4PFadPl9cbl6mgtCbhoAHX5DtiwJoY=; b=RjqDas0hMt225fXcZCHCYZYbJvygeFVSTSuMW1ZgCIcyWkJATpmCUZC3h7eZFtwnJL MSJef6XeJ2e1WjMKASu4tcDIxpJW5CiPn1it6Sd/kaWQiLXqsP683xvOgLmQSG6VFZHl z05aadvG7ANetBnu0IGU0qLlfCzCIUQ91MrmyaiCsocDm+89e47i8oQBfNj4F79/X0/2 lR4Dk0KZDza7nFTHKXh/SecKjFMKMZ4DoWtDDsEuuenBI+EvASAEu/PWUPzl9iCFwOxB L5xIN7lnPspf89x8nze+k6clk1v/ADBW5wMzoLRjN/bS8FIkFYT9fbQDZ2tHB55lnJ6S j1nA== X-Forwarded-Encrypted: i=1; AKwUvBzW6+jHzuGvXm1qYW2iDqJCuYA35HLeEs6tzRi3DAB5+fNVHw1xXc2FxqBAkTmkVjAyHHLlb0LOJyG4MzI=@vger.kernel.org X-Gm-Message-State: AFuF++kfXAEJDq8JbMXO8PgIjR3s1BnEEMerwVeY0fQllV7Y7esMYpcI BU9fPsQ+I6AKGNu115uq6vvV+d/q+0IhSa+MYYilej9BigAAQUdBFQgnv5CQCvTiDbzYg3KjlBt xjvS/FSRYFd7ZWBPM6dD8ShhBcu7nPuUQIQRrdjN47OUE5e1DHCQZqa8VTFU/Icx0b84= X-Gm-Gg: AYBFou0gL4AiGVRm9MLbCO87S4Y7YuI8anKxRhd5m4V1GKhfQ6fR9VB6lsiWTggo+/2 1yoNSxqDC0cTBSMq6Aot2ky1+3Tk8pl3VURAvoP7cnqnrTqoTIXMz6RQuZZ7hMSyJL1+UuwywFw pvdINXYlHrcb7SufJMENaeMu0oQQCfD2+MOFmZQwa0FTdPCiD5VZ2J3VSQn7DdCo2xkUNNuv0gb b9rKJ3w0lKqK3EVFmT6OMq/qCErwIooV8C4bz6gqux5FigcOG6DGjD+PbvboKOd5H/k5yqm64yB AVVg8FpzHsBUaQz2/NwwltculozWh0dyKKv27P+QOUMCz8ckmOQDSSlqzcZrkfavZRLttlxPvrz RfLJuz2gRl1MOuFF9y+aj57Iuq8ffix1As3A= X-Received: by 2002:a05:6a20:918e:b0:3d3:b00a:7082 with SMTP id adf61e73a8af0-3dd5f7b25d9mr16200143637.28.1789645307743; Thu, 17 Sep 2026 04:41:47 -0700 (PDT) X-Received: by 2002:a05:6a20:918e:b0:3d3:b00a:7082 with SMTP id adf61e73a8af0-3dd5f7b25d9mr16200066637.28.1789645307271; Thu, 17 Sep 2026 04:41:47 -0700 (PDT) Received: from [192.168.0.173] ([183.83.137.165]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33bf5aa1e38sm16363362eec.16.2026.09.17.04.41.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Sep 2026 04:41:46 -0700 (PDT) Message-ID: Date: Thu, 17 Sep 2026 17:11:40 +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 2/3] media: iris: Skip SCM call for non-SCM PAS backend To: Sumit Garg , Konrad Dybcio Cc: Sumit Garg , Bjorn Andersson , Konrad Dybcio , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Jorge Ramirez-Ortiz , Jorge Ramirez-Ortiz References: <20260911-video-optee-pas-v1-v1-0-7bbddaaac5ba@kernel.org> <20260911-video-optee-pas-v1-v1-2-7bbddaaac5ba@kernel.org> <38fa7602-f03a-4343-9999-0eda108332e3@oss.qualcomm.com> Content-Language: en-US From: Vikash Garodia In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: Ei0N146I_DR6rbSLm69KhhlHbxf4q5KQ X-Proofpoint-ORIG-GUID: Ei0N146I_DR6rbSLm69KhhlHbxf4q5KQ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE3MDE2MiBTYWx0ZWRfXxNTrNdNk9I50 7SuWyPub9FMQufTxQRT5CQm3EIXO0sghyaytIjRSLFGHNKzzO/a4hnYScWgVgX80GvKmuzrAVHE InAjLqBpj7p+SrEER4QTsj1YG2IqYFdg1hkXRO0Beo6gRhxe4KIara7cD4s2S0vbINfGerNW6XK Th4qn5yY0N+cPuNwm5f+0REwY9CtDrwZCsUTUfdr0pKa+ZeaOLo/GOXGD8kWD85aJZJvXzx1+XK Y+/w/R7sI4sElT1imy6eggij4yAvFH2dlfrDROZ2PpYKPJqmUkP5ZmQrfWNzE84Kt2R1Lpu+iC5 WpzKO6aqF/063KuRXrCFZT60z9zR55pwSVZV2b85qsQRNluqLF/Z2DHBPFWwwFM9f7nk45y6QIV AlmXZHq/eRgdZxPGj7agKNPGSJBBemk+TpjhsLZMqWLOhrre7x7TY/Nc2K/jM89+eQTuF1tJSy2 UkSUcxkGobztBQQedCA== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE3MDE2MiBTYWx0ZWRfX9OEjDJsuTv2o FCXSKp+dOQqnvPeX13jJGkAZrKmnCCbdr9YuBLLngniQP8fK6MX1ArdvU6byG+K3nMKXeVE6dQp xOwejRVXq1vs9TMyJiJ/ElTWAEVUD8M= X-Authority-Analysis: v=2.4 cv=VIRIDNPX c=1 sm=1 tr=0 ts=6aabd1fc cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=/MhRiX8TZM4BB34AAREmLw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=uP37DjD_T1UKT6mrzMwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-17_02,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 adultscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609170162 Hi Sumit, On 9/14/2026 11:44 AM, Sumit Garg wrote: > Hey Konrad, > > On Fri, Sep 11, 2026 at 7:54 PM Konrad Dybcio > wrote: >> >> On 9/11/26 2:38 PM, Sumit Garg wrote: >>> From: Jorge Ramirez-Ortiz >>> >>> qcom_scm_mem_protect_video_var() is only serviced by the SCM backend; >>> with OP-TEE the TEE owns secure memory protection. Use >>> qcom_pas_get_backend() to issue the SCM call only for the SCM backend. >>> >>> Assisted-by: Copilot:claude-opus-4.8 >>> Signed-off-by: Jorge Ramirez-Ortiz >>> Co-developed-by: Sumit Garg >>> Signed-off-by: Sumit Garg >>> --- >> >> [...] >> >>> + /* >>> + * qcom_scm_mem_protect_video_var() only applies to the SCM backend; >>> + * other backends (e.g. OP-TEE) own secure memory protection and do >>> + * not service this call. >> >> Can you not just stub it out in TF-A then? >> > > Please don't, we don't want to support these random SCM calls ABI per > subsystem with the open boot stack. All the config in this case for > video is handled by OP-TEE itself. Could you please help me understand the demerit in stubbing it out and let that be a dummy ABI in OPTEE world ? that way client driver can remain agnostic of the calls being routed to OPTEE or QTEE > > Instead we want to mostly support any subsystem specific TZ use-cases > as proper client drivers for the TEE subsystem. > > -Sumit Regards, Vikash