[PATCH] nvme: Use pci_iomap instead of ioremap

Christoph Hellwig hch at lst.de
Thu Jan 27 06:45:08 PST 2022


On Thu, Jan 27, 2022 at 06:35:41PM +0530, Pankaj Raghav wrote:
> On Wed, Jan 26, 2022 at 05:33:06PM +0100, Christoph Hellwig wrote:
> > pci_iomap goes with the ioread/iowrite accessors which we absolutely
> > do not want in nvme.
> Is it because of ioread/iowrite has a conditional check everytime we do
> a read/write with IO_COND? Or is there any other reason?

Yes, ioread* and iowrite* are more expensive.  And nvme doesn't support
port I/O anyway so there is no point.



More information about the Linux-nvme mailing list