]> git.baikalelectronics.ru Git - kernel.git/commit
xen/swiotlb: don't initialize swiotlb twice on arm64
authorStefano Stabellini <stefanos@xilinx.com>
Tue, 28 May 2019 22:48:22 +0000 (15:48 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 5 Jun 2019 14:09:26 +0000 (10:09 -0400)
commit45fabc7dc4b5f95d6d5aae46d5387415d802b747
treefae9f967cff6fa82ec939db85f676dda5caef8e8
parent1612d2c780fca3d448047dab7348ebe1cd20d8bd
xen/swiotlb: don't initialize swiotlb twice on arm64

On arm64 swiotlb is often (not always) already initialized by mem_init.
We don't want to initialize it twice, which would trigger a second
memory allocation. Moreover, the second memory pool is typically made of
high pages and ends up replacing the original memory pool of low pages.
As a side effect of this change, it is possible to have low pages in
swiotlb-xen on arm64.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c