Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2215473imm; Thu, 23 Aug 2018 16:44:10 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb/KcUpjzEORftQkHNI6766Co0zIYfllVECDDfdBQ/ZWukfZT98caEihw4TiQHKwkkPyUP4 X-Received: by 2002:a62:8283:: with SMTP id w125-v6mr3391418pfd.142.1535067850140; Thu, 23 Aug 2018 16:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535067850; cv=none; d=google.com; s=arc-20160816; b=EPOs/g0/cOy+A/DjvjB+Otlfyi8VsxdJZuPQrkW0jmv7jgbOWRrIvYevO4ATm2shTm PxPtQTAV+is7Dfx7aCRcP0UUUgauK/E6epH2lTmSKNDcvHiKqNLc2YC+XjpQL995Ypfe kkhIlVcbI+Nf41iz2qX2Z5TAd5Wj+9LfpSvgEgEIFcTqaJHarVWJZ4cvLBl2eai2/pm8 LcTDgTOTL84v5GlwLfUPEJfnhVdmw0PZkrw/9StdLLlytctDKARE6bLJ5Vuk/HM1eV2H Vzh/jAHCCMsJZPPQOZRuyLWyTEx+khf7JCFJORXNkH/55jq1uwnjZDbgBfaX0H61wOyN 41Iw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=f3MgpXJ0tEgWaIBlP6Yio9nmxEHq9CVJWKgbe1GKI54=; b=dqs2P+aJfXGUf7Cx+lzx6ypZnhwwjs30aTznHMtQWWpL0+O+k5eZ8hN+UBH+zhwHGZ Yj0BiqL7D4l+InXuno9jQQ57M7yt59RQIVhv3ijLrbOtD/fHBLYmNIuRO5IkR22wBroe 4gjQIacLTJYOs1AJAnVV0FQyQ3uW81wUrqLtmYSZDVBhFx8z7ZOt+JK2r4sEj3rpaWF7 0DiKprw2jilBRFjjohEFXbXE1cEKVvzPeOybVbuzaytEys486PQrKBi3J/RaxgWKpx3P 0DYgYtJM45BvHYMSEt0aM0AdLn51ys1oUT0tUyvV7Sx8dBd19ZtCPrzuYcaQA0YhfW8a htJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dfhnk7OE; 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 l1-v6si5224695pld.184.2018.08.23.16.43.55; Thu, 23 Aug 2018 16:44:10 -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=dfhnk7OE; 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 S1727175AbeHXDO3 (ORCPT + 99 others); Thu, 23 Aug 2018 23:14:29 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39928 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbeHXDO3 (ORCPT ); Thu, 23 Aug 2018 23:14:29 -0400 Received: by mail-pg1-f196.google.com with SMTP id m3-v6so2494591pgp.6; Thu, 23 Aug 2018 16:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f3MgpXJ0tEgWaIBlP6Yio9nmxEHq9CVJWKgbe1GKI54=; b=dfhnk7OEVDY8HOZqm5+42Cy2aCsIGUGTplhcn29f8lSzloNVsYcvFI3j8SDnCU8jR2 hjWZofFwSk6qmH5U6p4OBHScMnYsNcAE+q9ULmICYyrpGrmR2j+TZdAMTaW3/4ToqqQV Z+0BAIiZl1RzRvCluyzHWQlJ9YLKJnA3N0Vxv3B6QXVtqtcaoCw/ehPHbjeL45/aC/C8 Ivps95NgN0aehpu221LqvxNjYMv9XT3aIYTvRVnekUCcHJLjnjkqyIxh8FgI97umMT1M hGmJGz7YV1Rx7EpzVgxve29H4vv4mSOBYf0M5drdShYyjMjAiQoIr17wx3S4FgLGJggq PRUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f3MgpXJ0tEgWaIBlP6Yio9nmxEHq9CVJWKgbe1GKI54=; b=Q00IlHp+8N9jaZ0AbP6AsPpYpvVR+lAz9EAYCfUFl6fBq6TiPu8hH2x4NYMX3X7Gwu EOUVdbsL9Ik8raKaLicOlRA6AFKQAr84ixPobbuIrAWc+CgdrXqZf+97CFnWptlhYFi9 jz5Rkz38MthfMtF9z9RTIgJgcmRxqGdU4hbL+OBDgx7O+LoajSgBGpR6dNM0r/WtWAtg 52IxI9U96n7C1YII5oW+Sl2acMBr8R4ZHqSpMdBpMAjNsYaVb/4E6slTpVVvEWtHAJPD E7KtjS9Wu+wO+I7e7cdK9a6HiyFGzKZrJU0XLj20IGOU3JBX4DYsx4EHVVJ3fOs7SKfr sB4w== X-Gm-Message-State: AOUpUlFMgJE/cXNS5dcwRCOncg8nhlA0rJnNBuqjNcrMh2MqAIiAJS8u sAUFCM19SDO8SfoU+F0LHw4= X-Received: by 2002:a62:411a:: with SMTP id o26-v6mr64884286pfa.111.1535067748841; Thu, 23 Aug 2018 16:42:28 -0700 (PDT) Received: from roar.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id v23-v6sm7111592pfm.80.2018.08.23.16.42.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Aug 2018 16:42:28 -0700 (PDT) Date: Fri, 24 Aug 2018 09:42:20 +1000 From: Nicholas Piggin To: Will Deacon Cc: Linus Torvalds , Peter Zijlstra , Andrew Lutomirski , the arch/x86 maintainers , Borislav Petkov , Rik van Riel , Jann Horn , Adin Scannell , Dave Hansen , Linux Kernel Mailing List , linux-mm , David Miller , Martin Schwidefsky , Michael Ellerman , linux-arch Subject: Re: [RFC PATCH 0/2] minor mmu_gather patches Message-ID: <20180824094220.3ac18168@roar.ozlabs.ibm.com> In-Reply-To: <20180823232704.GA4487@brain-police> References: <20180823084709.19717-1-npiggin@gmail.com> <20180823232704.GA4487@brain-police> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Aug 2018 00:27:05 +0100 Will Deacon wrote: > Hi Linus, > > On Thu, Aug 23, 2018 at 12:37:58PM -0700, Linus Torvalds wrote: > > On Thu, Aug 23, 2018 at 12:15 PM Linus Torvalds > > wrote: > > > > > > So right now my "tlb-fixes" branch looks like this: > > > [..] > > > > > > I'll do a few more test builds and boots, but I think I'm going to > > > merge it in this cleaned-up and re-ordered form. > > > > In the meantime, I decided to push out that branch in case anybody > > wants to look at it. > > > > I may rebase it if I - or anybody else - find anything bad there, so > > consider it non-stable, but I think it's in its final shape modulo > > issues. > > Unfortunately, that branch doesn't build for arm64 because of Nick's patch > moving tlb_flush_mmu_tlbonly() into tlb.h (which I acked!). It's a static > inline which calls tlb_flush(), which in our case is also a static inline > but one that is defined in our asm/tlb.h after including asm-generic/tlb.h. > > Ah, just noticed you've pushed this to master! Please could you take the > arm64 patch below on top, in order to fix the build? Sorry yeah I had the sign offs but should have clear I hadn't fully build tested them. It's reasonable for reviewers to assume basic diligence was done and concentrate on the logic rather than build trivialities. So that's my bad. Thanks for the fix. Thanks, Nick > > Cheers, > > Will > > --->8 > > From 48ea452db90a91ff2b62a94277daf565e715a126 Mon Sep 17 00:00:00 2001 > From: Will Deacon > Date: Fri, 24 Aug 2018 00:23:04 +0100 > Subject: [PATCH] arm64: tlb: Provide forward declaration of tlb_flush() before > including tlb.h > > As of commit fd1102f0aade ("mm: mmu_notifier fix for tlb_end_vma"), > asm-generic/tlb.h now calls tlb_flush() from a static inline function, > so we need to make sure that it's declared before #including the > asm-generic header in the arch header. > > Signed-off-by: Will Deacon > --- > arch/arm64/include/asm/tlb.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/include/asm/tlb.h b/arch/arm64/include/asm/tlb.h > index 0ad1cf233470..a3233167be60 100644 > --- a/arch/arm64/include/asm/tlb.h > +++ b/arch/arm64/include/asm/tlb.h > @@ -33,6 +33,8 @@ static inline void __tlb_remove_table(void *_table) > #define tlb_remove_entry(tlb, entry) tlb_remove_page(tlb, entry) > #endif /* CONFIG_HAVE_RCU_TABLE_FREE */ > > +static void tlb_flush(struct mmu_gather *tlb); > + > #include > > static inline void tlb_flush(struct mmu_gather *tlb)