]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: simplify swiotlb_max_segment
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Feb 2022 10:44:42 +0000 (11:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 05:21:09 +0000 (07:21 +0200)
commitdb834c419ae1b5906c5f691879bd6a96c8dc8233
treebb69da8b22d3fc7a225f78facfa8ec8c13f20036
parent9493c9f7bece5f5e6f0c046c69626c44c5e6aa57
swiotlb: simplify swiotlb_max_segment

Remove the bogus Xen override that was usually larger than the actual
size and just calculate the value on demand.  Note that
swiotlb_max_segment still doesn't make sense as an interface and should
eventually be removed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/swiotlb-xen.c
include/linux/swiotlb.h
kernel/dma/swiotlb.c