Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp219388imm; Thu, 2 Aug 2018 17:29:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf0arVGyPdEUr0ETrqmoHcnZOqM0lenBzegTWvDP1NVfTwO7OU16AhK+JsRG2fM7YjR3uDh X-Received: by 2002:a17:902:4906:: with SMTP id u6-v6mr1423983pld.44.1533256151093; Thu, 02 Aug 2018 17:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533256151; cv=none; d=google.com; s=arc-20160816; b=AXCf7DFE1PCSi6eq4BISf1Po2Z9vAkvtQ8l6vchSLlhD9QNDjFFwpqdJiIojn0UNTQ cw5iGPT9k/8rpctyV32pnf1lKgdUvVapmsNmfeZifOvntbjJZN/8sdVpT4Zi2GSf5jW9 4hjMBQMPKumK6eFWPj+7moL7VEXzsYTC8LgFFAfViaKiOUGWJZkhGrm6sPxu6IkQWj0h 3wmRmhK0A8hR3izqRkNVvrhFDIwMz0NlpmiSuaYOYpVndUJZbLE0TLC+XnR6Je9tmOYH wgiIO2BqS7ix1qoysp29BodZ15gcWdXputrUn9WPydIg15hAVbalAtf/26JQa0u33VER DhVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=fi3dVBaghTivq3SLwzEEOAsKb+FgXMFgJLCkGux5dO0=; b=mFE5ZsvOSnvouV+6RMtWmkwl01Pg+IwEIsxkhnSkalauOo8ix5VNB6t87mifATPo/T lY0rhGWDxna+2M2lZFLulgfKFcR3PA8s3kvL3PdTLn9PcVSwMzacXxd7k2VW3CL11x5G tdvTFyZ3BIryAPTiCPyxUqn8Bw5vhxH4eZ2vGc9khklYIxRzOHFRABcaXEA2SQQTWYSb LQmxWa2bYIGJPGVtCiSnbQkK8X2UnkQA2mF2ZQjekMFY9Cq/5mhhPLDmR6wj9dNQ2iIv 3gqBa4l18s7rccuI2gB8hf663WLARQnh6cCETiJWcjgCtIRjwKpXjs+esxlGOF0wvEdr HiCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KBsNOdV+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8-v6si3574147pgf.166.2018.08.02.17.28.56; Thu, 02 Aug 2018 17:29:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KBsNOdV+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732212AbeHCCVp (ORCPT + 99 others); Thu, 2 Aug 2018 22:21:45 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:56050 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729681AbeHCCVp (ORCPT ); Thu, 2 Aug 2018 22:21:45 -0400 Received: by mail-it0-f66.google.com with SMTP id d10-v6so6167615itj.5 for ; Thu, 02 Aug 2018 17:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fi3dVBaghTivq3SLwzEEOAsKb+FgXMFgJLCkGux5dO0=; b=KBsNOdV+lh92Kwg2kxrkOcmN/xf2aATacppNQzZWlvXI1PscyYo8OKDVBvq0t488/v 1ielRDBoidKcF8SVlkX7thcjStFYyixGk9G68w6LxyuIErRbXcbQV4Z7Ml989w1700os D9E3fU8UwGMHRA5nIW2pjMj1u+g9vnBnOjbD9TxwyFWfA1zQ0eNfj4e5LFwkKARUvn+p s8ygEUrGsWOqV80ldDeAnyeGtm2nS35fHQBj7QcxTmjiZYYkFBrjh1nC9QvKHd6w6lHq /W86bLheyJQQNRqqva57XdBSa+VTkgONhqCoSbOv8P1VA+YRjL23z2nwzK/axYiEW//o 29Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fi3dVBaghTivq3SLwzEEOAsKb+FgXMFgJLCkGux5dO0=; b=ZY0uAeL/oL0a/ZfW8VmycDGNCWNq0uvHKV3tvICj3xVo8Op/0OWCMHVeY6FjbqwMnJ tc/d0OzWQXskWrm1YQrcwaYsAzGDIHvJ8vNZw47UhRKVinJqiiAy8Htw1xNpaKW0u5UI QC3/SIuTQBEsLNIkqp1ysekGlvxd4bksLDWAvnXxFbSj1JUxX7dXXGGIWQ4KmpI/lM2/ hvgFr1YSNEy7gsWGNp8NAMZ5lzd4YHb11z9XeBoSz3HCD0YffsSB8YBOHtAskcOFQk98 084FGDk7MbFPSidQflpTFac4C1Z4XVHV6SmsIYB4rYWqY6nkJneAOpjQ9RahNArJr5uo onBw== X-Gm-Message-State: AOUpUlELBFWDpUoH8BXfLTLiLXsza+SXC64+6ul5yYl5Z1yfFL+IK5dc m4J7euzYe+ZSHHqygXdphL/oH4p8wjnLxbr5bxI= X-Received: by 2002:a24:4ecb:: with SMTP id r194-v6mr4690235ita.39.1533256088032; Thu, 02 Aug 2018 17:28:08 -0700 (PDT) MIME-Version: 1.0 References: <1533223376-10130-1-git-send-email-zong@andestech.com> <27367ec8-fc26-c678-1883-299a084a5328@wdc.com> In-Reply-To: <27367ec8-fc26-c678-1883-299a084a5328@wdc.com> From: Zong Li Date: Fri, 3 Aug 2018 08:27:57 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Add preprocessor directives for boot_sec_cpu To: atish.patra@wdc.com Cc: Zong Li , Palmer Dabbelt , aou@eecs.berkeley.edu, hch@infradead.org, linux-riscv@lists.infradead.org, Linux Kernel Mailing List , greentime@andestech.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Atish Patra =E6=96=BC 2018=E5=B9=B48=E6=9C=883=E6=97= =A5 =E9=80=B1=E4=BA=94 =E4=B8=8A=E5=8D=882:14=E5=AF=AB=E9=81=93=EF=BC=9A > > On 8/2/18 8:23 AM, Zong Li wrote: > > The boot_sec_cpu is for hutplug CPU on SMP system. It should > > be conditional compiling. Otherwise, it causes undefined reference > > to `smp_callin' when compiling uniprocessor kernel. > > > > Signed-off-by: Zong Li > > --- > > arch/riscv/kernel/head.S | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S > > index 11066d5..9b6f601 100644 > > --- a/arch/riscv/kernel/head.S > > +++ b/arch/riscv/kernel/head.S > > @@ -154,6 +154,7 @@ END(_start) > > .section .text > > .global boot_sec_cpu > > > > +#ifdef CONFIG_HOTPLUG_CPU > > boot_sec_cpu: > > /* clear all pending flags */ > > csrw sip, zero > > @@ -162,6 +163,7 @@ boot_sec_cpu: > > fence > > > > tail smp_callin > > +#endif > > > > __PAGE_ALIGNED_BSS > > /* Empty zero page */ > > > > Thanks for the fix. If you don't mind, I would like to merge it on top > of my cpu hotplug patch and resubmit together to avoid confusion. > OK, just take it:)