From patchwork Fri May 14 17:29:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 12258483 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=-21.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 1A1D9C433B4 for ; Fri, 14 May 2021 17:34:30 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BBCDC61350 for ; Fri, 14 May 2021 17:34:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BBCDC61350 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To:From:Date: 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=sO3y8GjDzypCncwVmumnBfhZ/DaSoogr7IdZrac6d9k=; b=KWozPXnLR8CEh7hO7FP73N4H9r 7SLDfKazYeEjCzLXr9RPatl8fqAfdOYe+c+v5V6hiKPXya9AYzjVtlPet6sKGgC4WVsYhTfBSQ3R7 E9EXucGzy3BRFRpFyvwVGcWzH7GCd/W3qG23RgShk5QsdGW6p9YMcWrOtsL9sAC8vz1AeGp/CiG2g 8kRhf8V2ZL+8hRhyKYq+8R1cyq2ge6lgI6cFxb5STX1CvBhXo/QkGg+PkQI+vIPEmcara5PTt7w9K WRwdyVjUNVrVcAd9ct1Ar1K8TpoPALnocwR/y2xaYlG6GTfBxAFwQUKEWkVrINJCNI4J8WTVnPEoG SBk9o4rw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhbcj-008ahV-1h; Fri, 14 May 2021 17:29:17 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhbcg-008ahJ-AP for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 17:29:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=Uw+nYpNZZIYqE2CqgKnVXo/k3qQiO+644dIaw+Fz5K4=; b=wRA+EjPiskc3qKk5psMX/c/Kdf out7lSw397kaF0u1Q/Ry5sr2/o16FH2cT7spVccs7+V66ensQEJEL0IiD/4O/EqOwO2tLFtK0cma1 gmmrZpPG/eCr6wwWcGw16kde6CYJaQkeX7SRPM3C/FFaPOQ5hCvpLLM/3dMVJRCpOYsoKrWE2Nsvf Xt5HZb30JXABcgxP+N4sZAblgaDBZKcnC/CzWnBK1wgMb2yBONMJmzvk5KTLpUi8Vxi9mDyd8TBzi 1wB8Lxif1h4EE/xrvnGGyB7ZBtgPeqWO1h1bCPxYEBKRuvnLgCOGMUWJ1tF+cvlDhoJSMfmNMsHsL aEoEFstQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhbcd-00C9QZ-HY for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 17:29:12 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5C75E61183; Fri, 14 May 2021 17:29:09 +0000 (UTC) Date: Fri, 14 May 2021 18:29:06 +0100 From: Catalin Marinas To: Linus Torvalds Cc: Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] arm64 fixes/updates for 5.13-rc2 Message-ID: <20210514172904.GA29470@arm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210514_102911_622927_D0C4C4C4 X-CRM114-Status: GOOD ( 13.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Linus, Please pull the arm64 updates below. Thanks. The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes for you to fetch changes up to 588a513d34257fdde95a9f0df0202e31998e85c6: arm64: Fix race condition on PG_dcache_clean in __sync_icache_dcache() (2021-05-14 17:11:16 +0100) ---------------------------------------------------------------- arm64 fixes and cpucaps.h automatic generation: - Generate cpucaps.h at build time rather than carrying lots of #defines. Merged at -rc1 to avoid some conflicts during the merging window. - Initialise RGSR_EL1.SEED in __cpu_setup() as it may be left as 0 out of reset and the IRG instruction would not function as expected if only the architected pseudorandom number generator is implemented. - Fix potential race condition in __sync_icache_dcache() where the PG_dcache_clean page flag is set before the actual cache maintenance. - Fix header include in BTI kselftests. ---------------------------------------------------------------- Catalin Marinas (1): arm64: Fix race condition on PG_dcache_clean in __sync_icache_dcache() Mark Brown (3): arm64: Generate cpucaps.h kselftest/arm64: Add missing stddef.h include to BTI tests arm64: tools: Add __ASM_CPUCAPS_H to the endif in cpucaps.h Peter Collingbourne (1): arm64: mte: initialize RGSR_EL1.SEED in __cpu_setup arch/arm64/Makefile | 3 ++ arch/arm64/include/asm/Kbuild | 2 + arch/arm64/include/asm/cpucaps.h | 74 -------------------------------- arch/arm64/mm/flush.c | 4 +- arch/arm64/mm/proc.S | 12 ++++++ arch/arm64/tools/Makefile | 22 ++++++++++ arch/arm64/tools/cpucaps | 65 ++++++++++++++++++++++++++++ arch/arm64/tools/gen-cpucaps.awk | 40 +++++++++++++++++ tools/testing/selftests/arm64/bti/test.c | 1 + 9 files changed, 148 insertions(+), 75 deletions(-) delete mode 100644 arch/arm64/include/asm/cpucaps.h create mode 100644 arch/arm64/tools/Makefile create mode 100644 arch/arm64/tools/cpucaps create mode 100755 arch/arm64/tools/gen-cpucaps.awk