Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp765820lqp; Wed, 22 May 2024 21:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7L4LK1Bpbivx3++hVP58s2hVUDx7JAyg3SuHWp2L0COC4HgMx9HfTmcywh502Nvhn3Kj9YiwzUJky3uBOsaGJBNMGppzsM6sNER4Giw== X-Google-Smtp-Source: AGHT+IGgSMGREqOTfdn0Mm4UdDAnBBNEURLQjmTh49cDxI3OzYR9vVyDBz1CdRATQAJvPz45TlDR X-Received: by 2002:a17:906:683:b0:a59:d527:4339 with SMTP id a640c23a62f3a-a6227ab6ea8mr371049466b.0.1716439133597; Wed, 22 May 2024 21:38:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716439133; cv=pass; d=google.com; s=arc-20160816; b=Kdjara2Ca0fYRfqWWm18LdJt3iRuZzRZKv0m3Tel4lkWuPONli+MEaGORih8J0079+ Ctoqbh66FsEZWNQDAufAx947u5QSKgbu1PFtnwJoKg9DqVohIdV/xv+19WXC0FRPw3MW Auo0HSnVoL72kk0JQXPvj3DCTBqQqq34+7V7Z1Qd4KtYmbO1b4YGA8DLp0PPRNmfkj2H Q4UzWQfNKHePCL8K0wZpMvGnQKsuVn/AFiiN79/1EvScIdAh2PaJmWGNpnhmC+zCTTgZ z/4UZ4abJMLRp/Fo8yZGye69+unOHChrUybvI6DxBSATMluLHqqxGkLzicOlPEv4CBe7 uqfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yx/IyOCYfXpCeY7uF5ICIIriQlpze5QD3ipJLntQuhY=; fh=wSg1byUUoB6bWxd315iuvlqTFLZg1M0d2Mol4O+PEGw=; b=NNyxnTH55YfzjWm92NYwtoOwY5OLmtwSJboJBYfnQwLT6UnDKh1+Jtqbtl+kRcffZ8 wMoLDywKMmuASbBvmrt1LQFjicZ5JHP92E62aXrAO3jTKFG94rv+FLQ8DNPGWPfVggil 1fl5oZ69DSDpmL28T+pMNdBIwqVT8IxKI0OHLBuCahnRKLg65fSh6NMRwRmLovI39r8R 4LXEWZFfq2dd/B9/n20/gKmrON83uw+EyFdFfic3kUAx9gnENX7om9rAfGEy1QiSSG9d gQUBAvvrMMLW8pwKTOSELgPlQl19h9Fx7lhT58d/+S2652w/Wp3uTjTD8heOysPXCFLK EwLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z3BDGhl4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-186979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a8ac34c4fsi973096966b.156.2024.05.22.21.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 21:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z3BDGhl4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-186979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 54F031F22327 for ; Thu, 23 May 2024 04:38:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09E9EEC5; Thu, 23 May 2024 04:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="z3BDGhl4" Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7B0B20DF7 for ; Thu, 23 May 2024 04:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716439120; cv=none; b=uXMnAJcmAqwwZ89KN7dEdxZe6PcakYNE3dsU0P3DVbEqklUoh/jXM5h1kunZzFIeSPad6iHbOcZcPbl9UFMf3qApDJmXHm6kt5kXNTuJYc1M4ZzklA3Qse1eciJ/O6D7hna0F1BskUvRUVYIpqu7FCrma2O3KMAPw0T92hYqpII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716439120; c=relaxed/simple; bh=sLqwxYRWLi/EknlqTLKKf6eEdx7TZyvIBF8Tl5eh5dQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mh5OI4vZeh483j9pEpVVgnqp1Jx62yLukzjVLbvj3NsElMeT/02mo3gAxmWnpKowtafVl0oq/Ivb6hnIVnzqiOQ7Y9a2ISQkXmYmgjo5BFwTH/5/PehBJS0tBNth7nDWC8qCy2f01QGiNwtRaqXdZZk8NsZZsJyW6zNf3JjSBdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=z3BDGhl4; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2b4a7671abaso1735346a91.0 for ; Wed, 22 May 2024 21:38:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716439118; x=1717043918; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=yx/IyOCYfXpCeY7uF5ICIIriQlpze5QD3ipJLntQuhY=; b=z3BDGhl4L7hVgR7A2mvoeqtyAqssNuZAV1chPNZwMwaPOJFZRJVZZjZMlxMcU95vLO N+moIEM7chbEf1YcBZ1Rdgb3dO4zt1wZpgTXcax0GvmoTf6/Oa/B0cWCJCbhy0za0dFw k6W9eO0nyRwOU0ymjKtTtQgx08eeZe/Qwc++qLVAYH9e6Bmflo8PApREdKdznoLbIy0L QOiLlEvWACBkMnnYFUHqtUTvjtjMacduR78lKPpGXtGjFxN0YatKc7RXdhE71Gu9Aeuf MnAhEXvI4JfgHGhFk8NmiBgHV59inIzFxIuImKi9YDWI3OdbLXgWyV4N88OTM/yw71Sd OjCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716439118; x=1717043918; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yx/IyOCYfXpCeY7uF5ICIIriQlpze5QD3ipJLntQuhY=; b=QuSLNFpNSYYx6K0FFNEUnT1sA+unFz/Wt1eSRMFO1y0WdtfPH+3QW288IIHnIgvFJF riABL03QvKz6fjklCiUPcyka4HPRN6bYMe5jknQS708UB74ETVdpsKMjy2zYTqA5U2Jv S6FXoStl9PGO63lhSE5GN8w9XSZAWaFQvoD5uHwCXu4zF4sZmqgvzJpdbq/OfJgM+se7 WkXiSMj+UR6YPdR8/7Q/qZRgQ2AAbftmiHsjojf/iPlFHxgI4VloDR0d/3Q9cmfzmDdp yGKq/VWzyLvNBZxRKcB5lsoVkqFW57ekuCPw0LnqUIvzTIoOWnMfJjVS3DJWoaaqZMs3 brLg== X-Forwarded-Encrypted: i=1; AJvYcCWISGsmxnwueYsph3It8Cm6H4T/zjkmldxOYMf2JGu60R04XQH/Bg2btq4IMUcuGb6tXUX31qk8C7NHGEpZaFru2A3FPE1L6N2aO8at X-Gm-Message-State: AOJu0YzqADjbvHPqxFmUsCc+oyV17QShxP2+qAZOsOlALqfe/mHuAX89 yl1s7WHhLt9n/X0mSlU/6Kzqrr+hcAcHW2bIEeXWuVvMxTKxkiXTGs/NznHU9A== X-Received: by 2002:a17:90b:3545:b0:2bd:ed72:29dd with SMTP id 98e67ed59e1d1-2bded722a42mr183089a91.27.1716439116882; Wed, 22 May 2024 21:38:36 -0700 (PDT) Received: from thinkpad ([120.60.139.242]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bdd9f4c604sm633634a91.41.2024.05.22.21.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 21:38:36 -0700 (PDT) Date: Thu, 23 May 2024 10:08:28 +0530 From: Manivannan Sadhasivam To: "Bao D. Nguyen" Cc: Bart Van Assche , quic_cang@quicinc.com, quic_nitirawa@quicinc.com, avri.altman@wdc.com, beanhuo@micron.com, adrian.hunter@intel.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Stanley Chu , Peter Wang , Po-Wen Kao , Maramaina Naresh , open list Subject: Re: [PATCH v1 1/2] scsi: ufs: core: Support Updating UIC Command Timeout Message-ID: <20240523043828.GA5758@thinkpad> References: <292d7702e946ca513af51236ca9e38bf1b1eb269.1716359578.git.quic_nguyenb@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, May 22, 2024 at 01:51:06PM -0700, Bao D. Nguyen wrote: > On 5/22/2024 11:16 AM, Bart Van Assche wrote: > > On 5/22/24 00:01, Bao D. Nguyen wrote: > > > interrupt starvations happen occasionally because the uart may > > > print long debug messages from different modules in the system. > > > > I think that's a bug in the UART driver that should be fixed in the > > UART driver. > > Thanks Bart. > I am not familiar with the UART drivers. I looked at some UART code and it > could be interpreted as their choice of implementation. > During product development, the UART may be used. However, when the > development completes, most likely the UART logging is disabled due to > performance reason. > > This change is to give flexibility to the SoCs to use the UART > implementation of their choice and to choose the desired UIC command timeout > without affecting the system stability or the default hardcoded UIC timeout > value of 500ms that others may be using. > If UART runs in atomic context for 500ms, then it is doomed. But for increasing the UIC timeout, I agree that the flexibility is acceptable. In that case, please use a user configurable option like cmdline etc... instead of hardcoding the value in glue drivers. - Mani -- மணிவண்ணன் சதாசிவம்