From patchwork Sun Sep 5 03:20:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1524745 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Fq1vxw3+; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=irTviQDZ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H2Gxs4jTbz9sW4 for ; Sun, 5 Sep 2021 13:20:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject:From:Cc:To: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=IQTqiMV1NiSMAe3iuK69q1yVvL0qOaxrwYt6SiZCTX4=; b=Fq1vxw3+5h4hQQttAUT4atGhgI rYiJPV1dmnw9qlz2R6wOWno/S76PI6SybQlMw5/YuXlE3A/fT8X/gZRl3QntGJSgU9+XzYvesgCHR NXyYxyhmdPJzEw4ziGzKh5iS0qrbdei+nP8cRV7XXzQVi589IfiO96boKIN06mqEfMJGK6upAJh9d DcQfDevNS8UrPFKs8yr45QtVEVRS0GjEgXEZtd4bt02Tiwh87vCZU9B+bwxwHh2HOyxzj1j6lfigt GHztNvYyL78LkB48DT0dEWCQXo6cUOMQz4wSbG2ysVY4R2RwJUjI6zNfs6TPejHrnD2dilq/c3i+h DmeyxPBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mMihn-00F8xF-FX; Sun, 05 Sep 2021 03:20:27 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mMihl-00F8wN-4k for linux-snps-arc@lists.infradead.org; Sun, 05 Sep 2021 03:20:26 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC3EF60F9D; Sun, 5 Sep 2021 03:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630812024; bh=0pSaxwdnYx37vIi2HaUKmPD/HjxIDlDKMXnoHpjawBU=; h=To:Cc:From:Subject:Date:From; b=irTviQDZIaNGPeAeP5aNEa/hq63JagmanVTP2dGoznLI4/LB46Vb35dMA2dYdQ/v4 PfzOYHzw7zq0K2YuiC9Km3/+f5kHZWYznieZurkz6UETQV7mmIzVTFiz/W5vm9yvbm uJKECEjCd9mWOAaIgljaiZU9b4ko6Kn+V/Z9mASoLNeKBi1dKE4l89Wodk83/HoZcZ g+71pqhJP7y0UQHnyQ1N6x1MXpyk3qu7UIPdxsa7x80bNsdTRrywZbNLO8XLvqpCuJ J89QO8XQhNAUMqOz79WHx8qdS185Y4pqISsmasC8R4CnFbdYiFEQhtojgzbAziYsaq hE43bCle+E45w== To: Linus Torvalds Cc: lkml , arcml , Randy Dunlap , Changcheng Deng From: Vineet Gupta Subject: [GIT PULL] ARC changes for 5.15-rc1 Message-ID: <56b00ebf-3c2d-5c2a-0491-14b378e85bb3@kernel.org> Date: Sat, 4 Sep 2021 20:20:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210904_202025_267004_527C57A6 X-CRM114-Status: GOOD ( 13.77 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Linus, Finally a big pile of changes for ARC (atomics/mm). These are from our internal arc64 tree, preparing mainline for eventual arc64 support. I'm spreading them to avoid tsunami of patches in one release [...] Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hi Linus, Finally a big pile of changes for ARC (atomics/mm). These are from our internal arc64 tree, preparing mainline for eventual arc64 support. I'm spreading them to avoid tsunami of patches in one release. Please pull. Thx, -Vineet ---------------> The following changes since commit e22ce8eb631bdc47a4a4ea7ecf4e4ba499db4f93:   Linux 5.14-rc7 (2021-08-22 14:24:56 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/ tags/arc-5.15-rc1 for you to fetch changes up to 56809a28d45fcad94b28cfd614600568c0d46545:   ARC: mm: vmalloc sync from kernel to user table to update PMD ... (2021-08-26 13:43:19 -0700) ---------------------------------------------------------------- ARC changes for v5.15-rc1  - MM rework    + Implementing up to 4 paging levels (needed in MMUv6)    + Enable STRICT_MM_TYPECHECK    + switch pgtable_t back to struct page *  - Atomics rework / implementing relaxed accessors  - Retiring support for legacy ARC750 cores and MMUv1,v2  - A few other build errors, typos ---------------------------------------------------------------- Changcheng Deng (1):       arch/arc/kernel/: fix misspellings using codespell tool Randy Dunlap (1):       ARC: export clear_user_page() for modules Vineet Gupta (31):       ARC: atomics: disintegrate header       ARC: atomic: !LLSC: remove hack in atomic_set() for for UP       ARC: atomic: !LLSC: use int data type consistently       ARC: atomic64: LLSC: elide unused atomic_{and,or,xor,andnot}_return       ARC: atomics: implement relaxed variants       ARC: switch to generic bitops       ARC: bitops: fls/ffs to take int (vs long) per asm-generic defines       ARC: xchg: !LLSC: remove UP micro-optimization/hack       ARC: cmpxchg/xchg: rewrite as macros to make type safe       ARC: cmpxchg/xchg: implement relaxed variants (LLSC config only)       ARC: atomic_cmpxchg/atomic_xchg: implement relaxed variants       ARC: retire ARC750 support       ARC: retire MMUv1 and MMUv2 support       ARC: mm: use SCRATCH_DATA0 register for caching pgdir in ARCv2 only       ARC: mm: remove tlb paranoid code       ARC: mm: move mmu/cache externs out to setup.h       ARC: mm: Fixes to allow STRICT_MM_TYPECHECKS       ARC: mm: Enable STRICT_MM_TYPECHECKS       ARC: ioremap: use more commonly used PAGE_KERNEL based uncached flag       ARC: mm: pmd_populate* to use the canonical set_pmd (and drop pmd_set)       ARC: mm: non-functional code movement/cleanup       ARC: mm: move MMU specific bits out of ASID allocator       ARC: mm: move MMU specific bits out of entry code ...       ARC: mm: disintegrate mmu.h (arcv2 bits out)       ARC: mm: disintegrate pgtable.h into levels and flags       ARC: mm: hack to allow 2 level build with 4 level code       ARC: mm: switch pgtable_t back to struct page *       ARC: mm: switch to asm-generic/pgalloc.h       ARC: mm: support 3 levels of page tables       ARC: mm: support 4 levels of page tables       ARC: mm: vmalloc sync from kernel to user table to update PMD ...  arch/arc/Kconfig |  41 +--  arch/arc/include/asm/atomic-llsc.h |  97 +++++++  arch/arc/include/asm/atomic-spinlock.h | 102 +++++++  arch/arc/include/asm/atomic.h | 444 ++----------------------------  arch/arc/include/asm/atomic64-arcv2.h | 250 +++++++++++++++++  arch/arc/include/asm/bitops.h | 188 +------------  arch/arc/include/asm/cache.h |   4 -  arch/arc/include/asm/cmpxchg.h | 233 ++++++++--------  arch/arc/include/asm/entry-compact.h |   8 -  arch/arc/include/asm/hugepage.h |   8 -  arch/arc/include/asm/mmu-arcv2.h | 103 +++++++  arch/arc/include/asm/mmu.h |  87 +-----  arch/arc/include/asm/mmu_context.h |  28 +-  arch/arc/include/asm/page.h |  74 +++--  arch/arc/include/asm/pgalloc.h |  81 ++----  arch/arc/include/asm/pgtable-bits-arcv2.h | 149 ++++++++++  arch/arc/include/asm/pgtable-levels.h | 189 +++++++++++++  arch/arc/include/asm/pgtable.h | 339 +----------------------  arch/arc/include/asm/processor.h |   2 +-  arch/arc/include/asm/setup.h |  12 +-  arch/arc/include/asm/smp.h |  14 -  arch/arc/include/asm/tlb-mmu1.h | 101 -------  arch/arc/kernel/entry-arcv2.S |   1 +  arch/arc/kernel/entry.S |   7 +-  arch/arc/kernel/intc-compact.c |   2 +-  arch/arc/kernel/smp.c |   4 +-  arch/arc/kernel/stacktrace.c |   2 +-  arch/arc/mm/cache.c | 112 +-------  arch/arc/mm/fault.c |  20 +-  arch/arc/mm/init.c |   5 +  arch/arc/mm/ioremap.c |   3 +-  arch/arc/mm/tlb.c | 268 +++---------------  arch/arc/mm/tlbex.S |  84 ++----  33 files changed, 1226 insertions(+), 1836 deletions(-)  create mode 100644 arch/arc/include/asm/atomic-llsc.h  create mode 100644 arch/arc/include/asm/atomic-spinlock.h  create mode 100644 arch/arc/include/asm/atomic64-arcv2.h  create mode 100644 arch/arc/include/asm/mmu-arcv2.h  create mode 100644 arch/arc/include/asm/pgtable-bits-arcv2.h  create mode 100644 arch/arc/include/asm/pgtable-levels.h  delete mode 100644 arch/arc/include/asm/tlb-mmu1.h