Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1513352pxm; Thu, 24 Feb 2022 04:49:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqT0E2ejbbRi6Dy36CnP0vQ0mCY9nXTRL+j2b6HSNkQM9bpBqvel5WjAsingJOzqqm7gOu X-Received: by 2002:a17:907:3c10:b0:6b9:6f01:37b2 with SMTP id gh16-20020a1709073c1000b006b96f0137b2mr2207241ejc.656.1645706954819; Thu, 24 Feb 2022 04:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645706954; cv=none; d=google.com; s=arc-20160816; b=zMAPGynCv5y/YDk8SPrKzLeliO/3mUtOoeTk1YtpIVn0iiXzJvo6toF2w909WRYLBR /bzfxXpS1UXBo86JKdUnHByb4QvCtoUCv1zyORG9Dc2eHdiimzUOsjk1zkQ87KJM0XR2 MZaDc/nYL9yDzw7sSfaxotzsoxqY+JlK8oBoOqwYiJKNg8i1/QzkO5rdnSJ7G3hHzyf9 nAiOmqK3xBTmXokSgSoYlD1cKke9ddupY7LmgQESi392nM+ncSgCx4UOjGkr7svzAgUL /U5AaARMlmE+wO2w8TZXLa+WRmrPBV3iF1Mx5ViCfuc4p2sYnysi04dYbhFtfbyOYDbM W8hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=19m+l9WpvN7iiiiIVd8iVDLqKgpqrxjyJJy1YAwiL1Q=; b=hSOXObCyyOSiFkNWm5lZr5xj6HOqNcLGcy3QIxS8KtoxEgGX+6bYEdOt0Hr2YpX5r3 tT4uuKoTZQ11AFAzJHoWMolkBCJbF+W1TmMpjWo/hbg8GLipwbYxLYBRfXVvbK9MOg8Y LbJyghgy7zOME9u6km+UQgJzzldOVVqzmPIDsvFvTpjOEQjo9lOXvP4VH4ACm0eZB5sS BdVxLUcGdS8ZXNqmIxIdXPRyeaUoH5otMndOG9S4qmO0o7LovfORKjR7TxcxwDindy1z 54yaUPf4Y1elDps8wSzPadEdtXVve5SxLXcaBvdBCNyjpYJeJvQrROXMy2GLzHV2fTuO h72A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3si1616020ejn.721.2022.02.24.04.48.51; Thu, 24 Feb 2022 04:49:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233225AbiBXLjS (ORCPT + 99 others); Thu, 24 Feb 2022 06:39:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234055AbiBXLjE (ORCPT ); Thu, 24 Feb 2022 06:39:04 -0500 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9576E1B0C59; Thu, 24 Feb 2022 03:38:34 -0800 (PST) Received: from localhost.localdomain (ip5f5aee05.dynamic.kabel-deutschland.de [95.90.238.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 1990A61EA193F; Thu, 24 Feb 2022 12:38:33 +0100 (CET) From: Paul Menzel To: Robert Moore , "Rafael J. Wysocki" , Len Brown Cc: Paul Menzel , linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] acpi: exsystem: Warn about sleeps greater than 50 ms Date: Thu, 24 Feb 2022 12:38:05 +0100 Message-Id: <20220224113807.91771-3-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220224113807.91771-1-pmenzel@molgen.mpg.de> References: <20220224113807.91771-1-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quick boottime is important, so warn about sleeps greater than 50 ms in ACPI. 50 ms is still long compared to distribution Linux kernels reaching initrd in 350 ms, so should probably changed to 10 ms, so people are aware about this. Signed-off-by: Paul Menzel --- drivers/acpi/acpica/exsystem.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/acpi/acpica/exsystem.c b/drivers/acpi/acpica/exsystem.c index 00f66af31ffa..bdffb8aac05c 100644 --- a/drivers/acpi/acpica/exsystem.c +++ b/drivers/acpi/acpica/exsystem.c @@ -167,6 +167,11 @@ acpi_status acpi_ex_system_do_sleep(u64 how_long_ms) acpi_ex_exit_interpreter(); + if (how_long_ms > 50) { + ACPI_WARNING((AE_INFO, + "Time parameter %llu > 50 ms. Please contact firmware vendor for more responsive system.", how_long_ms)); + } + /* * For compatibility with other ACPI implementations and to prevent * accidental deep sleeps, limit the sleep time to something reasonable. -- 2.35.1