From owner-freebsd-wireless@freebsd.org Fri May 4 15:45:21 2018 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B7CEFB09B4 for ; Fri, 4 May 2018 15:45:21 +0000 (UTC) (envelope-from freebsd@tim.thechases.com) Received: from cheetah.ash.relay.mailchannels.net (cheetah.ash.relay.mailchannels.net [23.83.222.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01DDE76874 for ; Fri, 4 May 2018 15:45:19 +0000 (UTC) (envelope-from freebsd@tim.thechases.com) X-Sender-Id: wwwh2|x-authuser|tim@thechases.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3AD785C2582; Fri, 4 May 2018 15:37:20 +0000 (UTC) Received: from uscentral455.accountservergroup.com (unknown [100.96.33.32]) (Authenticated sender: wwwh2) by relay.mailchannels.net (Postfix) with ESMTPA id B22915C23E2; Fri, 4 May 2018 15:37:19 +0000 (UTC) X-Sender-Id: wwwh2|x-authuser|tim@thechases.com Received: from uscentral455.accountservergroup.com (uscentral455.accountservergroup.com [172.18.56.151]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.14.1); Fri, 04 May 2018 15:37:20 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh2|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh2 X-Abiding-Towering: 404cd3dc67ab3bc4_1525448240010_500840202 X-MC-Loop-Signature: 1525448240010:3176347340 X-MC-Ingress-Time: 1525448240010 Received: from 172-0-250-193.lightspeed.rcsntx.sbcglobal.net ([172.0.250.193]:56474 helo=bigbox.christie.dr) by uscentral455.accountservergroup.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fEclq-003i5w-KP; Fri, 04 May 2018 11:37:18 -0400 Date: Fri, 4 May 2018 10:37:17 -0500 From: Tim Chase To: Oleksandr Tymoshenko Cc: "freebsd-wireless@freebsd.org" Subject: Re: ath0: could not map interrupt (again?) Message-ID: <20180504103717.0417a0f6@bigbox.christie.dr> In-Reply-To: <20180504005448.GA89012@bluezbox.com> References: <20180502165745.59a5bfc4@bigbox.christie.dr> <20180502211001.550d290c@bigbox.christie.dr> <20180503192743.639240d0@bigbox.christie.dr> <20180504005448.GA89012@bluezbox.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2018 15:45:21 -0000 On 2018-05-03 17:54, Oleksandr Tymoshenko wrote: > Tim Chase (freebsd@tim.thechases.com) wrote: > > If it makes any difference, booting OpenBSD 6.3 on the machine > > says they're both successfully on INT 17 (the ath0/athn0 works > > there) > > > > ppb0 at pci0 dev 28 function 0 "Intel SCH PCIE" rev 0x07: apic 2 > > int 17 ... > > athn0 at pci2 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 > > int 17 athn0: AR9280 rev 2 (2T2R), ROM rev 22, address > > 00:24:d2:b3:8c:b4 > > > > so it looks like the interrupt *can* be shared, it just appears > > that FreeBSD is doing something peculiar with it. > > It looks like PCI bridge allocates interupt without RF_SHAREABLE > (see dev/pci/pci_pci.c, pcib_alloc_pcie_irq). Could you test > this patch [1]? I am not sure if non-shareable IRQs for PCI/PCI > bridge is a design decision or it's just that nobody has hit this > problem before. > > [1] > https://people.freebsd.org/~gonzo/patches/pci_pci-shareable-irq.diff Updated to head, applied the patch and am building world/kernel now. With this underpowered machine, I suspect it may take a while. Just wanted to let you know your suggestion didn't drop into the void ignored. -tim