Search Linux Wireless

Re: Initializing iwl3945 error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry this got dropped on the floor for so long.  I don't see anything
wrong with the PCI memory routing information in either the failing or
the working logs.

Kamil, you mentioned: "Driver can't initialize card as all
ioread32/iowrite32 seems to not do their job. All reads finalize with
0xffffffff."

Normally this means we got no response, either because the transaction
didn't reach the device, or the device didn't respond.  Here's the
routing information I see, which looks fine:

  ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
  pci_root PNP0A03:00: host bridge window [mem 0xe0000000-0xf7ffffff]
  pci 0000:00:1c.1: PCI bridge to [bus 0b-0b]
  pci 0000:00:1c.1:   bridge window [mem 0xf1e00000-0xf1efffff]
  pci 0000:0b:00.0: [8086:4222] type 0 class 0x000280
  pci 0000:0b:00.0: reg 10: [mem 0xf1eff000-0xf1efffff]

And we enabled memory space decoding for the device:

  iwl3945 0000:0b:00.0: enabling device (0000 -> 0002)

so it *should* respond.  It's interesting that we didn't have to
enable the device in the working ("noapic") case -- there's no
"enabling device" line in that dmesg log, which means memory decoding
was already enabled when we found it.

You also said "If I access the memory directly, not by mapping, I can
write and read pci memory but driver load fails anyway."  What exactly
does that mean?  I assume you mean that even in the failing case, you
can somehow access that region ([mem 0xf1eff000-0xf1efffff]).  What
mechanism are you using?  ioremap() in the driver?  User-space mmap of
a /sys file?

You said "This issue is reproducible in 100% on my system when I turn
on the machine. It doesn't occur after some work on it."  I wonder if
there's some timing issue with that device coming out of reset or
something.  Does the same problem happen if the driver is statically
linked in vs. loaded as a module after boot?  What if you add a long
delay in the driver probe routine?
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux