From: Paul v. G. <pau...@ri...> - 2003-06-17 23:01:06
|
Finally some success! ;-) In arch/sh/kernel/pci-sh7751.c, in pcibios_init, the call to pci_assign_unassigned_resources() is commented out (linux 2.4). It still seems to be commented out in the CVS repository. Anybody know why? After uncommenting it, rebuilding, reburning the flash and rebooting, /proc/pci now shows: Bus 0, device 3, function 0: Network controller: Harris Semiconductor Prism 2.5 Wavelan chipset (rev 1). Master Capable. Latency=32. Prefetchable 32 bit memory at 0xfd100000 [0xfd100fff]. A decent address. And I can successfully start the interface on the WiFi card. Thanks. Paul On Tue, Jun 17, 2003 at 03:46:00PM -0700, Paul van Gool wrote: > On Tue, Jun 17, 2003 at 11:08:26PM +0100, David Woodhouse wrote: > > OK, the resources it's allocating there are completely bogus as far as I > > can tell. Can you double-check the values of PCIBIOS_MIN_MEM and > > PCIBIOS_MIN_IO as seen in drivers/pci/setup-res.c::pci_assign_resource() > I added a printk statement in pci_assign_resource. The output is: > > pvg PCIBIOS_MIN_IO = 10000 > pvg PCIBIOS_MIN_MEM = fd000000 > pvg PCIBIOS_MIN_IO = 10000 > pvg PCIBIOS_MIN_MEM = fd000000 > > BTW this routine seems to be called after the resources have already been > assigned. > > It seems to be getting the values from include/asm-sh/pci.h: > > #elif defined(CONFIG_SH_7751_SOLUTION_ENGINE) > // #define PCIBIOS_MIN_IO 0x4000 > #define PCIBIOS_MIN_IO 0x10000 > #define PCIBIOS_MIN_MEM 0xFD000000 > #endif > > > Make it stop assigning resources which your board I/O code doesn't think > > are PCI, and you'll be most of the way there :) > Sounds like a good idea... I'll start debugging the kernel a bit to see > what data it's working with. > > Thanks. > > Paul > -- > Paul van Gool Rincon Networks > pau...@ri... (805)-705-1442 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > linuxsh-dev mailing list > lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxsh-dev -- Paul van Gool Rincon Networks pau...@ri... (805)-705-1442 |