Re[3]: pccbb pccard rman - Something is very wrong somewhere

From: Carlos Velasco <freebsd_at_newipnet.com>
Date: Mon, 12 Apr 2004 10:54:53 +0200
On 09/04/2004 at 2:34 Carlos Velasco wrote:

>However it does not work, it reads CIS but card doesn't work. I think it's
>because further resources (pccard0: ccr_res == 88002000-880023ff,
>base=ff80) need 64k alignment too for card to work.

Warner,

My laptop has <TI1225 PCI-CardBus Bridge>
I have been googling and have seen other problems related to this cardbus
in freebsd.
I think possible this "alignment" problem is related to this specific
cardbus chipset. I will review the pccbb code but I'm not an expert into
this.

On the other hand, could someone commit this for rman? It's a clear
mistake:

diff -ur sys/kern/subr_rman.c sysnew/kern/subr_rman.c
--- sys/kern/subr_rman.c	Wed Jun 11 00:56:57 2003
+++ sysnew/kern/subr_rman.c	Tue Apr  6 11:41:23 2004
_at__at_ -234,7 +234,7 _at__at_
 				rstart += bound - (rstart & ~bmask);
 		} while ((rstart & amask) != 0 && rstart < end &&
 		    rstart < s->r_end);
-		rend = ulmin(s->r_end, ulmax(rstart + count, end));
+		rend = ulmin(s->r_end, ulmax(rstart + count - 1, end));
 		if (rstart > rend) {
 			DPRINTF(("adjusted start exceeds end\n"));
 			continue;




Regards,
Carlos Velasco
Received on Sun Apr 11 2004 - 23:56:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:50 UTC