Skip to content

Commit aa9aaa4

Browse files
Erik Schmaussrafaeljw
authored andcommitted
ACPI: use different default debug value than ACPICA
Rather than setting debug output flags during early init, its makes more sense to simply re-define ACPI_DEBUG_DEFAULT specifically for Linux. ACPICA commit 60903715711f4b00ca1831779a8a23279a66497d Link: acpica/acpica@60903715 Fixes: ce5cbf5 ("ACPI: Set debug output flags independent of ACPICA") Reported-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Tested-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 8c2ffd9 commit aa9aaa4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

drivers/acpi/bus.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,6 @@ void __init acpi_early_init(void)
10431043

10441044
acpi_permanent_mmap = true;
10451045

1046-
/* Initialize debug output. Linux does not use ACPICA defaults */
1047-
acpi_dbg_level = ACPI_LV_INFO | ACPI_LV_REPAIR;
1048-
10491046
#ifdef CONFIG_X86
10501047
/*
10511048
* If the machine falls into the DMI check table,

include/acpi/acoutput.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@
150150

151151
/* Defaults for debug_level, debug and normal */
152152

153+
#ifndef ACPI_DEBUG_DEFAULT
153154
#define ACPI_DEBUG_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_EVALUATION | ACPI_LV_REPAIR)
155+
#endif
156+
154157
#define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR)
155158
#define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL)
156159

include/acpi/platform/aclinux.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
#define ACPI_NO_ERROR_MESSAGES
8383
#undef ACPI_DEBUG_OUTPUT
8484

85+
/* Use a specific bugging default separate from ACPICA */
86+
87+
#undef ACPI_DEBUG_DEFAULT
88+
#define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR)
89+
8590
/* External interface for __KERNEL__, stub is needed */
8691

8792
#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \

0 commit comments

Comments
 (0)