Thread (64 messages) 64 messages, 6 authors, 2021-08-24

min_align_mask Re: [PATCH V3 13/13] HV/Storvsc: Add Isolation VM support for storvsc driver

From: "hch@lst.de" <hch@lst.de>
Date: 2021-08-24 08:49:46
Also in: linux-arch, linux-iommu, linux-rdma, linux-scsi, lkml, netdev, xen-devel

On Fri, Aug 20, 2021 at 03:40:08PM +0000, Michael Kelley wrote:
I see that the swiotlb code gets and uses the min_align_mask field.  But
the NVME driver is the only driver that ever sets it, so the value is zero
in all other cases.  Does swiotlb just use PAGE_SIZE in that that case?  I
couldn't tell from a quick glance at the swiotlb code.
The encoding isn't all that common.  I only know it for the RDMA memory
registration format, and RDMA in general does not interact very well
with swiotlb (although the in-kernel drivers should work fine, it is
userspace RDMA that is the problem).  It seems recently a new driver
using the format (mpi3mr) also showed up.  All these should probably set
the min_align_mask.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help