|
@@ -2622,6 +2622,8 @@ static int nvme_dev_add(struct nvme_dev *dev)
|
|
memcpy(dev->firmware_rev, ctrl->fr, sizeof(ctrl->fr));
|
|
memcpy(dev->firmware_rev, ctrl->fr, sizeof(ctrl->fr));
|
|
if (ctrl->mdts)
|
|
if (ctrl->mdts)
|
|
dev->max_hw_sectors = 1 << (ctrl->mdts + shift - 9);
|
|
dev->max_hw_sectors = 1 << (ctrl->mdts + shift - 9);
|
|
|
|
+ else
|
|
|
|
+ dev->max_hw_sectors = UINT_MAX;
|
|
if ((pdev->vendor == PCI_VENDOR_ID_INTEL) &&
|
|
if ((pdev->vendor == PCI_VENDOR_ID_INTEL) &&
|
|
(pdev->device == 0x0953) && ctrl->vs[3]) {
|
|
(pdev->device == 0x0953) && ctrl->vs[3]) {
|
|
unsigned int max_hw_sectors;
|
|
unsigned int max_hw_sectors;
|