Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3013052rdb; Tue, 13 Feb 2024 04:31:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdBOLjHhkK9YKDg4XPXDM71F0ErqLUArTvgbGruPJTvueTfsteXwX38D3LS6pH6K51Zmg7dhqUklvDkax0Fhs4mGPlZ6P/5YjQA22pXg== X-Google-Smtp-Source: AGHT+IF9vQSsiY4x6rqInJs5tmMHPcO8PvEh2jqOlO6GX4NJFclRpXyn2sh/Yz2lnCsibsegRH4m X-Received: by 2002:aa7:8895:0:b0:6e0:329b:3335 with SMTP id z21-20020aa78895000000b006e0329b3335mr4134338pfe.8.1707827507507; Tue, 13 Feb 2024 04:31:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707827507; cv=pass; d=google.com; s=arc-20160816; b=WczML+SSNiCkhbxtjohcyovzA6O43qNa/zOFuBEk7B3tykMTqhC3LzyJ+1fPBBUnkM iQzXjnL502ODjxPoBedudseo7CsI/o92/A+BK4N9R2tYHMDG00pK62F37LXgONSuqVJh a1mUoU0Ugja4r19TTMrqPlyoqpLL9FwhYpZPF6ZGpPrnBEylFRt0RZBGaNCzXFzWqhhG Cyfe/nCxYaEodCXowOsIVLvxMcZnrL5fItc1+TWtYaaZDMEAcf5y+pOEnWgAxeyVJCI5 u/wSdf+W8EypQumhgp0Ogm1i0iwDVKPvgpbbO+Qt077jHHsbu4+I1aqOI4yIUXXTB3xA ungg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=PbEJo2sK2vhPqKtfaiyrgM5WT9LOsasYodgJE8KMnCE=; fh=q2XO9CXc3i57fowksIRs9tRyl0XeXG5h/wy9TMQKCEo=; b=H2SIssIkFtX9a1ModY14D1z4TW4V+K6t+feDHiEZUfO3RVLLu36d5V2lr4jAV7P6AK pJEtk441dDgp6kkJZaaUJF/0OcgdEqvCVdaHqzNEDF3yY+zK1D04kd37dJgDeCt7Shv4 Z+y8RIz6pOtF1XEzOP5wygwgnM9CGEfBtuluOzzu1b9ocOpxDuJaG+e9JpyxF9kbz9oS Ycm73QGz+A9V0oWScUAl2FDRXWGCCpvKQO4HA1pE9+qQFL9fqpYEXyOmHjRiyfFbJy+C vk21WoAjbcWxOKt3UvywKCR3JntnNQnDoLrZfQ8TEI/iZ/2+x/zkt1DODNZaCdmAbik7 jZBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RywdmwzX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCXshQgtw+6lPWcEMT01YmedfHQ4PXC/OyyJ+sQufbTgcgmKYf7V8oNQILDg+3gi/BRcpGex1muIWU0NoT4GfS6IBKirLNXEjsuGzH4nJQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ei42-20020a056a0080ea00b006e032e63f61si6659185pfb.251.2024.02.13.04.31.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 04:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RywdmwzX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63504-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DE09E283714 for ; Tue, 13 Feb 2024 12:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 397DE3E496; Tue, 13 Feb 2024 12:29:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RywdmwzX"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="AiirTZyZ" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0675B3D971 for ; Tue, 13 Feb 2024 12:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707827382; cv=none; b=Sipr2qnnp2CDilpHZrxVutUD8cOKFzd3a1kiEnQrT2OOc7Sp38a6bEVdNW6kVaW8rMwhb792J3YDfsxgk6ecPB1+UOPpbXM2dRdQOG4PCpMEDem2XtkSnbjRyIBfb33iH0PhHKm1x1Q7cnHvbWqWtYMjVAwCEU0uwLiCnZxITUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707827382; c=relaxed/simple; bh=K+XjohJm9zjC5uAAvjaxZ/IRTygND0lsBRH0mqZpWvc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Owl1DntcASsk2ye1CplgPUyqZUfcKTP0zN2WgAX3j3u/EsqXsblL233vb7hNtQhhKQq9bXuoHcWw8d1OBHtVdGZPer4lXmGyanwJ15HoDCa6jpVqUC8Sm98UdoJJBM0pqdkdP1IZjDGEJwfz/IjrubnEyWGp18MCeUFDyNDAE3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RywdmwzX; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=AiirTZyZ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707827379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PbEJo2sK2vhPqKtfaiyrgM5WT9LOsasYodgJE8KMnCE=; b=RywdmwzXv5qSDVREI8QsT+1d7mrvdQ/WTh0dT9RNmfoFI5bcXDQlFw6HEIrS14LOqw6dMD 8PLLme8gLhbT3dRW+TXj2tMWlUqNTqe7sof5FC+edSzc4EFPVXCF2UN/hGo3WT5LT3hUZb Er3kzNmvwNN0WJHgUG6ZBd6/mzFNpY+t3pTKFIykqCKH12YlJUcI3v8VWywHXhOo44l513 DltStizVyaYW7xhbgOtomrECaCGy1BgoEzOoJV5KHkmT00MG5pHEB6a2GHd/PIJbesZFSZ DXUmJp1NGSBf47tCHTkMQIoywLdMrIsUG+PVd+Ts5VDG7dgM09ePkWTAOmm/mQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707827379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PbEJo2sK2vhPqKtfaiyrgM5WT9LOsasYodgJE8KMnCE=; b=AiirTZyZL83FQp/o5TapCme7C0pMvIX1IQvUbJUVPmBno7EwWtzxiPMnNYL+PQF2hVD/BE BFnwRkKjzdHB06DQ== To: John Stultz , Pranav Prasad Cc: sboyd@kernel.org, linux-kernel@vger.kernel.org, krossmo@google.com Subject: Re: [PATCH v2 1/2] alarmtimer: Create alarmtimer sysfs to make duration of kernel suspend check configurable In-Reply-To: References: <20240208195622.758765-1-pranavpp@google.com> <20240208195622.758765-2-pranavpp@google.com> Date: Tue, 13 Feb 2024 13:29:39 +0100 Message-ID: <87r0hgh7ik.ffs@tglx> 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-Transfer-Encoding: quoted-printable On Fri, Feb 09 2024 at 12:01, John Stultz wrote: > On Thu, Feb 8, 2024 at 11:56=E2=80=AFAM Pranav Prasad wrote: >> >> Currently, the alarmtimer_suspend does not allow the kernel >> to suspend if the next alarm is within 2 seconds. >> Create alarmtimer sysfs to make the value of 2 seconds configurable. >> This allows flexibility to provide a different value based on the >> type of device running the Linux kernel. As a data point, about 40% of >> kernel suspend failures in a subset of Android devices were due to >> this check. A differently configured value can avoid these suspend >> failures which performs a lot of additional work affecting the >> power consumption of these Android devices. >> >> Signed-off-by: Pranav Prasad > > I might suggest flipping the order of these two patches, as I'm more > wary of UABI changes, so I don't want to hold up the second patch on > interface bike shedding. Correct. It's an orthogonal issue and an optimization on top of the early check. Thanks, tglx