From patchwork Tue Jul 28 03:33:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11688007 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 EC3A1722 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 A7658206D4 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 A7658206D4 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) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B1DB46B0005; Mon, 27 Jul 2020 23:34:21 -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 9E9E06B0006; Mon, 27 Jul 2020 23:34:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org 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-Spam-Summary: 1,0,0,3f35d36edcc1e8a7,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:69:355:379:541:988:989:1260:1311:1314:1345:1437:1515:1535:1544:1711:1730:1747:1777:1792:1801:1978:1981:2194:2199:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3355:3865:3866:3867:3870:3871:3872:3874:4118:4362:4605:5007:6119:6261:6653:7903:9413:10004:11026:11658:11914:12043:12109:12297:12517:12519:12555:12679:12895:13161:13229:13894:14096:14394:14687:14721:21080:21433:21444:21627:21666:30054:30090,0,RBL:209.85.215.195:@gmail.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04yfqig59jfskw1zr5goxc81uyprcoc9nk47wbucfm7agjkaj3au7ze8g4mpird.swfht3b8optg6uaxd1xdat8ruj4efn8s983fmthywqwbdpqs8adzmraog857f8x.h-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:24,LUA_SUMMARY:none 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 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