Re: [PATCHv3 1/2] block: accumulate segment page gaps per bio
From: Christoph Hellwig <hch@lst.de>
Date: 2025-08-26 13:03:50
Also in:
linux-iommu, linux-nvme
From: Christoph Hellwig <hch@lst.de>
Date: 2025-08-26 13:03:50
Also in:
linux-iommu, linux-nvme
On Mon, Aug 25, 2025 at 08:10:59AM -0600, Keith Busch wrote:
On Mon, Aug 25, 2025 at 06:46:50AM -0700, Christoph Hellwig wrote:quoted
On Thu, Aug 21, 2025 at 01:44:19PM -0700, Keith Busch wrote: Also use the chance to document why all this is PAGE_SIZE based and not based on either the iommu granule size or the virt boundary.This is a good opportunity to double check my assumptions:
Always a good idea!
PAGE_SIZEs, iommu granules, and virt boundaries are all power-of-two values, and PAGE_SIZE is always the largest (or tied for largest) of these.
I just had an offlist conversation with someone trying to make a nvme device with a virt boundary larger than PAGE_SIZE work. No idea where that device came from. I hink IOMMU granule > PAGE_SIZE would be painful, but adding the IOMMU list to double check. It would also be really good to document all these assumptions with both comments and assert so that we immediately see when they are violated.