Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4030090pxb; Tue, 17 Nov 2020 09:28:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwleQgyvG/A+UumKNLxwsnq+DxtX7zmywVTbHEPYn5hWLGU4iHezd2vbsXOqGgwYSuyVaF5 X-Received: by 2002:a17:906:4d93:: with SMTP id s19mr21005423eju.271.1605634099016; Tue, 17 Nov 2020 09:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605634099; cv=none; d=google.com; s=arc-20160816; b=EizgsgkQrM0SGxeqmFywfvzeLUf+Z8glid8an/iCXcDGoDylMRF1BQJOJbYgcWgp6c NIjbWmj8Si+B8ktPacydaQt+x7iFq/6Hjf2wNH5mdNjKs5a7mXIee/bfXzQt59hxH2HU QYzfyX9DRZtprVhJJSX/in4OtNHcCgPYhaAk6jiGj+Pp71XhmF5kmwb6w378Sjyr+IjU eZRaMzHrmO9+JKACYQhaKlBq5k4CAlUrmU4lziratzTmAhn66/Sz1hpUMoydNWgbt8fV p53rmVS+TFq3QW+sFrDBvK5/8kd6gRpK4NNbI8ezW2dLWW45vKKRVBinqShEeauYAH/G G6uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=HKBzQf+Wq3jLBX3M54k/nh+GCQY6+jg1bPUkUq9gsbU=; b=eV+uJsE0i/ZXC0p9P4ZgIAB1zc7kiOh+WUlvMJJk3JSPu1XXy1LkNOSzp44cPubMd9 W9HKdrliyJ/NKBWZ8ZNtldyFBKoVeBjrzN96xS284GubD7twZZ2+cN4cM48ro4bfNahr /F76ycPp8Pf7VTL6wqkFgz5NGkTda1dBhVE1tC4aZDJaEkglfU0AU0pxK916iuWv2WPj j9NqxQg3kIolhphqhnLEWeXM/+bSU5ZyNEisE7HiMdS6BBbS9uqXAWcOC91oGQndNj40 WRPIiF1etZVqckcZeNHJZmoK14vyu+F7DPNDS1/KXI7Js5Hito3tv6ierYFaL34L3Sxd sMUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=LluWHpnz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si14696779edr.388.2020.11.17.09.27.51; Tue, 17 Nov 2020 09:28:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=LluWHpnz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729032AbgKQRXd (ORCPT + 99 others); Tue, 17 Nov 2020 12:23:33 -0500 Received: from z5.mailgun.us ([104.130.96.5]:53128 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728655AbgKQRXc (ORCPT ); Tue, 17 Nov 2020 12:23:32 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1605633812; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=HKBzQf+Wq3jLBX3M54k/nh+GCQY6+jg1bPUkUq9gsbU=; b=LluWHpnzYtmMB0Zy+XmmTbX8CkHfhbGNzsOE7/SgdiTGFVEAZwkF5G6p4SqEd5KnFxjN1+QE eK2hu9tLVFjClhLbf+LzzPmh663PK27Ks+bRqq+GA8+OMRZO7dqkC9kpL9xu4lvUAywa4QzI AOJiE4VH9WnFpXOXuoY4TAfUKR4= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5fb407139a53d19da939e6e3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 17 Nov 2020 17:23:31 GMT Sender: asutoshd=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 57530C43464; Tue, 17 Nov 2020 17:23:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.8.168] (cpe-70-95-149-85.san.res.rr.com [70.95.149.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asutoshd) by smtp.codeaurora.org (Postfix) with ESMTPSA id A6587C43460; Tue, 17 Nov 2020 17:23:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A6587C43460 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=asutoshd@codeaurora.org Subject: Re: [PATCH v3 3/3] scsi: ufs: Print host regs in IRQ handler when AH8 error happens To: Can Guo , nguyenb@codeaurora.org, hongwus@codeaurora.org, ziqichen@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com Cc: Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Bart Van Assche , open list References: <1605596660-2987-1-git-send-email-cang@codeaurora.org> <1605596660-2987-4-git-send-email-cang@codeaurora.org> From: "Asutosh Das (asd)" Message-ID: <1b2aacf0-ebc2-e541-2db5-2d595b4b392f@codeaurora.org> Date: Tue, 17 Nov 2020 09:23:28 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <1605596660-2987-4-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/2020 11:04 PM, Can Guo wrote: > When AH8 error happens, all the regs and states are dumped in err handler. > Sometime we need to look into host regs right after AH8 error happens, > which is before leaving the IRQ handler. > > Signed-off-by: Can Guo > --- Reviewed-by: Asutosh Das > drivers/scsi/ufs/ufshcd.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index cd7394e..a7857f6 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -6057,7 +6057,8 @@ static irqreturn_t ufshcd_check_errors(struct ufs_hba *hba) > hba->saved_uic_err |= hba->uic_error; > > /* dump controller state before resetting */ > - if ((hba->saved_err & (INT_FATAL_ERRORS)) || > + if ((hba->saved_err & > + (INT_FATAL_ERRORS | UFSHCD_UIC_HIBERN8_MASK)) || > (hba->saved_uic_err && > (hba->saved_uic_err != UFSHCD_UIC_PA_GENERIC_ERROR))) { > dev_err(hba->dev, "%s: saved_err 0x%x saved_uic_err 0x%x\n", > -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, Linux Foundation Collaborative Project