[PATCH 1/8] driver core: add a min_align_mask field to struct device_dma_parameters
Greg KH
gregkh at linuxfoundation.org
Thu Feb 4 14:44:57 EST 2021
On Thu, Feb 04, 2021 at 08:30:28PM +0100, Christoph Hellwig wrote:
> From: Jianxiong Gao <jxgao at google.com>
>
> Some devices rely on the address offset in a page to function
> correctly (NVMe driver as an example). These devices may use
> a different page size than the Linux kernel. The address offset
> has to be preserved upon mapping, and in order to do so, we
> need to record the page_offset_mask first.
>
> Signed-off-by: Jianxiong Gao <jxgao at google.com>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
> include/linux/device.h | 1 +
> include/linux/dma-mapping.h | 16 ++++++++++++++++
> 2 files changed, 17 insertions(+)
Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
More information about the Linux-nvme
mailing list