Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp813825pxb; Tue, 12 Apr 2022 14:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu33Fx8e5EPA1bQ2/pGojpb50g8iH8Uv6C9UASsEy7tGa1enZz+MUcCyuk/DIqgbABtEIh X-Received: by 2002:a63:cf41:0:b0:399:3e74:d249 with SMTP id b1-20020a63cf41000000b003993e74d249mr32448490pgj.475.1649797844758; Tue, 12 Apr 2022 14:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649797844; cv=none; d=google.com; s=arc-20160816; b=PkpfKdjUuaPQumGDv07jnlMGLGvMIL159e5Aqv0RNi+oDlZvC2T9GjnpdfCa8z22vt aG1VJLBzDrCWDshP+03PtsxYHtJxjj2LAWaYr1hMQVEcwGj1w+Nkc8iXIwQkiAwZ7EE1 B+OKzmo2XbjgdF3h8JB7hIs8BSor09q316a/az8N+jK809wxxMAqDNK7YPjdpfuUtWZs KlhAeIu+AIGL/MAuVMPKc+9d7+1lzT+SpBsF5wXMst2TBCtb0zeaxv/so34Isyh7gPDI +FwlJ1mHkqInPByhvkb0F+RDjlclgdq9HmHjP72A/eaz0EAuweAEYKed1DKXpvNld5g9 VLaw== 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=Q31OCPkn/rxCqZ7eXPxj3AaznJC6ucCgC112RRyQxNo=; b=NZo0w2xys1H7ZhBvCMiZrcEtxFqrXE8Ju3vtKzroS3Ag1CUjJBGd3/JE3nEtTVgjwA 8mKU4m+6SFMj/yL+q1+D4LjiYsd/wPIx6g3n2oBbGGsii/fn1IY1QgagKLfCW3epNH4m /AGYhW4EfQYL7xT+7NxWW+UFBsQaCeXYstLdFqXIUXliGV4M02rtLDTyANAKiyJU1WCz d5LqyGB06mapy8PnvN7SAt/NQ6Pqe/Ijhw2Mdf6exwhlZhaA06EyColM0h1Gpz73LDzw K4XILM9KHnozTwLGJrmltMiOB1I6H34wtllCKNAuKFku1S2E9icNak9kQBm7sC1ubTUX MALg== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b20-20020a17090a551400b001ca84546104si11717522pji.27.2022.04.12.14.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C1E6E3382; Tue, 12 Apr 2022 13:27:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349386AbiDKTHD (ORCPT + 99 others); Mon, 11 Apr 2022 15:07:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349349AbiDKTGj (ORCPT ); Mon, 11 Apr 2022 15:06:39 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8612E1FA53; Mon, 11 Apr 2022 12:04:24 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.0.0) id e27e13636f3ed4a3; Mon, 11 Apr 2022 21:04:22 +0200 Received: from kreacher.localnet (unknown [213.134.175.113]) (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) by v370.home.net.pl (Postfix) with ESMTPSA id 39A1466BDFD; Mon, 11 Apr 2022 21:04:22 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Bob Moore Subject: [PATCH 15/20] ACPICA: executer/exsystem: Warn about sleeps greater than 10 ms Date: Mon, 11 Apr 2022 20:59:51 +0200 Message-ID: <4200238.ejJDZkT8p0@kreacher> In-Reply-To: <5578328.DvuYhMxLoT@kreacher> References: <5578328.DvuYhMxLoT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.175.113 X-CLIENT-HOSTNAME: 213.134.175.113 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudekiedgudefgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepgfektdehueehteffueelleehhfffgfejtdehvddtfeetjeffveetheehvdejgfdunecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepvddufedrudefgedrudejhedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvudefrddufeegrddujeehrdduudefpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhosggvrhhtrdhmohhorhgvsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Paul Menzel ACPICA commit 2a0d1d475e7ea1c815bee1e0692d81db9a7c909c Quick boottime is important, so warn about sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350 ms, so excessive delays should be called out. 10 ms is chosen randomly, but three of such delays would already make up ten percent of the boottime. Link: https://github.com/acpica/acpica/commit/2a0d1d47 Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- exsystem.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff -Nurp linux.before_name/drivers/acpi/acpica/exsystem.c linux.after_name/drivers/acpi/acpica/exsystem.c --- linux.before_name/drivers/acpi/acpica/exsystem.c 2022-04-01 18:26:54.958046947 +0200 +++ linux.after_name/drivers/acpi/acpica/exsystem.c 2022-04-01 18:26:51.760086923 +0200 @@ -170,6 +170,16 @@ acpi_status acpi_ex_system_do_sleep(u64 acpi_ex_exit_interpreter(); /* + * Warn users about excessive sleep times, so ASL code can be improved to + * use polling or similar techniques. + */ + if (how_long_ms > 10) { + ACPI_WARNING((AE_INFO, + "Firmware issue: Excessive sleep time (%llu ms > 10 ms) in ACPI Control Method", + how_long_us)); + } + + /* * For compatibility with other ACPI implementations and to prevent * accidental deep sleeps, limit the sleep time to something reasonable. */