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.8 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 84B21C433E1 for ; Tue, 28 Jul 2020 03:34:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 42CFE206D4 for ; Tue, 28 Jul 2020 03:34:22 +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="myv9KnF9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42CFE206D4 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 B93E06B0002; Mon, 27 Jul 2020 23:34:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B1DB46B0005; Mon, 27 Jul 2020 23:34:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E9E06B0006; Mon, 27 Jul 2020 23:34:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0052.hostedemail.com [216.40.44.52]) by kanga.kvack.org (Postfix) with ESMTP id 848686B0002 for ; Mon, 27 Jul 2020 23:34:21 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 18DC73622 for ; Tue, 28 Jul 2020 03:34:21 +0000 (UTC) X-FDA: 77086066722.20.goose20_40181e726f66 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id D79FE180C07AB for ; Tue, 28 Jul 2020 03:34:20 +0000 (UTC) X-HE-Tag: goose20_40181e726f66 X-Filterd-Recvd-Size: 7049 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 03:34:20 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id g67so11115225pgc.8 for ; Mon, 27 Jul 2020 20:34:20 -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=YCnIQkB+WXR9EnceInub93Gc1wu07cKzWBjBmwPz1vo=; b=myv9KnF9W9rJE9rWATRLtH/vhNUeyuqZcVGWfSSxnjpzmKX5OAoTOz+7pUA2epgJ/h dCHx7Tc0KTp270c1NvpRn8I0hi5fdBqlKQWteDANwWpbEEAPPjFi6pyOr6dBkhSFUTmb PjkL5JJqBY4DxtNvp68aDFj1PBM39OTTDTJSsB0uZqfiqIIyyHlhcrWiNSvdBb8QxVZf mR0sqHV1uxeAfm4eZSZQe2b7xdwxkLtjGT8TeaEi9++MUSIy1/N7wZFl0TcTPeHTu+5n MeQr0cpjKhyMe0qS+RxDkfL1Rf05h7Z872o2G0UkjkjOkK20qnmK90IttzyNw0aZkfoi wjDQ== 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=YCnIQkB+WXR9EnceInub93Gc1wu07cKzWBjBmwPz1vo=; b=MsB8RxsEXks58GYS94S9g8EDCe6o15xz6ijUO2b5UgjyQxkdJQpZw7JRvYn3uJqQlg C4SC5NPHd8XhTQ9W1/BxDq2SpsrLzJ1YiLdttlmoj1Ojh7s9Jz3R2xUvSPyPm20Yb8Us pBGuc3ycoJ/iXj4cvvQtL4QZkDQHUt4GpEXyuwoK0FuXXq/annYpCo0/qJmowHgFnFvs Y1CnFkoFgG5WCrMqWNxhog4oK2WXrCN9ag3LMhZj75dvj9Cccv/jribwXan0vid8kznW bx1zJLNGVR2klwVtEA93e20w/hZiy4ybnMvhhB2VK+ODNjjbQVh7G5T+9FMJ1LcZngDU taxg== X-Gm-Message-State: AOAM531bgb9UTJnfmoyrm7syTaEuromuVJ8s0rmAlGkBMLKN74hP8Z6h z2F9mgPYDPj2i5hquo3or78= X-Google-Smtp-Source: ABdhPJxqipxt9LfjXXesa510BBsTC/g0OOB6e4CNnPIlHzbtheNKpYrvVbB95CuUkvM8JKcPu5l80A== X-Received: by 2002:a62:3207:: with SMTP id y7mr22629319pfy.95.1595907259474; Mon, 27 Jul 2020 20:34:19 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (110-174-173-27.tpgi.com.au. [110.174.173.27]) by smtp.gmail.com with ESMTPSA id r4sm998707pji.37.2020.07.27.20.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 20:34:18 -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 00/24] Use asm-generic for mmu_context no-op functions Date: Tue, 28 Jul 2020 13:33:41 +1000 Message-Id: <20200728033405.78469-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: D79FE180C07AB X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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 these or add a hook without updating all architectures, most of which just use noops. There was some discussion around the lazy tlb switching vs membarrier barriers that may have needed changes here to fix (addition of an exit_lazy_tlb() function). I don't know whether that's what we will end up doing, but these are the prep patches I did for it which are still a good cleanup so I would like to mege them. All arch patches depend on patch 1. If everybody is fine with it then Arnd could merge that one in this merge window then we do the rest of them in the next window? Thanks, Nick Nicholas Piggin (24): asm-generic: add generic 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 unicore32: 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 | 16 +++--- arch/arm/include/asm/mmu_context.h | 26 ++------- arch/arm64/include/asm/mmu_context.h | 7 ++- 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 | 47 +++------------- 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/nios2/mm/mmu_context.c | 1 + arch/openrisc/include/asm/mmu_context.h | 8 ++- arch/openrisc/mm/tlb.c | 2 + arch/parisc/include/asm/mmu_context.h | 12 ++--- arch/powerpc/include/asm/mmu_context.h | 22 +++----- 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/unicore32/include/asm/mmu_context.h | 24 ++------- 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 | 57 +++++++++++++++----- include/asm-generic/nommu_context.h | 19 +++++++ 32 files changed, 170 insertions(+), 318 deletions(-) create mode 100644 include/asm-generic/nommu_context.h --=20 2.23.0