Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1096562pxj; Sat, 15 May 2021 03:52:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdx8yMrto9kpt9StLJoxcQkZ5jv0RBgJz5EAxt15YGivReyAPLUjXTfKD4a0hfBCP46Zh6 X-Received: by 2002:a05:6602:2002:: with SMTP id y2mr22885851iod.70.1621075941893; Sat, 15 May 2021 03:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621075941; cv=none; d=google.com; s=arc-20160816; b=K3tGoffMkgHVhfLJVRTeBdwLUtjigyEZKS57BAQRcA9b6EH//fRmtwFp2ThVaQlT3O wf7LcZp7+ILb06pY5HANqa+7fi8gJRtdC3KjV2HBlej+pYs0ANyx6+1CB3qD0j2vxj2t AzorERTe9Ksx8UKggKEk7Ro8G924btEK+4frNb7vq8MiuilAvQrayE+itp9l8lytNLqz FQ8FnKuoqeOPODGooAVWrPYEkCIeuU2op9UtDsvsDY/+LzdrPb4J/jJC7H0xQvbVfWCp LesSOPCj40rSXfHMCegaNcQFrjAksUw1iAVoziTW81qWDZNaiV5bmH7fSZOBPy3m4gOd gsmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=YMDSuhwDDAIBz65ztaPmnouscCan/8FmST0Xl3cL+3o=; b=Vdnz40GhJWvoHA7Jk2n6KGHdw+gftiJ2/jjxMllqo3MXjPdfJR0FK7fdKREdprtlVV ec80666fCjNHePEiiEp+UcwQfObpaBO/lgZtkgz4d5u4Qx4guhETl4Vhu4/f2MxeJIn/ SH/d0qjr0SB0H/2XSucrZS5qlY57T1pXR9SkGzxvAFNKABna3CV1lvx7jX/kdFCCnGmM Uls1I3NFLM5/WHd5N9a+TGhKaV3ho7zEmbwEzeyJgEYsFadR301LYMJrNqSI8MZ2ozsR 3EnTWuvY24G5XJLz8LFycZ0gr0T2xWuP19qMnxfc9yGaGvvfJGlYDMvmnHYuT8LkPHJ8 3SXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jiN3KFXC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si9958298ioi.7.2021.05.15.03.52.08; Sat, 15 May 2021 03:52:21 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jiN3KFXC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233411AbhENVzM (ORCPT + 99 others); Fri, 14 May 2021 17:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhENVzL (ORCPT ); Fri, 14 May 2021 17:55:11 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4D63C06174A; Fri, 14 May 2021 14:53:59 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621029236; 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: in-reply-to:in-reply-to:references:references; bh=YMDSuhwDDAIBz65ztaPmnouscCan/8FmST0Xl3cL+3o=; b=jiN3KFXCr2sxwoVmItCe+621oLau+r8o6ATT5UrfWPjZ+BCjeAEdMydDsG0LjGUfI+4Lcu YFc+yGssUeWlmFa6SY/kb3dlHS7iomFIJgcI6FOjE7QHExHZkMJlcaa7Gc3a/difbbXETY ppXPgWWzulrWg/Vk6p1qHypxbAd1nJi8xFhegAhyS5rF8pPltslF/iuyIpQIJtHtSMPftI gDl30hZOM5QvfLjGfULqdpgcJKHbdnLuXlWGTy3QUE0LKP8wuDocHx5gWLENiYgTDSEmO/ rXDefewkUJOxOoXFhitTJAKeoztmWM9yNzBfFWfmmeVhHm92oKdquyT7B8Na+w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621029236; 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: in-reply-to:in-reply-to:references:references; bh=YMDSuhwDDAIBz65ztaPmnouscCan/8FmST0Xl3cL+3o=; b=PxoAkGINkifPynLBMaZAZB3REJRuHaHqAa7rAIPjXpll7B7jY7w5IBWEsZ9tWgE2qlt0rz 6Za0D/MJPDbe49CQ== To: Alison Chaiken , Jakub Kicinski Cc: Sebastian Andrzej Siewior , netdev@vger.kernel.org, Juri Lelli , linux-rt-users , Steven Rostedt , LKML , sassmann@redhat.com, "David S. Miller" , stable-rt@vger.kernel.org Subject: Re: [PATCH net-next] net: Treat __napi_schedule_irqoff() as __napi_schedule() on PREEMPT_RT In-Reply-To: References: <20210512214324.hiaiw3e2tzmsygcz@linutronix.de> <87k0o360zx.ffs@nanos.tec.linutronix.de> <20210514115649.6c84fdc3@kicinski-fedora-PC1C0HJN> Date: Fri, 14 May 2021 23:53:56 +0200 Message-ID: <877dk12d8r.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14 2021 at 12:44, Alison Chaiken wrote: > On Fri, May 14, 2021 at 11:56 AM Jakub Kicinski wrote: >> >> Another thing while I have your attention - ____napi_schedule() does >> __raise_softirq_irqoff() which AFAIU does not wake the ksoftirq thread. >> On non-RT we get occasional NOHZ warnings when drivers schedule napi >> from process context, but on RT this is even more of a problem, right? >> ksoftirqd won't run until something else actually wakes it up? > > By "NOHZ warnings," do you mean "NOHZ: local_softirq_pending"? We see > that message about once a week with 4.19. Presumably any failure of > ____napi_schedule() to wake ksoftirqd could only cause problems for the > NET_RX softirq, so if the pending softirq is different, the cause lies > elsewhere. If you read the above carefully you might notice that this _IS_ about ____napi_schedule() being invoked from task context which raises NET_RX and then results in pending 08! which is NET_RX. Thanks, tglx