Received: by 10.192.165.156 with SMTP id m28csp472783imm; Mon, 16 Apr 2018 03:36:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/uQcNTKm1eNrmqvMJtGb1mOCG51hdtHvQfFysz7l/30oEXv/FXH+7cM0ouh6L6axc6Qtup X-Received: by 2002:a17:902:6689:: with SMTP id e9-v6mr15139430plk.176.1523874964793; Mon, 16 Apr 2018 03:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523874964; cv=none; d=google.com; s=arc-20160816; b=gh/eiTTm1kjvqAd928VQ0WvKHvPB5Tk60pQy9ug9oVOnRKQnFs038tyqwZRlFG53Ya YJnr9J+A+96J1VDQfYySrOlbeMyZoWK0Rg9TYsChfHglQhsI2bJTyZn19yQFiWCGoCCD 4RDPM5/A1pifz3Veik6sW0MLD3we+7aBdywd8gRHLHj2uvKWxZbQBF3DakSri63yWcMq a+/1FNOKUbFHMnXR3gjRUPHkvCwbVByNRbFjU1gi2PUM5qLGe1VBBXDDd2BUrJgJImZa c8M5kcmoNvjn6kPBHF91uPTJJuYq457yh/7S39RMjj9htKs9fnlz/IJK2Ej60Pce0vt0 nqNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=cSZ6g7veftfEZdp3iYHCYU7Tx9XGXRl6SLUVH+63ldw=; b=CcYbYSbWUpfQqubXUiDkkibpcI6QL0hNBo3KELZNDSBrmr0cmAZjQdOKTO8lhUymKN 9SA1jPIalPQYDZfRPzo9IQt0nn2gT+Sm99xDufor3R7efBNJ8qn1iwX4qOyS1NACTLhK J75JWPbBJG4HfG53eGVLV/FsuHM/+8qg5xtzjD9DKKrLowzCInaQrK7geFSpQAeUIwNZ VTWNEoAsxiLwXs4XVWm0txpEF9bPPS/+lxt2BjPm5JKHLf4ktmK0/+59gTZg91xexPHo pgb0TIKePatn8Jm8vXILQ87nz5blU2fS+UqunpfB2xEKBHaQBbQfluD0P6YrlfeMGNXV D3Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@profitbricks-com.20150623.gappssmtp.com header.s=20150623 header.b=t3BufGny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w63si5890264pgd.32.2018.04.16.03.35.50; Mon, 16 Apr 2018 03:36:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@profitbricks-com.20150623.gappssmtp.com header.s=20150623 header.b=t3BufGny; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753894AbeDPIQc (ORCPT + 99 others); Mon, 16 Apr 2018 04:16:32 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43265 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753813AbeDPIQ3 (ORCPT ); Mon, 16 Apr 2018 04:16:29 -0400 Received: by mail-wr0-f194.google.com with SMTP id y7so23306592wrh.10 for ; Mon, 16 Apr 2018 01:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profitbricks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cSZ6g7veftfEZdp3iYHCYU7Tx9XGXRl6SLUVH+63ldw=; b=t3BufGnykfzpBPZHY3OxwiHQRIPMZwLwrATLEzeE13sghGeeq54gq9rcTHJaHMPm2V vQthDjb9lTtGRiyd9i59F2Y+NK501fJkw/bcPA0lkAuHiLxWaACC3lTE10BfHmXnKlhR Glg2YiuE6q9WOMLqFfqBppS2nP+Q7O/8/lqVOb76inSepRt2vsdEC+NWJPmJ66Mo38nl hbAAR/ayB0CSIm4x1qx7jbMa8PiS0dahHcdoA10siCFa7l855T84HPj8HcaoWEFH9Ig3 lLSuIiHgVtMnLIU2rhTDnnk66EM8xtKSLX7UX94w47+wqDAzSMWnNTmEmj43rbAmd32k W2ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cSZ6g7veftfEZdp3iYHCYU7Tx9XGXRl6SLUVH+63ldw=; b=N50OqiYf6sPU6jGmEvpziElF9TOnETwFdBppqDQJITTeMANnaVxibKjgw0uYT+I6v4 Vjhl6s6XGpe2B+47OojAUHrLbU8FY0O5WYRnqQXI35uiHp4k6LFSiShfoo68Q9yLWYNS n22ABjtHUkMEctXxJc01vCtF/GtGfDfOuWaSbM5fmGd9zRkvHudOawzJHR44yHiVVVzo Z+WxrT4BLlIQWfdcqNhS49zhxcCe4RiU0GjzWXbFBwWZI+sAnXgZmQm0LnNfX8CKlYQm 92joBNcqSei32OgwM4zbvreqUh0lxMrsG10wfMPRiBE/imwKA9WKrsRbR61dEkuUs2mZ DFQg== X-Gm-Message-State: ALQs6tBu/BI5OrIP2FrQiMLULV5QqdWrxfcR7Joqc2/+s0xZqAvI0USU 7QCzQx3BjTG3WHDviHsz2E5sNFpSQKzA4FeOeF9G8w== X-Received: by 10.28.50.197 with SMTP id y188mr10181271wmy.29.1523866588561; Mon, 16 Apr 2018 01:16:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.125.4 with HTTP; Mon, 16 Apr 2018 01:16:07 -0700 (PDT) In-Reply-To: References: <1523524915-25170-1-git-send-email-jinpu.wangl@profitbricks.com> From: Jinpu Wang Date: Mon, 16 Apr 2018 10:16:07 +0200 Message-ID: Subject: Re: [PATCH v2] block: ratelimite pr_err on IO path To: "Martin K. Petersen" Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, "Elliott, Robert (Persistent Memory)" , Sreekanth Reddy , Suganath Prabu Subramani , Chaitra P B , linux-scsi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 13, 2018 at 6:59 PM, Martin K. Petersen 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