From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7941925771; Wed, 2 Oct 2024 13:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727875392; cv=none; b=HA1RqH9gaXrZxnCmS95ZXM54jpsqmnCWKTirv+Qvp+yT4Pm4UV2FkjhbcXU5ajIkhtxwb098o3DwQtHPNMPWJSqJ9ZEqLlyLM7N++X2YUXD8VzrZQIjH/e+37vjdk4qhoTY2ZsvC4vgS+YoK/5XHaeJm/x7w0Ct85BjaJh3i7R4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727875392; c=relaxed/simple; bh=+IA/hGqEsS9aLnR0q+UzVZ0rS2+Je4E50vaYsSiDPOM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YWwKwExa9FdD5nCbDUYm4JnBR4hoibmQAaTYk/xH9a/wVaOPV1YaJpFFzSOuLbokTEIjzB8MtpD2SljXcZNfmnKt6S0zXruageJSZ++Cf8VTiDPCg9Wgtr8f9sKAOYrmibnA2E0x0+PiI/C0ApsksRULakp2O6vvk95RNsIxdsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qYzac9ga; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qYzac9ga" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2FEDC4CEC5; Wed, 2 Oct 2024 13:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727875392; bh=+IA/hGqEsS9aLnR0q+UzVZ0rS2+Je4E50vaYsSiDPOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qYzac9gaWjz4Vz1oTtbqz3uGbeNEoTZxngrQRSik2k1eepXyzIDzAwZnmUVkLphr3 0+GBEV4d2MTULfsC+ic9zdQJDXPca0AxWTdEyvSATvAjhZsFI9VrQom4qVkrsNt3vY 1z9d3Q4gfNSu39socU9pdeyjoXPQi4kWtrAHZR+c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vasily Khoruzhick , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 6.11 055/695] ACPICA: executer/exsystem: Dont nag user about every Stall() violating the spec Date: Wed, 2 Oct 2024 14:50:53 +0200 Message-ID: <20241002125824.683152232@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125822.467776898@linuxfoundation.org> References: <20241002125822.467776898@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasily Khoruzhick [ Upstream commit c82c507126c9c9db350be28f14c83fad1c7969ae ] ACPICA commit 129b75516fc49fe1fd6b8c5798f86c13854630b3 Stop nagging user about every Stall() that violates the spec On my Dell XPS 15 7590 I get hundreds of these warnings after few hours of uptime: $ dmesg | grep "fix the firmware" | wc -l 261 I cannot fix the firmware and I doubt that Dell cares about 4 year old laptop either Fixes: ace8f1c54a02 ("ACPICA: executer/exsystem: Inform users about ACPI spec violation") Link: https://github.com/acpica/acpica/commit/129b7551 Signed-off-by: Vasily Khoruzhick Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/acpica/exsystem.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/acpica/exsystem.c b/drivers/acpi/acpica/exsystem.c index f665ffd9a396c..2c384bd52b9c4 100644 --- a/drivers/acpi/acpica/exsystem.c +++ b/drivers/acpi/acpica/exsystem.c @@ -133,14 +133,15 @@ acpi_status acpi_ex_system_do_stall(u32 how_long_us) * (ACPI specifies 100 usec as max, but this gives some slack in * order to support existing BIOSs) */ - ACPI_ERROR((AE_INFO, - "Time parameter is too large (%u)", how_long_us)); + ACPI_ERROR_ONCE((AE_INFO, + "Time parameter is too large (%u)", + how_long_us)); status = AE_AML_OPERAND_VALUE; } else { if (how_long_us > 100) { - ACPI_WARNING((AE_INFO, - "Time parameter %u us > 100 us violating ACPI spec, please fix the firmware.", - how_long_us)); + ACPI_WARNING_ONCE((AE_INFO, + "Time parameter %u us > 100 us violating ACPI spec, please fix the firmware.", + how_long_us)); } acpi_os_stall(how_long_us); } -- 2.43.0