public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <mikenc@us.ibm.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: James Daniel <jdaniel@dakotacom.net>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: Initio 9100u -- Mike Christie's 2.6.0-test11 Patch -- Kernel Errors
Date: Wed, 17 Dec 2003 23:00:23 -0800	[thread overview]
Message-ID: <3FE15087.6090009@us.ibm.com> (raw)
In-Reply-To: <1071671058.10878.5.camel@mulgrave>


>>It then goes on to ID the drive correctly, and loads the sd driver, which
>>again IDs the drive correctly.. and we get:
>>
>>SCSI device  sda: 17783240 512-byte hdwr sectors (9105 MB)
>>SCSI device sda: drive cache: write back
>>/dev/scsi/host0/bus0/target1/lun0: unknown partition table
>>Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
> 
> 
> This one's really strange, because clearly the INQUIRY and the
> READ_CAPACITY both succeeded and returned apparently good values.  The
> READ10 to the DOS parition sector has failed (with no errors).
> 
> The only difference is that the READ10 is generated in the partition
> code (via read_dev_sector), so it will be a sg read (probably with
> scsi_device->use_sg set to 1)...I'm travelling today, so if Mike hasn't
> found the problem by the tomorrow, I'll take a look.
> 

For use_sg == 1 the driver was doing this:

-		if (SCpnt->use_sg == 1) {	/* If only one entry in the list *//* 
treat it as regular I/O */
-			pSCB->SCB_BufPtr = (U32) VIRT_TO_BUS(pSrbSG->address);
-			TotalLen = pSrbSG->length;
-			pSCB->SCB_SGLen = 0;

but I had changed it to do sg io instead not knowing why it needed to 
treat it is as regular I/O. I will send a new patch in the next mail.

mike



  reply	other threads:[~2003-12-18  7:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17  9:05 Initio 9100u -- Mike Christie's 2.6.0-test11 Patch -- Kernel Errors James Daniel
2003-12-17 14:24 ` James Bottomley
2003-12-18  7:00   ` Mike Christie [this message]
2003-12-18  9:45     ` Mike Christie
2003-12-19  2:14       ` James Daniel
2003-12-19  9:26         ` Mike Christie
2003-12-19 11:15           ` Mike Christie
2003-12-21 11:09             ` [FIXED] Initio 9100u -- It lives James Daniel
2003-12-21 15:46             ` Initio 9100u -- Mike Christie's 2.6.0-test11 Patch -- Kernel Errors James Bottomley
2003-12-22 23:42               ` Mike Christie

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=3FE15087.6090009@us.ibm.com \
    --to=mikenc@us.ibm.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=jdaniel@dakotacom.net \
    --cc=linux-scsi@vger.kernel.org \
    /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