From patchwork Fri Mar 15 14:50:59 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: 13593578 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 C3B9CC54E58 for ; Fri, 15 Mar 2024 14:52:41 +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=EPJ+J+sQUX0PlR7EpZnS2PYzezsi6sJvkCDruL/QTNA=; b=C4GQu1OmCCgcWw y2v2Sms0WHJ315SMXxEIXcqY/R4jbmaEcloGcVamb96gaA0gLPSJux4XtPX/lLI+Mk7WmCiC22OyP XCjbCQkn9QojvVz/dH0tWzDixRoVzJ2oW7T8VuJACWnGrMXpxz8xnVwAWnhcBgDp7jHVqITGNbKCr auMeaXbYT4HqmcPVTvQXFfdbo901W2eLpqrn30KCGV9cBGFvwiukAlaNobE3/kKz716rfOMFVRsC4 m+gSR1+Hy1KL3AtqUd48Wg8BlG5DK09gbZBPrk0QtQC2gPWIVGjcjtVO+n6TLCJXQJJARp27y1oCl 9ki/JdCObH85/eIru7qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl8v6-00000000Z0g-3xt8; Fri, 15 Mar 2024 14:52:28 +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 1rl8v0-00000000YxB-3BJd for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2024 14:52:26 +0000 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710514338; 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=6Id5v+SxbZFKjWhz3ljYUu3tqjdFTRp6fZjJE+XPq2c=; b=jhO3IyQCukUu5Pie+zx002OeIoyGTiERlKcW6w0LwIA/SYyo5lQzKiZyngOqO0I2ixyTaI seYdj8reepI59qVoBZ5KfMvibuOYrkJ3EkSxJ9r0JXx+joZI3Ut5UigEhYvlmAbTReV/aI CIgf+w3G9+N1DJ2K7X8pCeM/BDvCyL52/rP8zsCyu80RR9d9VY5FgOFm4L5qPShrvJ5sg4 OwMRmf5wliSL9r2bRNPY8Wpff0ZPhR+qlrKBdJ/9nJhoc4TIO5w04IKIXehe0kGOrl5QES mHNrIrRdQb1fNLjmN9IyM8DfNqz5JU98d0xgeQCaACbkXgEbqlHvbkLX0NI9Fg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710514338; 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=6Id5v+SxbZFKjWhz3ljYUu3tqjdFTRp6fZjJE+XPq2c=; b=4q4qYvVLPyH6YwrHvg6uyfmXTTW7G+YmUMEIIfJMFlV1JwjslCtQSItSmU+PvdhJSjJBoF McSWFIgCy/DKoJDA== To: linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk Cc: ardb@kernel.org, tglx@linutronix.de Subject: [PATCH v4 0/4] ARM: vfp: Introduce vfp_lock() for VFP locking. Date: Fri, 15 Mar 2024 15:50:59 +0100 Message-ID: <20240315145208.3598288-1-bigeasy@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240315_075222_972348_7A10D024 X-CRM114-Status: UNSURE ( 5.95 ) 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. 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 Sebastian