Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp782647lqp; Wed, 22 May 2024 22:34:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCcLM5DAcxn+nzGMyZuDjf2UdMJpjQcIxIp92av0XBQYnW+IBvUMsNDGQmoLAG4i9MWBrku2/p1BI2WD324YQo9aJKaTQ2erWQEEu+AA== X-Google-Smtp-Source: AGHT+IEfzXmAPsufhTRdok7JUjJKalyigJ43g6SW1mKXAnQiogbWQ6cZQkpoT9WbtoHcTVD00QDh X-Received: by 2002:a50:cddb:0:b0:568:32cc:f808 with SMTP id 4fb4d7f45d1cf-57832a536d5mr2367599a12.15.1716442484718; Wed, 22 May 2024 22:34:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716442484; cv=pass; d=google.com; s=arc-20160816; b=wIXSaBcxaQSQK1OqLACcPvH3pLAzvON37XwEn8anwEBh/o5s39B64gcIlE1mIoKL5l uTkBJSLRe/qcuYJUyG4mEymGNrGlUwVs3+4+oAbbUI8IDgIjpEBDTrsWOLU00Uk15j+O QulsP1vgmQ/N6ZxoGWyjSkdZaqiG3an1gDUBZ3osx2qCPM7CyS9wKgynrWFnu/R6mIrq 7SnsV9mxGILLjH9B2ImMIf5vsOMAl1s53quk/q4jALHEbP8DpgPMaUWx5Eb1di8oHCFo vhT3n612KhQQOCnidKY9O4bpnbNtQyro5n97DqVilrWZQlxirS30P0EIHKkiySyq5pzb EcHw== 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=rgKVUL89+PifOagCpEXhssK6ZCPIGpsjwpvdTh5PvIU=; fh=bNV1ydaQMry/Ut5J/Sq0FvAXVtuoaeOWwbjhkeA0Kdk=; b=pC12AiUIzojaQXGM6MHAJbUbG0FOKMxqrZZjsIM43QrYEIDFpV4Q0bpZzilEvjT2FO OmppbeVcalbT5k9rCRDs9hYvuUAowvHGYXauImpdevq6kZpfM3o7Jw7cGSmNTRFzW40P 2QNFJoxpL1ADgPy928YNZt2AeiJsAjAGvvvmoUvVuBa2b/gD+scoUHNQXm2qn5dJNH22 AdPgITfgTBXmOgufxG5+Osu9b1UlMiVL9EhWmMymyD5TiW8G0gWaOOXWXz+fhz9xJS+r sbxYkx1uClZZfW98wwXawDx9ow+d1PKTUdux2Z/S78PkQWj1/sWIrqHiAVKLuyJuCuGi Qn9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Rb//aCy7"; 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-187007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574be5808f1si12343837a12.149.2024.05.22.22.34.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 22:34:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Rb//aCy7"; 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-187007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187007-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 65B371F21B19 for ; Thu, 23 May 2024 05:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2187613B2A0; Thu, 23 May 2024 05:34:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Rb//aCy7" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 A4C6539AF9; Thu, 23 May 2024 05:34:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716442472; cv=none; b=arqkkCKBjOeU4BGaTBsMKhJTwLXHkrTvQEBXM960qROyx5eRXC+g+8VqseU/m3OMwyUjSBZnGAiNkkLoDqR8GoB/JxmqRNZATcSGtE6LLePkF19tTAB6lflU9OTT5gdZzarfyY6eVdLCJPCLO1z7IboEm6IVqsgLSHZYWqFpnMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716442472; c=relaxed/simple; bh=E1+GhCRQlYYBxQ40XhLAHyOCsamK05NaoIq6WUuBjt4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=sT3cyFxYkyYlJDjc9oBDrSCXcpL6TXZYbsSGvzIR9pL1Q2kLzfMaY+y4+PnK8uEpRLZEe5EZtmbR5Uj9LDy2D/nR/eTChQlM6m8o5/g9joEG/ndez/lBY0hCaIJ58jfeUY/1526m4CIeh3U9sv/xRPqtq+jAjYEIUpMHS0+FsnI= 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=Rb//aCy7; arc=none smtp.client-ip=205.220.180.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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44N4kq1Z016760; Thu, 23 May 2024 05:34:17 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= rgKVUL89+PifOagCpEXhssK6ZCPIGpsjwpvdTh5PvIU=; b=Rb//aCy7ojlykzfH BFBI0vlMHYRzRcTQOxDxTDut24YfblepYIXLZenPPz1wonN50dMue37r7NF+Ynd3 uNbATwFknf4D6jv8KW1J7vkeqzfq9nMCg5MP4YYz2XEeHl9L8A8t4j1g1hQuWzJo DUTm3vepaRtIzZyMBWOn2tTsz8L3o9pPm6xDQpwZBaxyJNKb27KG/4uTSX4HBD/J HlWHx4uUXpavv/oBeIH3UZLaArpoqcaS68iU4821HaZ6EmTUmQOeMKwQoYeOQn6U 3Cb2FeLPK2QlO3FMWfgYbzJF5TEXC6KkejxI5yR5JWHLhy7ogReqyYrYlZWfM2I9 5R99xw== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y9y20g2gy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 05:34:17 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44N5YFjU017507 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 05:34:15 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:34:14 -0700 Message-ID: <60cd9300-d022-65a2-2804-1539a648b3a4@quicinc.com> Date: Wed, 22 May 2024 22:34:14 -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 2/2] scsi: ufs: qcom: Update the UIC Command Timeout Content-Language: en-US To: Bart Van Assche , , , , , , CC: , 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> <2ec8a7a6-c2cd-4861-9a43-8a4652e0f116@acm.org> From: "Bao D. Nguyen" In-Reply-To: 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-ORIG-GUID: 5guV2Ji9zj_JPjtwyPjpYs_x3MjeUFTG X-Proofpoint-GUID: 5guV2Ji9zj_JPjtwyPjpYs_x3MjeUFTG 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 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 bulkscore=0 clxscore=1015 impostorscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405230035 On 5/22/2024 2:01 PM, Bart Van Assche wrote: > On 5/22/24 13:56, Bao D. Nguyen wrote: >> On 5/22/2024 11:18 AM, Bart Van Assche wrote: >>> Since the described issue is only encountered during development, why to >>> modify the UIC command timeout unconditionally? >> >> The vendors can enjoy the default 500ms UIC timeout if they prefer. >> As long as they don't write to hba->uic_cmd_timeout in the vendor's >> initialization routine, the default value of 500ms will be used. > > Since this issue is not vendor specific, I think it would be better to > modify the UFSHCI core driver only. Has it been considered to introduce a > kernel module parameter for setting the UIC command timeout instead of the > approach of this patch? As you probably know there are multiple mechanisms > for specifying kernel module parameters, e.g. the bootargs parameter in the > device tree. The proposal here uses similar implementation as the auto hibern8 timer (hba->ahit). The ahit mechanism has been working well and stable, so I thought why not keep using it? Let see if other members have any comments about kernel module parameter/bootargs suggestion. Thanks, Bao > > Thanks, > > Bart. >