Skip to content
Snippets Groups Projects
Commit 36950f2d authored by Jianxiong Gao's avatar Jianxiong Gao Committed by Konrad Rzeszutek Wilk
Browse files

driver core: add a min_align_mask field to struct device_dma_parameters


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: default avatarJianxiong Gao <jxgao@google.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 66e8d3b8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment