Received: by 10.192.165.156 with SMTP id m28csp916232imm; Fri, 13 Apr 2018 10:01:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/X6GtXNmeY94clvyHmzCGHWhGNX11P+A92Hq+1RIJB0k6q8oDG31O36B3C2SO68uV0B0zu X-Received: by 10.98.62.150 with SMTP id y22mr12225401pfj.46.1523638871463; Fri, 13 Apr 2018 10:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523638871; cv=none; d=google.com; s=arc-20160816; b=LTvtMye9fSW0A+5aAZSNIKI7IDZIG70qSTPDuyC69a+LApI7yWKLBZzw0CH28+lwrm s3v+RSOamzAVDyCL/RH98YgcSO0r1vhCBXAta3WDC4ur3AsbSzbn17xWwfUKuZksX8k8 PPuJQDJH0+jpe05phJgEuHb/KukV8WLEPAEGQn+kP4nInovZE18wpJ3CGyFxQiURsLQj e4UFm3SpKeluP8EPMFXlJkXjUVNK4UPvWALg1vO9G7cB1NYvHjE+P0UBfHiBY29AthJE ws2rGtpPzlMhvMpLDsL/qOvsCd0ZTch0X8O7MFn/VbLTtX+QJFT126xFge0h5Z0kxLVy AM8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature:arc-authentication-results; bh=NEAHLGYl8m0lZ6B0VFCGOhiJ2Rbb6DjWxjVoPehBU7k=; b=wL/GLgfHssNG7iVbpmeuKKiECyonT5zULczvC8vnre1Ez869q0PVSOVFGlwy9GrFuM +e9ag1xMcqs6dAqv66CiTPf07UIlpC1m0U56C6gNMxxpLeyW4WHTKoXMwIA6x9uA8TId BtFi/+nVVwqUIYFVPd9e/3gjhJYc6FBv9elBH8P3jh3hxY/OZiN9AhNa1kJOKUjQvJh9 ea4jGFnaDfGbOH22p3+fntPqByF6tcP1AfrF8fuhjo9afmB9Fl4/BlRckHCkln2RNnPe kdgcTjK18WjFdKh5291cByGQ0EjRzlpuqXHwgb2cE5FvQsR98fHlyWsXlLFc3cspbGz6 f13w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=k/sUCAYg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si4257541pgd.102.2018.04.13.10.00.56; Fri, 13 Apr 2018 10:01:11 -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=@oracle.com header.s=corp-2017-10-26 header.b=k/sUCAYg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752125AbeDMQ7u (ORCPT + 99 others); Fri, 13 Apr 2018 12:59:50 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:58680 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbeDMQ7s (ORCPT ); Fri, 13 Apr 2018 12:59:48 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3DGuXWQ180084; Fri, 13 Apr 2018 16:59:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2017-10-26; bh=NEAHLGYl8m0lZ6B0VFCGOhiJ2Rbb6DjWxjVoPehBU7k=; b=k/sUCAYg1ZDNHRX5CWrnb/1m/iZyjInrcjtWgc4IHrOLr5vjuE9+2HfTE8vkuZKrslkv icLPQdoadeOlsr5oSXrWW3SnJnpwvEAd2EACuTnVYznZuwOITgzoKBNN4sxEnyVYVgAq 6evMkzXSanDuNOxFdimlYSE0NR1f1FJaf2AuhndjTlIgYIuOQl2/U4mEGsU/Vq6lEmTb egXstmcoLyqV14e5QVmni6b+U4Lzu8Hj0dRUbHyE38YxmBZbKmrEUrU9okHnQ/gtsmUH NMx475WNrdKwFPCDOq99XxMIsb1Q3iYM2tKwaoctKPJicP3hYNN8gv3Pnv2RcA4/3e8z ng== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2h6ne7t42p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Apr 2018 16:59:42 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3DGxgQc010573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Apr 2018 16:59:42 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w3DGxfC7016265; Fri, 13 Apr 2018 16:59:41 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 13 Apr 2018 09:59:41 -0700 To: Jinpu Wang Cc: "Martin K. Petersen" , 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 Subject: Re: [PATCH v2] block: ratelimite pr_err on IO path From: "Martin K. Petersen" Organization: Oracle Corporation References: <1523524915-25170-1-git-send-email-jinpu.wangl@profitbricks.com> Date: Fri, 13 Apr 2018 12:59:38 -0400 In-Reply-To: (Jinpu Wang's message of "Fri, 13 Apr 2018 10:37:25 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8861 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=651 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804130156 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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