]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: Establish DMA alignment
authorEric Farman <farman@linux.ibm.com>
Thu, 4 Aug 2022 21:39:26 +0000 (23:39 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Aug 2022 22:19:15 +0000 (16:19 -0600)
commitc8b85e10d82e578095be8b79cd1bc19a60d202b3
tree667c8e0309f378062702eedf204820889bed0382
parent4bf2e880ed802b465a5af3ce55a233ce4d291f64
s390/dasd: Establish DMA alignment

linux-next commit c49ec585f24a ("iomap: add support for dma aligned
direct-io") changes the alignment requirement to come from the block
device rather than the block size, and the default alignment
requirement is 512-byte boundaries. Since DASD I/O has page
alignments for IDAW/TIDAW requests, let's override this value to
restore the expected behavior.

Make this change for both ECKD and DIAG disciplines, as they both
would fall into this category. Leave FBA alone, since it is always
comprised of 512-byte blocks.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20220804213926.3361574-3-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd_diag.c
drivers/s390/block/dasd_eckd.c