This part of dmesg could also be useful, as it shows that register 10 has an i/o range that overlaps with registers 14 and 18. Furthermore, register 14 is "ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03)", i.e. the CS5536 chip that controls all the GPIO pins. That probably explain the address space collision message and may be the cause of the BAR problem.
pci 0000:00:14.0: reg 10 io port: [0x6000-0x7fff] pci 0000:00:14.0: reg 14 io port: [0x6100-0x61ff] pci 0000:00:14.0: reg 18 io port: [0x6200-0x63ff] pci 0000:00:14.2: reg 20 io port: [0xe000-0xe00f] pci 0000:00:14.0: BAR 1: address space collision on of device [0x6100-0x61ff] pci 0000:00:14.0: BAR 1: can't allocate resource pci 0000:00:14.0: BAR 2: address space collision on of device [0x6200-0x63ff] pci 0000:00:14.0: BAR 2: can't allocate resource pci 0000:00:14.0: BAR 2: error updating (0x001001 != 0x006201) pci 0000:00:14.0: BAR 1: error updating (0x001401 != 0x006101) pci 0000:00:14.0: allocated PCI BAR #1: base 0x1400 pci 0000:00:14.0: cs5535-gpio: GPIO support successfully loaded. On 01/12/2010 10:36 AM, Christopher Camden wrote: > Hi, > > In the past, I was using an an old cs5535_gpio geode driver to create a > node for the error led on the net5501. But now I tried updating my > drivers to use the new led-class provided by the 2.6 kernel. What I did > is apply a patch (http://lkml.org/lkml/2009/2/5/154) to add net5501 > support. Then, I tried patching the kernel with the new gpio drivers > that will be incorporated in the 2.6.32 kernel. The new driver is > reading the PCI BAR #1 in order to determine the GPIO base address. The > old driver was using the MSR. The problem is, the new one is reading > 0x1400 when it should be 0x6100. I tried updating the bios to the latest > version, but it didn't worked. > > My bios version is 1.33c and my kernel version is 2.6.31.5. > > Where is the problem? > > Thanks, > > Christopher Camden > > P.S. Here are the relevant parts of dmesg: > > With the geode driver (cs5535_gpio): > > pci 0000:00:14.0: BAR 1: address space collision on of device > [0x6100-0x61ff] > pci 0000:00:14.0: BAR 1: can't allocate resource > pci 0000:00:14.0: BAR 2: address space collision on of device > [0x6200-0x63ff] > pci 0000:00:14.0: BAR 2: can't allocate resource > pci 0000:00:14.0: BAR 2: error updating (0x001001 != 0x006201) > Switched to high resolution mode on CPU 0 > pci 0000:00:14.0: BAR 1: error updating (0x001401 != 0x006101) > cs5535_gpio: base=0x6100 mask=0xb003c66 major=253 > > With the new driver (cs5535-gpio): > > pci 0000:00:14.0: BAR 1: address space collision on of device > [0x6100-0x61ff] > pci 0000:00:14.0: BAR 1: can't allocate resource > pci 0000:00:14.0: BAR 2: address space collision on of device > [0x6200-0x63ff] > pci 0000:00:14.0: BAR 2: can't allocate resource > pci 0000:00:14.0: BAR 2: error updating (0x001001 != 0x006201) > Switched to high resolution mode on CPU 0 > pci 0000:00:14.0: BAR 1: error updating (0x001401 != 0x006101) > pci 0000:00:14.0: allocated PCI BAR #1: base 0x1400 > pci 0000:00:14.0: cs5535-gpio: GPIO support successfully loaded. > _______________________________________________ > Soekris-tech mailing list > [email protected] > http://lists.soekris.com/mailman/listinfo/soekris-tech > _______________________________________________ Soekris-tech mailing list [email protected] http://lists.soekris.com/mailman/listinfo/soekris-tech
