Re: [PATCH RFC 1/2] firmware: qcom: Introduce qcom_secure_log interface to display QTEE logs

From: Kuldeep Singh

Date: Wed Dec 02 2026 - 07:14:45 EST


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 <kuldeep.singh@xxxxxxxxxxxxxxxx>
>> ---
>
> [...]
>
>> +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