From patchwork Fri Jun 28 13:46:15 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: 13716167 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 AD80DC3064D for ; Fri, 28 Jun 2024 13:47: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: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=yUT2WbjX024Af5TevLcwInJ74Ya+5tJiYIjsx2u2K9g=; b=SaBxK3dcrBjisYsmkMaN3cpxed uZ9fQDQZ2KO04r8KAgNmNaF8QUHs/2zEwL5tUlA4cFdlg1pz36bUTuMRU9zVkliv4LIycORCDcI+m JvyJXnY9kOvnHy6ml3MnWZ2BBfx6SJmmLpBCHKboh1lvLoAp38RQCL/OzACeQcqnHegri/fyLfLFc QLCUVs0JnVQapAMuUJDxMSILxFNvd2ZlBmTvLhl81bXyg+FcHyVgdVlO8BN0jjXu3OgOzWVSWaRK7 EyykV3433iwf5y4cSv6FbA4MSG/UEcu/ikyV/QSmpT16v5yupClraAVu9t6IAxCl2jxGQgSPGBWeO wtaP/tPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNBwY-0000000DrSA-2XZq; Fri, 28 Jun 2024 13:47:14 +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 1sNBwG-0000000DrNf-2eF5 for linux-arm-kernel@lists.infradead.org; Fri, 28 Jun 2024 13:46:59 +0000 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719582414; 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=yUT2WbjX024Af5TevLcwInJ74Ya+5tJiYIjsx2u2K9g=; b=0I4vwG/D6T72ONCJuF00LPRtPRIhZKF9lw9VhkfxyYph+LMJjOIn45TDXK79unig2cs3J/ prBLC00BHNu/gV6ksT7UIYCDGspmBXuz7ATT74biscYEkZNaa+sVwOP3zEkuIGgJqaN6Zx 67PxIwRyPJNy1SmsiHcNoN4KVmm0U3P2Wvk3mKDowR09dvnoTvEN8x0yS091i0VMkHX4Fx oqTJmq+s+BUPLNBbO7NEUQKFpW556U1bQUd9ullbO9hhTVrMUjNBjH+ST8bFFrgYL0eKB8 dzyHLRxBbHiLOpMMdqbgHoJ54vXw/G1xPXwU0J3qWUCj2pyftTksa8BTAPMvNA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719582414; 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=yUT2WbjX024Af5TevLcwInJ74Ya+5tJiYIjsx2u2K9g=; b=nulmNubiv4domQ5QuuuHyCbSW29zr7QLbJiszxFdJjn0PUae+VMXUpXv1ZmA3E6UkgKrxO GnZkM5fEeduxw7BA== To: linux-arm-kernel@lists.infradead.org Cc: Arnd Bergmann , Russell King , Thomas Gleixner Subject: [PATCH v5 0/4] ARM: vfp: Introduce vfp_lock() for VFP locking. Date: Fri, 28 Jun 2024 15:46:15 +0200 Message-ID: <20240628134648.1852041-1-bigeasy@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240628_064656_836759_9A1D981B X-CRM114-Status: UNSURE ( 6.82 ) 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