From patchwork Thu Jun 15 10:16:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 13281022 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 C93DAEB64DB for ; Thu, 15 Jun 2023 10:17:53 +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=wMjeAFQ9kNx3l+4PEh8DYq/pc7tX+VDOCXjEMawAcJY=; b=UabAq+qqTzXZ8R ujzMg9rzNqUoW4CvOMtqGmjnq+KtcejNaELdqK+1/rg7jygckNKljoRxfz1DfShiwinPP12bRROL2 4MKAY/YkHPm5PUEpV05IJoFwwer+JYQD/wiDKgsyAW+zQxNsHorUBuxkdvy5HLtd1QenCOGq7EfIa orppEIw+02k2h03aRGCl9P3SkVnyfP4vU0cx0IfMtSSrSoNYnmYmIXjlwj4Wq5wkLLpNslC4fhTU9 jELXMGSta4B4oufzunCoSrK1ec6OlmDwEhJye12pBK0eF9eGzQ945UpxwRdQeGcpT6W303ehODqgH TWzJvPeR6X9SXp4xc6sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q9k2p-00EQYq-1N; Thu, 15 Jun 2023 10:17:35 +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 1q9k2m-00EQY6-1Y for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2023 10:17:33 +0000 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686824250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EY92FnmHZQw3t/EZqjxoQEcsUZ5snIThuvjF6RVCWyc=; b=o2biUuGpXnSaCaiNBpTLtFc6oRXw64oRRhxUVkBKViLlurzVfEVNGXfvo41p5J9J5sqkMi Jn6RRJyvTUWqsMfipFcz6N33OJ+yUkWBsVJYS2juA+DCT5mS/JIq2u4IUvU6u/5aaDCOxm +AD2E3vYYPDG9AldUiDK4Nf42F0OUCiOhcNsLDhBhGHyo8/9Vaja5k6cxe6gr0xGHS+h+A 6jBXX+9DJEzguqHOZDGyNmrcbZieSJfhSmHQVNBwyNVz0ECwTDZr3fKXPewEyoQJkYrhbz HeoUqLHyLTJWzTMmht4v4F2JDEFTf+HlzV64z7lb/QiW5dYgUGieiZ7hL208sg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686824250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EY92FnmHZQw3t/EZqjxoQEcsUZ5snIThuvjF6RVCWyc=; b=PVD9aX1WDy06v9rIRXDppz1oQDMC9lkHdoLl90tKlkIqf4VjqV6Vmmk7vCZbCCh1WopI9+ aMGznFptdAcl+VDQ== To: linux-arm-kernel@lists.infradead.org Cc: Russell King , Ard Biesheuvel , Thomas Gleixner Subject: [PATCH 0/3] ARM: vfp: Introduce vfp_lock() for VFP locking. Date: Thu, 15 Jun 2023 12:16:53 +0200 Message-Id: <20230615101656.1308942-1-bigeasy@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230615_031732_658597_48D9725C X-CRM114-Status: UNSURE ( 6.37 ) 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 Sebastian Reviewed-by: Ard Biesheuvel