From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH 07/13] ARM: dts: r8a7792: initial SoC device tree Date: Tue, 7 Jun 2016 09:13:54 +0200 Message-ID: References: <13205049.n7pM8utpHF@wasted.cogentembedded.com> <2539026.OyU5nvpxa6@wasted.cogentembedded.com> <20160601005751.GG20527@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: Sender: linux-renesas-soc-owner@vger.kernel.org To: Sergei Shtylyov Cc: Simon Horman , linux-renesas-soc@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "devicetree@vger.kernel.org" , Magnus Damm , Russell King , "linux-arm-kernel@lists.infradead.org" List-Id: devicetree@vger.kernel.org Hi Sergei, On Tue, Jun 7, 2016 at 12:26 AM, Sergei Shtylyov wrote: >> With regards to SMP. Have you checked to make sure CPU hotplug works >> on all CPUs? > > How to test the CPU hotplug? I've now added the SMP support and made sure > both CPUs are online and serve IRQs... Off/online all CPUs: for i in /sys/*/*/cpu/cpu[0-9]*; do echo 0 > $i/online; echo 1 > $i/online; done Offline all CPUs: for i in /sys/*/*/cpu/cpu[0-9]*; do echo 0 > $i/online; done; cat /proc/cpuinfo Online all CPUs: for i in /sys/*/*/cpu/cpu[0-9]*; do echo 1 > $i/online; done; cat /proc/cpuinfo >> And that the system behaves sanely on suspend/resume. > > I'd be thankful if you told me how to test that. :-) System suspend: echo mem > /sys/power/state System resume: You're gonna need a "wakeup-source" in your DTS, e.g. gpio-keys. Serial should work too, echo "enabled" to the corresponding wakeup file in /sys first. In case of issues, try "echo 0 > /sys/module/printk/parameters/console_suspend". Good luck! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds