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=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,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 09929C47092 for ; Wed, 2 Jun 2021 14:03:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E5267613BA for ; Wed, 2 Jun 2021 14:03:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbhFBOE7 (ORCPT ); Wed, 2 Jun 2021 10:04:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:46842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbhFBOE6 (ORCPT ); Wed, 2 Jun 2021 10:04:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CE12613B8; Wed, 2 Jun 2021 14:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622642595; bh=rVTIekozkKZiHFO8KV73KQ3u8bmmogfis0wnY/V9zMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8vmJNJ02mTS2qujW9AuK34CyGewsKEQa3NJI4x54mI/kZ6TFkXgNShYSldLi9wwR iVZIZpo10XmlpdD1gKCLSxI2hAconHrCrMCgpriX/VTH8VoFXTo8owedKrPE/jIZ0c D0z4cOoqJMINruzqON7gaCTnozO9ZlPYtavKjKyFVVT2dZ+EtfNVi3gYHbuLNepcSX +gq/yzfSnUELMMLNTwhQ6DbA0qs/Rfv2LkuAbudO4aFFo53imu8k7hO2V3DMiMK48/ BPzuDC2hRRaPw3diNLbn7YRlcBUV1pB+YMb1s77Dpt31JAkWDkRc6hv1mITOzdI2oz pUQhhp2WADSpA== Date: Wed, 2 Jun 2021 17:03:01 +0300 From: Mike Rapoport To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , linux-riscv , linux-s390 , Linux-sh list , arcml , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , sparclinux Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, 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 3FAC6C4708F for ; Wed, 2 Jun 2021 14:03:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 090D5613B8 for ; Wed, 2 Jun 2021 14:03:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 090D5613B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1vhuols7/ps4ezi9+DKrJ6KSoLLTImIfNoLPCI0P68A=; b=xivceD9KkAVyf1 RzsfyN7jIL/ZiQDnyRTmkUqPgD/iKwsH7DCPZIrzjiBdmknAEn39RWd4qL72pzsXp4pJyxOdLRGjq Hm3ANaDSTr0ex2BASfHnl49yuFWb7F4kBtUM/GgZ8hpplByEut/zRb61H6/GskrKWYss6uah8UVEm iEsMLIS1FGdr3op4btiGXY7dual2RDQjlSBA6A85j2xx9BKhJdDiYLfV5mM+XXMKhyGTvW/oXk4nO xnabieRb6LEJ3Xs8DKrSuzRB5cy+/vPHiFRRGttUui2/5SqoaNjERdaV9Eu1Vk1lFfC5MxOZqIRV5 URbv7npNcPqflBj2F/rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRSz-004RL2-UG; Wed, 02 Jun 2021 14:03:29 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRSl-004RIb-Ff; Wed, 02 Jun 2021 14:03:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CE12613B8; Wed, 2 Jun 2021 14:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622642595; bh=rVTIekozkKZiHFO8KV73KQ3u8bmmogfis0wnY/V9zMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8vmJNJ02mTS2qujW9AuK34CyGewsKEQa3NJI4x54mI/kZ6TFkXgNShYSldLi9wwR iVZIZpo10XmlpdD1gKCLSxI2hAconHrCrMCgpriX/VTH8VoFXTo8owedKrPE/jIZ0c D0z4cOoqJMINruzqON7gaCTnozO9ZlPYtavKjKyFVVT2dZ+EtfNVi3gYHbuLNepcSX +gq/yzfSnUELMMLNTwhQ6DbA0qs/Rfv2LkuAbudO4aFFo53imu8k7hO2V3DMiMK48/ BPzuDC2hRRaPw3diNLbn7YRlcBUV1pB+YMb1s77Dpt31JAkWDkRc6hv1mITOzdI2oz pUQhhp2WADSpA== Date: Wed, 2 Jun 2021 17:03:01 +0300 From: Mike Rapoport To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , linux-riscv , linux-s390 , Linux-sh list , arcml , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , sparclinux Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_070315_576596_9B221AC1 X-CRM114-Status: GOOD ( 26.48 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv 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=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,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 57331C47098 for ; Wed, 2 Jun 2021 14:03:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EDA1A613BA for ; Wed, 2 Jun 2021 14:03:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDA1A613BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 77BD06B006C; Wed, 2 Jun 2021 10:03:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 752546B006E; Wed, 2 Jun 2021 10:03:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F3806B0070; Wed, 2 Jun 2021 10:03:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0024.hostedemail.com [216.40.44.24]) by kanga.kvack.org (Postfix) with ESMTP id 2EC956B006C for ; Wed, 2 Jun 2021 10:03:19 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id C35D3181AC9B6 for ; Wed, 2 Jun 2021 14:03:18 +0000 (UTC) X-FDA: 78208950876.27.1B664C7 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf22.hostedemail.com (Postfix) with ESMTP id BA7B5C01C09D for ; Wed, 2 Jun 2021 14:03:02 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CE12613B8; Wed, 2 Jun 2021 14:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622642595; bh=rVTIekozkKZiHFO8KV73KQ3u8bmmogfis0wnY/V9zMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8vmJNJ02mTS2qujW9AuK34CyGewsKEQa3NJI4x54mI/kZ6TFkXgNShYSldLi9wwR iVZIZpo10XmlpdD1gKCLSxI2hAconHrCrMCgpriX/VTH8VoFXTo8owedKrPE/jIZ0c D0z4cOoqJMINruzqON7gaCTnozO9ZlPYtavKjKyFVVT2dZ+EtfNVi3gYHbuLNepcSX +gq/yzfSnUELMMLNTwhQ6DbA0qs/Rfv2LkuAbudO4aFFo53imu8k7hO2V3DMiMK48/ BPzuDC2hRRaPw3diNLbn7YRlcBUV1pB+YMb1s77Dpt31JAkWDkRc6hv1mITOzdI2oz pUQhhp2WADSpA== Date: Wed, 2 Jun 2021 17:03:01 +0300 From: Mike Rapoport To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , linux-riscv , linux-s390 , Linux-sh list , arcml , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , sparclinux Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=j8vmJNJ0; spf=pass (imf22.hostedemail.com: domain of rppt@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: BA7B5C01C09D X-Stat-Signature: nweiowwcja8ngdy4k51uxkpgmzgw5ynw X-HE-Tag: 1622642582-923382 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: On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. 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=-13.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, 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 41BF4C47083 for ; Wed, 2 Jun 2021 14:03:46 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D18D613B8 for ; Wed, 2 Jun 2021 14:03:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D18D613B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Fw9jr2qfNz2ymM for ; Thu, 3 Jun 2021 00:03:44 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=j8vmJNJ0; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=rppt@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=j8vmJNJ0; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Fw9jL5Tbhz2xdM for ; Thu, 3 Jun 2021 00:03:18 +1000 (AEST) Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CE12613B8; Wed, 2 Jun 2021 14:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622642595; bh=rVTIekozkKZiHFO8KV73KQ3u8bmmogfis0wnY/V9zMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8vmJNJ02mTS2qujW9AuK34CyGewsKEQa3NJI4x54mI/kZ6TFkXgNShYSldLi9wwR iVZIZpo10XmlpdD1gKCLSxI2hAconHrCrMCgpriX/VTH8VoFXTo8owedKrPE/jIZ0c D0z4cOoqJMINruzqON7gaCTnozO9ZlPYtavKjKyFVVT2dZ+EtfNVi3gYHbuLNepcSX +gq/yzfSnUELMMLNTwhQ6DbA0qs/Rfv2LkuAbudO4aFFo53imu8k7hO2V3DMiMK48/ BPzuDC2hRRaPw3diNLbn7YRlcBUV1pB+YMb1s77Dpt31JAkWDkRc6hv1mITOzdI2oz pUQhhp2WADSpA== Date: Wed, 2 Jun 2021 17:03:01 +0300 From: Mike Rapoport To: Geert Uytterhoeven Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-ia64@vger.kernel.org" , Linux-sh list , "open list:BROADCOM NVRAM DRIVER" , Linux MM , sparclinux , linux-riscv , Linux-Arch , linux-s390 , Jonathan Corbet , "open list:DOCUMENTATION" , Mike Rapoport , Matt Turner , arcml , "open list:TENSILICA XTENSA PORT \(xtensa\)" , Arnd Bergmann , linux-m68k , Ivan Kokshaysky , Linux ARM , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, Linux Kernel Mailing List , alpha , Andrew Morton , linuxppc-dev Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, 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 CCC89C4708F for ; Wed, 2 Jun 2021 14:03:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 90A6D613BA for ; Wed, 2 Jun 2021 14:03:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 90A6D613BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P5SebQQr3Nw4/Q6u20cq5bB7lxOrKmfrS8lrfrjImYM=; b=qQ0jrLWfDYI8vG vHsSXx0lecDRpj8d5zzIS2oESu3xOfZoZmW7yDZoOePeoNlMad+YtUP9Z8/QOTAszOvTKRbpcJ0Fy ldupz+3KT3unfQxvwQ90cN3wzj+ZotzcF6LFVgwxttXHAbuJcNeZbX6si3WiQK/J4tbWR66CnOj3K KYJXjTOmcBl/IPqoI6sq8Zv9nbVA+9dMNDAMUUn5QKIb0h7ULIYVDQyVgox7mcqYhPI+5Nk0k1V1x JyfWX1pf54OTK3UYRYt62G0upvBJhenYgVS22vCkuJ1GyDGBqDC7yeXDCgDaluTX+DPG/rWlLAiX2 WbHNaoABbV1y7CpdDl5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRT1-004RLB-3s; Wed, 02 Jun 2021 14:03:31 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRSl-004RIb-Ff; Wed, 02 Jun 2021 14:03:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CE12613B8; Wed, 2 Jun 2021 14:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622642595; bh=rVTIekozkKZiHFO8KV73KQ3u8bmmogfis0wnY/V9zMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8vmJNJ02mTS2qujW9AuK34CyGewsKEQa3NJI4x54mI/kZ6TFkXgNShYSldLi9wwR iVZIZpo10XmlpdD1gKCLSxI2hAconHrCrMCgpriX/VTH8VoFXTo8owedKrPE/jIZ0c D0z4cOoqJMINruzqON7gaCTnozO9ZlPYtavKjKyFVVT2dZ+EtfNVi3gYHbuLNepcSX +gq/yzfSnUELMMLNTwhQ6DbA0qs/Rfv2LkuAbudO4aFFo53imu8k7hO2V3DMiMK48/ BPzuDC2hRRaPw3diNLbn7YRlcBUV1pB+YMb1s77Dpt31JAkWDkRc6hv1mITOzdI2oz pUQhhp2WADSpA== Date: Wed, 2 Jun 2021 17:03:01 +0300 From: Mike Rapoport To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , linux-riscv , linux-s390 , Linux-sh list , arcml , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , sparclinux Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_070315_576596_9B221AC1 X-CRM114-Status: GOOD ( 26.48 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc 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=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, 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 7A808C4708F for ; Wed, 2 Jun 2021 14:05:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4C774613E4 for ; Wed, 2 Jun 2021 14:05:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C774613E4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bRGbOI1nx3V9fJVq7vzdjAFtgpHVqiC15DTPcK1LSgI=; b=CZ07yiiWrhXFNt Ijs0cCbcrGysh9sh6NHiFaBNiJcxiMZ82uOTjntItD5h6aDuq7oRid0jG5BhBV2/8bXQmXp2FEgNo 3Pt7LbJhGuAqwy/BclGEY0oq5WqgJc3FLO3GEds2+GqFvWIYxz3nb5LmnvANs1zb2+PozAyjBHqbu iO49M74cfXEqOaeg657AEMjJxtN91Wh0mPSMGtcXDwafH1n+8KWQiZBnsliZkyJMXifOGzBXCogJY 9yyziAcNVTiTGIL134+EojDrwMtnbOx3AweTZuz22fowh1JxFz2yTLk6/4L/U8YWX1EkUrZK4hn5i o40l1H38FOWAkJ4WltNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRSq-004RJa-B3; Wed, 02 Jun 2021 14:03:20 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loRSl-004RIb-Ff; Wed, 02 Jun 2021 14:03:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CE12613B8; Wed, 2 Jun 2021 14:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622642595; bh=rVTIekozkKZiHFO8KV73KQ3u8bmmogfis0wnY/V9zMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8vmJNJ02mTS2qujW9AuK34CyGewsKEQa3NJI4x54mI/kZ6TFkXgNShYSldLi9wwR iVZIZpo10XmlpdD1gKCLSxI2hAconHrCrMCgpriX/VTH8VoFXTo8owedKrPE/jIZ0c D0z4cOoqJMINruzqON7gaCTnozO9ZlPYtavKjKyFVVT2dZ+EtfNVi3gYHbuLNepcSX +gq/yzfSnUELMMLNTwhQ6DbA0qs/Rfv2LkuAbudO4aFFo53imu8k7hO2V3DMiMK48/ BPzuDC2hRRaPw3diNLbn7YRlcBUV1pB+YMb1s77Dpt31JAkWDkRc6hv1mITOzdI2oz pUQhhp2WADSpA== Date: Wed, 2 Jun 2021 17:03:01 +0300 From: Mike Rapoport To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , linux-riscv , linux-s390 , Linux-sh list , arcml , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , sparclinux Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_070315_576596_9B221AC1 X-CRM114-Status: GOOD ( 26.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Wed, 2 Jun 2021 17:03:01 +0300 From: Mike Rapoport Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , linux-riscv , linux-s390 , Linux-sh list , arcml , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , sparclinux On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Rapoport Date: Wed, 02 Jun 2021 14:03:01 +0000 Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Message-Id: List-Id: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM , linux-riscv , linux-s390 , Linux-sh list , arcml , "open list:TENSILICA XTENSA PORT (xtensa)" , linuxppc-dev , sparclinux On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Rapoport Subject: Re: [PATCH 4/9] m68k: remove support for DISCONTIGMEM Date: Wed, 2 Jun 2021 17:03:01 +0300 Message-ID: References: <20210602105348.13387-1-rppt@kernel.org> <20210602105348.13387-5-rppt@kernel.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622642595; bh=rVTIekozkKZiHFO8KV73KQ3u8bmmogfis0wnY/V9zMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8vmJNJ02mTS2qujW9AuK34CyGewsKEQa3NJI4x54mI/kZ6TFkXgNShYSldLi9wwR iVZIZpo10XmlpdD1gKCLSxI2hAconHrCrMCgpriX/VTH8VoFXTo8owedKrPE/jIZ0c D0z4cOoqJMINruzqON7gaCTnozO9ZlPYtavKjKyFVVT2dZ+EtfNVi3gYHbuLNepcSX +gq/yzfSnUELMMLNTwhQ6DbA0qs/Rfv2LkuAbudO4aFFo53imu8k7hO2V3DMiMK48/ BPzuDC2hRRaPw3diNLbn7YRlcBUV1pB+YMb1s77Dpt31JAkWDkRc6hv1mITOzdI2oz pUQhhp2WADSpA== Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Geert Uytterhoeven Cc: Andrew Morton , Arnd Bergmann , Ivan Kokshaysky , Jonathan Corbet , Matt Turner , Mike Rapoport , Richard Henderson , Vineet Gupta , kexec@lists.infradead.org, alpha , Linux-Arch , Linux ARM , "open list:DOCUMENTATION" , "linux-ia64@vger.kernel.org" , Linux Kernel Mailing List , linux-m68k , "open list:BROADCOM NVRAM DRIVER" , Linux MM On Wed, Jun 02, 2021 at 01:25:24PM +0200, Geert Uytterhoeven wrote: > Hi Mike, > > On Wed, Jun 2, 2021 at 12:54 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > DISCONTIGMEM was replaced by FLATMEM with freeing of the unused memory map > > in v5.11. > > > > Remove the support for DISCONTIGMEM entirely. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > Reviewed-by: Geert Uytterhoeven > Acked-by: Geert Uytterhoeven > > > --- a/arch/m68k/include/asm/page_mm.h > > +++ b/arch/m68k/include/asm/page_mm.h > > @@ -126,25 +126,7 @@ static inline void *__va(unsigned long x) > > > > extern int m68k_virt_to_node_shift; > > > > -#ifndef CONFIG_DISCONTIGMEM > > #define __virt_to_node(addr) (&pg_data_map[0]) > > With pg_data_map[] removed, this definition can go as well. > Seems to be a leftover from 1008a11590b966b4 ("m68k: switch to MEMBLOCK > + NO_BOOTMEM") > > There are a few more: > arch/m68k/include/asm/mmzone.h:extern pg_data_t pg_data_map[]; > arch/m68k/include/asm/mmzone.h:#define NODE_DATA(nid) > (&pg_data_map[nid]) It seems that arch/m68k/include/asm/mmzone.h can be simply removed. > > -#else > > -extern struct pglist_data *pg_data_table[]; > > - > > -static inline __attribute_const__ int __virt_to_node_shift(void) > > -{ > > - int shift; > > - > > - asm ( > > - "1: moveq #0,%0\n" > > - m68k_fixup(%c1, 1b) > > - : "=d" (shift) > > - : "i" (m68k_fixup_vnode_shift)); > > - return shift; > > -} > > - > > -#define __virt_to_node(addr) (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()]) > > -#endif > > > --- a/arch/m68k/mm/init.c > > +++ b/arch/m68k/mm/init.c > > @@ -44,28 +44,8 @@ EXPORT_SYMBOL(empty_zero_page); > > > > int m68k_virt_to_node_shift; > > > > -#ifdef CONFIG_DISCONTIGMEM > > -pg_data_t pg_data_map[MAX_NUMNODES]; > > -EXPORT_SYMBOL(pg_data_map); > > - > > -pg_data_t *pg_data_table[65]; > > -EXPORT_SYMBOL(pg_data_table); > > -#endif > > - > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike.