Re: [PATCH] arm64: make secondary_start_kernel() notrace

2018-06-18 Thread Catalin Marinas
On Tue, Jun 12, 2018 at 05:07:37PM +0800, Zhizhou Zhang wrote: > We can't call function trace hook before setup percpu offset. > When entering secondary_start_kernel(), percpu offset has not > been initialized. So this lead hotplug malfunction. > Here is the flow to reproduce this bug: > > echo

Re: [PATCH] arm64: make secondary_start_kernel() notrace

2018-06-12 Thread Suzuki K Poulose
On 12/06/18 10:07, Zhizhou Zhang wrote: We can't call function trace hook before setup percpu offset. When entering secondary_start_kernel(), percpu offset has not been initialized. So this lead hotplug malfunction. Here is the flow to reproduce this bug: echo 0 >

[PATCH] arm64: make secondary_start_kernel() notrace

2018-06-12 Thread Zhizhou Zhang
We can't call function trace hook before setup percpu offset. When entering secondary_start_kernel(), percpu offset has not been initialized. So this lead hotplug malfunction. Here is the flow to reproduce this bug: echo 0 > /sys/devices/system/cpu/cpu1/online echo function >

Re: [PATCH] arm64: make secondary_start_kernel() notrace

2018-06-12 Thread Mark Rutland
On Tue, Jun 12, 2018 at 05:07:37PM +0800, Zhizhou Zhang wrote: > We can't call function trace hook before setup percpu offset. > When entering secondary_start_kernel(), percpu offset has not > been initialized. So this lead hotplug malfunction. > Here is the flow to reproduce this bug: > > echo