Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp999525pxk; Mon, 31 Aug 2020 07:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwblESZftNkgF/DHv0cEifr2z0HCIfXmwcDZN1aW/XMYgvot2MhVRzF84L5Uldrwp1oBjMa X-Received: by 2002:aa7:cb45:: with SMTP id w5mr1453200edt.77.1598883453228; Mon, 31 Aug 2020 07:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598883453; cv=none; d=google.com; s=arc-20160816; b=nQrXblR9cJUwcM2KJegDx1ac6pljn8d+cVu+UDokO8uLTrwUwAIKXGMmiXFNeZAUUP 2NCkiuE5EmAoFZpsOmEeZZmMbqhHGhEgVPG8OSdvTxYxI9gQnr3lyUTrqDkIwQbFGHyV 3Q93THupvzPJoiN5Td/Fmk6mp5iyB+mf+qOpe04T9HUMEizFSDMKyIkVdL5P39Jft4Ik USqVvv5tCq8Hljxps1Y3KwSB50//7vqd6uZmofBUNolsWyh5HcJepxdwsAtrfVuvBH6D 8JyxYhQlWrZ8pW7+QaxPJD7qb3QlxQS/zGRj4ii3rlWmrgqC5IzEdznbJaYRY+ULb88t DVVw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=MQqx7y3LNHRl2Hja22cjbswtkGc/E1FQj6IzdW9NZtg=; b=MlJIaXzaLNQXfj1bawUKIRICsfT/beITtrWJANGhlW1QAykK3M2RaYvLAImy2jE5om 1ADuZpJC3ar0cLqHSR5nQTfemZbL9tL7DOIweOtM79jWnQ19tKhw8wPtuhkv/goKId3Z 5JhdR24bB2QIyypYvrcNboQEMdKfZ404hdlBne5mxYB9MYiyJtfSELHVPNAXtsrMvI/Z sDH2FD1pc6LBgk+wDADW192Bk2LSsZUy9ZeBVk6IiQQOMvMj06JfOSA7nl7mYfc+V1ho yIMKyKbr2cGGvUExHilQoJAP6Zyp3s5iRqJ2z2/Mf5ZlIP2ikDOHefliedE+FrwBhHYz kvNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=Cslil3lN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si6274425edv.581.2020.08.31.07.17.09; Mon, 31 Aug 2020 07:17:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=Cslil3lN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbgHaOQS (ORCPT + 99 others); Mon, 31 Aug 2020 10:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727037AbgHaOQJ (ORCPT ); Mon, 31 Aug 2020 10:16:09 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39200C061575 for ; Mon, 31 Aug 2020 07:16:06 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id ay8so5592418edb.8 for ; Mon, 31 Aug 2020 07:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MQqx7y3LNHRl2Hja22cjbswtkGc/E1FQj6IzdW9NZtg=; b=Cslil3lNQuI0x+eP5rZvfAI5i06RIx9I8HVhB0ZoNY66Ro0BhD8CeBzQHrtAFBujAZ 8CbydJ7ByJ3tIfIZizWaxbyQwiUO0zMFdV4jaf7GoeARcd8XVpaOhZekcAnwW5IVPeaP rJhPVDhm4U+MxBZemGSt45KUCawD4Hnfnu2hQF0+/CmK0l267m2GNNSO5okX7aESA3w6 Yr31n9WXW84yLjrWOa0xNFK2Obj2+SmmD4+RPNc34TpR7qCbrfnkCQitO5/gg85O1Snm RUimj6V1T7p4BMc/xfHJhQsj6Q89Q709VapiGBXldJH1Zs26xS/4jnGJc/7JAGrLrePl RC8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=MQqx7y3LNHRl2Hja22cjbswtkGc/E1FQj6IzdW9NZtg=; b=Ow4e1U40qGMfFL7Hn2+IpQvlivu9irCxpulApxZ21NeA5zwZkHkuTuLkIfAX4DYX3E UnOzr9gNvywbupFX0XIzKfS6DH/DL7aOT+eeEdlZebS5DMr++NGNnRIx3BZOTFK1oKx7 uXH8SaR7mkJz9zlDo5xTCTKX68Ptah6JEtcjB+MrKrZfbQdaZRbqxOuegKCVkrMY07i5 7UCXb8vwj21xpVD9luTJAXUQoJ9DXBpARekBJ2fUB4V3mOwC9vBO/TrJosgFqssN1sPP qoq7Krn+naWpU6KFala2xKNINdu03EYIbikpI32ZCLXtMzJxDNHLX5xUv3ctsiku33HA Q4jA== X-Gm-Message-State: AOAM531Ktvk62McgFNATRH9LiIEdFyOU6pVfcCbB9BKPSgJiOsEQoC3q SKScyqCKOmigD89qnX4C2Q5tyw== X-Received: by 2002:a05:6402:1d97:: with SMTP id dk23mr1488478edb.350.1598883364628; Mon, 31 Aug 2020 07:16:04 -0700 (PDT) Received: from [192.168.0.105] (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id z21sm7780846edq.42.2020.08.31.07.15.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 07:16:02 -0700 (PDT) Subject: Re: [PATCH v2 10/23] microblaze: use asm-generic/mmu_context.h for no-op implementations To: Nicholas Piggin , linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann , Michal Simek References: <20200826145249.745432-1-npiggin@gmail.com> <20200826145249.745432-11-npiggin@gmail.com> From: Michal Simek Autocrypt: addr=monstr@monstr.eu; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4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+4WDMUb0A/o+Xnt R//PfnDsh1KH48AGfbdKSMI83IJd3V+N7FVR2BWU1rZ8CFDFAuWj374to8KinC7BsJnQlx7c 1CzxB6Ht93NvfLaMyRtqgc7Yvg2fKyO/+XzYPOHAwTPM4xrlOmCKZNI4zkPleVeXnrPuyaa8 LMGqjA52gNsQ5g3rUkhp61Gw7g83rjDDZs5vgZ7Q2x3CdH0mLrQPw2u9QJ8K8OVnXFtiKt8Q L3FaukbCKIcP3ogCcTHJ3t75m4+pwH50MM1yQdFgqtLxPgrgn3U7fUVS9x4MPyO57JDFPOG4 oa0OZXydlVP7wrnJdi3m8DnljxyInPxbxdKGN5XnMq/r9Y70uRVyeqwp97sKLXd9GsxuaSg7 QJKUaltvN/i7ng1UOT/xsKeVdfXuqDIIElZ+dyEVTweDM011Zv0NN3OWFz6oD+GzyBetuBwD 0Z1MQlmNcq2bhOMzTxuXX2NDzUZs4aqEyZQ= Message-ID: <4d2bdc87-f39c-3737-0aa8-b2efe7b2d93e@monstr.eu> Date: Mon, 31 Aug 2020 16:15:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200826145249.745432-11-npiggin@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) > > diff --git a/arch/microblaze/include/asm/mmu_context_mm.h b/arch/microblaze/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. > */ > > -static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *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 != 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 *active_mm, > > extern void mmu_context_init(void); > > +#include > + > # endif /* __KERNEL__ */ > #endif /* _ASM_MICROBLAZE_MMU_CONTEXT_H */ > diff --git a/arch/microblaze/include/asm/processor.h b/arch/microblaze/include/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)) > > -/* FIXME */ > -# define deactivate_mm(tsk, mm) do { } while (0) > - > # define STACK_TOP TASK_SIZE > # define STACK_TOP_MAX STACK_TOP > > 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, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs