[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160922170651.GB27704@e104818-lin.cambridge.arm.com>
Date: Thu, 22 Sep 2016 18:06:51 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: David Daney <ddaney.cavm@...il.com>
Cc: linux-kernel@...r.kernel.org, Marc Zyngier <marc.zyngier@....com>,
Hanjun Guo <hanjun.guo@...aro.org>,
Will Deacon <will.deacon@....com>,
Ganapatrao Kulkarni <gkulkarni@...iumnetworks.com>,
Mark Rutland <mark.rutland@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Robert Richter <rric@...nel.org>,
linux-arm-kernel@...ts.infradead.org,
David Daney <david.daney@...ium.com>
Subject: Re: [PATCH] arm64: Call numa_store_cpu_info() earlier.
On Tue, Sep 20, 2016 at 11:46:35AM -0700, David Daney wrote:
> From: David Daney <david.daney@...ium.com>
>
> The wq_numa_init() function makes a private CPU to node map by calling
> cpu_to_node() early in the boot process, before the non-boot CPUs are
> brought online. Since the default implementation of cpu_to_node()
> returns zero for CPUs that have never been brought online, the
> workqueue system's view is that *all* CPUs are on node zero.
>
> When the unbound workqueue for a non-zero node is created, the
> tsk_cpus_allowed() for the worker threads is the empty set because
> there are, in the view of the workqueue system, no CPUs on non-zero
> nodes. The code in try_to_wake_up() using this empty cpumask ends up
> using the cpumask empty set value of NR_CPUS as an index into the
> per-CPU area pointer array, and gets garbage as it is one past the end
> of the array. This results in:
Queued for 4.8. Thanks.
--
Catalin
Powered by blists - more mailing lists