Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5946937ybg; Tue, 22 Oct 2019 10:39:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDyzcaDeTZPxXqDxbj1/83DQxNW04n3vgAdA4NY2iCbwRd2u0IxClXkjSxM54moSeukg4L X-Received: by 2002:a17:906:6d84:: with SMTP id h4mr29029310ejt.262.1571765944214; Tue, 22 Oct 2019 10:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571765944; cv=none; d=google.com; s=arc-20160816; b=R0He0+pIGytSj5AWkcz2pQPiSi0ZLabS0+MeOWuTJzfmiWQmN5NPv/1Nmr/JBOLTDC 0v6vG1PUfsg2sWgEyc7n3oPWfmG0xAuxUdEbyV7OXoKiP1x2kkyUPHljq2YAWQx/1mIQ x5awjDTlDZ1UsaMbI387TOI51GOSR++eMO4HaYT+yuN1Z3BUYCJvu9MkXXC6M/sk2lbH 0O7rYPXD9QZhCe4FRmbttDFZBKa/i6Yw6Cdldgt8oMhIU0/3W+yvdQEUhkww9rEtNg+A xOIzju2Div4pAT2EPDPWRWyV/JlbzSI9oWQBEbVsn8RlbQF60dmMvQ2JpMkRU1HRsmCG EZvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=wMM98ovwJrCbcYQFT5s/xzTpL5gVBCfTCVk0w9DyFrk=; b=hGqC1GM9WPAVsP/oFYPSHp010+NII1vIPjrnlGj8Kls9ZxSLhzD2+kUhmUraOkZCpt CUSP3b1EjS9ojirQIwcIOqsIcAfoY6j64VUzrNp26sX0ukgX0PY+pSORJbpVAANG7C8N 6OxnvVHaqIu0kBEkf9uhHXXzGDXgX++u1Gm/SWFizPLUf2vhqLR5+oq0cI8WOUaaSPLL vaQRQ4ti2F60DIRNPgMbaume53tlPheaH70LAAQaX+Ax3OtqsojhE6YW2beYcLJFNQmp 1VaRyIO2ar7HkYza3Itr9LDiLBslC2DC9B/Z5bPam3g1wwLwxxwF/1uPWZOhr9/M6jYX KS7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z55si12618969edz.254.2019.10.22.10.38.40; Tue, 22 Oct 2019 10:39:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731781AbfJVReR (ORCPT + 99 others); Tue, 22 Oct 2019 13:34:17 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:52165 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfJVReR (ORCPT ); Tue, 22 Oct 2019 13:34:17 -0400 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1iMy2u-00030U-T5; Tue, 22 Oct 2019 19:34:13 +0200 Date: Tue, 22 Oct 2019 18:34:11 +0100 From: Marc Zyngier To: Jakub Kicinski Cc: Daniel Wagner , Sebastian Andrzej Siewior , UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Woojung Huh , Andrew Lunn , Stefan Wahren , Jisheng Zhang , Thomas Gleixner Subject: Re: [PATCH] net: usb: lan78xx: Use phy_mac_interrupt() for interrupt handling Message-ID: <20191022183411.0e9a7bdc@why> In-Reply-To: <20191022101747.001b6d06@cakuba.netronome.com> References: <20191018082817.111480-1-dwagner@suse.de> <20191018131532.dsfhyiilsi7cy4cm@linutronix.de> <20191022101747.001b6d06@cakuba.netronome.com> Organization: Approximate X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: jakub.kicinski@netronome.com, dwagner@suse.de, bigeasy@linutronix.de, UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, woojung.huh@microchip.com, andrew@lunn.ch, wahrenst@gmx.net, Jisheng.Zhang@synaptics.com, tglx@linutronix.de X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Oct 2019 10:17:47 -0700 Jakub Kicinski wrote: > On Fri, 18 Oct 2019 15:15:32 +0200, Sebastian Andrzej Siewior wrote: > > On 2019-10-18 10:28:17 [+0200], Daniel Wagner wrote: > > > handle_simple_irq() expect interrupts to be disabled. The USB > > > framework is using threaded interrupts, which implies that interrupts > > > are re-enabled as soon as it has run. > > > > Without threading interrupts, this is invoked in pure softirq context > > since commit ed194d1367698 ("usb: core: remove local_irq_save() around > > ->complete() handler") where the local_irq_disable() has been removed. > > > > This is probably not a problem because the lock is never observed with > > in IRQ context. > > > > Wouldn't handle_nested_irq() work here instead of the simple thingy? > > Daniel could you try this suggestion? Would it work? > > I'm not sure we are at the stage yet where "doesn't work on -rt" is > sufficient reason to revert a working upstream patch. Please correct > me if I'm wrong. But that's the thing: it doesn't work at all, RT or not (it spits an awful warning). See the various reports Daniel linked to. Maintainers have been completely unresponsive, and the RPI folks have their own out of tree hack, I believe (which probably reverts to the previous, working situation where the driver uses polling for some of its PHY handling business). Sebastian's suggestion is definitely worth trying if you have the HW though. Thanks, M. -- Jazz is not dead. It just smells funny...