Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp34966ybg; Mon, 27 Jul 2020 22:33:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcSSxiTMFHPK2JHZRXcd64hfRvEh/MppNR540joYKezWgj8MASKTgNz2Y4SV+2PlF7fWO9 X-Received: by 2002:a17:906:b0d5:: with SMTP id bk21mr23478051ejb.93.1595914387833; Mon, 27 Jul 2020 22:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595914387; cv=none; d=google.com; s=arc-20160816; b=cefLIbBsCduaHHMXA6JInJ/sZDNEDh1kyNoHToFxpZn5feFpGUzgKMB94b3oqBy/75 LjhPsXqov97g/UtCuLdNVhjG3cT8TdhRqcPZbJiXxCFrlPTh2YYuGKa1qk0ijBhptiWe ZBZ+TizanZIIf3ttSezi26Kdy0GqaKQCXvi1D6pmM9S21YVlp/xwRWx0t6yltZwPWjuI tuzAmC6y7qAr7aWOjTZZOXt0mjQfdaPHkDgyNrK92R5BqVJaYHEIhIB8nmLM2nf5h8Ma yWcwHcepSj7uHvH7K7eXOz6+X6kZDwMYgMOWbp/EO0kz1++FafN8CXxG5nSItR8+B4dk zTtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=AGgIwDCiB5b28ItgH/sAXlvyffIT5/nijh9m34NzZuY=; b=0TXH7OWw2uroN7M5hHVpMq7GDzkjHw494bH6a31DmhBbwYkWFcWtECnY0gcVnRPMGJ EnK7xwJ1lFwl74sDrQjJXeAyFZwMYclsm7S/84xkkTZVrriDJ228X39s2MFqDGlFTlGw Ic93+K2aCxIE4nWd1UtDtcdjE0L4mxo4OoDHvorv/7hzuC+96bvthbVAiDgBe8X7t7/r ot9THTeGlfzpAX5/zdjA8LnUYGgFWVMFJRxJNZO6U+EP/lkdUJbkh8FO8iydm6VIYyA7 11x16LUPtMCPxoQaPZk8GOMz3hDWEAnvawwrklaKRuMwpHCP+6uSxNTDZIe2QEBbJAQR 3KFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=KSigIXFs; 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 u7si6760470ejn.161.2020.07.27.22.32.45; Mon, 27 Jul 2020 22:33:07 -0700 (PDT) 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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=KSigIXFs; 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 S1726853AbgG1FcM (ORCPT + 99 others); Tue, 28 Jul 2020 01:32:12 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:49386 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbgG1FcM (ORCPT ); Tue, 28 Jul 2020 01:32:12 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595914331; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=AGgIwDCiB5b28ItgH/sAXlvyffIT5/nijh9m34NzZuY=; b=KSigIXFs4fh2cg8V1ldOI6PLuRcdrwk989Wxj294SY3+hMKKhdbIc5ifEAJD9dAn3yKGqmSO YMZ2/BlTF1znvlPuIi4xUT5RWcU7sF5UCERG1WdBFwJxHpiZL7qb+xK2BkbtRTjID0LYMH2Q I/M6qfuhv+iD9e2qCYBZAu1Wki8= X-Mailgun-Sending-Ip: 104.130.122.29 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-n13.prod.us-west-2.postgun.com with SMTP id 5f1fb85a634c4259e3281646 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Jul 2020 05:32:10 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 64731C433AD; Tue, 28 Jul 2020 05:32:10 +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=-1.0 required=2.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hongwus) by smtp.codeaurora.org (Postfix) with ESMTPSA id 791EDC433C6; Tue, 28 Jul 2020 05:32:09 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 28 Jul 2020 13:32:09 +0800 From: hongwus@codeaurora.org To: Can Guo Cc: asutoshd@codeaurora.org, nguyenb@codeaurora.org, rnayak@codeaurora.org, sh425.lee@samsung.com, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Andy Gross , Bjorn Andersson , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi-owner@vger.kernel.org Subject: Re: [PATCH v7 3/8] scsi: ufs-qcom: Remove testbus dump in ufs_qcom_dump_dbg_regs In-Reply-To: <1595912460-8860-4-git-send-email-cang@codeaurora.org> References: <1595912460-8860-1-git-send-email-cang@codeaurora.org> <1595912460-8860-4-git-send-email-cang@codeaurora.org> Message-ID: <8121784a3019723997a16cc6791e5e5a@codeaurora.org> X-Sender: hongwus@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-28 13:00, Can Guo wrote: > Dumping testbus registers is heavy enough to cause stability issues > sometime, just remove them as of now. > > Signed-off-by: Can Guo > --- > drivers/scsi/ufs/ufs-qcom.c | 32 -------------------------------- > 1 file changed, 32 deletions(-) > > diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c > index 7da27ee..96e0999 100644 > --- a/drivers/scsi/ufs/ufs-qcom.c > +++ b/drivers/scsi/ufs/ufs-qcom.c > @@ -1620,44 +1620,12 @@ int ufs_qcom_testbus_config(struct > ufs_qcom_host *host) > return 0; > } > > -static void ufs_qcom_testbus_read(struct ufs_hba *hba) > -{ > - ufshcd_dump_regs(hba, UFS_TEST_BUS, 4, "UFS_TEST_BUS "); > -} > - > -static void ufs_qcom_print_unipro_testbus(struct ufs_hba *hba) > -{ > - struct ufs_qcom_host *host = ufshcd_get_variant(hba); > - u32 *testbus = NULL; > - int i, nminor = 256, testbus_len = nminor * sizeof(u32); > - > - testbus = kmalloc(testbus_len, GFP_KERNEL); > - if (!testbus) > - return; > - > - host->testbus.select_major = TSTBUS_UNIPRO; > - for (i = 0; i < nminor; i++) { > - host->testbus.select_minor = i; > - ufs_qcom_testbus_config(host); > - testbus[i] = ufshcd_readl(hba, UFS_TEST_BUS); > - } > - print_hex_dump(KERN_ERR, "UNIPRO_TEST_BUS ", DUMP_PREFIX_OFFSET, > - 16, 4, testbus, testbus_len, false); > - kfree(testbus); > -} > - > static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba) > { > ufshcd_dump_regs(hba, REG_UFS_SYS1CLK_1US, 16 * 4, > "HCI Vendor Specific Registers "); > > - /* sleep a bit intermittently as we are dumping too much data */ > ufs_qcom_print_hw_debug_reg_all(hba, NULL, > ufs_qcom_dump_regs_wrapper); > - udelay(1000); > - ufs_qcom_testbus_read(hba); > - udelay(1000); > - ufs_qcom_print_unipro_testbus(hba); > - udelay(1000); > } > > /** Reviewed-by: Hongwu Su