From owner-freebsd-stable Fri Oct 18 23:14:49 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A13E37B401 for ; Fri, 18 Oct 2002 23:14:47 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94AC843E88 for ; Fri, 18 Oct 2002 23:14:46 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g9J6Ejpk053242; Sat, 19 Oct 2002 00:14:45 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 19 Oct 2002 00:14:15 -0600 (MDT) Message-Id: <20021019.001415.103568681.imp@bsdimp.com> To: danny-dated-1035437906.c6106e@limehouse.org Cc: stable@FreeBSD.ORG Subject: Re: pcic0: works on 4.6R but not on 4.7-PRE From: "M. Warner Losh" In-Reply-To: <20021019053824.GA271@limehouse.org> References: <20020923175841.GA1065@limehouse.org> <20020930.014311.73447261.imp@bsdimp.com> <20021019053824.GA271@limehouse.org> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20021019053824.GA271@limehouse.org> Danny Cautaert writes: : On Mon, Sep 30, 2002 at 01:43:11AM -0600, M. Warner Losh wrote: : > In message: <20020923175841.GA1065@limehouse.org> : > Danny Cautaert writes: : > : The PCMCIA-controller of my laptop works fine on 4.6.2-RELEASE but not : > : on 4.7-PRELEASE. The controller gets detected, but the cards don't. : > : AAMOF it seems that the system thinks a card is inserted in both slots : > : wether there are some cards inserted or not. It doesnt recognize any : > : card either. As I don't know where to look further I included a verbose : > : dmesg of the system in both RELEASE and PRERELEASE. Any clues? : > : > This is because we're mapping the controller smack dab in the middle : > of your agp video card now, and we didn't before. : > : > Can you recompile from source? If so, I have a patch you can try. : : I already replied earlier but apparently it got lost. There is : absolutely no problem to recompile, I am running both 4.6.2-RELEASE-p2 : and 4.7-STABLE on this laptop (on separate slices, with shared /var, : /usr/home, /usr/ports, /usr/local and /usr/X11R6) : : So I also can confirm the problem persists in 4.7-RELEASE and -STABLE. OK. Thanks for the update. : However you didn't include this patch on your mail. Can you tell me : where I can find it? Oh, I'm sorry. Here's a quick and dirty patch that might work for you. Warner Index: pcic_pci.c =================================================================== RCS file: /cache/ncvs/src/sys/pccard/pcic_pci.c,v retrieving revision 1.122 diff -u -r1.122 pcic_pci.c --- pcic_pci.c 7 Oct 2002 07:02:48 -0000 1.122 +++ pcic_pci.c 19 Oct 2002 06:13:21 -0000 @@ -1385,7 +1385,7 @@ pci_write_config(dev, sc->memrid, 0xffffffff, 4); sockbase = pci_read_config(dev, sc->memrid, 4); sockbase = (sockbase & 0xfffffff0) & -(sockbase & 0xfffffff0); -#define CARDBUS_SYS_RES_MEMORY_START 0x88000000 +#define CARDBUS_SYS_RES_MEMORY_START 0xe0000000 #define CARDBUS_SYS_RES_MEMORY_END 0xFFFFFFFF sc->memres = bus_generic_alloc_resource(device_get_parent(dev), dev, SYS_RES_MEMORY, &sc->memrid, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message