Date: 09 Mar 2005 12:54:18 +0100 From: Bengt Ahlgren <bengta@sics.se> To: freebsd-mobile@freebsd.org Subject: Re: pccard0: Card has no functions! OR PCI memory range allocation problem? Message-ID: <uh7acpd3uhh.fsf@P142.sics.se> In-Reply-To: Warner Losh's message of "Mon, 07 Mar 2005 15:48:55 -0700 (MST)" References: <uh7ll8zl0pk.fsf@P142.sics.se> <20050307.154855.74746009.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@bsdimp.com> writes:
> > Now to the bottom line: where is the bug?
> >
> > 1) In the if_ath driver module which deallocated a PCI memory range
> > which it didn't allocate (the kernel did at boot).
> >
> > 2) In the PCI memory allocation/deallocation routines which allowed
> > the loadable driver to deallocate a PCI memory range that was
> > allocated at boot.
> >
> > 3) In cbb/pccard which perhaps shouldn't be allowed to use the memory
> > range?
> >
> > 4) Or is the answer that I should not unload drivers for fixed
> > hardware?
>
> 5) On kldunload, the resources shouldn't be freed. Only when then
> child actually goes away should they be freed. I think this is the
> heart of the bug. Once this is fixed, all the down stream badness
> should go away.
A little more info from devinfo -u, after boot:
0xd0100e00-0xd01fffff (root0)
0xd0200000-0xd020ffff ----
0xd0210000-0xd02100ff ----
0xd0210100-0xd021ffff (root0)
0xd0220000-0xd023ffff (em0)
After loading if_ath:
0xd0100e00-0xd01fffff (root0)
0xd0200000-0xd020ffff (ath0)
0xd0210000-0xd02100ff ----
0xd0210100-0xd021ffff (root0)
0xd0220000-0xd023ffff (em0)
After unloading if_ath:
0xd0100e00-0xd020ffff (root0)
0xd0210000-0xd02100ff ----
0xd0210100-0xd021ffff (root0)
0xd0220000-0xd023ffff (em0)
The ath memory resource was merged to the preceding "root0" resource.
(And after this, no pccard is recognised.)
What does "----" mean in the devinfo printout?
After using devinfo, the system once froze up when I inserted a
pccard. That never happened before.
Bengt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?uh7acpd3uhh.fsf>
