On Thu, May 25, 2017 at 05:38:59PM +0200, Stefan Sperling wrote:
>
> On Wed, May 24, 2017 at 10:11:21AM +0800, Kevin Lo wrote:
> > My AR9380 adapter arrived, but I hit a kernel panic on amd64:
>
> Which PCI product ID does this card have?
The product ID is 0x0030.
# pcidump -v 2:0:0
2:0:0: Atheros AR9300
0x0000: Vendor ID: 168c Product ID: 0030
0x0004: Command: 0007 Status: 0010
0x0008: Class: 02 Subclass: 80 Interface: 00 Revision: 01
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 10
0x0010: BAR mem 64bit addr: 0x0000000090800000/0x00020000
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 168c Product ID: 3110
0x0030: Expansion ROM Base Address: 90820000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
0x0040: Capability 0x01: Power Management
State: D0
0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
0x0070: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 GT/s Link Width: x1 / x1
0x0100: Enhanced Capability 0x01: Advanced Error Reporting
0x0140: Enhanced Capability 0x02: Virtual Channel Capability
0x0300: Enhanced Capability 0x03: Device Serial Number
> > athn0 at pci2 dev 0 function 0 "Atheros AR9300" rev 0x01: apic 1 int 17
> >
> > uvm_fault(0xffffffff81858d20, 0xffff800130868ffc, 0, 1) -> e
> >
> > kernel: page fault trap, code=0
> >
> > Stopped at x86_bus_space_mem_read_4+0x13: movl 0(%rsi),%eax
> >
> > ddb{0}> trace
> >
> > x86_bus_space_mem_read_4(ffff800030869000,fffffffc,13,ffff8000001d1000,10,fffff
> >
> > fff81a053f0) at x86_bus_space_mem_read_4+0x13
> >
> > ar9003_read_eep_word(ffff8000001d1000,7ffff7ff,ffffffff81a0548e,800,7ffff7ff,18
> >
> > ) at ar9003_read_eep_word+0x36
> >
> > ar9003_read_eep_data(ffff8000001d1000,fffff590,ffff8000001c4800,5aa,5a,fffff590
> >
> > ) at ar9003_read_eep_data+0x91
> >
> > ar9003_read_rom(ffff8000001d1000,ffffffff81a055a0,ffff8000001d1000,ffff80000019
> >
> > d500,ffffffff817ff700,0) at ar9003_read_rom+0xe8
> >
> > ar9003_attach(ffff8000001d1000,0,ffff8000001d1000,0,0,3) at
> > ar9003_attach+0x1b8
>
> I'll check and compare what the driver does for my card here.
>
> There are many different models. Some models don't even have an EEPROM.
I see, thank you.