From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18377C433E7 for ; Tue, 1 Sep 2020 06:15:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CE2B9214F1 for ; Tue, 1 Sep 2020 06:15:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nMoXu3Qo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE2B9214F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 527556B0003; Tue, 1 Sep 2020 02:15:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4D6D46B0037; Tue, 1 Sep 2020 02:15:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C6776B0055; Tue, 1 Sep 2020 02:15:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0197.hostedemail.com [216.40.44.197]) by kanga.kvack.org (Postfix) with ESMTP id 1FF3D6B0003 for ; Tue, 1 Sep 2020 02:15:29 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C53B5180AD806 for ; Tue, 1 Sep 2020 06:15:28 +0000 (UTC) X-FDA: 77213480736.21.test14_540175427096 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 957D4180442C0 for ; Tue, 1 Sep 2020 06:15:28 +0000 (UTC) X-HE-Tag: test14_540175427096 X-Filterd-Recvd-Size: 5936 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by imf27.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 06:15:28 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id o68so219481pfg.2 for ; Mon, 31 Aug 2020 23:15:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=Sd4E4Z/MpNGbX5x3P4fOAUXrOsysWLUN6bwhYnFl+mQ=; b=nMoXu3Qo0+bs7gWrd8KAo4W2329cg+qL8/bEFl0PfjVHqSlGk2dsJJAg+NE6/N6ELI hSuqy6tqBU8SE///Fe37mgUETOeba7abQGH52wDw0CJ/aaC+65AbgLG0Y1+nNkOkuGz+ m81/nmW3phJTX7yThOEzxrvPdXE1GBe1hCelxjihF5a9XEAwycy8N2oJhf3v2hAEeqF4 5VD2bEK96UHgA9zLnJq3GoVWVeOx/kvHNFDGOhDjwo863j1KWcPaVj1u79bW0InuTMsu Ub6xOhPmQ1D4tEXJDRaqzkyBy+N9eE7GnSzrL9RF/vuj9J3Jt5S2fbQoVbAfOqFEs0Wf hFzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=Sd4E4Z/MpNGbX5x3P4fOAUXrOsysWLUN6bwhYnFl+mQ=; b=G8kloYmDc0HUmdtW7XU8ekFcK5AA3iv18Eid1u76Ij4jnjD0ek0rmvsVRQskn4OeFx HdC+VQUZJQiI3LEZj5xp2UWr0rt+0y+jRTdsRztJsfjHWzXatAHYQnfWg90ji+5/CqpD zOpX+ZTwdeB2TY5glyXxv6N6m835Z3Yf4etJU9JEDth09hMl1GG7GMLKH252wfUU16kO SneflEv3Q986zYE/BFE0K35bUXDSmjN3Wfn7QN5KgLllH8Bf/4mbvtAB925YdSFeLyXq 3gtsjOFozIxidR2/O3HOb3aX2eBAkv9rf5ApOIvcv0s9vJw5OR8Oz7yHI3EwdixlW9T0 pOGQ== X-Gm-Message-State: AOAM531VJhnngxMDUdMkkWslEE1Pu8ox7xfY/AXEkZPEGRlvpPoSrYoH Amy3XUlJmJ1uYEc/Y4rCYjM= X-Google-Smtp-Source: ABdhPJzfAPJ+0iytHhGYqTIBnKfvcUDOg4PLgFVUaWo9Zvzz9AEdNSibHf3+lDy936GiI3w6YIzM5w== X-Received: by 2002:a63:595a:: with SMTP id j26mr208330pgm.406.1598940927149; Mon, 31 Aug 2020 23:15:27 -0700 (PDT) Received: from localhost ([203.185.249.227]) by smtp.gmail.com with ESMTPSA id r33sm580518pgm.75.2020.08.31.23.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 23:15:26 -0700 (PDT) Date: Tue, 01 Sep 2020 16:15:21 +1000 From: Nicholas Piggin Subject: Re: [PATCH v2 10/23] microblaze: use asm-generic/mmu_context.h for no-op implementations To: linux-arch@vger.kernel.org, Michal Simek Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Simek References: <20200826145249.745432-1-npiggin@gmail.com> <20200826145249.745432-11-npiggin@gmail.com> <4d2bdc87-f39c-3737-0aa8-b2efe7b2d93e@monstr.eu> In-Reply-To: <4d2bdc87-f39c-3737-0aa8-b2efe7b2d93e@monstr.eu> MIME-Version: 1.0 Message-Id: <1598940875.v2bbea400c.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 957D4180442C0 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Excerpts from Michal Simek's message of September 1, 2020 12:15 am: >=20 >=20 > On 26. 08. 20 16:52, Nicholas Piggin wrote: >> Cc: Michal Simek >> Signed-off-by: Nicholas Piggin >> --- >> arch/microblaze/include/asm/mmu_context_mm.h | 8 ++++---- >> arch/microblaze/include/asm/processor.h | 3 --- >> 2 files changed, 4 insertions(+), 7 deletions(-) >>=20 >> diff --git a/arch/microblaze/include/asm/mmu_context_mm.h b/arch/microbl= aze/include/asm/mmu_context_mm.h >> index a1c7dd48454c..c2c77f708455 100644 >> --- a/arch/microblaze/include/asm/mmu_context_mm.h >> +++ b/arch/microblaze/include/asm/mmu_context_mm.h >> @@ -33,10 +33,6 @@ >> to represent all kernel pages as shared among all contexts. >> */ >> =20 >> -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_str= uct *tsk) >> -{ >> -} >> - >> # define NO_CONTEXT 256 >> # define LAST_CONTEXT 255 >> # define FIRST_CONTEXT 1 >> @@ -105,6 +101,7 @@ static inline void get_mmu_context(struct mm_struct = *mm) >> /* >> * We're finished using the context for an address space. >> */ >> +#define destroy_context destroy_context >> static inline void destroy_context(struct mm_struct *mm) >> { >> if (mm->context !=3D NO_CONTEXT) { >> @@ -126,6 +123,7 @@ static inline void switch_mm(struct mm_struct *prev,= struct mm_struct *next, >> * After we have set current->mm to a new value, this activates >> * the context for the new mm so we see the new mappings. >> */ >> +#define activate_mm activate_mm >> static inline void activate_mm(struct mm_struct *active_mm, >> struct mm_struct *mm) >> { >> @@ -136,5 +134,7 @@ static inline void activate_mm(struct mm_struct *act= ive_mm, >> =20 >> extern void mmu_context_init(void); >> =20 >> +#include >> + >> # endif /* __KERNEL__ */ >> #endif /* _ASM_MICROBLAZE_MMU_CONTEXT_H */ >> diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/i= nclude/asm/processor.h >> index 1ff5a82b76b6..616211871a6e 100644 >> --- a/arch/microblaze/include/asm/processor.h >> +++ b/arch/microblaze/include/asm/processor.h >> @@ -122,9 +122,6 @@ unsigned long get_wchan(struct task_struct *p); >> # define KSTK_EIP(task) (task_pc(task)) >> # define KSTK_ESP(task) (task_sp(task)) >> =20 >> -/* FIXME */ >> -# define deactivate_mm(tsk, mm) do { } while (0) >> - >> # define STACK_TOP TASK_SIZE >> # define STACK_TOP_MAX STACK_TOP >> =20 >>=20 >=20 > I am fine with the patch but I pretty much don't like that commit > message is empty and there is only subject. > With fixing that you can add my: > Acked-by: Michal Simek Thanks for the review, will do. Any suggestion for a useful commit message? Thanks, Nick