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 386B9217722; Fri, 17 Oct 2025 15:24: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=1760714652; cv=none; b=cTxfejlOHBupors5H1iCxPiNVat5nnyv1ljJw82v9Uiwx+SyZlNEzwuozoArgoqUi4Di0XAf2uGLAyMUiz+j02cH+f0oiB8tVsBoiU/8c0e6rKzdDLysA3gLN/9/T0gDYRFoIupYmsHIE757NyfTTdoA0xgxazOiVMX/QHXMUvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760714652; c=relaxed/simple; bh=zPXGAcY6anWoC9YtcCHQCiNwX0GN+hqNcy2A48x+O60=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YQGKX/3q3uIHixjoZd7H8dMoxkS74XdBSWMlzdY3zoDNYJxvTsPnPSWCn+3nQNtQVibs+3EjcSz9SOmNlMT4DW6WxB6Apq87CX//L8OnYp9OF1iG64X77ZuEusmm4IT8Uizu/S9GP+Evx2txZ2W4IUVvZYMEFTOGkDQV74WGOmw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dbaQVM46; 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="dbaQVM46" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEEC6C4CEFE; Fri, 17 Oct 2025 15:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760714652; bh=zPXGAcY6anWoC9YtcCHQCiNwX0GN+hqNcy2A48x+O60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dbaQVM46O/RJ1vuwHsqxTtGz8x3UlPROuBZW5acU5iM8KEnaoXPR5MxW2vXRfo/a7 T756LglcI+h4n7jBKQ0Tu/9OyF+nLCORg6AvRQziDDAlTyD165JwaQ+DB875z9Uw4x VD+ErI+PjA51mX+y45jgjTQwevomPk9bfllqpBrY= 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.12 220/277] ACPICA: Allow to skip Global Lock initialization Date: Fri, 17 Oct 2025 16:53:47 +0200 Message-ID: <20251017145155.160486435@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145147.138822285@linuxfoundation.org> References: <20251017145147.138822285@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.12-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.