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 1D2962745E; Fri, 17 Oct 2025 15:04:00 +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=1760713441; cv=none; b=QV6EWh9swIUs4FgZ64RiyOKcxOImn6guIRjNRmKVx+2ph8OfLgHYs55StlpmTTEHgMq7js1kHOA3EEFapp+6iYfp3S7Xun2xdYNp3y0fYV8/erdDb0Fe/YQaQQb+fv7wOGhmPob485/Rpi0IAHdw/dkotvfE3kl+V7ZxHhMKd9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713441; c=relaxed/simple; bh=Ni3NMg5hBu5D/MJk8AzDF+5S0+SKlV9hcrL99mszgvM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q9zG6QX/hm8YyIKnghNCAwmw5CC5GpvirUCWSTrDSnBDWke5qoqhr1egZxiLaBmKjTlGCZhmHF+rhh5dFqV0J7XRo2lO0frSrjwfB14JRas9Mj+M0XW9bDoQRWtPhuD0A9ps1qhPi0vSOuSiQfsttlATiUxsnqRolHC3cBL+DGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lVLGTupV; 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="lVLGTupV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C051C4CEF9; Fri, 17 Oct 2025 15:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713440; bh=Ni3NMg5hBu5D/MJk8AzDF+5S0+SKlV9hcrL99mszgvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lVLGTupVIvDuBf98iU9w97mjQK98N0h1asFXc5gifPJxSBsq+QPqqY/wBQbSmhijZ 2HitC3Xf6ymzy3eHbqfzaf3YE9otjQXcR6CnHbeXATUthp3k0/F/JSwXCgUVkXWlSA riIsgcMyXNNCHsQTXqMZ7ULrtOOoqyDjImL16Vy0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Huacai Chen , "Rafael J. Wysocki" , Huacai Chen Subject: [PATCH 6.1 133/168] ACPICA: Allow to skip Global Lock initialization Date: Fri, 17 Oct 2025 16:53:32 +0200 Message-ID: <20251017145133.926327673@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145129.000176255@linuxfoundation.org> References: <20251017145129.000176255@linuxfoundation.org> User-Agent: quilt/0.69 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.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Huacai Chen commit feb8ae81b2378b75a99c81d315602ac8918ed382 upstream. Introduce acpi_gbl_use_global_lock, which allows to skip the Global Lock initialization. This is useful for systems without Global Lock (such as loong_arch), so as to avoid error messages during boot phase: ACPI Error: Could not enable global_lock event (20240827/evxfevnt-182) ACPI Error: No response from Global Lock hardware, disabling lock (20240827/evglock-59) Link: https://github.com/acpica/acpica/commit/463cb0fe Signed-off-by: Huacai Chen Signed-off-by: Rafael J. Wysocki Cc: Huacai Chen Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/acpica/evglock.c | 4 ++++ include/acpi/acpixf.h | 6 ++++++ 2 files changed, 10 insertions(+) --- a/drivers/acpi/acpica/evglock.c +++ b/drivers/acpi/acpica/evglock.c @@ -42,6 +42,10 @@ acpi_status acpi_ev_init_global_lock_han return_ACPI_STATUS(AE_OK); } + if (!acpi_gbl_use_global_lock) { + return_ACPI_STATUS(AE_OK); + } + /* Attempt installation of the global lock handler */ status = acpi_install_fixed_event_handler(ACPI_EVENT_GLOBAL, --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h @@ -214,6 +214,12 @@ ACPI_INIT_GLOBAL(u8, acpi_gbl_osi_data, ACPI_INIT_GLOBAL(u8, acpi_gbl_reduced_hardware, FALSE); /* + * ACPI Global Lock is mainly used for systems with SMM, so no-SMM systems + * (such as loong_arch) may not have and not use Global Lock. + */ +ACPI_INIT_GLOBAL(u8, acpi_gbl_use_global_lock, TRUE); + +/* * Maximum timeout for While() loop iterations before forced method abort. * This mechanism is intended to prevent infinite loops during interpreter * execution within a host kernel.