summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJianxiong Gao <jxgao@google.com>2021-02-01 21:30:17 +0300
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2021-02-26 18:52:50 +0300
commit3d2d861eb03e8ee96dc430a54361c900cbe28afd (patch)
tree71a546f83c0ddde280afb48d37c3f91e2890794a /kernel
parent1f221a0d0dbf0e48ef3a9c62871281d6a7819f05 (diff)
downloadlinux-3d2d861eb03e8ee96dc430a54361c900cbe28afd.tar.xz
nvme-pci: set min_align_mask
The PRP addressing scheme requires all PRP entries except for the first one to have a zero offset into the NVMe controller pages (which can be different from the Linux PAGE_SIZE). Use the min_align_mask device parameter to ensure that swiotlb does not change the address of the buffer modulo the device page size to ensure that the PRPs won't be malformed. Signed-off-by: Jianxiong Gao <jxgao@google.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Jianxiong Gao <jxgao@google.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions