public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-scsi@vger.kernel.org, Meelis Roos <mroos@linux.ee>
Subject: Re: Fw: 2.6.14: aic7xxx broken with blktool
Date: Fri, 28 Oct 2005 23:23:06 +1000	[thread overview]
Message-ID: <4362263A.1060009@torque.net> (raw)
In-Reply-To: <20051028040227.37dfef86.akpm@osdl.org>

Andrew Morton wrote:
> 
> Begin forwarded message:
> 
> Date: Fri, 28 Oct 2005 12:03:12 +0300 (EEST)
> From: Meelis Roos <mroos@linux.ee>
> To: Linux Kernel list <linux-kernel@vger.kernel.org>
> Subject: 2.6.14: aic7xxx broken with blktool
> 
> 
> I'm using blktool to find info about installed disks. With Debian's 
> 2.6.8, "blktool /dev/sda id" worked fine. With 2.6.14 it's broken (see 
> below). Adaptec 2940UW with a 4.5G Quantum Viking II disk.
> 
> It outputs random data from memory as a response to the scsi command, 
> different recent strings different times.
> 
> Otherwise the disk works OK.
> 
> blktools is from Debian Sarge, package version 4-2, and works fine with 
> 2.6.8-2-686-smp kernel from Debian.

As the log indicated, a command was aborted, possibly the
INQUIRY. blktool (version 4.2) doesn't seem to do any SG_IO
error processing, so if an error was returned then it
would not have known and just assumed the INQUIRY response
buffer had been filled. sdparm is a little more rigorous
in the error checking area and it has been burnt by the
block layer SG_IO yielding a false positive. So I now
prefill the INQUIRY response buffer with 0x7f in buf[0]
and zero in the rest.

My guess is that the kernel problem is with the aic7xxx
driver in lk 2.6.14 .


While glancing at blktool scsi.c (version 4.2) I was
surprised by the brevity of handle_scsi_wcache() which
implements "wcache on|off" for SCSI disks. It ain't
that simple and a test indicated that version doesn't
work.

Doug Gilbert

  reply	other threads:[~2005-10-28 13:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-28 11:02 Fw: 2.6.14: aic7xxx broken with blktool Andrew Morton
2005-10-28 13:23 ` Douglas Gilbert [this message]
2005-10-28 15:21 ` James Bottomley
2005-10-28 18:52   ` Meelis Roos
2005-10-29  0:44     ` Douglas Gilbert
2005-10-29 10:17       ` Meelis Roos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4362263A.1060009@torque.net \
    --to=dougg@torque.net \
    --cc=akpm@osdl.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mroos@linux.ee \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox