From patchwork Tue Sep 1 14:15:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11748281 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B608138A for ; Tue, 1 Sep 2020 14:17:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DAC19206EB for ; Tue, 1 Sep 2020 14:17:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PyMSULK1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DAC19206EB 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 D088390000F; Tue, 1 Sep 2020 10:17:20 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C914C90000D; Tue, 1 Sep 2020 10:17:20 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B5F3A90000F; Tue, 1 Sep 2020 10:17:20 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0164.hostedemail.com [216.40.44.164]) by kanga.kvack.org (Postfix) with ESMTP id 9E6AE90000D for ; Tue, 1 Sep 2020 10:17:20 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6C5C02C94 for ; Tue, 1 Sep 2020 14:17:20 +0000 (UTC) X-FDA: 77214695040.15.river65_531684d27098 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id 6557B1814B0C7 for ; Tue, 1 Sep 2020 14:17:09 +0000 (UTC) X-Spam-Summary: 1,0,0,698fd70988bf2cd2,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:69:355:379:541:973:988:989:1260:1311:1314:1345:1437:1515:1535:1544:1711:1730:1747:1777:1792:1978:1981:2194:2199:2393:2559:2562:2693:2899:3138:3139:3140:3141:3142:3354:3865:3866:3867:3868:3871:3872:3874:4117:4250:4362:4605:5007:6261:6653:7875:9413:10004:11026:11232:11658:11914:12043:12109:12296:12297:12517:12519:12555:12679:12895:13161:13229:13894:14096:14394:14687:14721:21080:21433:21444:21450:21627:21666:30054:30070,0,RBL:209.85.215.193:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100;04yrkbork8bmbnxdzk7usobr1epieopaqgcnu8s8umgwjj4ynff37zwazsk3p6h.kp1b3a34f95em6mubdmom391c1auue359t5ybrdww19hza4g9jmcku938fm17zk.n-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:22,LUA_SUMMARY:none X-HE-Tag: river65_531684d27098 X-Filterd-Recvd-Size: 6857 Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Tue, 1 Sep 2020 14:15:49 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id 7so743980pgm.11 for ; Tue, 01 Sep 2020 07:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gRMZTfF+7DDMzzPkhZwJ7VQo0zinLl/ycwSJOrxIz0o=; b=PyMSULK18qWenOPbSwNLyCnYQpqVLLfJScBRvmypxjLsHLM054xPCE1dM8kzvb6F09 6bmFiOy02czIVSFJQYAOr/C7ih9cHLbvBV/9joy1bUpkIni9uby2C5tgSUuBLZMGM0A9 XuPW+w7ttoWi1l33DJbDu2/9N3RaOHwLwsFcXuGyxs+uSes1Qa40VMe0Ox+EKJJzBg/E E/i4dIeFOu80hz7TU6r9wLMtYJAXEDT1iYbOaAL+VVqeG9CGtwfVp5kp1z7Q6mIO4Tdw yfs1D+WhK3JWahge/buirMHm34i2HEpD/nwHvJCSTQDLMtb9jRtLfGoMmfXG2z12iK2H vmKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gRMZTfF+7DDMzzPkhZwJ7VQo0zinLl/ycwSJOrxIz0o=; b=KGUDKsyg51hchcYpAB9A5fv46AhVYD4kFudOASrocBlSZfflhXht3PIz1BXWJznwSj roPNuyyM8Y7vb5CWo0UVNlwQS4Kc8yboeWm8Oo2USaC4PtC7DY4nNbLWUcknqeF2Ibyx lwYv2xWyuLCEOftshrCaVNEhuTOPmlrDqEZuT20FieEMkvvh13migyk1WYzo5QTdzypb wN+AHkJ7VSK6KkSP/79N5vPfYFQDamjmSSjKU7Pr5Ij32DfO8k4ZKmlYeDl/FQKQUfOJ GRpNMf3m1XLED03RXD+CEtWhC3L4ImiUVvxV6yCp/guG/U14/m6ug2EdbgVNznyWCMr1 DsJQ== X-Gm-Message-State: AOAM530rtriubDte9hKYZQMOyPiHS99vj3od841ciDl1sLIf9wMQ3V1S I1BGJFXagYfmJgMLoVBgOZM= X-Google-Smtp-Source: ABdhPJw4up6Oy40sGL30tEm2Av/lC7PrC16VMpBZwq7V5ZKVGlh8PekAkGENa/slvcseBFfY+yviQw== X-Received: by 2002:a62:8443:: with SMTP id k64mr2073858pfd.252.1598969748672; Tue, 01 Sep 2020 07:15:48 -0700 (PDT) Received: from bobo.ibm.com ([203.185.249.227]) by smtp.gmail.com with ESMTPSA id w9sm2212816pgg.76.2020.09.01.07.15.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 07:15:48 -0700 (PDT) From: Nicholas Piggin To: linux-arch@vger.kernel.org Cc: Nicholas Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Arnd Bergmann Subject: [PATCH v3 00/23] Use asm-generic for mmu_context no-op functions Date: Wed, 2 Sep 2020 00:15:16 +1000 Message-Id: <20200901141539.1757549-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 6557B1814B0C7 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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: It would be nice to be able to modify mmu_context functions or add a hook without updating all architectures, many of which will be no-ops. The motivation for this series is a change to lazy mmu handling, but this series stands on its own as a good cleanup whether or not we end up making that change. Since v2: - Fixed build failure on arm64 (fingers crossed), did more cross compiling. - Accounted for feedback and added acks (thanks all). Arnd, most of the main archs have acks, and I asked for ack/nack from ones which are missing. We could give those a bit more time then merge. Thanks, Nick Nicholas Piggin (23): asm-generic: add generic MMU versions of mmu context functions alpha: use asm-generic/mmu_context.h for no-op implementations arc: use asm-generic/mmu_context.h for no-op implementations arm: use asm-generic/mmu_context.h for no-op implementations arm64: use asm-generic/mmu_context.h for no-op implementations csky: use asm-generic/mmu_context.h for no-op implementations hexagon: use asm-generic/mmu_context.h for no-op implementations ia64: use asm-generic/mmu_context.h for no-op implementations m68k: use asm-generic/mmu_context.h for no-op implementations microblaze: use asm-generic/mmu_context.h for no-op implementations mips: use asm-generic/mmu_context.h for no-op implementations nds32: use asm-generic/mmu_context.h for no-op implementations nios2: use asm-generic/mmu_context.h for no-op implementations openrisc: use asm-generic/mmu_context.h for no-op implementations parisc: use asm-generic/mmu_context.h for no-op implementations powerpc: use asm-generic/mmu_context.h for no-op implementations riscv: use asm-generic/mmu_context.h for no-op implementations s390: use asm-generic/mmu_context.h for no-op implementations sh: use asm-generic/mmu_context.h for no-op implementations sparc: use asm-generic/mmu_context.h for no-op implementations um: use asm-generic/mmu_context.h for no-op implementations x86: use asm-generic/mmu_context.h for no-op implementations xtensa: use asm-generic/mmu_context.h for no-op implementations arch/alpha/include/asm/mmu_context.h | 12 ++-- arch/arc/include/asm/mmu_context.h | 17 +++--- arch/arm/include/asm/mmu_context.h | 26 +-------- arch/arm64/include/asm/mmu_context.h | 7 +-- arch/c6x/include/asm/mmu_context.h | 6 ++ arch/csky/include/asm/mmu_context.h | 8 +-- arch/hexagon/include/asm/mmu_context.h | 33 ++--------- arch/ia64/include/asm/mmu_context.h | 17 ++---- arch/m68k/include/asm/mmu_context.h | 37 +++---------- arch/microblaze/include/asm/mmu_context.h | 2 +- arch/microblaze/include/asm/mmu_context_mm.h | 8 +-- arch/microblaze/include/asm/processor.h | 3 - arch/mips/include/asm/mmu_context.h | 11 ++-- arch/nds32/include/asm/mmu_context.h | 10 +--- arch/nios2/include/asm/mmu_context.h | 21 ++----- arch/openrisc/include/asm/mmu_context.h | 8 +-- arch/parisc/include/asm/mmu_context.h | 12 ++-- arch/powerpc/include/asm/mmu_context.h | 13 +++-- arch/riscv/include/asm/mmu_context.h | 22 +------- arch/s390/include/asm/mmu_context.h | 9 ++- arch/sh/include/asm/mmu_context.h | 7 +-- arch/sh/include/asm/mmu_context_32.h | 9 --- arch/sparc/include/asm/mmu_context_32.h | 10 ++-- arch/sparc/include/asm/mmu_context_64.h | 10 ++-- arch/um/include/asm/mmu_context.h | 12 ++-- arch/x86/include/asm/mmu_context.h | 6 ++ arch/xtensa/include/asm/mmu_context.h | 11 +--- arch/xtensa/include/asm/nommu_context.h | 26 +-------- include/asm-generic/mmu_context.h | 58 +++++++++++++++----- include/asm-generic/nommu_context.h | 19 +++++++ 30 files changed, 174 insertions(+), 276 deletions(-) create mode 100644 arch/c6x/include/asm/mmu_context.h create mode 100644 include/asm-generic/nommu_context.h