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 F09D63277A9; Fri, 17 Oct 2025 15:12:59 +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=1760713980; cv=none; b=nXOYr582GciOMSayRKOd+cws/MUaujfsimPG3sZ2ZlPx7z3jYydfKS6AkXYukfqB5Jwu5+4E/7SHjTB3TNCwejmtlr4bw3mWOzZiQr9ac1qzhl67YlqeDxO3rZr1DyOYwHt16cgFPzaMi1YHwkyqKYUodaAPB55cHn0MbockNcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713980; c=relaxed/simple; bh=P18kzHL2hEnhADYeGgi5Ga6ZBGA3B4sXtCN4rudqH8s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uwNsIesdvSEeTE2s1+uxLxpR9vZYf2LTT9bz7iJ8FXmT2+5pfGFQGK5SFmoNLyDC8rvy/uiX9Fs7AP27D5fVCzYCOteFhvt32dotSAby3XZelqdr20pVgJM/LLjASV+orrY/qCan9phwpE3uXp55ppK1lb6dGROPiSZ0iAsqiug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LEuGVe3l; 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="LEuGVe3l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C1DDC4CEF9; Fri, 17 Oct 2025 15:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713979; bh=P18kzHL2hEnhADYeGgi5Ga6ZBGA3B4sXtCN4rudqH8s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LEuGVe3lpEArrhb6wrSWZ/3gD4MGpRI3o2LEsU9QixDHwEdSXtejZBhfIyv8XXHeR 2iBLtXlUo7EBbTJYJZX+Shd8V8hwlbMG7NxBzVmmWuajnA8wnKbakeM/aV2HjrgQ2A yh0iN42FuJUSE62iiVupb+o9bNmhhC1mxRW60nR0= 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.6 154/201] ACPICA: Allow to skip Global Lock initialization Date: Fri, 17 Oct 2025 16:53:35 +0200 Message-ID: <20251017145140.388518202@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145134.710337454@linuxfoundation.org> References: <20251017145134.710337454@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.6-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.