Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp917865pxt; Fri, 6 Aug 2021 17:59:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza2RTXZYUPFaqgvYXPX6EnN4WGord/h6PlLfIYtmE/7f8VuhXDcPSwny0agogm9pTby5HW X-Received: by 2002:a92:ddcf:: with SMTP id d15mr143037ilr.184.1628297974806; Fri, 06 Aug 2021 17:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628297974; cv=none; d=google.com; s=arc-20160816; b=iHYwsEzwRe0uoXbkKdPDvanRmo8XMhPG2uPdsbIXECncMqGeZd/KBLXDyasYGo16EO tso+s9SjA4e2kR9cW9XpDsNS3IsHA6Td5kGxgcn0NJ6tPRHVP7GqTo5KkNYvIVVQ0AHB lnlpyZ3YXIVGQeOwamVYELlmtkd8OJX/rSWy1ij9+qHJvALQ8/9yMbeRbYJI6jGNLurv EkZXTdXgMriROhNYMrA5G8FQPglXu83GUOU6GcxhbSoof0VzFK1n3+CDiZvrwRNbDm5F cWfyEq6puQ4u2tJS5JTvX1ZVzIoANESA5rRUbf0ikfc8aqCItSLn0a/D22Aq8TBcGf6l 0k7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XFFfdCcinOoTrJyldPffBEBYuo6P2Wp8s+QrlgAGKMQ=; b=HRNbyC5AbD8tsC/Qv9udLjkz7iGI96KnCKJTDtZmuOiocDRZEzXo2/T4A/rIfCRZGA X0CHGHWPz00XVjd+8Ddthjuhavry3/H7drwRqYMxGnzK9I9F0kxi7fkygaaMae/rfDwQ U3MgGMbf6K16V06t55gxUg9+vLGS8SU8MrYX+C+VdBZzKrUU1iL2DRm0T/1EsToPOcdF oKWdcT1KN1IcjxRVpSxViESHSAEmoFCfzNCh2DMfuDDJp67cbLEbWJr4+dIGX9cYn4ez UpGqG9KHuDFH84WkYzLq/rTZad+QgJGZdkb8sgySrU/rYBR8QrJfxD6q4Scho0Ys8aYD yZ/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si7101579ilc.70.2021.08.06.17.59.21; Fri, 06 Aug 2021 17:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbhHGA6r (ORCPT + 99 others); Fri, 6 Aug 2021 20:58:47 -0400 Received: from foss.arm.com ([217.140.110.172]:42730 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbhHGA6q (ORCPT ); Fri, 6 Aug 2021 20:58:46 -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 E0B236D; Fri, 6 Aug 2021 17:58:29 -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 077CA3F66F; Fri, 6 Aug 2021 17:58:26 -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 Subject: [PATCH v2 0/4] rcu, arm64: PREEMPT_RT fixlets Date: Sat, 7 Aug 2021 01:58:03 +0100 Message-Id: <20210807005807.1083943-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 v2 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-rc4-rt6 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. Note that patches 2 & 4 are already in v5.14-rc4-rt6, but still apply against mainline. Revisions ========= v1 -> v2 ++++++++ o Rebased and tested against v5.14-rc4-rt6 o Picked rcutorture 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 is_pcpu_safe() 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