mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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: https://github.com/acpica/acpica/commit/60903715
Fixes: ce5cbf5349 ("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>
			
			
This commit is contained in:
		
							parent
							
								
									8c2ffd9174
								
							
						
					
					
						commit
						aa9aaa4d61
					
				
					 3 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
					@ -1043,9 +1043,6 @@ void __init acpi_early_init(void)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	acpi_permanent_mmap = true;
 | 
						acpi_permanent_mmap = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Initialize debug output. Linux does not use ACPICA defaults */
 | 
					 | 
				
			||||||
	acpi_dbg_level = ACPI_LV_INFO | ACPI_LV_REPAIR;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef CONFIG_X86
 | 
					#ifdef CONFIG_X86
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
	 * If the machine falls into the DMI check table,
 | 
						 * If the machine falls into the DMI check table,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -150,7 +150,10 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Defaults for debug_level, debug and normal */
 | 
					/* Defaults for debug_level, debug and normal */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef ACPI_DEBUG_DEFAULT
 | 
				
			||||||
#define ACPI_DEBUG_DEFAULT          (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_EVALUATION | ACPI_LV_REPAIR)
 | 
					#define ACPI_DEBUG_DEFAULT          (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_EVALUATION | ACPI_LV_REPAIR)
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define ACPI_NORMAL_DEFAULT         (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR)
 | 
					#define ACPI_NORMAL_DEFAULT         (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR)
 | 
				
			||||||
#define ACPI_DEBUG_ALL              (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL)
 | 
					#define ACPI_DEBUG_ALL              (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -82,6 +82,11 @@
 | 
				
			||||||
#define ACPI_NO_ERROR_MESSAGES
 | 
					#define ACPI_NO_ERROR_MESSAGES
 | 
				
			||||||
#undef ACPI_DEBUG_OUTPUT
 | 
					#undef ACPI_DEBUG_OUTPUT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Use a specific bugging default separate from ACPICA */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#undef ACPI_DEBUG_DEFAULT
 | 
				
			||||||
 | 
					#define ACPI_DEBUG_DEFAULT          (ACPI_LV_INFO | ACPI_LV_REPAIR)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* External interface for __KERNEL__, stub is needed */
 | 
					/* External interface for __KERNEL__, stub is needed */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
 | 
					#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue