]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/io-pgtable-arm: Fix pgtable allocation in selftest
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Mon, 18 Jun 2018 11:27:54 +0000 (12:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:39:21 +0000 (08:39 +0200)
commit071929af7183b9a57834ff7da757cb1518b60e00
tree39feca59a8e0ea83c27c14e18fa6929c236f335f
parent6bd162fc88d27745935506a843faff36051fe324
iommu/io-pgtable-arm: Fix pgtable allocation in selftest

[ Upstream commit fac83d29d95471ad6a104f8c0d21669a3d59097b ]

Commit 4b123757eeaa ("iommu/io-pgtable-arm: Make allocations
NUMA-aware") added a NUMA hint to page table allocation, but the pgtable
selftest doesn't provide an SMMU device parameter. Since dev_to_node
doesn't accept a NULL argument, add a special case for selftest.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/io-pgtable-arm.c