From owner-freebsd-stable Wed Mar 21 18:24:11 2001 Delivered-To: freebsd-stable@freebsd.org Received: from agena.meridian-enviro.com (thunder.meridian-enviro.com [207.109.234.227]) by hub.freebsd.org (Postfix) with ESMTP id 3B15F37B71E; Wed, 21 Mar 2001 18:24:05 -0800 (PST) (envelope-from rand@meridian-enviro.com) Received: from localhost.meridian-enviro.com (kfarms.meridian-enviro.com [10.10.10.20]) by agena.meridian-enviro.com (8.11.1/8.9.3) with ESMTP id f2M2O2Q63800; Wed, 21 Mar 2001 20:24:02 -0600 (CST) (envelope-from rand@meridian-enviro.com) Date: Wed, 21 Mar 2001 20:24:01 -0600 Message-ID: <878zly5yny.wl@localhost.meridian-enviro.com> From: rand@meridian-enviro.com To: Mike Smith Cc: rand@meridian-enviro.com, freebsd-stable@FreeBSD.ORG, Mike Tancsa , bryanh@meridian-enviro.com Subject: Re: 3ware problems In-Reply-To: <200103220121.f2M1KwE00867@mass.dis.org> References: <87u24m7kc0.wl@delta.meridian-enviro.com> <200103220121.f2M1KwE00867@mass.dis.org> User-Agent: Wanderlust/2.5.8 (Smooth) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) X-Face: $L%T~#'9fAQ])o]A][d7EH`V;"_;2K;TEPQB=v]rDf_2s% Er. This is bad; tr_status == 2 means that the command has been Mike> completed; it shouldn't still be on the busy queue. Can you Mike> check to make sure you have the right queue here? Well, it looks like I had the wrong queue before. Blush. At least this time tr_status is 1. Not sure if that is good or bad though! :) Here is the debug output: db> call twe_printqueues twe0: status 57007310 twe0: current max twe0: free 0099 0100 twe0: ready 0000 0000 twe0: busy 0001 0100 twe0: complete 0000 0009 twe0: bioq 0000 0021 twe0: AEN queue head 1 tail 0 ready queue: 0 entries busy queue: 1 entries twe0: CMD: request_id 54 opcode size 11 unit 0 host_id 0 twe0: status 0 flags 0x0 count 32 sgl_offset 3 twe0: lba 177770466 twe0: 0: 0xffc4000/4096 twe0: 1: 0x11f85000/4096 twe0: 2: 0x12d66000/4096 twe0: 3: 0x10e87000/4096 twe0: tr_command 0xc1520400/0x174f4400 tr_data 0xce0f4000/0xffc4000,16384 twe0: tr_status 1 tr_flags 0x2 tr_complete 0xc011f1b0 tr_private 0xc9260400 complete queue: 0 entries This was generated with the code: void twe_printqueues(void) { struct twe_softc *sc; struct twe_request *tr = NULL; int i, s; s = splbio(); for (i = 0; (sc = devclass_get_softc(twe_devclass, i)) != NULL; i++) { twe_print_controller(sc); printf("ready queue: %d entries\n", sc->twe_qstat[TWEQ_READY].q_length); TAILQ_FOREACH(tr, sc->twe_ready, tr_link) twe_print_request(tr); printf("busy queue: %d entries\n", sc->twe_qstat[TWEQ_BUSY].q_length); TAILQ_FOREACH(tr, sc->twe_busy, tr_link) twe_print_request(tr); printf("complete queue: %d entries\n", sc->twe_qstat[TWEQ_COMPLETE].q_length); TAILQ_FOREACH(tr, sc->twe_complete, tr_link) twe_print_request(tr); } splx(s); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message