On Wed, May 14, 2025 at 05:27:44PM +0200, Bartosz Golaszewski wrote: > On Wed, 14 May 2025 at 11:37, Sumit Garg <sumit.g...@kernel.org> wrote: > > > > Hi Amir, > > > > I am still unable to get the QCOMTEE driver to work on db845c. As I can > > see machine: "qcom,sdm845" is not supported for tzmem based on SHM > > brigde here: drivers/firmware/qcom/qcom_tzmem.c +81. I am still seeing > > following logs from userspace: > > > > # /mnt/unittest -d > > [test_print_diagnostics_info][31] test_get_client_env_object. > > [test_supplicant_release][65] test_supplicant_worker killed. > > > > I think you should first check here for SHM bridge support. If available > > then only add a QTEE platform device. > > > > On platforms not supporting SHM Bridge, the module should fall back to > non-SHM mode. Isn't it the case?
Okay, I see. Amir clarified offline how the non-SHM mode works. IIUC, the memory registration with QTEE is not required and instead QTEE can directly work with memory references being passed as part of object invocation. So it looks like the user space app not working on db845c is another issue with QTEE which needs to be fixed. -Sumit