From owner-freebsd-current@FreeBSD.ORG Mon Apr 12 01:56:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2FB816A4CE; Mon, 12 Apr 2004 01:56:57 -0700 (PDT) Received: from smtp.newipnet.com (5.Red-80-32-157.pooles.rima-tde.net [80.32.157.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 502CB43D64; Mon, 12 Apr 2004 01:56:56 -0700 (PDT) (envelope-from freebsd@newipnet.com) Received: by smtp.newipnet.com (ESMTP Server, from userid 511) id B608B20519; Mon, 12 Apr 2004 10:56:53 +0200 (CEST) Received: from madre (madre.newipnet.com [192.168.128.4]) by smtp.newipnet.com (ESMTP Server) with ESMTP id 75C7020516; Mon, 12 Apr 2004 10:56:28 +0200 (CEST) Message-ID: <200404121054530262.26E7ABED@192.168.128.16> In-Reply-To: <200404090234530949.15ACB39A@192.168.128.16> References: <20040406.162834.02299817.imp@bsdimp.com> <20040406.231324.131273745.imp@bsdimp.com> <200404071245040782.0D909C4C@192.168.128.16> <20040407.092146.40772577.imp@bsdimp.com> <200404090234530949.15ACB39A@192.168.128.16> X-Mailer: Courier 3.50.00.09.1092 (http://www.rosecitysoftware.com) (P) Date: Mon, 12 Apr 2004 10:54:53 +0200 From: "Carlos Velasco" To: "M. Warner Losh" Content-Type: text/plain; charset="us-ascii" X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on atlas.newipnet.com X-Spam-Level: X-Spam-Status: No, hits=-104.9 required=5.0 tests=BAYES_00,USER_IN_WHITELIST autolearn=ham version=2.63 cc: jon@freebsd.org cc: marc@mit.edu cc: freebsd-current@freebsd.org cc: freebsd-mobile@freebsd.org Subject: Re[3]: pccbb pccard rman - Something is very wrong somewhere X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2004 08:56:58 -0000 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 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 @@ -234,7 +234,7 @@ 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