From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: "Moore, Eric" <Eric.Moore@lsi.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 9/13] mpt2sas: T10 DIF Support - EEDP
Date: Wed, 15 Apr 2009 18:26:55 -0400 [thread overview]
Message-ID: <yq1ljq1y2mo.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <660360F4F2570145BD872F298951B17A76B5F1A5@cosmail03.lsi.com> (Eric Moore's message of "Wed, 15 Apr 2009 14:07:34 -0600")
>>>>> "Eric" == Moore, Eric <Eric.Moore@lsi.com> writes:
Eric,
Eric> The SAS controller firmware checks the tags, not device driver.
Eric> What this code is doing is setting flags in the SCSI_IO Request
Eric> message that is being sent to controller firmware.
Yeah, I figured that much. I guess it makes sense when you treat the
app tag as being constant (modulo the mask) for one request.
Eric> Obviously the only errors the current implementation will only be
Eric> flaged on READs.
Eric> My line of thinking was I write the code so it won't need to be
Eric> rewrote later when DIX support is added for SAS3.0.
Ok, that's fine then.
Eric> Yes, I was told by the LSI software test lab, they saw drives
Eric> returning check condition with these ref tag errors. I wasn't
Eric> able to repro that. What I saw were the IOCSTATUS errors, which
Eric> is what the code handles in _scsih_eedp_error_handling(). Either
Eric> way, both cases are covered right?
Yeah. With READ the difference is mostly academic.
>> If I understand correctly, your firmware only deals with the Type 2
>> usage model of the application tag. And Type 1 + 2 usage of the
>> reference tag.
Eric> Our controller firmware support all three types of protection..
So you can actually set the application tag (and reference tag) on a
per-sector basis for Type 1 and 3 provided the OS sends down 520-byte
sectors?
>> + scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC);
>>
>> Technically speaking that is only required for DIX exchange. But
>> setting it doesn't hurt.
Eric> I wasn't sure whether it needed to be set. Our controller
Eric> generates the CRC. I'm not sure whether firmware or hardware
Eric> implementation.
Given that it sounds like your next chip rev. will use the same driver
it should be ok to leave it in place.
--
Martin K. Petersen Oracle Linux Engineering
next prev parent reply other threads:[~2009-04-15 22:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 4:35 [PATCH 9/13] mpt2sas: T10 DIF Support - EEDP Eric Moore
2009-04-15 19:31 ` Martin K. Petersen
2009-04-15 20:07 ` Moore, Eric
2009-04-15 22:26 ` Martin K. Petersen [this message]
2009-04-15 22:53 ` Moore, Eric
2009-04-16 2:54 ` Martin K. Petersen
-- strict thread matches above, loose matches on Subject: below --
2009-04-16 16:45 Eric Moore
2009-04-17 0:49 ` Martin K. Petersen
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=yq1ljq1y2mo.fsf@sermon.lab.mkp.net \
--to=martin.petersen@oracle.com \
--cc=Eric.Moore@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