* Re: [PATCH v2] block: ratelimite pr_err on IO path
[not found] ` <CAMGffEkaTLLEs+i-EWUmo-Y8KSNBeyth63L1hXxP++PBcPPXbg@mail.gmail.com>
@ 2018-04-13 16:59 ` Martin K. Petersen
2018-04-16 8:16 ` Jinpu Wang
0 siblings, 1 reply; 3+ messages in thread
From: Martin K. Petersen @ 2018-04-13 16:59 UTC (permalink / raw)
To: Jinpu Wang
Cc: Martin K. Petersen, Jens Axboe, linux-block, linux-kernel,
Elliott, Robert (Persistent Memory), Sreekanth Reddy,
Suganath Prabu Subramani, Chaitra P B, linux-scsi
Jinpu,
[CC:ed the mpt3sas maintainers]
The ratelimit patch is just an attempt to treat the symptom, not the
cause.
> Thanks for asking, we updated mpt3sas driver which enables DIX support
> (prot_mask=0x7f), all disks are SATA SSDs, no DIF support.
> After reboot, kernel reports the IO errors from all the drives behind
> HBA, seems for almost every read IO, which turns the system unusable:
> [ 13.079375] sda: ref tag error at location 0 (rcvd 143196159)
> [ 13.079989] sda: ref tag error at location 937702912 (rcvd 143196159)
> [ 13.080233] sda: ref tag error at location 937703072 (rcvd 143196159)
> [ 13.080407] sda: ref tag error at location 0 (rcvd 143196159)
> [ 13.080594] sda: ref tag error at location 8 (rcvd 143196159)
That sounds like a bug in the mpt3sas driver or firmware. I guess the
HBA could conceivably be operating a SATA device as DIX Type 0 and strip
the PI on the drive side. But that doesn't seem to be a particularly
useful mode of operation.
Jinpu: Which firmware are you running? Also, please send us the output
of:
sg_readcap -l /dev/sda
sg_inq -x /dev/sda
sg_vpd /dev/sda
Broadcom: How is DIX supposed to work for SATA drives behind an mpt3sas
controller?
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] block: ratelimite pr_err on IO path
2018-04-13 16:59 ` [PATCH v2] block: ratelimite pr_err on IO path Martin K. Petersen
@ 2018-04-16 8:16 ` Jinpu Wang
2018-04-16 9:06 ` Sreekanth Reddy
0 siblings, 1 reply; 3+ messages in thread
From: Jinpu Wang @ 2018-04-16 8:16 UTC (permalink / raw)
To: Martin K. Petersen
Cc: Jens Axboe, linux-block, linux-kernel,
Elliott, Robert (Persistent Memory), Sreekanth Reddy,
Suganath Prabu Subramani, Chaitra P B, linux-scsi
On Fri, Apr 13, 2018 at 6:59 PM, Martin K. Petersen
<martin.petersen@oracle.com> wrote:
>
> Jinpu,
>
> [CC:ed the mpt3sas maintainers]
>
> The ratelimit patch is just an attempt to treat the symptom, not the
> cause.
Agree. If we can fix the root cause, it will be great.
>
>> Thanks for asking, we updated mpt3sas driver which enables DIX support
>> (prot_mask=0x7f), all disks are SATA SSDs, no DIF support.
>> After reboot, kernel reports the IO errors from all the drives behind
>> HBA, seems for almost every read IO, which turns the system unusable:
>> [ 13.079375] sda: ref tag error at location 0 (rcvd 143196159)
>> [ 13.079989] sda: ref tag error at location 937702912 (rcvd 143196159)
>> [ 13.080233] sda: ref tag error at location 937703072 (rcvd 143196159)
>> [ 13.080407] sda: ref tag error at location 0 (rcvd 143196159)
>> [ 13.080594] sda: ref tag error at location 8 (rcvd 143196159)
>
> That sounds like a bug in the mpt3sas driver or firmware. I guess the
> HBA could conceivably be operating a SATA device as DIX Type 0 and strip
> the PI on the drive side. But that doesn't seem to be a particularly
> useful mode of operation.
>
> Jinpu: Which firmware are you running? Also, please send us the output
> of:
>
> sg_readcap -l /dev/sda
> sg_inq -x /dev/sda
> sg_vpd /dev/sda
>
Disks are INTEL SSDSC2BX48, directly attached to HBA.
LSISAS3008: FWVersion(13.00.00.00), ChipRevision(0x02), BiosVersion(08.11.00.00)
mpt3sas_cm2: Protocol=(Initiator,Target),
Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set
Full,NCQ)
jwang@x:~$ sudo sg_vpd /dev/sdz
Supported VPD pages VPD page:
Supported VPD pages [sv]
Unit serial number [sn]
Device identification [di]
Mode page policy [mpp]
ATA information (SAT) [ai]
Block limits (SBC) [bl]
Block device characteristics (SBC) [bdc]
Logical block provisioning (SBC) [lbpv]
jwang@x:~$ sudo sg_inq -x /dev/sdz
VPD INQUIRY: extended INQUIRY data page
inquiry: field in cdb illegal (page not supported)
jwang@x:~$ sudo sg_readcap -l /dev/sdz
Read Capacity results:
Protection: prot_en=0, p_type=0, p_i_exponent=0
Logical block provisioning: lbpme=1, lbprz=1
Last logical block address=937703087 (0x37e436af), Number of
logical blocks=937703088
Logical block length=512 bytes
Logical blocks per physical block exponent=3 [so physical block
length=4096 bytes]
Lowest aligned logical block address=0
Hence:
Device size: 480103981056 bytes, 457862.8 MiB, 480.10 GB
> Broadcom: How is DIX supposed to work for SATA drives behind an mpt3sas
> controller?
>
> --
> Martin K. Petersen Oracle Linux Engineering
Thanks!
--
Jack Wang
Linux Kernel Developer
ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] block: ratelimite pr_err on IO path
2018-04-16 8:16 ` Jinpu Wang
@ 2018-04-16 9:06 ` Sreekanth Reddy
0 siblings, 0 replies; 3+ messages in thread
From: Sreekanth Reddy @ 2018-04-16 9:06 UTC (permalink / raw)
To: Jinpu Wang
Cc: Martin K. Petersen, Jens Axboe, linux-block, linux-kernel,
Elliott, Robert (Persistent Memory), Suganath Prabu Subramani,
Chaitra P B, linux-scsi
On Mon, Apr 16, 2018 at 1:46 PM, Jinpu Wang <jinpu.wang@profitbricks.com> wrote:
> On Fri, Apr 13, 2018 at 6:59 PM, Martin K. Petersen
> <martin.petersen@oracle.com> wrote:
>>
>> Jinpu,
>>
>> [CC:ed the mpt3sas maintainers]
>>
>> The ratelimit patch is just an attempt to treat the symptom, not the
>> cause.
> Agree. If we can fix the root cause, it will be great.
>>
>>> Thanks for asking, we updated mpt3sas driver which enables DIX support
>>> (prot_mask=0x7f), all disks are SATA SSDs, no DIF support.
>>> After reboot, kernel reports the IO errors from all the drives behind
>>> HBA, seems for almost every read IO, which turns the system unusable:
>>> [ 13.079375] sda: ref tag error at location 0 (rcvd 143196159)
>>> [ 13.079989] sda: ref tag error at location 937702912 (rcvd 143196159)
>>> [ 13.080233] sda: ref tag error at location 937703072 (rcvd 143196159)
>>> [ 13.080407] sda: ref tag error at location 0 (rcvd 143196159)
>>> [ 13.080594] sda: ref tag error at location 8 (rcvd 143196159)
>>
>> That sounds like a bug in the mpt3sas driver or firmware. I guess the
>> HBA could conceivably be operating a SATA device as DIX Type 0 and strip
>> the PI on the drive side. But that doesn't seem to be a particularly
>> useful mode of operation.
>>
>> Jinpu: Which firmware are you running? Also, please send us the output
>> of:
>>
>> sg_readcap -l /dev/sda
>> sg_inq -x /dev/sda
>> sg_vpd /dev/sda
>>
> Disks are INTEL SSDSC2BX48, directly attached to HBA.
> LSISAS3008: FWVersion(13.00.00.00), ChipRevision(0x02), BiosVersion(08.11.00.00)
> mpt3sas_cm2: Protocol=(Initiator,Target),
> Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set
> Full,NCQ)
>
> jwang@x:~$ sudo sg_vpd /dev/sdz
> Supported VPD pages VPD page:
> Supported VPD pages [sv]
> Unit serial number [sn]
> Device identification [di]
> Mode page policy [mpp]
> ATA information (SAT) [ai]
> Block limits (SBC) [bl]
> Block device characteristics (SBC) [bdc]
> Logical block provisioning (SBC) [lbpv]
> jwang@x:~$ sudo sg_inq -x /dev/sdz
> VPD INQUIRY: extended INQUIRY data page
> inquiry: field in cdb illegal (page not supported)
> jwang@x:~$ sudo sg_readcap -l /dev/sdz
> Read Capacity results:
> Protection: prot_en=0, p_type=0, p_i_exponent=0
> Logical block provisioning: lbpme=1, lbprz=1
> Last logical block address=937703087 (0x37e436af), Number of
> logical blocks=937703088
> Logical block length=512 bytes
> Logical blocks per physical block exponent=3 [so physical block
> length=4096 bytes]
> Lowest aligned logical block address=0
> Hence:
> Device size: 480103981056 bytes, 457862.8 MiB, 480.10 GB
>
>
>> Broadcom: How is DIX supposed to work for SATA drives behind an mpt3sas
>> controller?
[Sreekanth] Current Upstream mpt3sas driver doesn't have DIX support
capabilities,
it supports only DIF feature.
Thanks,
Sreekanth
>>
>> --
>> Martin K. Petersen Oracle Linux Engineering
>
>
> Thanks!
>
> --
> Jack Wang
> Linux Kernel Developer
>
> ProfitBricks GmbH
> Greifswalder Str. 207
> D - 10405 Berlin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-16 9:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1523524915-25170-1-git-send-email-jinpu.wangl@profitbricks.com>
[not found] ` <yq1y3hsunnt.fsf@oracle.com>
[not found] ` <CAMGffEkaTLLEs+i-EWUmo-Y8KSNBeyth63L1hXxP++PBcPPXbg@mail.gmail.com>
2018-04-13 16:59 ` [PATCH v2] block: ratelimite pr_err on IO path Martin K. Petersen
2018-04-16 8:16 ` Jinpu Wang
2018-04-16 9:06 ` Sreekanth Reddy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).