Message ID | 20230129124235.209895-1-rppt@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 670D7C636CB for <linux-mm@archiver.kernel.org>; Sun, 29 Jan 2023 12:43:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 89A006B0072; Sun, 29 Jan 2023 07:43:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 849376B0073; Sun, 29 Jan 2023 07:43:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E9EB6B0074; Sun, 29 Jan 2023 07:43:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 5F1636B0072 for <linux-mm@kvack.org>; Sun, 29 Jan 2023 07:43:00 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 2EADBA6A74 for <linux-mm@kvack.org>; Sun, 29 Jan 2023 12:43:00 +0000 (UTC) X-FDA: 80407801320.30.8C1B46E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 7AB8318001A for <linux-mm@kvack.org>; Sun, 29 Jan 2023 12:42:58 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nZUZmSKw; spf=pass (imf06.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674996178; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=gzLSNQbcz/f+KMuGnv5FpG4nVhr5+SRxgbFkjC+F8Ao=; b=eQ5hfLeLAtK6PyCAb/rx+AK+IqO7MgngA422Ldo1tlzIxoPJmWQZgikegfl2uTcKgNT5Y/ z7Tco+fSZ+hCZhS2wP3NRsseBmYQ/2fu2TDeXvLGqsEtnCNNDqjLolx2do5GS79QEdwC0n sv276VXg/7suAsjAU/ahqnKKQ0eYcvM= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=nZUZmSKw; spf=pass (imf06.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674996178; a=rsa-sha256; cv=none; b=zqqprOrCopz8FTnjsDiaj8SAy1hD05w8Qf09qhIbJCulIptmUX/UG64lyOOnDWhdZfWbCS a6sbFMzJ6WgyiyshJZN7DGVK9/755Ld2Ju8Rl+S1lm+k1GOEFECB3Y9/w/zUvcZ7j2/GrM HRnqaoETW5g7Pi4Uow8l59uUpvzugNo= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5C2F760D30; Sun, 29 Jan 2023 12:42:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E716EC433D2; Sun, 29 Jan 2023 12:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674996176; bh=8RQZps3hA/u1mdRRQGYSzSx3iKFm4iTs/37kan3EXRs=; h=From:To:Cc:Subject:Date:From; b=nZUZmSKw7/syf9RrBIFurd/O3AkMNzmfegfK+1AS6FvCaH0OhJOzBAu3UXC6av8P5 uY9AOa46F/d5yj77Ho8Ndgvw8xxJHw4nNHTmwjtslAXWyegt5vS1IKaYW+Stnwyuiy 2a+kHtcUtcTQ5Rqh9d7F2WecpHec0CXwi5TSyt1qClHpJLOA2sydJTb6OF8VZPCNps 3fd8EBQ67Wgcl+xTfrf7oQnKtinBQv8tebZZGSc5tamZZbBvwb6yYhdPyn1uALV1nu d2H6gUYCo1lWTN9F7fs+AKTM2279BJ7XhGhJhYj0+jZo3axy2AgunU1xbS8ZdbQ6oz oCSDE8gtPikyw== From: Mike Rapoport <rppt@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: Arnd Bergmann <arnd@arndb.de>, Brian Cain <bcain@quicinc.com>, "David S. Miller" <davem@davemloft.net>, Dinh Nguyen <dinguyen@kernel.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Greg Ungerer <gerg@linux-m68k.org>, Guo Ren <guoren@kernel.org>, Helge Deller <deller@gmx.de>, Huacai Chen <chenhuacai@kernel.org>, Matt Turner <mattst88@gmail.com>, Max Filippov <jcmvbkbc@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>, Michal Simek <monstr@monstr.eu>, Palmer Dabbelt <palmer@dabbelt.com>, Rich Felker <dalias@libc.org>, Richard Weinberger <richard@nod.at>, Russell King <linux@armlinux.org.uk>, Stafford Horne <shorne@gmail.com>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Vineet Gupta <vgupta@kernel.org>, WANG Xuerui <kernel@xen0n.name>, Yoshinori Sato <ysato@users.sourceforge.jp>, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, x86@kernel.org, "Mike Rapoport (IBM)" <rppt@kernel.org> Subject: [PATCH v2 0/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM Date: Sun, 29 Jan 2023 14:42:31 +0200 Message-Id: <20230129124235.209895-1-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 7AB8318001A X-Stat-Signature: jww9racnqx8hhfzbkgg7wo83dq5878t6 X-Rspam-User: X-HE-Tag: 1674996178-205123 X-HE-Meta: U2FsdGVkX18/B//9uLdX/vMUkl4QkbzIOCCuQ87U4GE+JhhcDFNhohgdp8DIBE48Bhbc648TiJGPAKsMeqfRZiMDe65WHpLBB/rVowf4ZTJxwlaLQRz+6Pdd69taPCTRsmHzWHi6tabPP2WIau/OBMZ7dVug7WOITczP4pYjLG3CbcCKOh+cV8aAJTLljOOctk7Z+hgmghN77meOWtjt9xPrkrrS3fXEeUbfabQ6kvaSvm/R3dGNMPL7xOV+WD3YiLcZr016EADmMClZHX43/QAdkRiHWtn0JJdht2N5RK3UXKO5ftFbp8JqPMp8P/3IaWxaDCB39bpRrSmkDdWcNLkm9j3PYdaHHjLx9kCZlldO/BcnD6KWCbB0RuZYxbEskW7D05uqP253X7lA27G5NJtvZymKF4U0rR/g7WjzVi8TRIVTn3fY4jhVdGoS3JD7LV/tT5VIGoNRL7aiY6RaRQKmOcsWKCSDZv0N60OCrOI7jv7cV6cqVItrww9TSjSjfwAqstC6sPpjztdTSxhaAIuekNHL8GpNTdLhprzxCjW/5aGVW231NR7etPBBb5ZvfS3Z1jy/FSBHqYcXnYy8Hqxky6nnaZVCSJ5w8nRTow6jvlaAsbM9xUt802stUtWeee8smyCnR69TvSAmRZdILhoI1BozuoRJv+hM7rSqX/pz87Ut6LScjS4j4aGApVb0H9KS6XkwwRKojycwc2gs4KDbo4rEp3FT9iJRwW5jzGuB97oKKXts7n/WKeV5Faz6k4kzyT2hXToF+mXBVKLHmdxaaz10fZw5/romoh3GmXnhKvLnCKY6AgnorDAOmnjdf1/A5I5PA5d7NwWk0ADUAUWu1iEtWxbvA1al98s/ZI6dc6zg/XraR8/lp4fkIC6pefqo+9NkreM+aF8w6YgE/6tXtgnrzMQ70z/mWvmZjr/o170L1IYlwogTTvPiPRM1m0cY83vFYh0JSL9Ihey +grfINTr g9Hy6xFgXAzkGTbteXQnzcY/4ikyV785ckx24OCSlJrhl1gGNcYKP0XoB2mhvtfkGj86i3VEAIoLAOOmwD1GJbJnfxzFOLEPEOpgSbOnyG2vRou0KKhQ3+JPiCiA2rep7xhbBTRF+4w0LzkaJtt+rIz7rshE7Lho8+BPOuKXjroc+2csdHxy9+me/z8txI9dP5MyprCwnpwgE9M8jBeRiW5wWSF72KAtocXws0GGG/+tyUJxxjZING8+W3j7LoU2R2Xv0Ut4C/WjyBeerMbOxtDybz4XxIqQ/8TkAa4f/Jb4c1iIpkYSpKAur/vmiNINeUR1k5qRBRBItqtPJnMjXsI27Y2EpXVDMrJlEgxsx3HHXzwTMaFhXrtFkwnUPLxScZasEoYqeSkYDC/hCK5kfeYU58vEsm02cn7aQ7i3BaTS3wxGCAwTxqh+tEJpc5Tv4TAL3 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: <linux-mm.kvack.org> |
Series |
mm, arch: add generic implementation of pfn_valid() for FLATMEM
|
expand
|
From: "Mike Rapoport (IBM)" <rppt@kernel.org> Hi, Every architecture that supports FLATMEM memory model defines its own version of pfn_valid() that essentially compares a pfn to max_mapnr. Use mips/powerpc version implemented as static inline as a generic implementation of pfn_valid() and drop its per-architecture definitions v2: * fix build on ARM and xtensa * add Acked- and Reviewed-by, thanks everybody v1: https://lore.kernel.org/all/20230125190757.22555-1-rppt@kernel.org Mike Rapoport (IBM) (4): arm: include asm-generic/memory_model.h from page.h rather than memory.h m68k: use asm-generic/memory_model.h for both MMU and !MMU mips: drop definition of pfn_valid() for DISCONTIGMEM mm, arch: add generic implementation of pfn_valid() for FLATMEM arch/alpha/include/asm/page.h | 4 ---- arch/arc/include/asm/page.h | 1 - arch/arm/include/asm/memory.h | 2 -- arch/arm/include/asm/page.h | 2 ++ arch/csky/include/asm/page.h | 1 - arch/hexagon/include/asm/page.h | 1 - arch/ia64/include/asm/page.h | 4 ---- arch/loongarch/include/asm/page.h | 13 ------------- arch/m68k/include/asm/page.h | 6 +----- arch/m68k/include/asm/page_mm.h | 1 - arch/m68k/include/asm/page_no.h | 4 ---- arch/microblaze/include/asm/page.h | 1 - arch/mips/include/asm/page.h | 28 ---------------------------- arch/nios2/include/asm/page.h | 9 --------- arch/openrisc/include/asm/page.h | 2 -- arch/parisc/include/asm/page.h | 4 ---- arch/powerpc/include/asm/page.h | 9 --------- arch/riscv/include/asm/page.h | 5 ----- arch/sh/include/asm/page.h | 3 --- arch/sparc/include/asm/page_32.h | 1 - arch/um/include/asm/page.h | 1 - arch/x86/include/asm/page_32.h | 4 ---- arch/x86/include/asm/page_64.h | 4 ---- arch/xtensa/include/asm/page.h | 4 ++-- include/asm-generic/memory_model.h | 12 ++++++++++++ include/asm-generic/page.h | 2 -- 26 files changed, 17 insertions(+), 111 deletions(-) base-commit: 2241ab53cbb5cdb08a6b2d4688feb13971058f65