Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp519054lqc; Fri, 8 Mar 2024 04:44:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2fSd2ZvLnBYl8AaRssec9UmOdF1cU9rvuY/zTRhmxOxodsZgA6dIXEf9FOqwA7o22+l5tpo0c8bFPF74zW87zz8t6+pFziUgQO+wuPw== X-Google-Smtp-Source: AGHT+IE1lYyuyddG2juad3P7U6IroS5k5aSveX+q5VcsitjQCSH/hHVUwoSFG9z4E31og9h6TsO5 X-Received: by 2002:a05:6a00:1143:b0:6e6:52f0:99e7 with SMTP id b3-20020a056a00114300b006e652f099e7mr7410065pfm.3.1709901885530; Fri, 08 Mar 2024 04:44:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709901885; cv=pass; d=google.com; s=arc-20160816; b=d06/5tswF3DS31amAdxPwwHveVtKmbfUvCy4qQR/kXj57/K5aO1lDJKZVexamhoSF5 qxf/tDaaEg2USRDV148ab1Y0nDGX92PE5JgC2Ik9pW7r2UD/dt8Pq+fe3ChKC23ShBHS dqVgn8ny/s7Y6rGnCZEa/5DnkiulqXIGFnW7XwhuyuGTYrIrpz92BgUDGwtzh3kTzmfU 9kvw7OZrbxhAssK71j0KOdNGH97DogvBR7smqTAkJrgu7pxlJVUed/JkycZRfkdQkFiT GafKRoQHo3PBp8PWVL4RiK+P9T5AfGfw4L9tUQFNPh+dndx7m/aG8IoTgR4rSR80cl8d 5NdQ== 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=nY2VG82b+ivJfZOzlfIERrNz50L7KSM3nXuL3F//TZ4=; fh=lQLKmLAE81FtWHNu6ehlDRD+Ec4KZtwC/Z4sh2Qx2+c=; b=FLGNyhLQvVlEEaJACaQVHxwNTNADRP7rDy0JrZFkefNOzETS3kWCMwrBZ16dEXZ9P4 GP3AETM6fGrLB6gyWmrITarQztC0t25CT19a0zOt0LQXYp/kou14KE5CDThBI4AziEJe lo4onFGD7kuAN+ViRh9euQRAT2xp1dKWB2IW5bbQvofxIjycVw3uAbIxE9yAMXaLhMiD ifk+WjvEL+3yPq5YR6+JQSzp4kluKLqzHuBY7C+wuPajabU+7zxhthEHWErBlUZ5FSK6 hBy6oZ8xLO2JJyVKVWmqI+1Wx0KZbDXElZ2unaV4YRfmz4B5I6X/wdVxHRGXGkxdp529 Ib0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JeABPd+f; 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-97019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m17-20020a63f611000000b005cee0fe93aesi15444995pgh.472.2024.03.08.04.44.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 04:44:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JeABPd+f; 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-97019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97019-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 91784B21D41 for ; Fri, 8 Mar 2024 12:43:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75CF11B812; Fri, 8 Mar 2024 12:43:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JeABPd+f" 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 2FFE414F98; Fri, 8 Mar 2024 12:43:46 +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=1709901828; cv=none; b=a8JImugjxU7ZPXEufrtQz6J7sQZ3uGgBjG/AfVbW/narqxAKsi9uvA0/VcE0B1UBiB51VSwga7V2+YInHZrq3KF89qnurvlalqD9arjBGgaUcN7C1aLf7fzndeR33XxHOia8rv7TN4NZsttg6/c30rkmSw/x7ipu8FTibJaR45o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709901828; c=relaxed/simple; bh=pGPyxY4xey0LpvE+RP3d8bxeSrlEhfkiAYH7RTLqgcA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=RbSxbyquDAsNBOyYrCwFAuWflNAr1KWaQ2+89WNCiFsJCS9eK4i144vow47xhaeUo7hyt38WXbqYD0GbDobd6k5q9YRdb+J8SWxiFT+bz+kF9qzZRN0S//AwJTBEprlXGj9UjjvIyEaywgX3J8gbwYFWg4OgeMmkjFLC9XLx5NA= 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=JeABPd+f; 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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 428AjMLW026896; Fri, 8 Mar 2024 12:43:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=nY2VG82b+ivJfZOzlfIERrNz50L7KSM3nXuL3F//TZ4=; b=Je ABPd+fplo5kRF4DK0cCV90chBmoasIm28/y3Dy1vvkWFjpGWsnPgiMWxz7et4P5d jyshTiDvTKO1qnS0Sh+uQm1OUXYwsNcZp2ioEieKxR7qqbMEy1iWvnZHMdRmwt31 6fIAtUCbmKlaIb0Uv8RoW+48RehbHbRt9Vj1/rMa4n89cyEB2i07WlPiV/jluauR 9yEw12d5bLzsqY8PfWpBLWUKjMAirCKYSWkG1QOcM1rgdjKKcA6yTP9xI1app0aD 3nPLgM9jKNKzsOzZaHZDJNCMNgxi+H/IpreGuIFQ1z8u2Ka2ZEdg06Q9IFbTrMMO 0n83cFUzbBJvTuvo5WeQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wr16y08dp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Mar 2024 12:43:40 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 428Chc5b003833 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 8 Mar 2024 12:43:38 GMT Received: from [10.216.59.105] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 8 Mar 2024 04:43:35 -0800 Message-ID: <0fe1374b-318b-4dea-94fc-596c665eab53@quicinc.com> Date: Fri, 8 Mar 2024 18:13:30 +0530 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] slimbus: qcom-ngd-ctrl: Reduce auto suspend delay To: Konrad Dybcio , , , , , CC: , , , References: <20240304135000.21432-1-quic_vdadhani@quicinc.com> Content-Language: en-US From: Viken Dadhaniya In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: UTP_M8OGb3LdCuB_7DUa4e32perp86ZZ X-Proofpoint-GUID: UTP_M8OGb3LdCuB_7DUa4e32perp86ZZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-08_08,2024-03-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 suspectscore=0 malwarescore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403080102 On 3/6/2024 2:46 AM, Konrad Dybcio wrote: > > > On 3/4/24 14:50, Viken Dadhaniya wrote: >> Currently we have auto suspend delay of 1s which is >> very high and it takes long time to driver for runtime >> suspend after use case is done. >> >> Hence to optimize runtime PM ops, reduce auto suspend >> delay to 100ms. >> >> Signed-off-by: Viken Dadhaniya >> --- > > What determines 1s to be high and 100ms to be low enough? Could > you share some more reasoning? Right now we don't have exact number which can quantify either power or performance. But we are following small window so as to not keep timer running longer while having resources like Clock ON. Theoretically and testing wise, this is not creating any side effect too. > >>   drivers/slimbus/qcom-ngd-ctrl.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/slimbus/qcom-ngd-ctrl.c >> b/drivers/slimbus/qcom-ngd-ctrl.c >> index efeba8275a66..5de45a0e3da5 100644 >> --- a/drivers/slimbus/qcom-ngd-ctrl.c >> +++ b/drivers/slimbus/qcom-ngd-ctrl.c >> @@ -81,7 +81,7 @@ >>   #define SLIM_USR_MC_DISCONNECT_PORT    0x2E >>   #define SLIM_USR_MC_REPEAT_CHANGE_VALUE    0x0 >> -#define QCOM_SLIM_NGD_AUTOSUSPEND    MSEC_PER_SEC >> +#define QCOM_SLIM_NGD_AUTOSUSPEND    (MSEC_PER_SEC / 10) > > This could be a good opportunity to inline this value.. Updated in v2. > > Konrad