cvs commit: src/sys/dev/cardbus cardbus.c

Jeremie Le Hen jeremie at le-hen.org
Tue Mar 8 00:24:36 GMT 2005


Hi Warner,

> > Attaching how?  On kldload or in general?  What kind of card do you
> > have?  What messages are involved?
> 
> I have two PCMCIA rl(4) adapters.  Both don't work with rev 1.49 of
> cardbus.c.  I attached my kernel configuration file.  Inserting the
> card before or after booting doesn't change anything.

I manage to get a PCMCIA network card with another chipset.  It uses
the dc(4) driver.  This time, with rev 1.49 of cardbus.c, the system
panices whereas it works quite well with rev 1.48.  Having dc(4)
compiled in kernel or as a kld doesn't change anything.


Here is the end of dmesg (the box was booting), the panic message and
the backtrace (hand-written) :

%%%
  cardbus1: Resource not specified in CIS: id=14, size=400
  dc0: <Netgear FA511 10/100BaseTX> port 0x1000-0x10ff mem 0x88000000-0x-880003ff irq 11 ar device 0.0 on cardbus1
  dc0: requested interrupt 6-6,count = 1 not supported by cbb
  dc0: couldn't map interrupt


  Fatal trap 12: page fault while in kernel mode
  fault virtual address   = 0x30
  fault code              = supervisor write, page not present
  instruction pointer     = 0x8:0xc06ac1c3
  stack pointer           = 0x10:0xd1062b8c
  frame pointer           = 0x10:0xd1062b98
  code segment            = base 0x0, limit 0xfffff, type 0x1b
                          = DPL 0, pres 1, def32 1, gran 1
  processor eflags        = interrupt enabled, resume, IOPL = 0
  current process         = 36 (cbb1)
  [thread pid 36 tid 100049 ]
  Stopped at      bus_dmamap_destroy+0x33:        decl    0x30(ebx)
  db> trace
  Tracing pid 36 tod 100049 td 0xc17e0e10
  bus_dmamap_destroy(0,0,10,c1846680,c1805180) at bus_dmamap_destroy+0x33
  dc_detach(c18b5900,0,d1062c14,0,ffffffff) at dc_detach+0x189
  dc_attach(c18b5900,c178904c,c0737738,c18b5900,c18b5900) at dc_attach+0x11af
  device_attach(c18b5900,c18b5900,c0708950,8dc,24) at device_attach+0x6a
  device_probe_and_attach(c18b5900,c18e2a00,0,0,c18e2a08) at device_probe_and_attach+0x111
  cardbus_attach_card(c1805180,c17ac890,c073331c,c17de7f0,30000920) at cardbus_attach_card+0x24e
  cbb_insert(c17d6000,0,c06fe79e,1d3,c17d63f0) at cbb_insert+0xf8
  cbb_event_thread(c17d6000,d1062d48,c0704752,30e,0) at cbb_event_thread+0x14f
  fork_exit(c04d0a10,c17d6000,d1062d48) at fork_exit+0xc6
  fork_trampoline() at fork_trampoline+0x8
  --- trap 0x1, eip = 0, esp = 0xd1062d7c, ebp = 0 ---
%%%

I got a dump.  Please contact me off-list if you want it.

Here are the card info:
%%%
  none3 at pci5:0:0: class=0x020000 card=0x511a1385 chip=0x19851317 rev=0x11 hdr=0x00
      vendor   = 'ADMtek Inc'
      device   = 'AN985 FastNIC CardBus 10/100 Fast Ethernet Adapter'
      class    = network
      subclass = ethernet


I hope this will help.
Best regards,


PS: Note there seems to be a whitespace typo on the following line,
just after the first comma, a space seems to be missing :
  dc0: requested interrupt 6-6,count = 1 not supported by cbb
-- 
Jeremie Le Hen
jeremie at le-hen dot org


More information about the cvs-src mailing list