From patchwork Wed Jul 10 05:20:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanley Chu X-Patchwork-Id: 11037881 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7F59013BD for ; Wed, 10 Jul 2019 05:22:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7015D28837 for ; Wed, 10 Jul 2019 05:22:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63D48288DA; Wed, 10 Jul 2019 05:22:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1DC6528837 for ; Wed, 10 Jul 2019 05:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xI0t9WV8SOezxDbeoktXAdwyYdZwfpc596Nx9KMWNS4=; b=a9FzCKskF5VrxY J6MrwJELOk2fEgkBZ2QVVk/QZUX7WnWRU1ZVA+hw8cYZG3xGL4m91nPV1tAQsWByQJMk+xI1Ymuyt d2DgdXQqVSDdkYn+iE1suVQxrRJokhGCvl/IoLSNt01CNaVK6g/7eeEV7lYgRDzVUXjHADRi58F0x OvQVMazco4MyPvS5B34EpTagznLf2La+ed1Bzjs7JnKpMzlFiOorlbKKMvp2kgx/XlMrXzhg5Rvc6 JQdLa0AkRKNBg2AlwtYfYqmMfu28aSXWESq/Z5OgMRgIVvY02PxbZESKxpBwhI+r/ewM54gT10KRs P5Ph9xh+lyjYil33Zk8g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hl53K-00085B-Mj; Wed, 10 Jul 2019 05:22:02 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hl51y-0006zM-0E; Wed, 10 Jul 2019 05:20:40 +0000 X-UUID: 77e5222acb56488a9d6cfcc4c12e119e-20190709 X-UUID: 77e5222acb56488a9d6cfcc4c12e119e-20190709 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1154605883; Tue, 09 Jul 2019 21:20:21 -0800 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Jul 2019 22:20:20 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 10 Jul 2019 13:20:18 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 10 Jul 2019 13:20:18 +0800 From: Stanley Chu To: , , , , Subject: [PATCH v2 0/4] scsi: ufs: Provide fatal and auto-hibern8 error history Date: Wed, 10 Jul 2019 13:20:13 +0800 Message-ID: <1562736017-29461-1-git-send-email-stanley.chu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190709_222038_065150_5C7FB6C4 X-CRM114-Status: UNSURE ( 5.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sthumma@codeaurora.org, marc.w.gonzalez@free.fr, andy.teng@mediatek.com, chun-hung.wu@mediatek.com, kuohong.wang@mediatek.com, peter.wang@mediatek.com, evgreen@chromium.org, subhashj@codeaurora.org, linux-mediatek@lists.infradead.org, ygardi@codeaurora.org, matthias.bgg@gmail.com, Stanley Chu , linux-arm-kernel@lists.infradead.org, beanhuo@micron.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset provides more information of fatal errros and auto-hibern8 errors to improve debugging by keeping their error history as completed as possible. Thanks Avri so much for prompt reviewing patchset v1. I would like to post v2 to add one more patch "scsi: ufs: Add history of fatal events" to add history for "non-interrupt-based" errors as well, for example, - Link startup fail - Suspend fail - Resume fail - Task or request abort event Changes in v2: - Add new patch "scsi: ufs: Add history of fatal events". Stanley Chu (4): scsi: ufs: Change names related to error history scsi: ufs: Add fatal and auto-hibern8 error history scsi: ufs: Do not reset error history during host reset scsi: ufs: Add history of fatal events drivers/scsi/ufs/ufshcd.c | 87 +++++++++++++++++++++++---------------- drivers/scsi/ufs/ufshcd.h | 38 ++++++++++++----- 2 files changed, 80 insertions(+), 45 deletions(-)