]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: topology: re-introduce numa mask check for scheduler MC selection
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 6 Jul 2018 11:02:48 +0000 (12:02 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 6 Jul 2018 12:18:18 +0000 (13:18 +0100)
commitd93251c2f7aebb44cee0db528300113af9fe4ba2
tree93f8c4abd62cfea8d9d1f5331ac73102a98c2548
parent5bb3e053dc6a717dc6e01bc2fe45b9b80661479f
arm64: topology: re-introduce numa mask check for scheduler MC selection

Commit e05739aee27c ("arm64: topology: divorce MC scheduling domain from
core_siblings") selected the smallest of LLC, socket siblings, and NUMA
node siblings to ensure that the sched domain we build for the MC layer
isn't larger than the DIE above it or it's shrunk to the socket or NUMA
node if LLC exist acrosis NUMA node/chiplets.

Commit acd32e52e4e0 ("arm64: topology: Avoid checking numa mask for
scheduler MC selection") reverted the NUMA siblings checks since the
CPU topology masks weren't updated on hotplug at that time.

This patch re-introduces numa mask check as the CPU and NUMA topology
is now updated in hotplug paths. Effectively, this patch does the
partial revert of commit acd32e52e4e0.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Tested-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/topology.c