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=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 C5D6BC43603 for ; Wed, 18 Dec 2019 17:42:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A93652082E for ; Wed, 18 Dec 2019 17:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbfLRRmC (ORCPT ); Wed, 18 Dec 2019 12:42:02 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:58321 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbfLRRmC (ORCPT ); Wed, 18 Dec 2019 12:42:02 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1ihdKh-0007b9-K9; Wed, 18 Dec 2019 18:41:59 +0100 Date: Wed, 18 Dec 2019 18:41:59 +0100 From: Sebastian Andrzej Siewior To: LKML Cc: linux-rt-users , Steven Rostedt , Thomas Gleixner Subject: [PATCH RT] Revert "cpumask: Disable CONFIG_CPUMASK_OFFSTACK for RT" Message-ID: <20191218174159.ndcvzgqxavpcb37c@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org The one x86 case we had was fixed in commit 832df3d47badc ("x86/smp: Enhance native_send_call_func_ipi()") I didn't find another in-IRQ user. Most callers use GFP_KERNEL and the ATOMIC users are allocating the mask while holding a spinlock_t. Allow to use CPUMASK_OFFSTACK becauase it no longer is a problem on RT. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/Kconfig | 2 +- lib/Kconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 7f359aacf8148..4b77b3273051e 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -967,7 +967,7 @@ config CALGARY_IOMMU_ENABLED_BY_DEFAULT config MAXSMP bool "Enable Maximum number of SMP Processors and NUMA Nodes" depends on X86_64 && SMP && DEBUG_KERNEL - select CPUMASK_OFFSTACK if !PREEMPT_RT + select CPUMASK_OFFSTACK ---help--- Enable maximum number of CPUS and NUMA Nodes for this architecture. If unsure, say N. diff --git a/lib/Kconfig b/lib/Kconfig index 298b41298e487..3321d04dfa5a5 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -468,7 +468,6 @@ config CHECK_SIGNATURE config CPUMASK_OFFSTACK bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS - depends on !PREEMPT_RT help Use dynamic allocation for cpumask_var_t, instead of putting them on the stack. This is a bit more expensive, but avoids -- 2.24.0