public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Liong Hoong <liongshliongsh@yahoo.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: sg_io_hrd_t - host_status error (0x05)
Date: Sat, 24 Apr 2004 13:47:52 +1000	[thread overview]
Message-ID: <4089E368.5040002@torque.net> (raw)
In-Reply-To: <20040423031108.68982.qmail@web40001.mail.yahoo.com>

Liong Hoong wrote:
> Hi all,
> 
> I have set up the main control structure for the
> version 3 SCSI generic driver. I am trying to send
> down some opcodes (vendor specific) to a usb mass
> storage device. Found that I encountered host_status
> error, SG_ERR_DID_ABORT whenever I send opcodes from
> 0x80 to 0x9f, but encountered no errors with other
> opcodes. 
> 
> The errors occured even without the device plugged in,
> which seem the sg driver has exclusively blocked the
> opcodes from 0x80 to 0x9f. Is it true?? Is there any
> work around for this??
> 
> Is it because of Group 4 (0x80 to 0x9f) need 16 bytes
> of cdb length? But even I prepare the cdb of 16 bytes,
> it also failed. 
> 
> I am using red hat 8.0, 2.4.18. 

The scsi subsystem mid level allowed 16 byte cdbs through
from and including lk 2.4.15 . The sg driver allows them
through. That leaves the usb-storage driver (and drivers
further down the USB stack) and the device itself as the
cause of your problem.

Doug Gilbert


  reply	other threads:[~2004-04-24  3:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-23  3:11 sg_io_hrd_t - host_status error (0x05) Liong Hoong
2004-04-24  3:47 ` Douglas Gilbert [this message]
2004-04-27  3:43   ` Liong Hoong
2004-04-30  7:12     ` Liong Hoong
2004-05-01  1:53       ` Douglas Gilbert
2004-05-07  4:25         ` Liong Hoong

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=4089E368.5040002@torque.net \
    --to=dougg@torque.net \
    --cc=linux-scsi@vger.kernel.org \
    --cc=liongshliongsh@yahoo.com \
    /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