mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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: Jianxiong Gao <jxgao@google.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
committed by
Konrad Rzeszutek Wilk
parent
66e8d3b899
commit
36950f2da1
@@ -291,6 +291,7 @@ struct device_dma_parameters {
|
||||
* sg limitations.
|
||||
*/
|
||||
unsigned int max_segment_size;
|
||||
unsigned int min_align_mask;
|
||||
unsigned long segment_boundary_mask;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user