From patchwork Thu May 23 10:20:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 13671585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15FF9C25B7C for ; Thu, 23 May 2024 10:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=xUka3wK/CMnJVr3/q4v8yAHiuI9QsizUsrQhbVswNfU=; b=FdWe7VsI98rzXX JTjAT7NL/zE5ioMrlh+Bds3W6z9cg0F3J8lVRPNBu27fAMBn//rxlkrXD6wGDn63RlQ903QZcDNCl QHk9Wve8Kz7QnmiWMqhaAYFoj3+qt7g/1/oyO7ORhHvUQgafUeQYMJ0frvDjwJ5oGpUnexvk0H9mg s/84MIPzuWGZ1E6/oFbWx/YyLOfRHKxZmgaKgcJJPFyPV9bltUnhANRhoeQjw7cA5pei2nqJjkUeM mc23XcjBnURAwh8KGkTKIWKtQKQi4NwtLlPYv6ijLhdLINfSHCMV+5sYhCr/rD0aGn8qZTBRlIo8V aIBXSzUzNYjbAuYiC96Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA5Yx-00000005qvj-3rsM; Thu, 23 May 2024 10:20:43 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA5YW-00000005qfb-3u2B for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 10:20:18 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6BA9562D74; Thu, 23 May 2024 10:20:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 245D5C3277B; Thu, 23 May 2024 10:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716459615; bh=jjEQ0Wfdyd3FR/66IAorVhPKfpRRMpkT/lxow6xB/pU=; h=Date:From:To:Cc:Subject:From; b=fH/bUbSOEW60yF/H8RjGtbwG6wRulShrkVssujdv6MpkMj0CGlr+/BaDZg+/cKjiK swGZ6+uBiErCoDqbX00ZhUSmCZM+ceIPgYUze/V9FsxXCu3k0TLeH8vK0LqsKS6giR LdDULaFiOjW2rPd6OsmPK24kav+xdspwcyRFYzynV67mvPFCXuXHcpQxDvVTrFWRmL WAzoT6jKlpfPwWZ/MJggobZTX0h9J/0rnutsEx29dhZVfiCmxSXamND8Yz9wauaif9 OeObzuHvsoHNKzuTjOAjjwG7NPjmGM0bXRVqjhJTcrpHiVLi9scA6M2jeEe8L81c5u wX0pJuuA47s3A== Date: Thu, 23 May 2024 11:20:10 +0100 From: Will Deacon To: torvalds@linux-foundation.org Cc: catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: [GIT PULL] arm64 fixes for -rc1 Message-ID: <20240523102010.GA9168@willie-the-truck> 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-20240523_032017_166457_CA6CA7CD X-CRM114-Status: GOOD ( 12.02 ) 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 these arm64 fixes for -rc1. The major fix here is for a filesystem corruption issue reported on Apple M1 as a result of buggy management of the floating point register state introduced in 6.8. I initially reverted one of the offending patches, but in the end Ard cooked a proper fix so there's a revert+reapply in the series. Aside from that, we've got some CPU errata workarounds and the rest is summarised in the tag. Cheers, Will --->8 The following changes since commit 54e1a2aa61a7bf4af2799baf7ab2dc2712844245: Merge branch 'for-next/tlbi' into for-next/core (2024-05-09 15:56:26 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes for you to fetch changes up to e92bee9f861b466c676f0200be3e46af7bc4ac6b: arm64/fpsimd: Avoid erroneous elide of user state reload (2024-05-22 12:46:39 +0100) ---------------------------------------------------------------- arm64 fixes for -rc1 - Fix broken FP register state tracking which resulted in filesystem corruption when dm-crypt is used - Workarounds for Arm CPU errata affecting the SSBS Spectre mitigation - Fix lockdep assertion in DMC620 memory controller PMU driver - Fix alignment of BUG table when CONFIG_DEBUG_BUGVERBOSE is disabled ---------------------------------------------------------------- Ard Biesheuvel (1): arm64/fpsimd: Avoid erroneous elide of user state reload Jiangfeng Xiao (1): arm64: asm-bug: Add .align 2 to the end of __BUG_ENTRY Mark Rutland (4): arm64: barrier: Restore spec_bar() macro arm64: cputype: Add Cortex-X4 definitions arm64: cputype: Add Neoverse-V3 definitions arm64: errata: Add workaround for Arm errata 3194386 and 3312417 Namhyung Kim (1): perf/arm-dmc620: Fix lockdep assert in ->event_init() Will Deacon (3): Merge branch 'for-next/errata' into for-next/core Revert "arm64: fpsimd: Implement lazy restore for kernel mode FPSIMD" Reapply "arm64: fpsimd: Implement lazy restore for kernel mode FPSIMD" Documentation/arch/arm64/silicon-errata.rst | 4 +++ arch/arm64/Kconfig | 42 +++++++++++++++++++++++++++ arch/arm64/include/asm/asm-bug.h | 1 + arch/arm64/include/asm/barrier.h | 4 +++ arch/arm64/include/asm/cpucaps.h | 2 ++ arch/arm64/include/asm/cputype.h | 4 +++ arch/arm64/kernel/cpu_errata.c | 19 +++++++++++++ arch/arm64/kernel/cpufeature.c | 8 ++++++ arch/arm64/kernel/fpsimd.c | 44 ++++++++++++++--------------- arch/arm64/kernel/proton-pack.c | 12 ++++++++ arch/arm64/tools/cpucaps | 1 + drivers/perf/arm_dmc620_pmu.c | 9 ++++-- 12 files changed, 125 insertions(+), 25 deletions(-)