From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796213682; b=kL1xUBjJPUKIvLGCPa+NDkAuau0XYoj95K/p5u9var6a/IyUu6IvvRO+WLflD/Unom01 vyLHG/p90wPwcxaH7WXUk7jMv3jW0WM9Uvpm95S/7t9MYSb+emrdud64ZUglZY8MTx1lh MxZC32sBHxbOHv+fGPGg0WrG2EjAUpVbrGtG53iTpZHC51qmBdJT2T9h7qpd6JlNlgWTt tHDB5je+Wlu1KtxZvZSs9sXzvpzJ4GXH8XbrMnT4/WEzIuNlriNDhrMjr08CPMxApI4iT GpHbhmhwtQJM1kIFJnxKH6klO4H+y6A0FU3S9AzL6xMtRs9DbyIv7mltRpnPbG0VA+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796213682; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:X-Received:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=IiioCnSHAw2y5JRvavaviOXE2rjsB6ridpWoa6y0oPQ=; b=t6W/YICY4UH1PrcA0UQSYFA+/KgxWj/lPni4k1ATeh551EV8IVCW3mHFRrgfwlH3ZveK M9UyE24iRAG6A8t7Bj2LsjGn0ovHl3xv6l1wuiB+20ezxZJobIKS2bG2/tLYmp/ayAGMi Dzw8EyB/o4ZE1SLOKXzwCMuIWQx8pywyNiJKFHT4QgpecSbUJoP0bxsYDNvGVrdLp4KUh pziXRF0ccNwVA8wVUX5muhJc3EyZ9zghL0Wr0uIImCmpGYSxNpvQCctcAXP/1sxLtmz4y SGp4kNAbO6mLCsI2QwhWv3csepZJrudan4+Mjx8B+Khn/RWCGdlNlvoLkDbIxC3fgNw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Yr52kV2A; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=c1vGNKmi; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5A11606A322 for ; Wed, 2 Dec 2026 12:14:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5A11606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=Yr52kV2A; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=c1vGNKmi 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 6B2B52DW2143283 for ; Wed, 2 Dec 2026 12:14:40 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= IiioCnSHAw2y5JRvavaviOXE2rjsB6ridpWoa6y0oPQ=; b=Yr52kV2AEkvSnxhd 146l6OjHQun9erFU5F2sbbCIJThQr9wqguecBG/2izKvSkbj+QWXk8Kc/MFkhTq+ ShyZlTLE42oxxoBdfwXlS45i2wQ/lMLgLBXGhb8M/gjPH55gCOaJS9h71rH0peCf 1UGOCgVBrU2GjlPS12DOVLW04DXSTRj1u5LGdXtSXxgRSdXJuZcW2qEzgyg5T+zY UJYI7P3xHs6R5LD6fZbRcp8QJWyPbJI/Igszr43TPVlzLpI9MlJ/wPbUZ79YRZ4r 3VBVwRhbt7D0vacMC65tzfMa0SaJrKjrAVBWX0F6G6QwIcvR+94UE8dZQgb2ixj2 Jk6qMw== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jaj56g7pn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 12:14:40 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3b4139b7abcso11160087a91.3 for ; Wed, 02 Dec 2026 04:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796213680; x=1796818480; 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=IiioCnSHAw2y5JRvavaviOXE2rjsB6ridpWoa6y0oPQ=; b=c1vGNKmieEVC8P3/tq3OH8wwOigweJrv5DW/TQKHdeLJ3hjigcSDuBzI4LyDPnkakW KuKuwR1PExb1wDJdWJBpR8ppc038DIcr0dvdkcLL0APaqCr3wtJRRErdtfDmLpQwGHxx rkPtCnjNozuvv9/VdrfkrM/ZNpx/GmcY0M91Sr/2XUEZOYxF7GZok6GH5fpneYX35Opv 925/WgZvjlmcPQnb0eMyO7fKmLHcI0YEtF245zH2P9SCpMw2PL+ddrSPBo8Z/fSn3ROU +XmrxaTBjyQzfxgYbi8Kmul3ljtGYlIWvPopeWeIXBcgSSN+K9oewr49CLAgzA8m06Y4 0hHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796213680; x=1796818480; 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=IiioCnSHAw2y5JRvavaviOXE2rjsB6ridpWoa6y0oPQ=; b=Lc886b/7cKdoZ/XAMGgVOZBuB4l56UuXuZoYXRKKcrAf/v+3baWoiWN5Itirk6v3co Xisn0iOM6pg311GeISml8p6GKoXltgPREtf+hO5VOLCt6mFhKxfGUfjrAFrMfsSqMJcL ItHJchJ01E6piEGzLH56/K98NtcOO0xXP3lfkxP6k9OTLqMP12SGpt1kCj9+hgqUsVhG wLr1peLWIYbrnUBJMBB7IBIJkQa21EPlMAA2YpYm6tFhz7IrbiJNSEd4sW7YD6AAvU7h M9JORxHEblFyB2UeIPpIgx72Ad2PnJOwNOi8X8+Aotfa7E70Q8Sid4WL/BtiMyztdPHD D9BA== X-Gm-Message-State: APuU4Z+ZuCTIeqMqCTaWWqeLkKaPD8wCeeuiKTQc2WL+wtuEPWB66Snu 4P6ELvwxQms2mk8p3MoBcW6Q/OwEb2/qE+B/Wwe9acH6fDNSBx2kGwcPDUnzirKOwKel09Vts7I LsbibUs22S2jdNjaFkDpCftTouIvvQm0qUYv++FeQF1vPYowaMmil678Mxpv1rdOubLc= X-Gm-Gg: AZFdTZf4JnVF1zzw9rQjDuLBuqtTQgx0GUdxfpCU+yuT34H5SL9xb0I7AWlb9bUJnkX p/6HquHj0x/o3omwpeNak/JdV7sIrfmGI5jZbyR30ZnKzatNCMQYpiP4x+rZoOdfJ6bA5KQ+EVj XrhOMyRlDDpqLH/yQS7FqcFVJKWxxyRoYxq5kbXDtHj59MLVnFHB8MmwzBrLoAS8b8rLE4iENyu IpMupcsuI7/rNHBBjbvJeA5Z0ejbDdcMP+vus+h3UGWl3vqAuEY9DcZryHf+8UYbKEtXPwXTaoV tl4oMtyv4Kv3LP0NAg3Rj0B7jmN2LPGrCPZJTs5E/0bIBLUcVlCallAUWjHpULXQx/omV4i1pBw hirmjR2KeIuctSWMJwxPguKFq2fp0GWnGoyAjdQkjoLqIfhVEkotyF1MORpQcouD3A2Cq8jh0AD 8tH3U= X-Received: by 2002:a17:90b:2701:b0:3b4:1bf1:9873 with SMTP id 98e67ed59e1d1-3b41c8dd1b8mr39101351a91.19.1796213679561; Wed, 02 Dec 2026 04:14:39 -0800 (PST) X-Received: by 2002:a17:90b:2701:b0:3b4:1bf1:9873 with SMTP id 98e67ed59e1d1-3b41c8dd1b8mr39101325a91.19.1796213679102; Wed, 02 Dec 2026 04:14:39 -0800 (PST) Received: from [10.218.31.125] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b495035339sm49707150a91.0.2026.12.02.04.14.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 04:14:38 -0800 (PST) Message-ID: Date: Wed, 2 Dec 2026 17:44:34 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 1/2] firmware: qcom: Introduce qcom_secure_log interface to display QTEE logs To: Konrad Dybcio , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Dmitry Baryshkov Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20261202-qcom_secure_log_rfc-v1-0-9eaf98f14605@oss.qualcomm.com> <20261202-qcom_secure_log_rfc-v1-1-9eaf98f14605@oss.qualcomm.com> Content-Language: en-US From: Kuldeep Singh In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0OCBTYWx0ZWRfX7JVROgJTR2jA TD7ihd2+EiOqVThNjtKfk7qzjh8Bg3DpJAYov/uFCvdzuWjQY9VXLmRwk81GqcQtenog6WsBLOv Ug/GYN1bUFeqSGHh3N4G1ailISyo2DuKGFiTdsC4fFMQH7FUkGAPzjdAzVkeOEZcaEMSXZ3TALT vCLC32pVwE6VMQbESQrcG8/IOsM8rYpX76091C4BKu7BgPG0yf0fMzrTcjl/SgECLE7d/NE/OhY ykdUVhgMcw/kG0PKnu+sEQ1CYCBenvbUkXl/KcLLAUyA6i4dFc/U69hk5HRoj2SjbhVZQiX119+ LNyurdZW4Oz5sL+bYfPnw1MfKGjFVfXvjtsWZDMynRdpYdAi5fcu3SVxGvL23cBNEbC7cBuAiDq K2Ws+MlOFuilSz0pur0Sv/SWZVMg3hGgfAlmQ5bSyOg8u96h4yfF9YoB6YKcD9rWsEtVnwaRCav 25lmdt+D0nvxh1l9Y5A== X-Authority-Analysis: v=2.4 cv=OtXaWC/t c=1 sm=1 tr=0 ts=6b100bb0 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=MqYs4V06TrQKU2qfM3kA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: uIafvwi_9xZWCZCg3Kn_CjNIR6HeK7Nq X-Proofpoint-ORIG-GUID: uIafvwi_9xZWCZCg3Kn_CjNIR6HeK7Nq X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA0OCBTYWx0ZWRfX8Hnk9B50AhIq d/s26yLKBouQMRPBTJXWBwm4emZbWSC5zCAsKdl8eQlU/PNxsYSef3LVy+rkwXzimUhD16A+iBh aQksdA7ZjZxt0nEUPU9DLMvMQdgyMf0= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 adultscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 spamscore=0 suspectscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020048 On 02-12-2026 14:40, Konrad Dybcio wrote: > On 12/1/26 11:33 PM, Kuldeep Singh wrote: >> Define an interface to basically map TZ diag ocimem physical address as >> per soc family and ioremap further to map region for userspace access. >> The ocimem address is roughly same over targets(few possible values >> only) and hence, maintaining machine compatible list and size for target >> family. >> >> Signed-off-by: Kuldeep Singh >> --- > > [...] > >> +static const struct qcom_secure_log_config qcom_secure_log_configs[] = { >> + { >> + .compatibles = qcom_secure_log_c125720, >> + .imem_phys = 0x0c125720, > > We already define IMEM in the dt - just grab a reference to a subnode > of it (or better, bind the driver to it) Ahh, I see base imem addr is mentioned and need to add subnode for tz-diag base ptr for all targets. I can understand what's needed here. Let me update. Thanks!! Btw, can you please take a look at overall design mentioned in cover letter? I'll incorporate this piece. -- Regards Kuldeep