From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbdEJFOA (ORCPT ); Wed, 10 May 2017 01:14:00 -0400 Received: from mail.windriver.com ([147.11.1.11]:52031 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbdEJFNz (ORCPT ); Wed, 10 May 2017 01:13:55 -0400 From: To: , , , CC: , , , Subject: [PATCH] socfpga_a10: fix a kexec boot issue Date: Wed, 10 May 2017 01:13:03 -0400 Message-ID: <20170510051304.131042-1-yanjiang.jin@windriver.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yanjiang Jin I guess socfpga's other boards may need this patch, but I have Arria10 board only. So add a new function socfpga_a10_cpu_kill(), keep the old function socfpga_cpu_kill() for other boards. I also verified CPU_HOTPLUG after applying this patch, everything seems well. Test steps: 1. Enable kexec and build a SOCFPGA kernel; 2. Use zImage as 1st and 2nd kernel; 3. kexec -l /root/zImage --append="`cat /proc/cmdline`" 4. kexec -e Test env: U-Boot 2014.10 (Jan 13 2016 - 11:07:09) CPU : Altera SOCFPGA Arria 10 Platform BOARD : Altera SOCFPGA Arria 10 Dev Kit -- 1.9.1