From: Douglas Gilbert <dgilbert@interlog.com>
To: Matthew Curley <Matthewc@pivot3.com>
Cc: "kashyap.desai@lsi.com" <kashyap.desai@lsi.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: mpt2sas - SG_IO return truncated with cross page buffe
Date: Thu, 03 Mar 2011 12:43:56 -0500 [thread overview]
Message-ID: <4D6FD35C.6030703@interlog.com> (raw)
In-Reply-To: <A94BFDB17DC4E1478F7ACF6EBA3FD8234B3169A355@p3saturn.p3corpnet.pivot3.com>
On 11-03-03 11:52 AM, Matthew Curley wrote:
> Apologies to Kashyap on the resend, accidentally sent this the first time with HTML formatting.
>
> Description:
> If the user space buffer passed to the SG_IO command crosses the 4K page boundary and the return data is greater than the amount of buffer before that page boundary, the command output can be truncated at the end of the first page. Depending on the kernel version, additional error handling may occur at the driver.
>
> Configuration:
> The platform is a Dell PowerEdge R510 with 2 processors (from /proc/cpuinfo: 'Intel(R) Xeon(R) CPU E5620 @ 2.40GH')
> Initial discovery environment was a 2.6.32 pvops kernel using sdparm v0.96 on mpt2sas 06.00.00, where the SG_IO ioctl was retrieving VPD 0x80 output. The behavior has also been reproduced on Fedora Core 14, using 2.6.38-rc6 with mpt2sas version 07.100.0. The controller involved is an LSI 2008 with Dell Firmware. Running the test with 2.6.38-rc6, I also get a number of kernel errors starting with an mpt2sas fault state. That output is shown below, it includes firmware/chip revision/adapter BIOS versions and some information about the storage layout on the adapter.
Matthew,
You mention VPD page 0x80 (unit serial number) and later
page 0x89 (ATA information). Did you mean 0x89 in both cases
as page 0x80 is particularly short?
Doug Gilbert
P.S. Your lines at too long in my email reader.
> Additional info:
> Reproducing required disabling the PCI DMA Remapping support in the kernel. With this setting off the two pages in the command's scatter list were physically discontiguous every time I tried, and the problem occurs. With DMAR enabled the DMA addresses were always contiguous, and the problem behavior wasn't seen. I'm not sure about the stability/risks of enabling this experimental setting as a 'fix'.
>
> The only other LSI controller I have access to is a 1068--using a different driver stack of course--which does not appear to show the same behavior in limited testing.
>
> Appreciate any help or information. I have a simple debug utility that issues VPD 0x89 if that's useful, and of course will provide any other needed details. Please cc-me on replies.
next prev parent reply other threads:[~2011-03-03 17:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 16:52 mpt2sas - SG_IO return truncated with cross page buffe Matthew Curley
2011-03-03 17:43 ` Douglas Gilbert [this message]
2011-03-03 17:56 ` Matthew Curley
2011-03-08 10:33 ` Desai, Kashyap
2011-03-08 15:19 ` Matthew Curley
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=4D6FD35C.6030703@interlog.com \
--to=dgilbert@interlog.com \
--cc=Matthewc@pivot3.com \
--cc=kashyap.desai@lsi.com \
--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