From owner-freebsd-alpha Mon Jul 24 14: 3:58 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-51.dsl.snfc21.pacbell.net [63.202.177.51]) by hub.freebsd.org (Postfix) with ESMTP id 29A9537C008; Mon, 24 Jul 2000 14:03:55 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id OAA24753; Mon, 24 Jul 2000 14:12:27 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200007242112.OAA24753@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Jung, Michael" Cc: "'Mike Smith'" , "'freebsd-alpha@FreeBSD.ORG'" Subject: Re: Booting from Raid In-reply-to: Your message of "Mon, 24 Jul 2000 16:42:43 EDT." <921763828F4BD4118D7D00805FEDF35810C5BA@EXCHANGE1> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_4871592400" Date: Mon, 24 Jul 2000 14:12:27 -0700 From: Mike Smith Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multipart MIME message. --==_Exmh_4871592400 Content-Type: text/plain; charset=us-ascii > Mike: > > After appling your patch and recomipiling sucessfully > I got the same resuilts. > > > mlx0: port 0x10180-0x101ff irq 32 at device > 6.0 on pci0 > mlx0: couldn't allocate mailbox window > device_probe_and_attach: mlx0 attach returned 6 Ack. I screwed up and left a 'break;' out of the obvious place in that patch. Here it is again, correctly. --==_Exmh_4871592400 Content-Type: text/plain ; name="mlx.diff"; charset=us-ascii Content-Description: mlx.diff Content-Disposition: attachment; filename="mlx.diff" --- mlx_pci.c.bak Mon Jul 24 09:57:22 2000 +++ mlx_pci.c Mon Jul 24 14:11:33 2000 @@ -157,18 +157,23 @@ * Allocate the PCI register window. */ - /* type 2/3 adapters have an I/O region we don't use at base 0 */ + /* type 2/3 adapters have an I/O region we don't prefer at base 0 */ switch(sc->mlx_iftype) { case MLX_IFTYPE_2: case MLX_IFTYPE_3: rid = MLX_CFG_BASE1; + sc->mlx_mem = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE); + if (sc->mlx_mem == NULL) { + rid = MLX_CFG_BASE0; + sc->mlx_mem = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 1, RF_ACTIVE); + } break; case MLX_IFTYPE_4: case MLX_IFTYPE_5: rid = MLX_CFG_BASE0; + sc->mlx_mem = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE); break; } - sc->mlx_mem = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE); if (sc->mlx_mem == NULL) { device_printf(sc->mlx_dev, "couldn't allocate mailbox window\n"); mlx_free(sc); --==_Exmh_4871592400 Content-Type: text/plain; charset=us-ascii ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] --==_Exmh_4871592400-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message