From patchwork Wed Jun 28 08:05:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 13295330 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 80070EB64DC for ; Wed, 28 Jun 2023 08:06:24 +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:Date:Subject:Cc :To:From: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=0oC9S5rHobI52IpRb0UcE6+x8uePtagEwEn33MZ1/PU=; b=A1uG2eMps6FDg3 1zSMX350TDfHRxskY0CI1NEGkeJXaoYu4x9Z97724XyFqUVyITgqejt54nmMwR5yAhDXBZe8sxEJ7 r/jSq8VmAvexWdX5I7Gc6EofEQo0L9AXtjsvLWvr0tb//wTKtFhCLlRIOQ4OlKnedQgDJqCtFpZup 4SdmqRQeAl9HFoLv1ABPiHlwu8mWj4mFV8hY3Aq/3fxZEZsuXvoNllwgOIBlnaCRy9APL6N88xref ef/sOPQkpohHj21B0p5Dd/qPHrRucsmUmLzoc/V6yHQcbbN7hBEpwAz99q5TolWbEBjTs/l9oz8Gv LzaJp6AFHI7+v7yQmD9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qEQBZ-00F7bd-2K; Wed, 28 Jun 2023 08:05:57 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qEQBG-00F7XI-1t for linux-arm-kernel@lists.infradead.org; Wed, 28 Jun 2023 08:05:40 +0000 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687939532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=43Is+m52FFcpf+HUZvon229d9s4G6LB7FtGjQw3us/k=; b=pkrWePqyynvtDF4r3vTdEsRKstaC2h5QcDZccAMAL1RpgJOF5ndAtU3gP2TL/UfDf+wte+ cxGA3rUcmGISsBypfJEAdUXEq/KIPJBc5p24jOv3DKwN5pB6riCZ+1ck9zHS5WcUh1yytj 8FV5z00FlKyq/yiFrpP6Agiyt6pNdDFeJ2uwQjeX+GIn2h3JlkFngRy/DEFLh3DmKN2vhM u1F77OdQiKhkjZehkN1zt/wadvv/Cc4+9RCuFh8OL91JAx+4ujAoRtTMDNUWZhLWXP7Igw acxJRBCaUQR1OJWJJTHFw75IBgTqhvgJsQ8BuSoREin433A1D68lynTRwG4kWQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687939532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=43Is+m52FFcpf+HUZvon229d9s4G6LB7FtGjQw3us/k=; b=8GplwfQsXMlTUonaMpZ+AiTEMXr9UBYfHyCKtDSYEWf3UHosxIlgH/8CW4MKRP6xDp7CuK k+BGJB+QBMt6CdDA== To: linux-arm-kernel@lists.infradead.org Cc: Russell King , Ard Biesheuvel , Thomas Gleixner Subject: [PATCH v2 0/4] ARM: vfp: Introduce vfp_lock() for VFP locking. Date: Wed, 28 Jun 2023 10:05:12 +0200 Message-Id: <20230628080516.798032-1-bigeasy@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230628_010538_764314_17D59A5B X-CRM114-Status: UNSURE ( 7.50 ) X-CRM114-Notice: Please train this message. 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 There was a bug report on PREEMPT_RT which made me look into VFP locking on ARM. The usage of local_bh_disable() to ensure exclusive access to the VFP unit is not working on PREEMPT_RT because the softirq context is preemptible. This series introduces vfp_lock() which does the right thing. This series depends on Ard's rewrite of the VFP exception handling: ARM: convert VFP exception handling to C code https://lore.kernel.org/20230522080310.502250-1-ardb@kernel.org v1: https://lore.kernel.org/all/20230615101656.1308942-1-bigeasy@linutronix.de/ v1…v2: - Split the last patch into two patches (3 and 4 of this series). Suggested by Ard. Sebastian