NetBSD Problem Report #50465

From martin@duskware.de  Mon Nov 23 20:25:50 2015
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D3BDDA66C5
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 23 Nov 2015 20:25:50 +0000 (UTC)
Date: Mon, 23 Nov 2015 21:25:46 CET
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: athn0 broken by msi changes?
X-Send-Pr-Version: 3.95

>Number:         50465
>Category:       kern
>Synopsis:       athn0 broken by msi changes?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 23 20:30:00 +0000 2015
>Closed-Date:    Thu Nov 26 01:43:44 +0000 2015
>Last-Modified:  Thu Nov 26 01:43:44 +0000 2015
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.21
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 7.99.21 NetBSD 7.99.21 (NIGHT-OWL) #362: Sat Nov 21 22:35:47 CET 2015 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

After updating my -current kernel the day before, athn0 does not work
any more. I suspect the msi changes:

ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 2.5GT/s
pci2 at ppb1 bus 3
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
bge0 at pci2 dev 0 function 0: Broadcom BCM57780 Fast Ethernet
bge0: interrupting at msi0 vec 0
bge0: HW config 000a0554, 00004004, 00000008, 00000000 00000000
bge0: ASIC BCM57780 A1 (0x57780001), Ethernet address 00:26:2d:90:46:d1
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM57780 1000BASE-T media interface, rev. 1
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 2.5GT/s
pci3 at ppb2 bus 5
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
athn0 at pci3 dev 0 function 0: Atheros AR9280
athn0: rev 2 (2T2R), ROM rev 22, address c4:17:fe:ce:37:34
athn0: interrupting at msi1 vec 0
athn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
athn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

bge0 works, athn0 times out.

>How-To-Repeat:
n/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/50465: athn0 broken by msi changes?
Date: Mon, 23 Nov 2015 21:40:55 +0100

 The previous (working) kernel already did:

 bge0: interrupting at msi0 vec 0

 but for athn0:

 athn0: interrupting at ioapic0 pin 17


 Martin

From: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50465 CVS commit: src/sys/dev/pci
Date: Tue, 24 Nov 2015 18:17:37 +0000

 Module Name:	src
 Committed By:	jakllsch
 Date:		Tue Nov 24 18:17:37 UTC 2015

 Modified Files:
 	src/sys/dev/pci: if_athn_pci.c

 Log Message:
 Revert previous.  At least AR9280 and AR9285 apparently do not have
 working-by-default MSI functionality, despite advertising such.

 Fixes PR kern/50465.


 To generate a diff of this commit:
 cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pci/if_athn_pci.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 26 Nov 2015 01:43:44 +0000
State-Changed-Why:
jak says he's too lazy to close it himself.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.