Re: [PATCH RFC 2/2] firmware: qcom: Add legacy QSEE secure log support
From: Konrad Dybcio
Date: Wed Dec 02 2026 - 04:12:38 EST
On 12/1/26 11:33 PM, Kuldeep Singh wrote:
> QSee log(or TA log buffer) is owned by kernel and QTEE doesn't own of
> it's own. Implement new scm call to register this buffer with QTEE where
> QTEE maps buffer as RW and RO for kernel by imposing access restriction.
>
> The qsee log read mechanism is somewhat similar to reading TZ diag logs
> and be done in userspace.
>
> Signed-off-by: Kuldeep Singh <kuldeep.singh@xxxxxxxxxxxxxxxx>
> ---
[...]
> -static int qcom_secure_log_mmap(struct file *file, struct vm_area_struct *vma)
> -{
> - struct qcom_secure_log *log = container_of(file->private_data,
> - struct qcom_secure_log,
> - miscdev);
Please massage patch 1 to more closely reflect the final state of
this file (renames, placement etc.) so that this diff ends up being
smaller
[...]
> -MODULE_DESCRIPTION("Qualcomm TZ diagnostic log");
> +MODULE_DESCRIPTION("Qualcomm secure-world log interface");
This is also something p1 should get right
Konrad