Message ID | 20210405210230.1707074-9-jxgao@google.com |
---|---|
State | New |
Headers | show |
Series | preserve DMA offsets when using swiotlb | expand |
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 3be352403839..dddccfe82abc 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2590,6 +2590,7 @@ static void nvme_reset_work(struct work_struct *work) * Don't limit the IOMMU merged segment size. */ dma_set_max_seg_size(dev->dev, 0xffffffff); + dma_set_min_align_mask(dev->dev, NVME_CTRL_PAGE_SIZE - 1); mutex_unlock(&dev->shutdown_lock);