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=-6.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no 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 BC444C433E2 for ; Tue, 1 Sep 2020 14:17:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 78461206EB for ; Tue, 1 Sep 2020 14:17:24 +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 78461206EB 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) Received: by kanga.kvack.org (Postfix, from userid 40) id C914C90000D; Tue, 1 Sep 2020 10:17:20 -0400 (EDT) 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-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-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 Content-Transfer-Encoding: quoted-printable 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 --=20 2.23.0