Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6232416imm; Mon, 27 Aug 2018 12:00:49 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdal6D+DmpxlQ2un/oOUI0ru50XQG3JGaFaBn5/++SSBNDVQRF+/OT+3/A9At/GI5gX4eHhY X-Received: by 2002:a62:404e:: with SMTP id n75-v6mr15396876pfa.232.1535396449343; Mon, 27 Aug 2018 12:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535396449; cv=none; d=google.com; s=arc-20160816; b=pYYBRCCWnhES+CFbbxzY7LAbn6ZVS1Zm3U+HRbobcAX50acv/m3kFCmrK/1pefUuDn Gnsxr3YSkKwg0xlnzGD8Sjk5266vINLqrwj4k+x2qs+BEMHcn+SICX/XKhkLEcb6/KBK JrHYXH2AI3+lpnOI7Hwa5hezqDZRntsTvv0oPxgyRaxQn84NYqbmz7iKuEqw9Nsd8+x/ AuV2n63y5j7mUcTQEQHbKLErv7fRqIfLCusdoEk6lqirxmGT9XtN79C6bSOnz3bRQDH+ sOkiLfIBNfQMT4l2NY95CJVPr4Pg+MFO0NgRQOJEIBLVgAuL3svDuKWw0gTRYPo5GWbv 3+ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:cc:references:in-reply-to :message-id:date:subject:dkim-signature:arc-authentication-results; bh=q8pTD7qGJnI8ElvmN5WMBhM58Y9r9Xo6Cc36+rVicmo=; b=fqEwN1pzjLjkg5NTjy4mulxSCdagw5zwvdUS3c51whyXT6oWg3WFDxCjPbSCnxhN1z uKGrm6J5G7Z+fv2y7Bma4VPz+VugkTrHpT+OhKACZaiKj+J8324ZUSA3DIP07IKb4y30 1jpG9parsHHglV0wCG5G9TIWcz75j3C/xVlhnG/Ly8K2MvE7LbunCrVECDOqRh/zI6HS FjweSO87ImegRL7+f4z5bqc0NWpk1cZLAow4N8FN7Iv5X+yy80v6WT+zTYUkN3WYXR/1 jHJMRVUdGTR+C/NnFTz22+r5TC4Ji1OlM1ZH4aOEAPGZO4TlV1+Gr8evPq31sleHHntU Tnxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="nXbP/mKe"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si22645pgv.76.2018.08.27.12.00.34; Mon, 27 Aug 2018 12:00:49 -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=@sifive.com header.s=google header.b="nXbP/mKe"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728039AbeH0Wqn (ORCPT + 99 others); Mon, 27 Aug 2018 18:46:43 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37808 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbeH0Wqm (ORCPT ); Mon, 27 Aug 2018 18:46:42 -0400 Received: by mail-pg1-f195.google.com with SMTP id h8-v6so10126pgs.4 for ; Mon, 27 Aug 2018 11:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=subject:date:message-id:in-reply-to:references:cc:from:to; bh=q8pTD7qGJnI8ElvmN5WMBhM58Y9r9Xo6Cc36+rVicmo=; b=nXbP/mKeb2yrB2AzA0zDpYjw1S2pWaq9/qIFkgAb3tHLXFGROIhtTTUaOeuKeF5O/Q PKpXlzXxA32yIOLd1myTKzBhWjhDZuijTS3AydUorGYoBTkL/dqMvx62IX5eRuIM5cOE hcgxhBlGoB3CNXJbyq/iu6vbYxS+OtcGZXdSf0cr2uYeIuKkF/JTGa+UkRFahEFzbSCm aI7UzTNB4XkxQb/I86KLZKRtSVPya8CtBTYhqfpCP42Ep7oyZcUOjVPGfaq4kGQ/xD5J pLNZxnrXrlwkurGx5lM/vbaZ1jqscZVGmfCCJ5NtVVw0ogNswInJY5ochYs4hMw3FgTt e55Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :cc:from:to; bh=q8pTD7qGJnI8ElvmN5WMBhM58Y9r9Xo6Cc36+rVicmo=; b=nqf79zszNDV/KA4cALA8I3ILCHJ2kkGWKy0LmT0gOZT0T/6JWZKel3wCtrWKxQ19vy Gy+s/W2t9tKvYcN1+YnKST51ySx4IgnXDel0DJ0wFrCEdMNvMaUde7Q5PEXiKGMNv07x BKdXVwl+0DxIxhD0npEJOJV66s25bSfael8mlzkoG/xbQ3MXMXkjyCiMtkwM153ty3zx me4vaXm8X0IM9/GEudadP388Y3fIsnE98JXQtxM9pqt/69Nz6TkviBhquycMILjNN7Fc 38qjR1hxJ2vUwxeOHhanQ5DOfJ7rnTyiZkB7Fu3AlV5jUSqDM6VIqKn2TExTVqGK5amK 8mdw== X-Gm-Message-State: APzg51Azbb7rkKak1JDi3FC+9Og0Un3DERp95GiEuaPAfxxug0J5osB5 1qnXu2GQ32gq0ID7ROAC7an1yQ== X-Received: by 2002:a63:144b:: with SMTP id 11-v6mr13052808pgu.219.1535396332796; Mon, 27 Aug 2018 11:58:52 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id m15-v6sm27099178pfj.171.2018.08.27.11.58.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 11:58:51 -0700 (PDT) Subject: [PATCH 7/8] RISC-V: Comment on the TLB flush in smp_callin() Date: Mon, 27 Aug 2018 11:42:42 -0700 Message-Id: <20180827184243.25344-8-palmer@sifive.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180827184243.25344-1-palmer@sifive.com> References: <20180827184243.25344-1-palmer@sifive.com> Cc: Palmer Dabbelt , aou@eecs.berkeley.edu, daniel.lezcano@linaro.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, atish.patra@wdc.com, dmitriy@oss-tech.org, catalin.marinas@arm.com, ard.biesheuvel@linaro.org, Greg KH , jeremy.linton@arm.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: linux-riscv@lists.infradead.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This isn't readily apparent from reading the code. Signed-off-by: Palmer Dabbelt --- arch/riscv/kernel/smpboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c index 5437a04babcd..953bc540207d 100644 --- a/arch/riscv/kernel/smpboot.c +++ b/arch/riscv/kernel/smpboot.c @@ -107,6 +107,8 @@ asmlinkage void __init smp_callin(void) trap_init(); notify_cpu_starting(smp_processor_id()); set_cpu_online(smp_processor_id(), 1); + /* Remote TLB flushes are ignored while the CPU is offline, so emit a local + * TLB flush right now just in case. */ local_flush_tlb_all(); local_irq_enable(); preempt_disable(); -- 2.16.4