Re: acpi.debug_level not working as intended

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/12/19 12:02 PM, Schmauss, Erik wrote:


-----Original Message-----
From: linux-acpi-owner@xxxxxxxxxxxxxxx [mailto:linux-acpi-
owner@xxxxxxxxxxxxxxx] On Behalf Of Alex G.
Sent: Tuesday, March 12, 2019 9:39 AM
To: ACPI Devel Maling List <linux-acpi@xxxxxxxxxxxxxxx>
Cc: Bolen, Austin <austin_bolen@xxxxxxxx>
Subject: acpi.debug_level not working as intended

Hi,

I want to get to the AML Debug object on boot. I'm setting the kernel
parameters appropriately:

	acpi.debug_layer=0xfffffff acpi.debug_level=0x2

debug_layer gets set just fine, however, debug_level always ends up
as 0xC. I don't get anything from the Debug object in the system log. Is
this some sort of bug?

Which kernel version are you using? I remember making changes to this at some point...


BINGO! It's a commit I had a hand in:
ce5cbf53496bf "ACPI: Set debug output flags independent of ACPICA"

I think this acpi_early_init is called after the commandline parameters are set. I wonder if there's a way to give the cmdline parameter a default value. That would solve this issue and not unsolve the previous.

Alex

Erik

Alex


Appendix A: kernel commandline and resulting acpi parameters

$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.0.0+ root=/dev/mapper/fedora-root ro
rd.lvm.lv=fedora/root rd.lvm.lv=fedora/home console=tty0
console=ttyS1,115200n8 rhgb acpi.debug_layer=0xffffffff
acpi.debug_level=0x2 LANG=en_US.UTF-8

$ cat /sys/module/acpi/parameters/debug_l*
Description                     Hex        SET
ACPI_UTILITIES                  0x00000001 [*]
ACPI_HARDWARE                   0x00000002 [*]
ACPI_EVENTS                     0x00000004 [*]
ACPI_TABLES                     0x00000008 [*]
ACPI_NAMESPACE                  0x00000010 [*]
ACPI_PARSER                     0x00000020 [*]
ACPI_DISPATCHER                 0x00000040 [*]
ACPI_EXECUTER                   0x00000080 [*]
ACPI_RESOURCES                  0x00000100 [*]
ACPI_CA_DEBUGGER                0x00000200 [*]
ACPI_OS_SERVICES                0x00000400 [*]
ACPI_CA_DISASSEMBLER            0x00000800 [*]
ACPI_COMPILER                   0x00001000 [*]
ACPI_TOOLS                      0x00002000 [*]
ACPI_BUS_COMPONENT              0x00010000 [*]
ACPI_AC_COMPONENT               0x00020000 [*]
ACPI_BATTERY_COMPONENT          0x00040000 [*]
ACPI_BUTTON_COMPONENT           0x00080000 [*]
ACPI_SBS_COMPONENT              0x00100000 [*]
ACPI_FAN_COMPONENT              0x00200000 [*]
ACPI_PCI_COMPONENT              0x00400000 [*]
ACPI_POWER_COMPONENT            0x00800000 [*]
ACPI_CONTAINER_COMPONENT        0x01000000 [*]
ACPI_SYSTEM_COMPONENT           0x02000000 [*]
ACPI_THERMAL_COMPONENT          0x04000000 [*]
ACPI_MEMORY_DEVICE_COMPONENT    0x08000000 [*]
ACPI_VIDEO_COMPONENT            0x10000000 [*]
ACPI_PROCESSOR_COMPONENT        0x20000000 [*]
ACPI_ALL_DRIVERS                0xFFFF0000 [*]
--
debug_layer = 0xFFFFFFFF ( * = enabled)
Description                     Hex        SET
ACPI_LV_INIT                    0x00000001 [ ]
ACPI_LV_DEBUG_OBJECT            0x00000002 [ ]
ACPI_LV_INFO                    0x00000004 [*]
ACPI_LV_REPAIR                  0x00000008 [*]
ACPI_LV_TRACE_POINT             0x00000010 [ ]
ACPI_LV_INIT_NAMES              0x00000020 [ ]
ACPI_LV_PARSE                   0x00000040 [ ]
ACPI_LV_LOAD                    0x00000080 [ ]
ACPI_LV_DISPATCH                0x00000100 [ ]
ACPI_LV_EXEC                    0x00000200 [ ]
ACPI_LV_NAMES                   0x00000400 [ ]
ACPI_LV_OPREGION                0x00000800 [ ]
ACPI_LV_BFIELD                  0x00001000 [ ]
ACPI_LV_TABLES                  0x00002000 [ ]
ACPI_LV_VALUES                  0x00004000 [ ]
ACPI_LV_OBJECTS                 0x00008000 [ ]
ACPI_LV_RESOURCES               0x00010000 [ ]
ACPI_LV_USER_REQUESTS           0x00020000 [ ]
ACPI_LV_PACKAGE                 0x00040000 [ ]
ACPI_LV_ALLOCATIONS             0x00100000 [ ]
ACPI_LV_FUNCTIONS               0x00200000 [ ]
ACPI_LV_OPTIMIZATIONS           0x00400000 [ ]
ACPI_LV_MUTEX                   0x01000000 [ ]
ACPI_LV_THREADS                 0x02000000 [ ]
ACPI_LV_IO                      0x04000000 [ ]
ACPI_LV_INTERRUPTS              0x08000000 [ ]
ACPI_LV_AML_DISASSEMBLE         0x10000000 [ ]
ACPI_LV_VERBOSE_INFO            0x20000000 [ ]
ACPI_LV_FULL_TABLES             0x40000000 [ ]
ACPI_LV_EVENTS                  0x80000000 [ ]
--
debug_level = 0x0000000C (* = enabled)



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux