Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2005 17:40:12 -0800
From:      "Vinod Kashyap" <vkashyap@amcc.com>
To:        Michael Meltzer <mjm@michaelmeltzer.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   RE: twa breakage on AMD64 with 9.1.5.23wareversionand2005-01-1103:00:49 UTC RELENG_5 commit
Message-ID:  <IAC4NA03.RB8@hadar.amcc.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

I tried reproducing the problem on both i386 and amd64,
but could not.  I installed 5.3 RELEASE, cvsuped to the
tip of RELENG_5, re-built the kernel with twa integrated,
and rebooted.  The test systems booted just fine (off of
3ware controlled da0).  I even tried replacing just the
twa sources of 5.3 RELEASE with the twa sources from the
tip of RELENG_5, and that worked fine too.  All this,
without even upgrading the firmware from 2.02.00.008 (which
is bundled into 5.3 RELEASE sources).  So, I am confused as
to what might be happening.

Could you give the attached patch a try?  Just a hunch...



> -----Original Message-----
> From: owner-freebsd-stable@freebsd.org
> [mailto:owner-freebsd-stable@freebsd.org]On Behalf Of Michael Meltzer
> Sent: Friday, January 14, 2005 6:03 AM
> To: Vinod Kashyap
> Cc: freebsd stable
> Subject: Re: twa breakage on AMD64 with 9.1.5.2
> 3wareversionand2005-01-1103:00:49 UTC RELENG_5 commit
> 
> 
> 
> >Could you see if the driver is getting loaded?  The driver prints
> >the message: "3ware device driver for 9000 series storage 
> controllers...".
> >
> >Did the new firmware get flashed?  You can download the firmware
> >from the 3ware website and flash it on the card using a DOS floppy.
> >Alternatively, you can add 'options TWA_FLASH_FIRMWARE' to your
> >kernel configuration file and rebuild the kernel.  This should build
> >the kernel/driver with the firmware bundled, and the firmware should
> >automatically get downloaded the next time you reboot.
> >
> >
> >
> >
> >  
> >
> I reloaded the new driver and rebuilt the kernel last night with the 
> TWA_FLASH_FIRMWARE, Did not see the -D on the command line for the 
> rebuild, the new firmware was not requested to load. I got the new 
> firmware from 3ware and flashed it in, Still does not work. I 
> also build 
> a straight GENERIC Kernel, still no luck. Their is no error 
> message that 
> I saw and the versions number for the pieces did change so it 
> the "new" 
> stuff. I need to setup a serial console to capture the full messages, 
> should have that on monday night. Thank You -mjm
> 
> 
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to 
> "freebsd-stable-unsubscribe@freebsd.org"
>

[-- Attachment #2 --]
Index: twa_freebsd.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/twa/twa_freebsd.c,v
retrieving revision 1.7.2.2
diff -u -r1.7.2.2 twa_freebsd.c
--- twa_freebsd.c	11 Jan 2005 03:00:48 -0000	1.7.2.2
+++ twa_freebsd.c	15 Jan 2005 01:33:56 -0000
@@ -261,15 +261,6 @@
 	sc->twa_bus_tag = rman_get_bustag(sc->twa_io_res);
 	sc->twa_bus_handle = rman_get_bushandle(sc->twa_io_res);
 
-	/* Initialize the driver for this controller. */
-	if ((error = twa_setup(sc))) {
-		twa_free(sc);
-		return(error);
-	}
-
-	/* Print some information about the controller and configuration. */
-	twa_describe_controller(sc);
-
 	/* Allocate and connect our interrupt. */
 	res_id = 0;
 	if ((sc->twa_irq_res = bus_alloc_resource(sc->twa_bus_dev, SYS_RES_IRQ,
@@ -286,6 +277,15 @@
 		return(ENXIO);
 	}
 
+	/* Initialize the driver for this controller. */
+	if ((error = twa_setup(sc))) {
+		twa_free(sc);
+		return(error);
+	}
+
+	/* Print some information about the controller and configuration. */
+	twa_describe_controller(sc);
+
 	/* Create the control device. */
 	sc->twa_ctrl_dev = make_dev(&twa_cdevsw, device_get_unit(sc->twa_bus_dev),
 					UID_ROOT, GID_OPERATOR, S_IRUSR | S_IWUSR,

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