Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2746011rwd; Mon, 22 May 2023 03:52:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4t1fPD2B8RBg/jpMVS5dDwIIoV3fjAzeI4HyCxq81wsXYBaGavA+DIyqWXZsiLRrF6Lrgm X-Received: by 2002:a17:902:c942:b0:1ae:52ea:416a with SMTP id i2-20020a170902c94200b001ae52ea416amr11893809pla.2.1684752765615; Mon, 22 May 2023 03:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684752765; cv=none; d=google.com; s=arc-20160816; b=cjhVW9Y3PoKd9K/1BklpjNxsxTl/8jZxkga+oQP8Ru0RIqbEsqDD7d6Q41NQyKrSng AAfao1amQC1RwSbMUwZ9Q0twllXSKm1kFxQD8dYf0vrADrvVLzCldN54zfDrCRgKBVZ0 qTGFr7p7MtNUX97+f+KBoxkc/fAocfqURgBia10D+bNBCv7AuKpZv01oFW5ybosB+JfU +kWOpDCZgc+NY4Q5T8W6K30HX9cxyCEwGrrJHHGfUDQNYtEHYsH0VI+MMv3g3lY0DRxR lWJNbVoSb/Cxnamx6b0wtDSid7TEp/N1/R1szCil/e9Bt4mgq2VwkMP3pBr5mLFyXfzS LCjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=SjkEES6iBTOXwaE25rH+kxltRaGXdStS2yiQwq+3tqc=; b=j+X7pXIIgqhujPoPBgSanKVp1EJq6r8ttYUwOqFBDnoWL5qguYrxIwfeWohT260fMX a0E/AQGfm2drp66rmpwWiCOLl89B5HU5AehEG/kVXZal7d020XlUuJmrNPVtRofE3nJv ofRQHmUa1MfwqH25JpqF35/7+YLMMvF3zVmVkqagtBf5/bEOXDIhQLbSiTNqoTzMGUCL iuMFZ/9TC6iAl5I/8mZ35zse8wrxjdG5Y1zHQsuzxBW++fz1TLpuVR2Pbl+wLKSZBxl+ hAP2JfWri9BPbu562eRVL7wH7EIEp+VoxIjVjNgp8UftgW130bgPLsHTazcORZbvYIqy J3lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=W5TGHber; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a170902834500b001a66c501a46si4372245pln.136.2023.05.22.03.52.30; Mon, 22 May 2023 03:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=W5TGHber; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbjEVKlg (ORCPT + 99 others); Mon, 22 May 2023 06:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbjEVKlf (ORCPT ); Mon, 22 May 2023 06:41:35 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30464DB for ; Mon, 22 May 2023 03:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1684752082; i=efault@gmx.de; bh=162mx++aiaIC4AFXOHEHGhjNzTocOAtT1cfLol+uyh8=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=W5TGHberS3V51Ns2UfZ26zN/AHhaiZIs0ENtUo0GrlildhPWU2OEdnnTiODUQAeDS 6sYYNlxA5lLapR2mZWKjwxhSJ18fVyj8wxwKpJblTHdWeX2NLPmAl6cJqkNaFUkCEn Zko7nzfo5SHA58w72mw5AHw44tUt/Hx/ftPnzllPYIUh8YKIK9A8Q/zkYuWITgT8z5 u9AL5JJ6Iid8BMjeUsNsXwaPh1rYWx8XUaeyTJNBtdhoF3hs9Jvk12QYqDRlE1JlUp poIxdsvU0hAu2YrestOA1WUGcXcWhBEjtdrSHYeB4PihKnbvjArMfVp3EZkCaqrxQX ut0E1r0S0cqPA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from homer.fritz.box ([185.191.219.131]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N0oG5-1qNx710RtN-00wnMZ; Mon, 22 May 2023 12:41:22 +0200 Message-ID: Subject: Re: r8169: disable ASPM during NAPI poll locking changes --> BUG: Invalid wait context --> PREEMPT_RT pain From: Mike Galbraith To: Sebastian Andrzej Siewior Cc: Heiner Kallweit , lkml , Thomas Gleixner Date: Mon, 22 May 2023 12:41:21 +0200 In-Reply-To: <20230522080604.MgUGcyeU@linutronix.de> References: <28727b435c143f15feddffb4c29095fee2500dff.camel@gmx.de> <20230522080604.MgUGcyeU@linutronix.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:TAylgSoyLoI+cbCltsiawQH000B+vqlIkB+MtmwXqagH3DJA9BG MElSg8P2j8qSQTqo9CBXAIsCwGIIsFZWBce1BZBEDv+h/lCxKQyEUjWf8HL91Z7f2qSr/X5 dICWbr1vElr0+bxaYXbc1LR3lMxvFZmgcxoDFNjksEZ+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b41CAGoMSg65+7ME= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, 2023-05-22 at 10:06 +0200, Sebastian Andrzej Siewior wrote: > On 2023-05-21 16:27:10 [+0200], Mike Galbraith wrote: > > On Sun, 2023-05-21 at 08:03 +0200, Mike Galbraith wrote: > > > Greetings, > > > > > > The locks added to prep for $subject induce invalid context moaning = due > > > to not being raw locks, but if I do that, the hold time does very ba= d > > > things to RT. > > > > The locks aren't really 160us horrible. The GPU was enabled (oops), > > nouveau then makes box horrible for RT (and graphics:).=C2=A0 With GPU > > turned back off, the largest trace I saw was 77us, which jibes pretty > > well with new max of low to mid 50s without ftrace running, or up a ta= d > > over 20us for this now pretty old commodity i7 desktop box. > > So you are saying it is all good? I wouldn't say good, but not the sky is falling 160us bad. > I've been looking at the r8169 the other day and it seemed all good > since it was only scheduling workqueues and NAPI. But now I see this > mac_ocp_lock + config25_lock which are acquire in hardirq context but > can't. This needs to be taken care. I did a patch converting the locks, but didn't post it hoping maybe those locks weren't really really needed. It doesn't matter for my box, as it doesn't do anything but give RT chances to trip over bugs. -Mike