Skip to contentSkip to conversation

ufs: rpmb: route OP-TEE RPMB secure storage over UFS

PATCH Ilias Apalodimas 1 participant 1 message Oct 2 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

[...]

Quoted 38 lines
Quoted 38 lines
Quoted 23 lines
Quoted 8 lines

We spent time and effort doing an implementation and sharing it with the
community - it wouldnt be fair to us to block this merge on the basis of
downstream projects being impacted.

in summary and to be very clear

1- the upstream CID derivation is the u-boot/op-tee contract that matches mainline linux's ufshcd_create_device_id(). The contract is an
OP-TEE-defined ABI, not a Global Platform spec.

2. Moreover CID-key is OP-TEE's own HUK-based derivation, not GP, not JEDEC.

3- Nothing here blocks anyone from overriding the static ufs_rpmb_build_cid()
downstream.

Quoted 5 lines

3- if downstream scheme differs, that's the cost of having kept it out of tree,
not a reason to hold this series for speculative plug-in infrastructure with a
single backend.

+1. Macpaul is there anything else you can review apart from the downstream breakage. TBH since you didn;t bother upstreaming that, objecting to code that adds real support doesn't really stand as an arguement.

Jorge, I did a quick pass and I don't see any big issues with the series. I'll do another pass later this week and send a PR if the CI agrees.

Quoted 9 lines
Quoted 2 lines

Cheers
/Ilias

Got it. That's quite reasonable for taking the current implementation. MediaTek will try to propose the vendor specific helper functions and and upstream other backends for some downstream implementation. Hope this could be happened soon. Thanks for taking time to read the previous reply.

YW and FWIW I'd really like to see that. What Jorge is proposing here is easily extendable with extra algorithms with a Kconfig option or weak per platform functions.

Thanks
/Ilias

Quoted 3 lines

Best regards,
Macpaul Lin