From patchwork Wed Oct 9 13:30:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 1173778 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Sjs9nURx"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="QT9XQx3/"; dkim-atps=neutral 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 46pFV13VHFz9sCJ for ; Thu, 10 Oct 2019 00:31:05 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject: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=axOXsG753LoSXBlzR80uXQox4rHzc4Fu3p3ZNBzpEr4=; b=Sjs9nURxebmzV4 eLVk4d6U3OYmm271KZHhB7oeWP+0wjum9SgBm10Scd6Z0Hj1VP7/ArJVjPsVYWNAdMJePHMbuIah1 1iafiPHLWuJ/JRjx1r/B4TZ9hwHiQt9dgQqJyaaxC8W7LOH7Mc2ExOrfxixnTbyTJYKDYaoDosX7Z oC2R7HU9u5Id0vj7voaINAryggJNFVKNH3qp90Wk02WXDz7wN82QQM3GmMSbN1r/Y0ANOH2eXGLUQ VI+czDmPv1x9GR8RMgp21IXMbmlUO4SgeJya9axhU+/PFMztY4HOzsnKtWgApAB6EfXK/2NbXrxNT ce0HcVgvfDT3+6gwSeUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iIC3S-0004VX-7O; Wed, 09 Oct 2019 13:31:02 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iIC3O-0004PV-E0 for linux-arm-kernel@lists.infradead.org; Wed, 09 Oct 2019 13:30:59 +0000 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 12AC2206B6; Wed, 9 Oct 2019 13:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570627857; bh=/HdBuM/fHpfcdCZ+FTKsq5rOtzOpsqFW2HoiNYpZgOo=; h=Date:From:To:Cc:Subject:From; b=QT9XQx3/NbySoKkK61wy4Vocs1BkRfFOuaynRTwnnzGigHm+XSN8OW6KYDfca/RS5 sOkaSO6Ul6vvwgnwdu+7hpYCCxfTVwDE9pddjBVOlZSWPSj72KT87CVl6YNc28R51V xvCFMoD/OhzjSnT5ddBu8sZWYY8BmI6RzxpyULCA= Date: Wed, 9 Oct 2019 14:30:54 +0100 From: Will Deacon To: torvalds@linux-foundation.org Subject: [GIT PULL] arm64: Fixes for -rc3 Message-ID: <20191009133053.p7bxzkub32x3mclb@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191009_063058_517548_EF96722F X-CRM114-Status: GOOD ( 17.16 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) 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_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.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.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Linus, Here is a larger-than-usual batch of arm64 fixes for -rc3. The bulk of the fixes are dealing with a bunch of issues with the build system from the compat vDSO, which unfortunately led to some significant Makefile rework to manage the horrible combinations of toolchains that we can end up needing to drive simultaneously. We came close to disabling the thing entirely, but Vincenzo was quick to spin up some patches and I ended up picking up most of the bits that were left. Future work will look at disentangling the header files properly. My subsequent vDSO fixes were: Reviewed-by: Vincenzo Frascino Tested-by: Vincenzo Frascino but they were already in linux-next by then and I didn't want to rebase, so hopefully you can just include those in the merge commit. Other than that, we have some important fixes all over, including one papering over the miscompilation fallout from forcing CONFIG_OPTIMIZE_INLINING=y, which I'm still unhappy about. Harumph. We've still got a couple of open issues, so I'm expecting to have some more fixes later this cycle. Thanks, and please pull. Will --->8 The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) 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 3e7c93bd04edfb0cae7dad1215544c9350254b8f: arm64: armv8_deprecated: Checking return value for memory allocation (2019-10-08 13:34:04 +0100) ---------------------------------------------------------------- arm64 fixes for -rc3 - Numerous fixes to the compat vDSO build system, especially when combining gcc and clang - Fix parsing of PAR_EL1 in spurious kernel fault detection - Partial workaround for Neoverse-N1 erratum #1542419 - Fix IRQ priority masking on entry from compat syscalls - Fix advertisment of FRINT HWCAP to userspace - Attempt to workaround inlining breakage with '__always_inline' - Fix accidental freeing of parent SVE state on fork() error path - Add some missing NULL pointer checks in instruction emulation init - Some formatting and comment fixes ---------------------------------------------------------------- Adam Zerella (1): docs: arm64: Fix indentation and doc formatting James Morse (2): arm64: Fix incorrect irqflag restore for priority masking for compat arm64: ftrace: Ensure synchronisation in PLT setup for Neoverse-N1 #1542419 Julien Grall (1): arm64: cpufeature: Effectively expose FRINT capability to userspace Mark Rutland (2): arm64: mm: avoid virt_to_phys(init_mm.pgd) arm64: mm: fix spurious fault detection Masayoshi Mizuma (1): arm64/sve: Fix wrong free for task->thread.sve_state Thierry Reding (1): arm64: errata: Update stale comment Vincenzo Frascino (5): arm64: vdso32: Fix broken compat vDSO build warnings arm64: vdso: Remove stale files from old assembly implementation arm64: vdso32: Detect binutils support for dmb ishld arm64: vdso32: Remove jump label config option in Makefile lib: vdso: Remove CROSS_COMPILE_COMPAT_VDSO Will Deacon (7): arm64: Mark functions using explicit register variables as '__always_inline' arm64: Default to building compat vDSO with clang when CONFIG_CC_IS_CLANG arm64: vdso32: Move definition of COMPATCC into vdso32/Makefile arm64: vdso32: Don't use KBUILD_CPPFLAGS unconditionally arm64: vdso32: Pass '--target' option to clang via VDSO_CAFLAGS arm64: vdso32: Rename COMPATCC to CC_COMPAT arm64: Kconfig: Make CONFIG_COMPAT_VDSO a proper Kconfig option Yunfeng Ye (1): arm64: armv8_deprecated: Checking return value for memory allocation Documentation/arm64/memory.rst | 9 +++++- arch/arm64/Kconfig | 15 ++++++++-- arch/arm64/Makefile | 16 ---------- arch/arm64/include/asm/atomic_lse.h | 6 ++-- arch/arm64/include/asm/vdso/compat_barrier.h | 2 +- arch/arm64/include/asm/vdso_datapage.h | 33 --------------------- arch/arm64/kernel/armv8_deprecated.c | 5 ++++ arch/arm64/kernel/cpu_errata.c | 4 +-- arch/arm64/kernel/cpufeature.c | 1 + arch/arm64/kernel/entry.S | 1 + arch/arm64/kernel/ftrace.c | 12 ++++++-- arch/arm64/kernel/process.c | 32 ++++++++++---------- arch/arm64/kernel/vdso/gettimeofday.S | 0 arch/arm64/kernel/vdso32/Makefile | 44 ++++++++++++++++++---------- arch/arm64/mm/fault.c | 13 ++++++-- lib/vdso/Kconfig | 9 ------ 16 files changed, 98 insertions(+), 104 deletions(-) delete mode 100644 arch/arm64/include/asm/vdso_datapage.h delete mode 100644 arch/arm64/kernel/vdso/gettimeofday.S