login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
22
Re: New 2.6.24.2 SG_IO SCSI problems
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Mark Hounschell
Subject:
Re: New 2.6.24.2 SG_IO SCSI problems
Date: Friday, February 22, 2008 - 3:03 am
Mark Hounschell wrote:
quoted text
> James Bottomley wrote: >> On Thu, 2008-02-21 at 10:15 -0500, Mark Hounschell wrote: >>> I seem to have run into some sort of regression in the SG_IO interface of 2.6.24.2. >>> I have an application that up until 2.6.24 worked fine. The 2.6.23.16 kernel works fine. >>> >>> During reads I get these kernel messages. Writes and other functions _seem_ OK. Actually basic >>> reads are working. Its with large BC reads using an io_vec list that the problem shows up. >>> >>> Feb 21 09:27:51 harley kernel: (scsi1:A:2:0): data overrun detected in Data-in phase. Tag == 0x1. >>> Feb 21 09:27:51 harley kernel: (scsi1:A:2:0): Have seen Data Phase. Length = 256. NumSGs = 1. >>> Feb 21 09:27:51 harley kernel: sg[0] - Addr 0x06256100 : Length 256 >> Help me a little here. What was the io_vec and command you sent in to >> produce this? The aic debugging information implies a single element sg >> list for a 256 byte read. >> >> James >> >> >> > > Well, I did no 256 byte xfer at all. My failing io_vec list has 6 elements. > The first 5 are for byte counts of 0xfffc and the last 0x6114. See below. > > This is some debug info from within my app of the commands leading up the failure: > If you need actual values of the io_vec lists I will need to add some additional debug > info into the app. I will do if needed. > > The disk BTW is formated at 768 byte sector size. > > The first read has a 2 element io_vec list and reports no error: > ScsiDev_thread_7e00: Read CBD = 0x08 0x00 0x00 0x00 0x01 0x00 > ScsiDev_thread_7e00: Read1(1) bc = 0x0078 addr = 0x000000 Skip 0 > ScsiDev_thread_7e00: Read(2) bc = 0x0288 addr = 0xb6cea368 Skip 1 > ScsiDev_thread_7e00: SRead DC ops = 2 short_bc = 288 > > The second read has a 4 element io_vec list and reports no error: > ScsiDev_thread_7e00: Read CBD = 0x08 0x00 0x00 0x00 0x05 0x00 > ScsiDev_thread_7e00: Read1(1) bc = 0x0780 addr = 0x000000 Skip 0 > ScsiDev_thread_7e00: Read1(2) bc = 0x0670 addr = 0x000000 Skip 1 > ScsiDev_thread_7e00: Read1(3) bc = 0x003c addr = 0x000200 Skip 0 > ScsiDev_thread_7e00: SRead(4) bc = 0x022c addr = 0xb6cea368 Skip 1 > ScsiDev_thread_7e00: Read DC ops = 4 short_bc = 22c > > There is a seek here that reports no error: > ScsiDev_thread_7e00: Seek address 2752 BPS 768 > > > This read has a 6 element io_vec list and reports the error to the app: > ScsiDev_thread_7e00: ReadX CBD = 0x28 0x00 0x00 0x00 0x27 0x52 0x00 0x01 0xcb 0x00 > ScsiDev_thread_7e00: Read1(1) bc = 0xfffc addr = 0x000784 Skip 0 > ScsiDev_thread_7e00: Read1(2) bc = 0xfffc addr = 0x010780 Skip 0 > ScsiDev_thread_7e00: Read1(3) bc = 0xfffc addr = 0x02077c Skip 0 > ScsiDev_thread_7e00: Read1(4) bc = 0xfffc addr = 0x030778 Skip 0 > ScsiDev_thread_7e00: Read1(5) bc = 0xfffc addr = 0x040774 Skip 0 > ScsiDev_thread_7e00: Read1(6) bc = 0x6114 addr = 0x050770 Skip 0 > ScsiDev_thread_7e00: Read DC ops = 6 short_bc = 0 > > ScsiDev_thread_7e00: scsi = 0x0 msg 0x0 host = 0x00000007 driver = 0x00000000 > ScsiDev_thread_7e00: Read error: sns = 0x00 residual = 0x0000 > ScsiDev_thread_7e00: Posting IPL status 0x00000090 0x000e0000 for Suba 0000 to loc 0x000000 > ScsiDev_thread_7e00: Sleeping!! > > > Below is the complete dump of kernel messages for the above. I assume they are > a result of the last failing read but there is an awfull lot there just for that 6 element > io_vec list. Sorry to put all this in there but wanted to you to get the idea. > > > Feb 21 10:51:03 harley kernel: (scsi1:A:2:0): data overrun detected in Data-in phase. Tag == 0x1. > Feb 21 10:51:03 harley kernel: (scsi1:A:2:0): Have seen Data Phase. Length = 256. NumSGs = 1. > Feb 21 10:51:03 harley kernel: sg[0] - Addr 0x03252e100 : Length 256
. . Snip .
quoted text
> Feb 21 10:51:49 harley kernel: (scsi1:A:2:0): data overrun detected in Data-in phase. Tag == 0x1. > Feb 21 10:51:49 harley kernel: (scsi1:A:2:0): Have seen Data Phase. Length = 256. NumSGs = 1. > Feb 21 10:51:49 harley kernel: sg[0] - Addr 0x0f156100 : Length 256 > > Again, sorry for all that. >
FWIW, on a different machine doing the same thing I get only a single kernel message and NOT the tons shown above. Regards Mark --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Thu Feb 21, 8:15 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, James Bottomley
, (Thu Feb 21, 8:41 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Thu Feb 21, 9:21 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Fri Feb 22, 3:03 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mike Christie
, (Fri Feb 22, 9:50 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mike Christie
, (Fri Feb 22, 9:59 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Fri Feb 22, 10:56 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Fri Feb 22, 2:38 pm)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mike Christie
, (Fri Feb 22, 3:25 pm)
Re: New 2.6.24.2 SG_IO SCSI problems
, Tony Battersby
, (Fri Feb 22, 3:48 pm)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Sat Feb 23, 4:16 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Wed Mar 5, 4:58 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, James Bottomley
, (Wed Mar 5, 8:44 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mark Hounschell
, (Wed Mar 5, 9:28 am)
Re: New 2.6.24.2 SG_IO SCSI problems
, Mike Christie
, (Wed Mar 5, 10:13 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Greg Kroah-Hartman
[PATCH 09/36] driver core: register_memory/unregister_memory clean ups and bugfix
Pierre Ossman
Re: sdio: enhance IO_RW_EXTENDED support
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Johannes Schindelin
Re: error: cannot lock ref 'refs/remotes/origin/*'
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Jonathan Nieder
Re: [PATCH v2] git-send-email.perl: fix In-Reply-To for second and subsequent patc...
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
openbsd-misc
:
Stas Miasnikou
Re: Another question: device naming convention
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Community First Financial
Teacher A+ Loan
Jan Stary
Re: audio recording levels
Andrej Elizarov
Re: Web Browsers
Colocation donated by:
Syndicate