Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8385732pxb; Fri, 19 Feb 2021 15:12:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzorMGC9HxRvRcKSnFpuMsayhhd0T2TkZjvnN3dlcs91lx7P+vu5TkIoHlYjOIobBbeGfFR X-Received: by 2002:a17:906:3885:: with SMTP id q5mr10860557ejd.105.1613776366742; Fri, 19 Feb 2021 15:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613776366; cv=none; d=google.com; s=arc-20160816; b=JD6pB6iUIpLWK/Zc61mpPT28seuAym542AQIbcBY4ow8XXjHCxLUxJsjSN5+gXeWu5 AJUFzzpJDHmMIW+r1x1sQHgWs6sDU76moNBOLX1RqzHsSvVTD1sRnthqMpf5z9ZMp9s3 WbBx3J13D2t1Ah2FWalG6NtA42ngANEtrh6/igjuyN52fKdDH72nti77Hf9pfa0YFCMy XWex5RsbfBn3NB6HNb2ZYatb2VbARqx7kAdLkZ8RXJAvsr8Y/dgPTKUEbs3o2PudaDRx YS0Tse+cJZjShHkYXRjbu2D3QlOiv1RwfPIGI1XuXHJ387avVttJb18YG3A1CAJ8QXKf ocmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=j7+1rLduNzks0b8qBex2K4efLdhqi/B8tio+/Ij/kE8=; b=KwQ6K90Z+5F8AZQop+r+16kI1yyPcMs3JruqQkpxIzvUQw384f0z1Ty2mBiMrCaKhd uUpSqqvGGU7iqtSZd9GWhijtRzWUXMz4gdJMnf6MMcgf1P3jiinIDZxtr19aLJrWQnPv OafXDqMOf1feK4DevV1lk+CZF1svQ15eUVRdiZ7KJ5AainxNBQw9x2ieIunMdds0eG8t 0dXVMD196DY+4Sf/Eq0rr3w8S686RwClTgAnru3Flu76XkZmneiDzQnM0tJc8bMIQ8pM HqUsVWueNkUT3HGMMuauwq13oxhP1ZS02YZLkkUzUabkxRsCDY355Z979CTyBcUTe0ee KsMw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a89si7192127ede.326.2021.02.19.15.12.14; Fri, 19 Feb 2021 15:12:46 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbhBSXGS (ORCPT + 99 others); Fri, 19 Feb 2021 18:06:18 -0500 Received: from cynthia.allandria.com ([50.242.82.17]:49687 "EHLO cynthia.allandria.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbhBSXGR (ORCPT ); Fri, 19 Feb 2021 18:06:17 -0500 X-Greylist: delayed 2073 seconds by postgrey-1.27 at vger.kernel.org; Fri, 19 Feb 2021 18:06:17 EST Received: from flar by cynthia.allandria.com with local (Exim 4.84_2) (envelope-from ) id 1lDEIC-0000OT-RK; Fri, 19 Feb 2021 14:30:32 -0800 Date: Fri, 19 Feb 2021 14:30:32 -0800 From: Brad Boyer To: Geert Uytterhoeven Cc: Michael Schmitz , Arnd Bergmann , Finn Thain , "Song Bao Hua (Barry Song)" , "tglx@linutronix.de" , "gregkh@linuxfoundation.org" , "arnd@arndb.de" , "funaho@jurai.org" , "philb@gnu.org" , "corbet@lwn.net" , "mingo@redhat.com" , "linux-m68k@lists.linux-m68k.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform Message-ID: <20210219223032.GA1343@allandria.com> References: <0b766dba0b004ced94131e158cd8e67d@hisilicon.com> <5148eb2aaceb42d78087bc6d8ce15183@hisilicon.com> <5fcea94e-6fc9-c340-d7d2-4ae8b69890b8@telegraphics.com.au> <0c0ea8eca77c45ea89f2d4432580211c@hisilicon.com> <28d4b91d-1774-a8a-df97-7ac9b365c2@telegraphics.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 19, 2021 at 09:10:57AM +0100, Geert Uytterhoeven wrote: > Hi Michael, > > On Thu, Feb 18, 2021 at 11:11 PM Michael Schmitz wrote: > > On 19/02/21 12:19 am, Arnd Bergmann wrote: > > > drivers/net/ethernet/8390/apne.c > > > drivers/net/ethernet/8390/ax88796.c > > > drivers/net/ethernet/8390/hydra.c > > > drivers/net/ethernet/8390/mac8390.c > > > drivers/net/ethernet/8390/ne.c > > > drivers/net/ethernet/8390/zorro8390.c > > [...] > > > Most of these are normal short-lived interrupts that only transfer > > > a few bytes or schedule deferred processing of some sort. > > > Most of the scsi and network drivers process the data in > > > a softirq, so those are generally fine here, but I do see that 8390 > > > (ne2000) ethernet and the drivers/ide drivers do transfer their > > > data in hardirq context. > > > > > > Arnd > > > > 8390 ethernet drivers are widely used on m68k platforms (Amiga and > > Atari). At least on Amiga, the corresponding interrupt is a hardirq so > > I'd advise caution. That said, the 8390 drivers might benefit from some > > refactoring (the way these drivers are compiled does prevent e.g. the > > APNE driver from being used with two different variants of PCMCIA > > interfaces. I had begun some work on making IO primitives runtime > > selected two years ago but that ended up looking too ugly ...). > > > > Can't recall what IPL the 8390 interrupts operate at - Geert? > > #define IRQ_AMIGA_PORTS IRQ_AUTO_2 > > Zorro expansion boards can also use > > #define IRQ_AMIGA_EXTER IRQ_AUTO_6 > > and some boards may have a jumper to select the latter, but all Amiga > Linux drivers use IRQ_AMIGA_PORTS. The mac8390 driver will show up wherever NuBus interrupts are routed, which varies by hardware. It's frequently IRQ_AUTO_2 (due to being routed through the second VIA chip on most models), but it can be in other places on systems that don't use a second VIA chip. On the IIfx, NuBus interrupts get routed through OSS to IRQ_AUTO_3. I don't see any cases that use other interrupt levels, but some of the logic is a little harder to follow. It's not an 8390, but it looks like macmace actually uses two levels. The regular interrupt should show up at IRQ_AUTO_3 and the DMA interrupts at IRQ_AUTO_4. Most Macs only use 4 for serial, but this is an exception. Brad Boyer flar@allandria.com