> > > A quick question and a comment: > > > > > > Does the IE infrastructure that you've added to the block layer invented > > for ufs? > > > Do you see other devices using it in the future? > > > > > > Today, chipset vendors are using a different scheme for their IE. > > > Need their ack before reviewing your patches. > > > > > Yes, as of today at least in Samsung HCI, we use additional HW blocks to > > handle all the crypto part. > > (Though I need to check the status on the recent SoCs). > > However given the fact that UFSHCI 2.1 spec does includes Crypto support, > > and going by threads that you shared, looks like other > > Vendors does uses IE. I am inclined toward getting this reviewed. > > Note that Boojin Kim, who has been Cc'ed on all these patches, has already > been > working on replacing Samsung's legacy inline encryption implementation with > one > using the new framework. > > Unfortunately, Samsung's UFS inline encryption hardware doesn't follow the > UFS > specification, so it needs custom driver code and doesn't take much > advantage of > ufshcd-crypto (this patchset). However, it can still use the blk-crypto > framework. So only the driver needs to differ, not the rest of the storage > stack. This differs from the "old world" where every vendor had to customize > the entire storage stack to support their inline encryption hardware. > > Anyway, ufshcd-crypto (this patchset) is still needed for all vendors who did > mostly/fully follow the UFS specification, e.g. Mediatek > (https://lkml.kernel.org/linux-scsi/20200304022101.14165-1- > stanley.chu@xxxxxxxxxxxx) > and Qualcomm > (https://lkml.kernel.org/linux-scsi/20200621173713.132879-1- > ebiggers@xxxxxxxxxx). > > More reviews are always appreciated, though note that this patchset has > already > been out for review for over a year. (This is really v15; Satya started the > numbering over after blk-crypto was merged in v5.8-rc1.) So I'm not sure we > should count on many more formal reviews. Ok then. This works as a practical ack by most of the large chipset vendors. Thanks, Avri