Re: [PATCH RFC 2/2] firmware: qcom: Add legacy QSEE secure log support

From: Kuldeep Singh

Date: Wed Dec 02 2026 - 07:15:50 EST


On 02-12-2026 14:42, Konrad Dybcio wrote:
> 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

My bad! It's renaming functions and adding more diff.
I'll reduce the churn in next rev.

--
Regards
Kuldeep