Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp855993pxb; Fri, 22 Apr 2022 12:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5qlzHjs+N/PfOBl/OT/P+uWExE27hmHKDJPJKC/vWRwvQxCbgm3q8UXlImW9KV1GiHisJ X-Received: by 2002:a65:6e88:0:b0:39d:2647:f75d with SMTP id bm8-20020a656e88000000b0039d2647f75dmr5257309pgb.523.1650656627802; Fri, 22 Apr 2022 12:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650656627; cv=none; d=google.com; s=arc-20160816; b=fe+5yOHULMZwMSJGVbwWIBlVbSS2rf6pwNQbCmWju2WC25s0lo86QBHbh+awJipee0 iuEz2B81D1ZlbWCcvW+1GbTSH+FTZjJ8hY9509MIl2TGAZnnrsJ48KagEiaf66OnNgom R9CX169ZWxRApWEtSExedRimwDzywYuRBnXY4bQJDYI1HlOOxteQ1IWUCZ4wduVJc7j6 2urYBuwo2Yk2oY2yEnJgaqlhYDribXpo51F4bJ2iMgk222NchRLfBx+PRt3Raol1jBy9 ItnZEFuWNjvcKyAr3tEM2xy4wrBIthS+wkryXJokDNHUV41KB4h9YpAtjqUBwg91l89H rNFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zSqKROW2j70JA8DM8gYUgW1/ARztLUcBd65hG17JcmE=; b=ykbyoj5tRQhx2I3/9SL11Qo4GfMFzYhLbEVQtQtsDSmfK2/4x5huubbzqWELA78OqP iCFsXrnkV9zyaWzNhjGI39sS8+Gve8kvy/tsZ2q6z1O1LGb5eVGM+HGOhCbd/wcp1FrI masjv0RM6AVinuyDtqvpMgr4+KwYPyqLN0oFqzUnXARu9tb21DW750MG92glXIPvyRkV IF0DolgQmPigOSYvhy/58Unl/R6+oBCHtcjexEENACaX56LFpzzTsv3yhXKqkh0ss6+o CEnxsouW8BoL8P1P5WwYOS/feT7Vjxkvx+dk+Vy8HFvo8zJxVLkhw6qOs1gcttfVunbh Z8/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qMnuP/7m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l71-20020a63914a000000b003aa6ec19fd8si8400309pge.529.2022.04.22.12.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qMnuP/7m"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AA8A6211887; Fri, 22 Apr 2022 11:50:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353712AbiDSPQO (ORCPT + 99 others); Tue, 19 Apr 2022 11:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244276AbiDSPQM (ORCPT ); Tue, 19 Apr 2022 11:16:12 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185D43B291 for ; Tue, 19 Apr 2022 08:13:29 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id n8so16062676plh.1 for ; Tue, 19 Apr 2022 08:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zSqKROW2j70JA8DM8gYUgW1/ARztLUcBd65hG17JcmE=; b=qMnuP/7mxtfefsJv/k+IiMqzL2yLLWl0o5R385+BKCgwAxcQ5zQUtWulJ2exAk6Dok kLd/2VRdMYRXddl6Ar3ExGShbBV9dCeIv5QMba+EDzTC16AT1LEm/YTU5DqIQNvVHmeN +vUs5NWDijJ8YgrZCFECUZi/WMNTYjqgfAgkl0YkaUhDxR/WFxmoybm7kD7uqI+EbSzw Kz5N/t600Mw2W+mlfjCMMsFXxg6NcrdAoe57mzhUVyssdyBjWBzktGRS8cX3pKyaPrZx nwp6Y2b7ZvwaxLIPnR9UgJX2CXvH1xxnEBNuAeU31HPft3NpEeGNW2x0Me7sJ6UOSEg+ GIOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zSqKROW2j70JA8DM8gYUgW1/ARztLUcBd65hG17JcmE=; b=4AHTMT0HnUGfeamCDTL/dbF9JO4aIXYH4p+5SjndM6ATKFez6fFEywGBWC9H4A/tMw hXNVMMK/67OzhfHhbX3SeTRXDSvf5scolWnh4YKiTq4LoHtt/jvklzpgJ1eaSWei2J3U lRJyjYoivkusjK9rjXscgjG4VPdB26pYwXhB4IxkfRNjrmTD9SoS9EgalmRkUKtlHHIg nxhfAoI2pRvqHWDZbwMxMddTVUgf75hYdPe/nUH+K7S/x/VcYfADxaP0bGt9iCryiYqu 55kedMxpT7GLDbnOpjkNmpJvne2nd4FDBi0d2NH6ZFgUMRROdOJW5pnaf/Dvi9f3LnGM zvrQ== X-Gm-Message-State: AOAM533hbBVLB+uBoCGrYLk2eFf8luHzR3MUBUcrhca8bBZAvYB2H9lg clM/QErF3Ix3wGW3obmgV+G1 X-Received: by 2002:a17:902:eb46:b0:158:341d:93a3 with SMTP id i6-20020a170902eb4600b00158341d93a3mr16011554pli.1.1650381208560; Tue, 19 Apr 2022 08:13:28 -0700 (PDT) Received: from thinkpad ([117.202.186.149]) by smtp.gmail.com with ESMTPSA id g15-20020a056a0023cf00b004e17e11cb17sm18046389pfc.111.2022.04.19.08.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 08:13:28 -0700 (PDT) Date: Tue, 19 Apr 2022 20:43:20 +0530 From: Manivannan Sadhasivam To: "Bao D. Nguyen" Cc: quic_cang@quicinc.com, quic_asutoshd@quicinc.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , Bart Van Assche , Bean Huo , Daejun Park , Adrian Hunter , Can Guo , Asutosh Das , open list Subject: Re: [PATCH v1 1/1] scsi: ufs: Increase the UIC command timeout to 5 seconds Message-ID: <20220419151320.GA8699@thinkpad> References: <55bd9cf4216e80e73e63cf25c042d60e67592b44.1650331167.git.quic_nguyenb@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55bd9cf4216e80e73e63cf25c042d60e67592b44.1650331167.git.quic_nguyenb@quicinc.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 18, 2022 at 06:36:05PM -0700, Bao D. Nguyen wrote: > Increase the UIC command timeout to avoid false and unnecessary > UFS errors printout. There are increasing number of false UIC command > timeout error events where the actual cause of the issues is interrupt > starvation. When looking into these issues closely, it was clear that > the UIC command completed successfully, but the CPUs were hogged by other > subsystems for more than 500ms, causing a false UIC command timeout. > UFS irq handler is a hardirq. Not sure how CPU starving can happen here. Unless all CPUs are occupied by hardirq handlers from other subsystems. Thanks, Mani > Increase the UIC command timeout to 5 seconds to avoid false and > time consuming support calls so that we can shift the focus to where > the real issue would be. > > Signed-off-by: Bao D. Nguyen > --- > drivers/scsi/ufs/ufshcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > index 3f9caaf..806acf4 100644 > --- a/drivers/scsi/ufs/ufshcd.c > +++ b/drivers/scsi/ufs/ufshcd.c > @@ -35,7 +35,7 @@ > UTP_TASK_REQ_COMPL |\ > UFSHCD_ERROR_MASK) > /* UIC command timeout, unit: ms */ > -#define UIC_CMD_TIMEOUT 500 > +#define UIC_CMD_TIMEOUT 5000 > > /* NOP OUT retries waiting for NOP IN response */ > #define NOP_OUT_RETRIES 10 > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >