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 DC61533FE02 for ; Fri, 5 Dec 2025 07:38:54 +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=1764920345; cv=none; b=WOz+ixPuK9CAStU7SZK6Dza7rH6OBb6znc+qn/KNjtFeyxFr4kg2fzqPZaJhYGPDpmpXAuqo+Esq1VPwvzxLifJPt45xOAn7Ywxo9bL7I9qrkXBu5XpIKVcBo1D8nFfSsRBdYvItQnHP02uWWWmPV7OawHZG7d7yxVEoLCASfks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764920345; c=relaxed/simple; bh=3nMk2A2zV3j5FIRKjzYHK3Za+QJ+Ib8dqD66eEE+wNE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ir53QSyGkhn9sHVI7Kd9OB6FkoNDnq1fDigKCMPnJwm3TLy7myu/LhrlH/FrGo8GzAlAXW7gKTsWumfc6pRSilnIagRnQHww9k93uiRXhnI9Hi/hkMX01lQDeg3SWqdx64ewDfovmWjnkfr8yfNu5UkvlTeorSkwTeqssfap46Q= 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=Bh1WuXjP; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=h9NZSW+U; 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="Bh1WuXjP"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="h9NZSW+U" 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 5B553oYc3522960 for ; Fri, 5 Dec 2025 07:38: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= THz5h+lWmvnvgTVCzsMhpf787HU9em/E4zlJ3KSL6M0=; b=Bh1WuXjPnqSG+hYe 3RFI/fRVCY7ktTHdXkeholYg7x9m5hp6MxjIYsPVg3mSO19PX9U1FAgBG/dFMTcI q4sRZIcBJRMvLBTD/4Vo7ixTYuNYHGOg/hecKtjObrhyr75v8l3Bm2ueN3iHffpJ 8wMDxLFQGB6k6Hmf/L4vmNc3Hg6/wy3DoHHZCGGK6cvOmtxRzZAmENBHPzH24jKG 6dXsQA7Ih7WBHXXkqkyNBkjWCIcIkO9l6UbxiCIXbBRouGGz29X7mWuKoaB2ZZ2p ZID5xiXI7HxgpC4/wBCEhcj16Krkf16PwlSZBM7zt06UftL0BS3DlR6rHvGMwiOo 5yY8sw== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4aurwvgc2x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 05 Dec 2025 07:38:47 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2954d676f9dso15079455ad.0 for ; Thu, 04 Dec 2025 23:38:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1764920326; x=1765525126; 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=THz5h+lWmvnvgTVCzsMhpf787HU9em/E4zlJ3KSL6M0=; b=h9NZSW+U+0VtUCpZUafaNG0LV4wLD8P1GgVYUomgbTnK93TOhafUTesyG5MtdHZoAs LKVVNTsU6/Z6Do4V7pqIhGfmSTD+ER5RIUJoZqD1f14txsdFiI/jxIizh5vBaYFZlL0N 5WQ8gSg5tmehp2ZKl2sxFiHEedns5g1bBRI0fkB5hj26hooUX7NTZSSOemPx5JnQ4KVj GMn8fzIxQjpEs0vlQ2QUcyQ/4s7yiMcz41itORUi7AhKsA80nxIJQY4dXwXeVvKtItPr p1RXkIskPWhfAHhmv6CYwe3uQX4jKnrhmMnpDiTQ24KMOKf7CzpRL3SXuulEeMOpvKEq 0tsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764920326; x=1765525126; 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=THz5h+lWmvnvgTVCzsMhpf787HU9em/E4zlJ3KSL6M0=; b=g/b60RYc9yXkYsg1NCGWuhe87G6QluHZKuLRBz8RMnKCvfQrZ3AXZuYYWtK0DBTWxR SZgLOHc876gGNhZ4eZTX3Rr5LIkkJRZ3U1dPDqXAlctkqGx2uMbsAkFK7JtSoLCz+VSm 25paEUkPT3aErLzc5sXVUVn3oD8GLdl4OaW3lRaLYrAoR1NyzdGgb0f0ACAZDo1FseiR OM1ig+ccjEo9fku6Q0ECXaQJXCNAm5r9klmTdu+yBiMAGForZBkVoglu0GZglUIvsRrl pUBDwRbXfdKQk4xImrInNeI2+utZGD93pWMgtEcU7ic5/ir/smMQfhQKJCuDvi5Ww92U 6yJQ== X-Forwarded-Encrypted: i=1; AJvYcCU0yOwX3Uqltt6gfke5A2cmWbWTypOnGJWUPlT3Qw0xQNkQgcq8R4W/Rh3JuQlmPnp7qP9Z02wpcf39m7U=@vger.kernel.org X-Gm-Message-State: AOJu0YyaUFkwqaL7G9UA7GdTqwYR9ueHLylOicckGyM8pyhvJIFQJrPW X0GumDJaBQl2AcB+pO6aD+eUoPom+dJ9382ZDRCm62+u5diBD2/6IcdTEzmBsrXEpg+m39VSU2i anMCv870mvZVS0pttLuNkH6Z5lN6DXfKwyHVdYhLLXtGFdq26r9lkFbFP6hcrBtgPnUI= X-Gm-Gg: ASbGncv8uxHEJQ8/YPWx5EvrkTswm23g0PGJ4+b1AJk5XNYkboM7Iun/4antw/5cxVE TH20BP7IowRd2f18RHC/TOnmqwAmHrRzTmstokulcdSFUWUvOxtSuXT2B/XkZb4lUjX73JJJ7s8 0D+goX1qFJP4Ukkur7VTzRUoI2xrFwK5iSqCr4Tja9qG8M8Ew+oiBAtg3/DBUvciJ9KYuRE41Sn 4qmlxrYMZj/PPt1X+cnagCEWxEoDhTT/RWj0RrXkQLE7Agqo2TZUB7KgFz+YjEIUhi5lbPhS/o/ NnN1z1VG9YKE5b3BWCa5W2+oPs2xTupHJ0O4LhMT4ePLIxlrAF0IISFeU4XsAKzlLhqj3dl3mzM QJi/OY2UC6RqW+rdZ5StIdDzsftq+MCpg3dEvvToc X-Received: by 2002:a17:903:228c:b0:295:24ab:fb06 with SMTP id d9443c01a7336-29d9fb7005dmr58776745ad.22.1764920326210; Thu, 04 Dec 2025 23:38:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ3tIlU5KLqQV1Rz/1j3r8zaooqfJ3BnbAql+Z4rhQK8yZI7K1DEF1OR5wOv3fuvp3XK3rKg== X-Received: by 2002:a17:903:228c:b0:295:24ab:fb06 with SMTP id d9443c01a7336-29d9fb7005dmr58776545ad.22.1764920325673; Thu, 04 Dec 2025 23:38:45 -0800 (PST) Received: from [192.168.29.116] ([49.37.148.233]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29dae49cbdfsm39668865ad.1.2025.12.04.23.38.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Dec 2025 23:38:45 -0800 (PST) Message-ID: Date: Fri, 5 Dec 2025 13:08:41 +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] arm64: defconfig: Enable QCOMTEE for Qualcomm SoCs To: Krzysztof Kozlowski , Bjorn Andersson , Sumit Garg , Jens Wiklander Cc: Amirreza Zarrabi , Arnd Bergmann , Geert Uytterhoeven , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org References: <20251202-qcom_qcomtee_defconfig-v1-1-11bfe40a8ea4@oss.qualcomm.com> Content-Language: en-US From: Harshal Dev In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjA1MDA1MiBTYWx0ZWRfXz6s2XDP16Zuu XD1rDPubjPQd+bVZFaznn6RFYw1K+mHP7EV2gqWKqFK6CK+fIHguUPZyOR0xDx7PrST71ZXDpjc mrSoq0cvkb+xpmt3wyf0z/rS+lcKfIOfD5kLWWoGfwpyXGD+6/3X67RJz2JwddOubPF8RjRiInY OGUYCeikbyrVcqU+dnI64ZlnDd7I1qp1N2zEF7NQbHgFs88xdDlpBRypHpt+I43Shbs0LmwgeHn xJhhrA054HfrHk+vfeegWlhAy4thKV8P+mODsu31RH0rQx3/mDyxZt381/fXHb5yrlLRC58C5tl hn8vRGeQygL7Ql7uGsqYF1S9shCZGBOBRdqIMrPjxO4ptJf4uGYjlTPmOFGsWyR3/PeEr0Pp/eg iCbbXFott8JzyBhq2d06WurWXNki3g== X-Authority-Analysis: v=2.4 cv=Yd2wJgRf c=1 sm=1 tr=0 ts=69328c07 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=v+kbWGyw1T97G6+vs1uYIQ==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=67QYI0K2Moa7ayTaINoA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 X-Proofpoint-GUID: qcvNYhZhA08amrKGysXWLKlgRPBU4JVf X-Proofpoint-ORIG-GUID: qcvNYhZhA08amrKGysXWLKlgRPBU4JVf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-05_02,2025-12-04_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 priorityscore=1501 adultscore=0 suspectscore=0 bulkscore=0 impostorscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512050052 Hi Krzysztof, On 12/2/2025 3:13 PM, Krzysztof Kozlowski wrote: > On 02/12/2025 10:37, Harshal Dev wrote: >> Enable config for the QCOMTEE driver to facilitate communication with the >> Qualcomm Trusted Execution Environment (QTEE) on Qualcomm platforms. > > Which platforms use it? The Qualcomm Trusted Execution Environment (QTEE) firmware is available on all Qualcomm platforms. However, certain platforms like db410c (APQ8016), where QTEE does not support Object-IPC (the communication protocol implemented by QCOMTEE driver) a graceful -EIO is returned by qcom_scm_qtee_init() which is in-charge of dynamically registering the QCOMTEE driver as a platform driver during qcom_scm_probe(). More details available here: https://lore.kernel.org/op-tee/20250820-qcom-tee-using-tee-ss-without-mem-obj-v8-0-7066680f138a@oss.qualcomm.com/T/#m1eba97cb921c958034ffe7e2bfb776177ba48eb6 And so, the QCOMTEE driver can be safely enabled on all Qualcomm platforms regardless of QTEE firmware version. > Why this cannot be a module? Upon a bit of reflection, I have realized that it is completely fine to have this driver built as an in-tree module. I have also validated that this presents no issues during loading/unloading of the driver. I will send a new patch and update the CONFIG_QCOMTEE flag to m. Regards, Harshal > >> >> Signed-off-by: Harshal Dev >> --- >> arch/arm64/configs/defconfig | 1 + >> 1 file changed, 1 insertion(+) >> > Best regards, > Krzysztof