Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2001 17:11:42 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: Another problem with the new CAM error handling
Message-ID:  <20010507171142.A3692@panzer.kdm.org>
In-Reply-To: <200105070451.f474pfN11471@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Mon, May 07, 2001 at 06:51:41AM %2B0200
References:  <20010426110542.A50185@uriah.heep.sax.de> <200104261435.f3QEZLs23573@aslan.scsiguy.com> <20010426190714.E50185@uriah.heep.sax.de> <20010428231227.A37369@panzer.kdm.org> <200105060912.f469CnU07813@uriah.heep.sax.de> <20010506115718.B94763@panzer.kdm.org> <200105070451.f474pfN11471@uriah.heep.sax.de>

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

--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, May 07, 2001 at 06:51:41 +0200, J Wunsch wrote:
> "Kenneth D. Merry" <ken@kdm.org> wrote:
> 
> > It is an exceptional condition, though.  We expect unit attentions
> > on boot, and after a bus reset, but not in the course of normal
> > operation.  So it's probably good to notify the user, in case they
> > didn't know someone powered their device off and back on again.
> 
> Argument accepted. ;-)
> 
> However :), the old SCSI code was IMHO a little more detailed here.
> IIRC, it said: ``Unit attention.  Power on, bus device reset or bus
> reset occurred.''  For someone who's knowledgable in SCSIland, that's
> quite self-understanding, but the innocent user who just knows where
> the power button is probably can't handle the term `unit attention'.

Hmm, the new code should be printing out the asc/ascq description if the
asc and ascq are non-zero.  As far as that goes, it's the same as the old
code.  Try the attached patch and see if you get any additional printouts.

> Actually, a lot of the SCSI terminology seems to have been created by
> strange people...  And at least here on the German newsgroups, we get
> sorrowful inquiries even about obvious messages.
> 
> I don't want to have changed something immediately, but ``if it fits
> again'', maybe we could rearrange this or that.

Well, I'm curious to see why you're only getting back unit attention
instead of the full sense information.  That seems kinda odd.

You might also try powering the device off and back on again and then see
what camcontrol reports via 'camcontrol tur pt0 -v'.  (It should be the
same as the kernel, since the code is the same.)

Ken
-- 
Kenneth Merry
ken@kdm.org

--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="scsi_all.c.20010507"

==== //depot/FreeBSD-ken/src/sys/cam/scsi/scsi_all.c#10 - /usr/home/ken/perforce/FreeBSD-ken/src/sys/cam/scsi/scsi_all.c ====
*** /tmp/tmp.855.0	Mon May  7 17:07:16 2001
--- /usr/home/ken/perforce/FreeBSD-ken/src/sys/cam/scsi/scsi_all.c	Mon May  7 17:06:57 2001
***************
*** 2009,2018 ****
  			}
  		}
  
! 		if (asc || ascq) {
! 			sbuf_printf(sb, " asc:%x,%x\n%s%s", asc, ascq, 
! 				    path_str, asc_desc);
! 		}
  
  		if (sense->extra_len >= 7 && sense->fru) {
  			sbuf_printf(sb, " field replaceable unit: %x", 
--- 2009,2016 ----
  			}
  		}
  
! 		sbuf_printf(sb, " asc:%x,%x\n%s%s", asc, ascq, 
! 			    path_str, asc_desc);
  
  		if (sense->extra_len >= 7 && sense->fru) {
  			sbuf_printf(sb, " field replaceable unit: %x", 

--OgqxwSJOaUobr8KG--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




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