Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp712414pxj; Fri, 14 May 2021 13:54:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/g0xroe92CUQQL1Z0tRfsFkOzZxtMtsoNrHT97BLCbH5bRfrmIRwUNdY5r+BsavULrtRz X-Received: by 2002:a05:6e02:1488:: with SMTP id n8mr44870107ilk.158.1621025642020; Fri, 14 May 2021 13:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621025642; cv=none; d=google.com; s=arc-20160816; b=g59bX2s66R/15PeaCpxYfRrsKF5u/AsF+qH46PBXsCGtESGamRhXc/qtqBxiyRWkzn sabJS8KP/w+ZlN1A+a1xrigYpAoskbo8l2uf9CyrvMGPSFlnA6gPcKa9DkYSPQExtuGF tj1RIFYsw3wdv/nTNqNHs7RH6gv2PDbq4GTPfhozdY2wOgWaPdPfrphhaEinCk4xN3fV 6tv4yJuDQejTnd+FajktQBJwKJGmKZKFpLCfwfwUWLNd27UrLE0z846XIottetawEKf/ ePeR1KiRXFmWEQxB4Sx92Hpbda1Ywduj5THotq5ud2QnCkIzjxCuJqumTGKT22PquaQS Elzg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=RRx4I8dTo8RquiJW5Abin8DYry6TVXV6wNv/uCd3VL0=; b=RUOwbDODTGeP0AZiwtuTP54OLKjkeZgURW0dvdOAxA23oz69fFLAOGPkGA+/+ism9o MF/ZBfumljCMDlG/73P81vEf8I8h5DYu6fYbUC/4vcyoTEw7jkdsffW7/Ix5PHctnC1g VNnmkyaA1v3gQhE1wDAoAxpnBaKfPiLOF3M++SSkvTyskYbFoCDw5qJ93ZId6gNXstSj 7sCScfBWAfW1aCW7Yoa4sNu+ZJOe7gd2ZYGzeVazO9vcQhxr6fuHI8YvH9F0oNA/Zi9l iCcMMrmO+hMXWt9r9nsgNtO51uabWmj3FYOubBTqrvdIzkc8ngH5UAZQAxlzhVBcfFUV 9D1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OBs5Mo5G; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si7097767jap.110.2021.05.14.13.53.49; Fri, 14 May 2021 13:54:02 -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=@kernel.org header.s=k20201202 header.b=OBs5Mo5G; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbhENUjb (ORCPT + 99 others); Fri, 14 May 2021 16:39:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:38024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229780AbhENUj2 (ORCPT ); Fri, 14 May 2021 16:39:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4153E6141F; Fri, 14 May 2021 20:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621024696; bh=eoJF/jUIlWKwg7KFkvrGsblQ9xJBG6MVGUhGPXUEPQk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OBs5Mo5Gck5k73UDl+GGA+wKuOk/kHYfqR1/bmOmyiL4f0zxM4umpyxiMRv3O2rmM WEPae9O9hhjHtNxd3sNcSiOSnCpvbI/ZjLQRr1GAvLXM1BztWs1u6TuqI+iAb4MhCf Ll+nMq4W8Pyv2I3zb1OEU7jA6Du05+yDiiWzyMa+RaUdIDWJ3Z5M54loHebBvvw/2N Lshni5YjbsPnfRCEo+o5TxzPhiQrjYveWXo71qdviwGici4BGg6Ls8EFeD8Y3UsFkz shzJ085XbIBzkIHLeYqwFUKE93Ygd3kJufghDcsZNXyEo0W5t8+7yzWg3V2a4dRu3I U9ADMS5y+6U7A== Date: Fri, 14 May 2021 13:38:15 -0700 From: Jakub Kicinski To: Thomas Gleixner 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 Message-ID: <20210514133815.6a698aeb@kicinski-fedora-PC1C0HJN> In-Reply-To: <87v97l2hrp.ffs@nanos.tec.linutronix.de> References: <20210512214324.hiaiw3e2tzmsygcz@linutronix.de> <87k0o360zx.ffs@nanos.tec.linutronix.de> <20210514115649.6c84fdc3@kicinski-fedora-PC1C0HJN> <87v97l2hrp.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 May 2021 22:16:10 +0200 Thomas Gleixner wrote: > On Fri, May 14 2021 at 11:56, Jakub Kicinski wrote: > > On Thu, 13 May 2021 00:28:02 +0200 Thomas Gleixner wrote: > >> Blame me for that decision. > >> > >> No matter which variant we end up with, this needs to go into all stable > >> RT kernels ASAP. > > > > Mumble mumble. I thought we concluded that drivers used on RT can be > > fixed, we've already done it for a couple drivers (by which I mean two). > > If all the IRQ handler is doing is scheduling NAPI (which it is for > > modern NICs) - IRQF_NO_THREAD seems like the right option. > > Yes. That works, but there are a bunch which do more than that IIRC. > > > Is there any driver you care about that we can convert to using > > IRQF_NO_THREAD so we can have new drivers to "do the right thing" > > while the old ones depend on this workaround for now? > > The start of this thread was about i40e_msix_clean_rings() which > probably falls under the IRQF_NO_THREAD category, but I'm sure that > there are others. So I chose the safe way for RT for now. Sounds reasonable. I'll send a patch with a new helper and convert an example driver I'm sure falls into the "napi_schedule(); return;" category. I just want to make sure "the right thing to do" is accessible for people writing new drivers.