Re: [PATCH v3 4/5] nvme: Implement resume_from_suspend and SED Allocation code.

From: Christoph Hellwig
Date: Wed Dec 28 2016 - 03:40:05 EST


> for OPAL. In order to determine if the controller supports opal we need to allocate
> the previously mentioned structures anyway. I want to stay away from making payloads
> (specifically discovery0 ) payload in the nvme driver and allow the opal core to do a
> all the grunt work. In the future we'll probably have to refactor the core a bit to do
> just packet generation. It looks like at least for NVMe we're going to have to do a discovery
> to figure out whether we've got mutiple locking ranges per NS or just one global lr during
> initialization.

We might have to do discovery in the nvme driver - there also is the
ATA security feature supported by various consumer drives. Jethro has
been doing some work in that direction, although driven by userspace
for now.