From patchwork Mon Jul 1 10:56:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 13717901 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 89ED5C2BD09 for ; Mon, 1 Jul 2024 11:03:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=ZeO+6PdZZy3bUTMDztYep1pnvVdXnyk84VV309ucs3I=; b=SA+7cg8OP4s/YwhC+x6KIIiR3z f5pXzu5pHCSzFPU3o3jqIgc/SgXWFdR6IVxqiTFtguLd+6OHM0VSK5wODYH6wQ4iJB2Rwl1ieVyY/ PXBLRgkXcgWVdq+kHo74KHsWvO2cpRF9So9j1rVrJ3hT8JUJ/26cYWZxjKF02v7ghiUv/nPrnrnRA 3BwzP6hqTDTNnCZIVFvw1SLIl4RwMgWLOkO7KhpMzo4xOxs4nOfjMHocrZJ0wx167xvRbCUATGVgm cA/GS/P4TZZZ84gEAVSc8pfJU5y3Dn49YDYC/dJ2Sp/8Mf0tHsuk2Qg0G1YVh/UScEGurF7YjI3Lw OGHxnKDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOEoz-00000002pbw-0TDL; Mon, 01 Jul 2024 11:03:45 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOEom-00000002pYH-2I8j for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2024 11:03:35 +0000 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719831810; 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=ZeO+6PdZZy3bUTMDztYep1pnvVdXnyk84VV309ucs3I=; b=RQE4Lx01iRiOH3Ign1CsIGJOp+75tN8rFvoPJ612N++vnJgtPGjDmTqlKFywZLoZF6KP6+ nnDXPPmPZYxrnA4OTQQOmRjaqKaH3W7BgZn5HqfG8TSIRDGI5XwTGbrdFaYHjrMFkGnr5D iLPrW0ncmaoH1HwbXz+kINfJZuM3hWB8Xbr716SHXsOikmCRxRSXIVJI8AGGHLp7I7BNyz X6d0Ko+Fm4JUxG90WIdmvi8sREtNOumTm9HVjWl3ymmSCNVb9IB8S3WViw9FOjehkFerG5 Hy9gidIQpdWm6oceb2VxTsB/MpXCRt3sJkUQDRZ5wuGwjVUAOgZ80yVUvMYSGA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719831810; 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=ZeO+6PdZZy3bUTMDztYep1pnvVdXnyk84VV309ucs3I=; b=VBChDDkRfADec0wfRS8wEHaerim58rPPC8gvEyvjcloTp66pyUlJ/XrO78diIjhe9VZxMq +47ftRgF7eECzKBQ== To: linux-arm-kernel@lists.infradead.org Cc: Arnd Bergmann , Russell King , Thomas Gleixner Subject: [PATCH v6 0/4] ARM: vfp: Introduce vfp_state_hold() to acquire VFP context. Date: Mon, 1 Jul 2024 12:56:52 +0200 Message-ID: <20240701110317.99631-1-bigeasy@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_040332_746719_21165B91 X-CRM114-Status: UNSURE ( 6.63 ) 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_vfp_state_hold() which does the right thing. v5…v6: https://lore.kernel.org/all/20240628134648.1852041-1-bigeasy@linutronix.de/ - Rename vfp_{lock/unlock}() to vfp_state_{hold/release}() as suggested by Russell King. v4…v5: - Repost v3…v4: - Repost. v2…v3: https://lore.kernel.org/all/20230926125502.1127015-1-bigeasy@linutronix.de - Repost with Ard's Reviewed-by tag. v1…v2: https://lore.kernel.org/all/20230628080516.798032-1-bigeasy@linutronix.de - Split the last patch into two patches (3 and 4 of this series). Suggested by Ard. v1: https://lore.kernel.org/all/20230615101656.1308942-1-bigeasy@linutronix.de