Commit a3fcd2d2 authored by Andre Przywara's avatar Andre Przywara Committed by Greg Kroah-Hartman
Browse files

crypto: qat - replace get_current_node() with numa_node_id()



[ Upstream commit c2a1b91e ]

Currently the QAT driver code uses a self-defined wrapper function
called get_current_node() when it wants to learn the current NUMA node.
This implementation references the topology_physical_package_id[] array,
which more or less coincidentally contains the NUMA node id, at least
on x86.

Because this is not universal, and Linux offers a direct function to
learn the NUMA node ID, replace that function with a call to
numa_node_id(), which would work everywhere.

This fixes the QAT driver operation on arm64 machines.

Reported-by: default avatarYoan Picchi <Yoan.Picchi@arm.com>
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarYoan Picchi <yoan.picchi@arm.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: eb7713f5 ("crypto: qat - unmap buffer before free for DH")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9560559c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment