Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp903312pxp; Wed, 16 Mar 2022 20:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAycscLmHjkqVqXCAFKWprPaSXyWsHC3swJ8cFtaPVIGUUF4r8MK0qaZPA2Y+AAp+sUJTR X-Received: by 2002:a17:90b:4f8d:b0:1c6:408b:6b0d with SMTP id qe13-20020a17090b4f8d00b001c6408b6b0dmr11532350pjb.90.1647488691022; Wed, 16 Mar 2022 20:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647488691; cv=none; d=google.com; s=arc-20160816; b=WAmt/SuDjDsFYZOUdcY8cuyGHQ3N+W1obfrRqSot2AdhCkGB3IzKeiAnaRoyPuq55A EEYT2MjBPsj8UERr/NZu732/yAQmo2pfDBYrHETei/ibu+p+rJAyv3zQa1t/Jy6iB+wG b1Yw4RCvUHNfrL64q/43vL3YZtTQecEb/+uKKddqy9zU9W5nQa8V6pDEJ2W5gylPmz8q 9/GbR1ND9y23a6DAUf9lqJ5CzABnYI2Yd2tz9qlLm6B+mOF+ppK6dcvXTsAgPGrQrsQF /sDc/C2RH4hDqGLVa3mB4KGaR2omjBJKjFAWve9aadvCkYhKvwp4HdjRKdVCzvtXvQ8H Kssg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=lLiWlJxNu5tEJIowHXDFed8QcF9G6PLDtmgVlnwcn/E=; b=PvQxi41ZyxP4sMPibuZkU6C/um/z1ulbSZYItxwNnQz3LuiYmHejIQ65Rm6OY1QPAG lqIqywumuB2dPrbwteE/w5/ngNDLTy6Jk60/fYWmtzs9hG+KueaGrrzyd+WT0wRpVEg0 n2sBVC/W8RfETjvIGf3jI5Jppyfjyu8rIrKywtmHxPyV9/sQwo5XFPZNnG3i4sl7BjfI /wAjKIyvKtcyWia7bdp7iuhmK547OrOsvnNlAtTD+jrQQcSjr6VajoIuGBY3zFYOuhQd eeqwrCjOJTvdsTQwZLPi1Fugcx14tJgoB0TUzWXTHRuuQ4JSOqh6397IfS+T7gu3mC++ fAfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3rs5MbOP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u1-20020a170902e5c100b00153dd4b1a5bsi1669678plf.593.2022.03.16.20.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:44:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3rs5MbOP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B2EE6D4F2; Wed, 16 Mar 2022 20:36:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240351AbiCPQUH (ORCPT + 99 others); Wed, 16 Mar 2022 12:20:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237584AbiCPQUF (ORCPT ); Wed, 16 Mar 2022 12:20:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 756D46D4C2 for ; Wed, 16 Mar 2022 09:18:43 -0700 (PDT) Date: Wed, 16 Mar 2022 17:18:40 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647447521; 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: in-reply-to:in-reply-to:references:references; bh=lLiWlJxNu5tEJIowHXDFed8QcF9G6PLDtmgVlnwcn/E=; b=3rs5MbOPYqXmpiWUZMOxVUHEGxu57IWf2Wys0ZRtOUZH4wgYqKy3Cb0oierRNFnASCw+Fa 0/w7y79FllqHisKPLhuCwvMl4WsyOM6Oas/+TksMpIGrHNWa2JYCbgTi8IOmNrIho3iAGM pKQliSoLdF6neXXUcF6Re7hvwesMUMLnm2+AeQJF5rhMFUQ19OnpSVC/cQEbNlzeatBtvf WY7sBaNK/WseU0j0oq86gzHcExHAto9yL5ezHxj9/juF0r9VXto1155hzf1fULMVH/PKKf 4hXj4q93Bq01lUu8bxRTFqEKU5Hqauo2tzBFgHVSxwUOerZpebfXA3hwNaVBbg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647447521; 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: in-reply-to:in-reply-to:references:references; bh=lLiWlJxNu5tEJIowHXDFed8QcF9G6PLDtmgVlnwcn/E=; b=P5zd6s5J7rtECeYbyxCPWHuhQ0RhkQC8EL372SzNFmMAjrPVK3zIpnZxWhw+Y6H9HeXDtO EWTqqClQa6nVEeCQ== From: Sebastian Andrzej Siewior To: Steven Rostedt Cc: Peter Zijlstra , LKML , Thomas Gleixner Subject: Re: sched_core_balance() releasing interrupts with pi_lock held Message-ID: References: <20220308161455.036e9933@gandalf.local.home> <20220315174606.02959816@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-03-16 17:03:14 [+0100], To Steven Rostedt wrote: =E2=80=A6 > which looked right but RT still fall apart: =E2=80=A6 > | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > | WARNING: bad unlock balance detected! > | 5.17.0-rc8-rt14+ #10 Not tainted > | ------------------------------------- =E2=80=A6 =E2=80=A6 > It is always the local-lock that is breaks apart. Based on "locks held" > and the lock it tries to release it looks like the lock was acquired on > CPU-A and released on CPU-B. with diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 33ce5cd113d8..f4675bd8f878 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5968,6 +5967,9 @@ static bool try_steal_cookie(int this, int that) if (p =3D=3D src->core_pick || p =3D=3D src->curr) goto next; =20 + if (p->migration_disabled) + goto next; + if (!cpumask_test_cpu(this, &p->cpus_mask)) goto next; =20 on top my problems are gone. Let me do some testing and then I would patch unless PeterZ does the yelling :) > > Thanks, > >=20 > > -- Steve >=20 Sebastian