Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2005 06:05:05 +0100
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Warner Losh <imp@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/cardbus cardbus.c
Message-ID:  <20050306050505.GA71191@obiwan.tataz.chchile.org>
In-Reply-To: <200502280127.j1S1ROkh066282@repoman.freebsd.org>
References:  <200502280127.j1S1ROkh066282@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Mon, Feb 28, 2005 at 01:27:24AM +0000, Warner Losh wrote:
> imp         2005-02-28 01:27:24 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/dev/cardbus      cardbus.c 
>   Log:
>   There were two calls to cardbus_do_cis when cardbus_do_cis changed,
>   yet I only changed one of them.  So when we loaded drivers, we'd fail
>   to allocate resources correct.
>   
>   This pointed out that we were doing the wrong thing when we failed to
>   attach a child.  We released all the resources and almost deleted the
>   child.  Instead, we should keep the resources allocated so when/if a
>   driver is loaded, we can go w/o having to allocate them.  We use
>   pci_cfg_save/restore to restore the BARs with these resources.
>   
>   This seems to fix the problems that we were seeing that I thought
>   might have magically gone away in the last revision of cardbus.c (but
>   really didn't).
>   
>   Noticed by: avatar (nicely done!)
>   
>   Revision  Changes    Path
>   1.49      +5 -7      src/sys/dev/cardbus/cardbus.c

This commit prevents my rl(4) network card from attaching.  Reverting
to rev 1.48 makes things goes right.  Feel free to contact me if you
need more details.

Regards,
-- 
Jeremie Le Hen
jeremie at le-hen dot org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050306050505.GA71191>