Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp684840lqs; Tue, 5 Mar 2024 13:17:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLRwnwOH+KDN1lU2p19qmyJmVzC+6sgfvY/3rCq+Md+X3+tvRfPRwqtF3sViaA9+Gw+swjfNMbsiciKa1K2dZGB7wszUS8sh4I5p0c/A== X-Google-Smtp-Source: AGHT+IEMVXzp7WAHxsOP31LyAdxy3TYBSTuvYxiQsWqnubdcSUK+6mEUstrX9WnOQ7ADgPsYKZC6 X-Received: by 2002:a05:6808:1cc:b0:3c2:10eb:cf35 with SMTP id x12-20020a05680801cc00b003c210ebcf35mr2684765oic.23.1709673426237; Tue, 05 Mar 2024 13:17:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709673426; cv=pass; d=google.com; s=arc-20160816; b=HaheNG0nuOW1/YHomkCg+VVGpdF/GbZ9oBG6HTTF18BbKMXIP+ZHL2o5IL65P4HInr A3YpPcemUDT/DgWjbrzQZ2j2n5lkCPFyLokm+RZCnOIzfEthMEUvHKr47AyxrzlZd+l3 jH1q5OXOwiu0n8JSWD08cmo5hrJauqqN09kO53MobIYBzeiUIp3M74kpGKAFRtDzFz5D 9MvWcKpFJPW7s6UbAqao6IMIfGtUem2+OE9CunaE9RCaceQtrrp9uVDf3Pkp2LEGn5nM lyekm65d75wMnBRUeWGgaKIUsQ5/pP8z8etqCR1KRS5nnlESxRuXFTc6ELMhVHOpm5XH qGCA== 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=sVdcNBcoAiJYRV+66geixgS685+t5mEWuPqbixAd63s=; fh=CFv83lwFsgFCG87C3X+84jITK6MwMD9GYcVhQwgnli0=; b=bpVIWpdnAZ0hw9nxvHtBWzdVf00+ZEAqSNQCOTopeTozeEaT+EVZgxhxWS8uwAUuEi 9Jzrc7wTLtzc8NZXfvFMW7UcasMTKkKDBqwhwGQyv4BdlkDnUrY1dDFSNo1kGLVhiqjB kWT7A/OLQJZDUFpW2tzRw5tW6zwQmkyUQHhQtIqqfzLFhCCsCRM3k6vYFMk4inkNa8T2 L6pz4jVvBY8pZ1LvDNfLpbOu03saNFmWJ/PUPCHh0rB6xA68u+UNCJCyWKKE3wPwMGH1 qgMIa/QFg7QTXemFlqXSGVs0O6EEhBo2iT+H48oWS1f7JQ0V3Z8RLul5YpxuiWVfgBZx GgBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tf2xOb1E; 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-93002-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p15-20020a05622a13cf00b0042f0187f3d2si2239231qtk.290.2024.03.05.13.17.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 13:17:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93002-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tf2xOb1E; 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-93002-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93002-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EEA701C226BB for ; Tue, 5 Mar 2024 21:17:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4942512B170; Tue, 5 Mar 2024 21:17:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tf2xOb1E" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 007C61B81D for ; Tue, 5 Mar 2024 21:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709673419; cv=none; b=QFyrSCFgH3T7KEoR7wIvSchL3auH2NjueqQeperle0CQlM4q8pdzYiW9yiuJ9E9s60QGiaPpww/hpzsMWI/ZO64nZwfqqPT0OwlgPwGM9U+txslAmJWefghfiEyLmTkVTIZ8BR7TmXKY/9URYBRTzGmLr6qDSl/v+/To93R2eD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709673419; c=relaxed/simple; bh=k3lbq9SSH8UrBjWLea184EF/re2YnLcUGUKOBhCs/kE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=P2TFE5mFnGnmmEBaLkYBHzt0f52cJj38IWvU0W9UNix6W9H5x8QzEjzpIj1JAytOHnniSCZQjGkCcapcxsX/y7y6kCNk7dIUd9DAefktQyFbPpZFP2Q9TvMYHKVbJsVI3VAMcj/7JjOaxmmT5J+dn18F5eYYbfG7p1OnMnsOLko= 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=tf2xOb1E; arc=none smtp.client-ip=209.85.167.53 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-lf1-f53.google.com with SMTP id 2adb3069b0e04-513298d6859so1418720e87.3 for ; Tue, 05 Mar 2024 13:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709673415; x=1710278215; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sVdcNBcoAiJYRV+66geixgS685+t5mEWuPqbixAd63s=; b=tf2xOb1EBY+vO9hm8WGSLQMrHT+iHTO2M80nGItdZ6xIcS5pijid4PlhT9FoOBVsnG lG1C3avrWGJJnU8WTuWrhas8TRtCUx8WYfTY5/S8I7thHhFDeOLiukHoRh/FFkHfSLU3 nV7Ik4tkfQoqOZZ/UHyhTbMv5EdJl53zvSHinS6rzRM9FmVVUbb6fljkA3uvBFzW6BRc J8X4bB9z2ubZirvkCTwkZi3CK5LqA4AhsMfIMO6Cf8CadoHd37uBJXHARJ1oXC3EhAT8 5IP7ENZrbMjy76FPRjQeaEe+4J3yx0iae1iMk8U+nQCUnfYc9L5whTwcEZemB23ZLJCs +/5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709673415; x=1710278215; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sVdcNBcoAiJYRV+66geixgS685+t5mEWuPqbixAd63s=; b=q7zRFwtHInppWBOvadAkh1TyLwpD1pqn4AN2b6buSNr6ci+ez7VXPYhU8j6+r6gKuh vi2ut6VJKJdDJkX86HYfB5sJm2QOsS+OZ81S/7oa4+LDNgzJIPD/NxzjsPePwgC2DD8g QvhqH5Od+kBK7NTObinreYs37udsy+FyeQoo707yzRxO+FFj77P8+ZRZ79q5/RIOHtwj uwtuK3GQ4U5I3/duKiNZvoII0VrqgImmsj1BGFzvQ3ukeuohivdo8m6tVQneV8ABaQYY 9EUrBP3Z/kJ9ytZmigPfko5z4/719YzdWCevfWMaytB5AmCbZ0L/xhrMCVF1qY4eOsQN thAA== X-Forwarded-Encrypted: i=1; AJvYcCUMHhgzpDjMpHAM99292YNf72GNHvYxF4PPJahT1AjX5QtZig0hj7snma13sO8ncXmyev7I55DSRri1rfvdDffHwkWwhg+69yf9j/5j X-Gm-Message-State: AOJu0YzJXzLxMQ8gQltj5hPw+F0c/vM1pjKEQ67Tlw3C2/2sK7ptqraS /PPIdpPIZk/MChAQQEHoHsF6mtiIlDZtwHgGg4+kuQd9yDfJ7PGbmpetf/l7oSM= X-Received: by 2002:a05:6512:3055:b0:513:2ead:4f86 with SMTP id b21-20020a056512305500b005132ead4f86mr2610715lfb.12.1709673415066; Tue, 05 Mar 2024 13:16:55 -0800 (PST) Received: from [172.30.204.154] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id i10-20020a198c4a000000b0051330fe710dsm1994042lfj.169.2024.03.05.13.16.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 13:16:54 -0800 (PST) Message-ID: Date: Tue, 5 Mar 2024 22:16:54 +0100 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 Content-Language: en-US To: Viken Dadhaniya , andersson@kernel.org, srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: quic_msavaliy@quicinc.com, quic_vtanuku@quicinc.com, quic_anupkulk@quicinc.com, quic_cchiluve@quicinc.com References: <20240304135000.21432-1-quic_vdadhani@quicinc.com> From: Konrad Dybcio In-Reply-To: <20240304135000.21432-1-quic_vdadhani@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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? > 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.. Konrad