Hello Krzysztof On 06/18/2024 11:17 PM PDT, Krzysztof Kozlowski wrote: > On 19/06/2024 00:08, Gaurav Kashyap (QUIC) wrote: > >> > >> You may perhaps only call qcom_scm_derive_sw_secret_available() for > >> some ICE versions. > >> > >> Neil > > > > The issue here is that for the same ICE version, based on the chipset, > > there might be different configurations. > > That's not what your DTS said. To remind: your DTS said that all SM8550 and > all SM8650 have it. Choice is obvious then: it's deducible from compatible. > > I still do not understand why your call cannot return you correct > "configuration". > ICE version and chipsets are disjoint, meaning for the same ICE HW present in SM8650 vs SMxxxx target, SM8650 will have necessary TZ support, but SM8xxxx may not, that is the reason I was trying to indicate all SM8550 and SM8650 have the necessary TZ support. There might have been a miscommunication there. However , availability of QCOM_SCM_ES_GENERATE_ICE_KEY will directly translate to having the necessary firmware support. So, I will pursue going that route and upload another set of patches to remove the DT property. > > > > Is it acceptable to use the addressable size from DTSI instead? > > Meaning, if it 0x8000, it would take the legacy route, and only when > > it has been updated to 0x10000, we would use HWKM and wrapped keys. > > No. > Ack > Best regards, > Krzysztof Regards, Gaurav