From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D688AC432BE for ; Wed, 11 Aug 2021 20:14:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B28AA60462 for ; Wed, 11 Aug 2021 20:14:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231877AbhHKUOg (ORCPT ); Wed, 11 Aug 2021 16:14:36 -0400 Received: from foss.arm.com ([217.140.110.172]:57698 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbhHKUOf (ORCPT ); Wed, 11 Aug 2021 16:14:35 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 07392D6E; Wed, 11 Aug 2021 13:14:11 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E75CF3F40C; Wed, 11 Aug 2021 13:14:07 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rcu@vger.kernel.org, linux-rt-users@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Steven Rostedt , Daniel Bristot de Oliveira , Sebastian Andrzej Siewior , "Paul E. McKenney" , Frederic Weisbecker , Josh Triplett , Mathieu Desnoyers , Davidlohr Bueso , Lai Jiangshan , Joel Fernandes , Anshuman Khandual , Vincenzo Frascino , Steven Price , Ard Biesheuvel , Boqun Feng , Mike Galbraith Subject: [PATCH v3 0/4] rcu, arm64: PREEMPT_RT fixlets Date: Wed, 11 Aug 2021 21:13:50 +0100 Message-Id: <20210811201354.1976839-1-valentin.schneider@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, this is v3 of: https://lore.kernel.org/lkml/20210721115118.729943-1-valentin.schneider@arm.com/ respun from Frederic and Paul's helpful feedback. Tested atop v5.14-rc5-rt8 with the v1 patches reverted. There, commit d76e0926d835 ("rcu/nocb: Use the rcuog CPU's ->nocb_timer") prevents the NOCB offload warning from firing if there are no NOCB CPUs (which is sensible). Adding a single NOCB CPU brings the warning back, which patch 3 fixes. Revisions ========= v2 -> v3 ++++++++ o Rebased and tested against v5.14-rc5-rt8 o Dropped affinity check from is_pcpu_safe() (Boqun) o Renamed is_pcpu_safe() to migratable() (Boqun, Mike) v1 -> v2 ++++++++ o Rebased and tested against v5.14-rc4-rt6 o Picked rcutorture patch patch from https://lore.kernel.org/lkml/20210803225437.3612591-2-valentin.schneider@arm.com/ o Added a local_lock to protect NOCB offload state under PREEMPT_RT (Frederic, Paul) Valentin Schneider (4): rcutorture: Don't disable softirqs with preemption disabled when PREEMPT_RT sched: Introduce migratable() rcu/nocb: Protect NOCB state via local_lock() under PREEMPT_RT arm64: mm: Make arch_faults_on_old_pte() check for migratability arch/arm64/include/asm/pgtable.h | 2 +- include/linux/sched.h | 10 ++++ kernel/rcu/rcutorture.c | 2 + kernel/rcu/tree.c | 4 ++ kernel/rcu/tree.h | 4 ++ kernel/rcu/tree_plugin.h | 82 ++++++++++++++++++++++++++++---- 6 files changed, 94 insertions(+), 10 deletions(-) -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BEAAC4338F for ; Wed, 11 Aug 2021 20:17:13 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4443660EE2 for ; Wed, 11 Aug 2021 20:17:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4443660EE2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=3PLiOsBUq2si/pxsfJIeEyuEiCLSOdi2oWVi5dqez/I=; b=Kt9j0mxMc29Hcw zmZMua1v495RFfy6sgHluaWFke8hWKIC7oxpKtYUeHuULBZyP2r/zuS+Q5nQvSuV81p4aEX0JEiRL 3o65RNjYBZHNo6aNzGVjfNSAXwdtlliJv7pRhGqWBvb0STL5QvB12scBzXoNCMi4iHFb1mjbSwbZu +e+caHnUWIaUslfIxLJOA5tjqr+RArl4ux2jkC6EQW4vroQPPTxhiDf0NKo9/7qv5gYtqBQeGiG/t Zt7IDXoRaMMb7lnCSZJY9GbWmuVkqBNq+A9ECaUMWt/QFam3aNenl1M9aNdTWnOroekEOMm9e7rLK EY6BtP0ryHqieIej+ooA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDucG-0081zH-83; Wed, 11 Aug 2021 20:14:20 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDucB-0081yC-VG for linux-arm-kernel@lists.infradead.org; Wed, 11 Aug 2021 20:14:17 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 07392D6E; Wed, 11 Aug 2021 13:14:11 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E75CF3F40C; Wed, 11 Aug 2021 13:14:07 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rcu@vger.kernel.org, linux-rt-users@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Steven Rostedt , Daniel Bristot de Oliveira , Sebastian Andrzej Siewior , "Paul E. McKenney" , Frederic Weisbecker , Josh Triplett , Mathieu Desnoyers , Davidlohr Bueso , Lai Jiangshan , Joel Fernandes , Anshuman Khandual , Vincenzo Frascino , Steven Price , Ard Biesheuvel , Boqun Feng , Mike Galbraith Subject: [PATCH v3 0/4] rcu, arm64: PREEMPT_RT fixlets Date: Wed, 11 Aug 2021 21:13:50 +0100 Message-Id: <20210811201354.1976839-1-valentin.schneider@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210811_131416_078260_6094474B X-CRM114-Status: UNSURE ( 8.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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi folks, this is v3 of: https://lore.kernel.org/lkml/20210721115118.729943-1-valentin.schneider@arm.com/ respun from Frederic and Paul's helpful feedback. Tested atop v5.14-rc5-rt8 with the v1 patches reverted. There, commit d76e0926d835 ("rcu/nocb: Use the rcuog CPU's ->nocb_timer") prevents the NOCB offload warning from firing if there are no NOCB CPUs (which is sensible). Adding a single NOCB CPU brings the warning back, which patch 3 fixes. Revisions ========= v2 -> v3 ++++++++ o Rebased and tested against v5.14-rc5-rt8 o Dropped affinity check from is_pcpu_safe() (Boqun) o Renamed is_pcpu_safe() to migratable() (Boqun, Mike) v1 -> v2 ++++++++ o Rebased and tested against v5.14-rc4-rt6 o Picked rcutorture patch patch from https://lore.kernel.org/lkml/20210803225437.3612591-2-valentin.schneider@arm.com/ o Added a local_lock to protect NOCB offload state under PREEMPT_RT (Frederic, Paul) Valentin Schneider (4): rcutorture: Don't disable softirqs with preemption disabled when PREEMPT_RT sched: Introduce migratable() rcu/nocb: Protect NOCB state via local_lock() under PREEMPT_RT arm64: mm: Make arch_faults_on_old_pte() check for migratability arch/arm64/include/asm/pgtable.h | 2 +- include/linux/sched.h | 10 ++++ kernel/rcu/rcutorture.c | 2 + kernel/rcu/tree.c | 4 ++ kernel/rcu/tree.h | 4 ++ kernel/rcu/tree_plugin.h | 82 ++++++++++++++++++++++++++++---- 6 files changed, 94 insertions(+), 10 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel