Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp529133lqp; Wed, 22 May 2024 11:18:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmRcryTbkvoeO/7W/EdUlyrbN3kMFen/s5k76u7cIPpE4+M7c6PM4o71Yesgmp6Btp3fxuSKJSU/JMsEFkLsfCODN0zUYDNA4FwMTJHA== X-Google-Smtp-Source: AGHT+IHOS2TtCqUy+kX9KTD700MphOVBwPbP1jdAVOwSCP//n40TGGZJEk/jEAgH7/Iwaz3wBSJH X-Received: by 2002:a05:6808:308e:b0:3c9:b7b7:d2bd with SMTP id 5614622812f47-3cdb7416f73mr4523641b6e.35.1716401932736; Wed, 22 May 2024 11:18:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716401932; cv=pass; d=google.com; s=arc-20160816; b=FY2L76rRoqBMXSkGD0aY8onOCwIwIwnPSgWm7qQ4fMSOg0VnQgqd0ExwIerXmNJfas +M9p3O8IXRWIwcIy4aJW4ele4hKVh1MhGwVgf1L81ZcvwxIBDswgl2CtX+pKdxI3qiJV gWcwZmzF9/Zq4YPSi6kOByoQz20TGQmUBDM5u9vCHMdga1QU7XCuzktOxZB0sSU99Ulb p3sc9cUjFGgasEKguNSVIo1Q1k6PvKYKkcTC+cYwzZ7kelubpeIeh6a7FYc7PFtX7oOi sHNQduBQho/G0WKQjN8/nr4VEl0SRbVHB1az0qEgrEgiHIQW+wrrorMwObsJb//w1Zrf Qo1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=thEXQsTRDJ1Qfc6861WlvJl6NVBIcBsBOUsg8V8uzR4=; fh=YNxPuoUOryEQfdaUGREz+9NeHBtKwN4NlzBJcmi0D9U=; b=LdBa7Ke5/fxl2NKW2czkTUmU/2p2xNtxyhJq5kGXmaRE26xKQCkGfJQ2F1wd0/dZRV oRyYCgFbEjRzJxEb6tAvb0lP06AaZ9YgK0BMZXR+KQhMnAOWilLCN0DdJSjtwEQaedD4 bCwS0K5e0L1hPE4vRCsLdKyzaP3qofPyDvlWFdC7K9PafXd9BmL6pNAjGSv50atirP+X bPaOwI3gqHCvNkiLUwJyO2IIFw0Pc0c+Vng7sqZWPkcpSVZ38C3yO9KVQ4OSdXjpZVfe kVpgb3uwKR1sqUXlDAo2iNJAQga+TNFeVaUkK+U8AnL8L2L7FcpU4GWs7dIyVcWfVlau UYQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=iiQULoBj; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-186607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf278a1asi408417985a.1.2024.05.22.11.18.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 11:18:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=iiQULoBj; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-186607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 72E691C212AB for ; Wed, 22 May 2024 18:18:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8289145B2D; Wed, 22 May 2024 18:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="iiQULoBj" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84A8C1BF40; Wed, 22 May 2024 18:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716401921; cv=none; b=kUgUmylSBFF2MBULpbdJyOuxO4YtfzeNWE4Zbf3ERCteDfqF5oBvj03dA3uV6KiNfQNMJ7Z17OsqtFkYbg9qGRhFSU/NvdK+YsAd9nH106H7nnBcWqyok90oE8P1uyPv0V0KQNfMTlQOChInCdCQN/ArknHS/aMhXzVXWjXpkxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716401921; c=relaxed/simple; bh=xNPRpsPuVeB1807eoXlBMa6zFy2qwMHE8uh3XCXeDu4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YHEwLGKYUjMXIC7Qz4FNserxj4Vlor4vFcpFLToZSrxkplJHfGYyQoqtMjHYVdZTU5tVGW9ZKlc98vk3fnzgpxfJJzPc8BhfTmB1lTd6cFAZNOHvxGArt8SYotR4VhwPKrylfMeXBmGz9sB0er53hBDvYLFVk5AtuWyhuXsxDwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=iiQULoBj; arc=none smtp.client-ip=199.89.1.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4Vl01C66Nrz6Cnk98; Wed, 22 May 2024 18:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1716401913; x=1718993914; bh=thEXQsTRDJ1Qfc6861WlvJl6 NVBIcBsBOUsg8V8uzR4=; b=iiQULoBjFntVjvuasDAhoo7SNCRPRlQ/P5j9eK1T AM5tIzi+th0fMmoFxD/JSJr3KTzUT8S8x5PbX1d8py2vXpne9CPFxmDcz5e7cYUG jxdGRE2/f6xUUedQFrwIQuHRwANlURNCIfmUJ39rDwOZ2Oc/B30mDEnnrTvbez+l 9jYiamz5IAGINaM+0xt5gABDMt4V6m5Lzzd9k624vGFgREPngf4CYVag5MQzjNZQ wxcjMhUEdZNVt0W2m908Mq6UnktEDag+KecWGSc0CRIDJKh0fCSVLozBuEJxu/gZ qztAd1VE3s2kniimTeJNZNEKn/5jZrnAfPwdDjP7161MFA== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id gDLaIP6kWfP7; Wed, 22 May 2024 18:18:33 +0000 (UTC) Received: from [100.96.154.26] (unknown [104.132.0.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4Vl0142Ml9z6Cnk8s; Wed, 22 May 2024 18:18:31 +0000 (UTC) Message-ID: <2ec8a7a6-c2cd-4861-9a43-8a4652e0f116@acm.org> Date: Wed, 22 May 2024 11:18:31 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/2] scsi: ufs: qcom: Update the UIC Command Timeout To: "Bao D. Nguyen" , quic_cang@quicinc.com, quic_nitirawa@quicinc.com, avri.altman@wdc.com, beanhuo@micron.com, adrian.hunter@intel.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , "James E.J. Bottomley" , "open list:ARM/QUALCOMM SUPPORT" , open list References: <8e5593feaac75660ff132d67ee5d9130e628fefb.1716359578.git.quic_nguyenb@quicinc.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <8e5593feaac75660ff132d67ee5d9130e628fefb.1716359578.git.quic_nguyenb@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/22/24 00:01, Bao D. Nguyen wrote: > Change the UIC command timeout to 2 seconds. > This extra time is to allow the uart occasionally print long > debug messages and logging from different modules during > product development. With the default hardcoded 500ms timeout, > the uart printing with interrupt disabled may cause the UIC command > interrupt get starved, resulting in a UIC command timeout and > eventually a watchdog timeout. > When a product development completes, the vendors may > select a different UIC command timeout as desired. > > Signed-off-by: Bao D. Nguyen > --- > drivers/ufs/host/ufs-qcom.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 79f8cb3..4649e0f 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -49,6 +49,7 @@ enum { > > #define QCOM_UFS_MAX_GEAR 4 > #define QCOM_UFS_MAX_LANE 2 > +#define QCOM_UIC_CMD_TIMEOUT_MS 2000 > > enum { > MODE_MIN, > @@ -1111,6 +1112,8 @@ static int ufs_qcom_init(struct ufs_hba *hba) > dev_warn(dev, "%s: failed to configure the testbus %d\n", > __func__, err); > > + hba->uic_cmd_timeout = QCOM_UIC_CMD_TIMEOUT_MS; > + > return 0; > > out_variant_clear: Given the description of patch 1, the addressed issue is not specific to a single vendor. Is that correct? Since the described issue is only encountered during development, why to modify the UIC command timeout unconditionally? Thanks, Bart.