Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp784487lqp; Wed, 22 May 2024 22:41:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6JBDx3Xbfj390V99iLa8oSaDGWVrCkG9KCn10DNX2VXWOxH9FhOKwtHroHpF3vDvrq3kVqCV3lyxnhf767uL+vXPvr52KVnLvdYNokA== X-Google-Smtp-Source: AGHT+IE+8WjiAzJPGljKes8ZxvIWpjIduVb0Rkfa8Cv/Qp4XbnaMnf4JUqt1REyG5e8TfkRIaxiB X-Received: by 2002:a05:620a:98d:b0:792:c5c7:e914 with SMTP id af79cd13be357-79499409410mr396812285a.13.1716442863262; Wed, 22 May 2024 22:41:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716442863; cv=pass; d=google.com; s=arc-20160816; b=zPxnPqzumaMekDEJRZkmKgqgkdNqv2qVIitsoOg6j1G7a1ZWl46d33XQxu1LonQ5lw 2QIxAWlfZMfW/32LEgCXg00Js+tn8OxqNno1YzLkzG55J9Cb1gmpX6ucv/bNYAwFxAw9 T/HZvm4M/6qgwKHtVFcvYaf0PkznxPqB/2Z315uZpPSduSBYjojXOlWv0NkApC+Sdcob Arr99DKmef/vHOjMaDC2M2Bvqyt/oyAZ8WOPM4PTTr39Gin2e5V0Btrq8u97Recr41aj DFdlxPDYliXJI0e1OWfs9SboTbhh+XtWudH/Ap7u9H9+tpUMWgL06u0ok3LDeYGyqapu qUtA== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xkmv9iIp8a+RWEQjJtVYBPwA9Bxka1qZ77csRraEb4I=; fh=jyDR67ON+Ehf2fC/KpiCmzlzzPNxLUtRnoxe9a2df+U=; b=UcBgKT5BffJuoVJ2+wzf8q8umYBKfP7IJi/E+1aY19GESFzlaKjR4+w4mh0k8nmoXS yJIPuGPUhqVVivS0F5Ng/rqyAfI19pWrn6bgfP1hT+ZbpyjzSeK0L1pVvhYeEo8z4ZhO TPyV81Bn8nrOhhu6puwpMX4JDNmwDiB0/XX6LJWl+PYaptM0bhRua8rSHGbt9J7KHDkY l6XrczmZXbIXtdPlNVkV04sqpwrJBPPc95mtwnLt3k6etxarIY6ue752vuH85DF80DZz BO0A74EwoGzHCcgng4t4T8ISQPKtsqqZZTEAGSVK/EprH4ZdM1DALuzPjFJTDE2I9S4E mTwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CTHt4raI; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-187011-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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-794a4c7bc4esi23826085a.358.2024.05.22.22.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 22:41:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187011-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=@quicinc.com header.s=qcppdkim1 header.b=CTHt4raI; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-187011-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 F31FF1C20E0D for ; Thu, 23 May 2024 05:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B3D913A878; Thu, 23 May 2024 05:40:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CTHt4raI" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 1466839AF9; Thu, 23 May 2024 05:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716442854; cv=none; b=i1SWnaMSDVYNHTBSOYORPDmpT3oQKkYoHVFwKEAx6g6dLECwIL1BEs0DGJByrD9aKI9QT7vVAjqZjM/oz9KF5Z3YPyP9QpUZfWr3B25Cesnax3bpK8a8iieU+LpbkmJFSkQQYRx9W/XQhXro8E5dwVERBLPzEEh/qbuh8H+EsnM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716442854; c=relaxed/simple; bh=35itlaO+rA9KzU5Ov74PNAWJ7tehcdbePlz7ppMr4pk=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=DBLc3+8yGbY+2C2sIH65KlpB3Hv5mX3LIUV88tLTbLNfDoD6Rf9INgctduE9/CPadptdi3HZWrYVMmLNXi7pARFiPIDoHaXS5nwc90p7f3CJXTonPa9BNZN06PwU08CX8XMpdKNTI4v69YdbFRctfZk7LO7K2ywxmyxSd+6/9i4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=CTHt4raI; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44N4bXYO017108; Thu, 23 May 2024 05:40:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= xkmv9iIp8a+RWEQjJtVYBPwA9Bxka1qZ77csRraEb4I=; b=CTHt4raIIFi3Jx5+ cYf14HlekcakyHu2xDxfXXmRFvk1GKm1vFlxWDwEm+xS5hAi2itsaHiRTGHtO2cL RaZcL+2dAPXyu7cMfEEU9ONf4/SUEzeEUAscv9PDtO9eUE50RyrKHuVa9V09zdJn /+jJEj7GYSeBNeutN50x+Rw9GgutzYM1QSlrmCpLoViqS9GMMWYTRkenRpLAnQ/7 lBDAGGSZeOvyUbAEIprJCuxOaB8p27akGGEHlZo+ynIzkAZ53Uz2miK1m7JQocE+ at+11pNwg4YrZ+KfYeJHBONtVjs1X0N0FhqEmUmeXDpxqjp+cFc2IDSZXM9wVkmb DP/VBQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y9xxe037a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 05:40:34 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44N5eXLa013380 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 05:40:34 GMT Received: from [192.168.143.77] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 22 May 2024 22:40:33 -0700 Message-ID: <170203d2-c24e-3154-042d-fd8473767207@quicinc.com> Date: Wed, 22 May 2024 22:40:33 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v1 1/2] scsi: ufs: core: Support Updating UIC Command Timeout Content-Language: en-US To: Manivannan Sadhasivam CC: Bart Van Assche , , , , , , , , Alim Akhtar , "James E.J. Bottomley" , Stanley Chu , Peter Wang , Po-Wen Kao , Maramaina Naresh , open list References: <292d7702e946ca513af51236ca9e38bf1b1eb269.1716359578.git.quic_nguyenb@quicinc.com> <20240523043828.GA5758@thinkpad> From: "Bao D. Nguyen" In-Reply-To: <20240523043828.GA5758@thinkpad> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: _0OjRWfHba2SZIWstTe2Cai5HVM2bFL6 X-Proofpoint-ORIG-GUID: _0OjRWfHba2SZIWstTe2Cai5HVM2bFL6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_02,2024-05-22_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405230036 On 5/22/2024 9:38 PM, Manivannan Sadhasivam wrote: > 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. Thanks Mani. Bart also suggested something along that line. Thanks, Bao > > - Mani >