[PATCH 0/4] nvme: fix iod size calculation in nvme_probe()
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Tue Jul 7 20:58:27 EDT 2020
Hi,
This is a small patch series which fixes the IO size calulation in the
nvme_probe. First two patches are prep patches needed to get the right
value so that we can avoid oops in nvme_npages.
The third patch calculates the maximum value based on NVMe PRP and SGL
size.
The last patch has a fix for checkpatch reported warnings which were
present in the existing code prior to this patch-series.
I've tested this patch with different block sizes 4k-128k on NVMe QEMU
and NVMe PCIe (non-SGL) controller.
Regards,
Chaitanya
Chaitanya Kulkarni (4):
nvme-core: use macro for ctrl page size default value
nvme-pci: don't use ctrl page size value in probe
nvme-pci: use max of PRP or SGL for iod size
nvme-core: fix checkpatch warnings
drivers/nvme/host/core.c | 15 +++++----------
drivers/nvme/host/nvme.h | 7 +++++++
drivers/nvme/host/pci.c | 24 +++++++++++++++---------
3 files changed, 27 insertions(+), 19 deletions(-)
--
2.26.0
More information about the Linux-nvme
mailing list