Message ID | 20210405205109.1700468-9-jxgao@google.com |
---|---|
State | Superseded |
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 869f462e6b6e..087ae2b2a853 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2576,6 +2576,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, dev->ctrl.page_size - 1); mutex_unlock(&dev->shutdown_lock);