Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
fb165969
Commit
fb165969
authored
Apr 28, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull misc-for-upstream into release branch
parents
f188291a
afd3810d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
65 additions
and
38 deletions
+65
-38
Documentation/kernel-parameters.txt
Documentation/kernel-parameters.txt
+27
-5
arch/i386/kernel/acpi/earlyquirk.c
arch/i386/kernel/acpi/earlyquirk.c
+4
-1
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+2
-2
drivers/acpi/acpi_memhotplug.c
drivers/acpi/acpi_memhotplug.c
+4
-9
drivers/acpi/bus.c
drivers/acpi/bus.c
+3
-1
drivers/acpi/container.c
drivers/acpi/container.c
+2
-4
drivers/acpi/processor_core.c
drivers/acpi/processor_core.c
+1
-3
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+0
-8
drivers/acpi/scan.c
drivers/acpi/scan.c
+3
-1
drivers/acpi/sleep/proc.c
drivers/acpi/sleep/proc.c
+13
-3
drivers/clocksource/acpi_pm.c
drivers/clocksource/acpi_pm.c
+1
-1
drivers/pci/pci-acpi.c
drivers/pci/pci-acpi.c
+4
-0
include/acpi/actbl.h
include/acpi/actbl.h
+1
-0
No files found.
Documentation/kernel-parameters.txt
View file @
fb165969
...
...
@@ -181,19 +181,41 @@ and is between 256 and 4096 characters. It is defined in the file
that require a timer override, but don't have
HPET
acpi
_db
g_layer= [HW,ACPI]
acpi
.debu
g_layer= [HW,ACPI]
Format: <int>
Each bit of the <int> indicates an ACPI debug layer,
1: enable, 0: disable. It is useful for boot time
debugging. After system has booted up, it can be set
via /proc/acpi/debug_layer.
acpi_dbg_level= [HW,ACPI]
via /sys/module/acpi/parameters/debug_layer.
CONFIG_ACPI_DEBUG must be enabled for this to produce any output.
Available bits (add the numbers together) to enable debug output
for specific parts of the ACPI subsystem:
0x01 utilities 0x02 hardware 0x04 events 0x08 tables
0x10 namespace 0x20 parser 0x40 dispatcher
0x80 executer 0x100 resources 0x200 acpica debugger
0x400 os services 0x800 acpica disassembler.
The number can be in decimal or prefixed with 0x in hex.
Warning: Many of these options can produce a lot of
output and make your system unusable. Be very careful.
acpi.debug_level= [HW,ACPI]
Format: <int>
Each bit of the <int> indicates an ACPI debug level,
1: enable, 0: disable. It is useful for boot time
debugging. After system has booted up, it can be set
via /proc/acpi/debug_level.
via /sys/module/acpi/parameters/debug_level.
CONFIG_ACPI_DEBUG must be enabled for this to produce any output.
Available bits (add the numbers together) to enable different
debug output levels of the ACPI subsystem:
0x01 error 0x02 warn 0x04 init 0x08 debug object
0x10 info 0x20 init names 0x40 parse 0x80 load
0x100 dispatch 0x200 execute 0x400 names 0x800 operation region
0x1000 bfield 0x2000 tables 0x4000 values 0x8000 objects
0x10000 resources 0x20000 user requests 0x40000 package.
The number can be in decimal or prefixed with 0x in hex.
Warning: Many of these options can produce a lot of
output and make your system unusable. Be very careful.
acpi_fake_ecdt [HW,ACPI] Workaround failure due to BIOS lacking ECDT
...
...
arch/i386/kernel/acpi/earlyquirk.c
View file @
fb165969
...
...
@@ -23,10 +23,13 @@ static int __init nvidia_hpet_check(struct acpi_table_header *header)
static
int
__init
check_bridge
(
int
vendor
,
int
device
)
{
#ifdef CONFIG_ACPI
static
int
warned
;
/* According to Nvidia all timer overrides are bogus unless HPET
is enabled. */
if
(
!
acpi_use_timer_override
&&
vendor
==
PCI_VENDOR_ID_NVIDIA
)
{
if
(
acpi_table_parse
(
ACPI_SIG_HPET
,
nvidia_hpet_check
))
{
if
(
!
warned
&&
acpi_table_parse
(
ACPI_SIG_HPET
,
nvidia_hpet_check
))
{
warned
=
1
;
acpi_skip_timer_override
=
1
;
printk
(
KERN_INFO
"Nvidia board "
"detected. Ignoring ACPI "
...
...
drivers/acpi/Kconfig
View file @
fb165969
...
...
@@ -85,8 +85,8 @@ config ACPI_PROCFS
depends on ACPI
default y
---help---
Procfs interface for ACPI is made optional for back-compatible
.
As the same functions are duplicated in sysfs interface
The Procfs interface for ACPI is made optional for backward compatibility
.
As the same functions are duplicated in
the
sysfs interface
and this proc interface will be removed some time later,
it's marked as deprecated.
( /proc/acpi/debug_layer && debug_level are deprecated by
...
...
drivers/acpi/acpi_memhotplug.c
View file @
fb165969
...
...
@@ -44,11 +44,6 @@ MODULE_AUTHOR("Naveen B S <naveen.b.s@intel.com>");
MODULE_DESCRIPTION
(
"Hotplug Mem Driver"
);
MODULE_LICENSE
(
"GPL"
);
/* ACPI _STA method values */
#define ACPI_MEMORY_STA_PRESENT (0x00000001UL)
#define ACPI_MEMORY_STA_ENABLED (0x00000002UL)
#define ACPI_MEMORY_STA_FUNCTIONAL (0x00000008UL)
/* Memory Device States */
#define MEMORY_INVALID_STATE 0
#define MEMORY_POWER_ON_STATE 1
...
...
@@ -204,9 +199,9 @@ static int acpi_memory_check_device(struct acpi_memory_device *mem_device)
* Check for device status. Device should be
* present/enabled/functioning.
*/
if
(
!
((
current_status
&
ACPI_
MEMORY_STA
_PRESENT
)
&&
(
current_status
&
ACPI_
MEMORY_STA
_ENABLED
)
&&
(
current_status
&
ACPI_
MEMORY_STA_FUNCTIONAL
)))
if
(
!
((
current_status
&
ACPI_
STA_DEVICE
_PRESENT
)
&&
(
current_status
&
ACPI_
STA_DEVICE
_ENABLED
)
&&
(
current_status
&
ACPI_
STA_DEVICE_FUNCTIONING
)))
return
-
ENODEV
;
return
0
;
...
...
@@ -286,7 +281,7 @@ static int acpi_memory_powerdown_device(struct acpi_memory_device *mem_device)
return
-
ENODEV
;
/* Check for device status. Device should be disabled */
if
(
current_status
&
ACPI_
MEMORY_STA
_ENABLED
)
if
(
current_status
&
ACPI_
STA_DEVICE
_ENABLED
)
return
-
EINVAL
;
return
0
;
...
...
drivers/acpi/bus.c
View file @
fb165969
...
...
@@ -103,7 +103,9 @@ int acpi_bus_get_status(struct acpi_device *device)
else
if
(
device
->
parent
)
device
->
status
=
device
->
parent
->
status
;
else
STRUCT_TO_INT
(
device
->
status
)
=
0x0F
;
STRUCT_TO_INT
(
device
->
status
)
=
ACPI_STA_DEVICE_PRESENT
|
ACPI_STA_DEVICE_ENABLED
|
ACPI_STA_DEVICE_UI
|
ACPI_STA_DEVICE_FUNCTIONING
;
if
(
device
->
status
.
functional
&&
!
device
->
status
.
present
)
{
printk
(
KERN_WARNING
PREFIX
"Device [%s] status [%08x]: "
...
...
drivers/acpi/container.c
View file @
fb165969
...
...
@@ -49,8 +49,6 @@ MODULE_AUTHOR("Anil S Keshavamurthy");
MODULE_DESCRIPTION
(
"ACPI container driver"
);
MODULE_LICENSE
(
"GPL"
);
#define ACPI_STA_PRESENT (0x00000001)
static
int
acpi_container_add
(
struct
acpi_device
*
device
);
static
int
acpi_container_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
@@ -75,13 +73,13 @@ static int is_device_present(acpi_handle handle)
status
=
acpi_get_handle
(
handle
,
"_STA"
,
&
temp
);
if
(
ACPI_FAILURE
(
status
))
return
1
;
/* _STA not found, ass
mu
e device present */
return
1
;
/* _STA not found, ass
um
e device present */
status
=
acpi_evaluate_integer
(
handle
,
"_STA"
,
NULL
,
&
sta
);
if
(
ACPI_FAILURE
(
status
))
return
0
;
/* Firmware error */
return
((
sta
&
ACPI_STA_
PRESENT
)
==
ACPI_STA
_PRESENT
);
return
((
sta
&
ACPI_STA_
DEVICE_PRESENT
)
==
ACPI_STA_DEVICE
_PRESENT
);
}
/*******************************************************************/
...
...
drivers/acpi/processor_core.c
View file @
fb165969
...
...
@@ -70,8 +70,6 @@
#define ACPI_PROCESSOR_LIMIT_USER 0
#define ACPI_PROCESSOR_LIMIT_THERMAL 1
#define ACPI_STA_PRESENT 0x00000001
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
ACPI_MODULE_NAME
(
"processor_core"
);
...
...
@@ -779,7 +777,7 @@ static int is_processor_present(acpi_handle handle)
status
=
acpi_evaluate_integer
(
handle
,
"_STA"
,
NULL
,
&
sta
);
if
(
ACPI_FAILURE
(
status
)
||
!
(
sta
&
ACPI_STA_PRESENT
))
{
if
(
ACPI_FAILURE
(
status
)
||
!
(
sta
&
ACPI_STA_
DEVICE_
PRESENT
))
{
ACPI_EXCEPTION
((
AE_INFO
,
status
,
"Processor Device is not present"
));
return
0
;
}
...
...
drivers/acpi/processor_idle.c
View file @
fb165969
...
...
@@ -51,14 +51,6 @@
#include <asm/apic.h>
#endif
/*
* Include the apic definitions for x86 to have the APIC timer related defines
* available also for UP (on SMP it gets magically included via linux/smp.h).
*/
#ifdef CONFIG_X86
#include <asm/apic.h>
#endif
#include <asm/io.h>
#include <asm/uaccess.h>
...
...
drivers/acpi/scan.c
View file @
fb165969
...
...
@@ -1068,7 +1068,9 @@ acpi_add_single_object(struct acpi_device **child,
}
break
;
default:
STRUCT_TO_INT
(
device
->
status
)
=
0x0F
;
STRUCT_TO_INT
(
device
->
status
)
=
ACPI_STA_DEVICE_PRESENT
|
ACPI_STA_DEVICE_ENABLED
|
ACPI_STA_DEVICE_UI
|
ACPI_STA_DEVICE_FUNCTIONING
;
break
;
}
...
...
drivers/acpi/sleep/proc.c
View file @
fb165969
...
...
@@ -350,21 +350,31 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
{
struct
list_head
*
node
,
*
next
;
seq_printf
(
seq
,
"Device
Sleep state Status
\n
"
);
seq_printf
(
seq
,
"Device
\t
S-state
\t
Status Sysfs node
\n
"
);
spin_lock
(
&
acpi_device_lock
);
list_for_each_safe
(
node
,
next
,
&
acpi_wakeup_device_list
)
{
struct
acpi_device
*
dev
=
container_of
(
node
,
struct
acpi_device
,
wakeup_list
);
struct
device
*
ldev
;
if
(
!
dev
->
wakeup
.
flags
.
valid
)
continue
;
spin_unlock
(
&
acpi_device_lock
);
seq_printf
(
seq
,
"%4s %4d %s%8s
\n
"
,
ldev
=
acpi_get_physical_device
(
dev
->
handle
);
seq_printf
(
seq
,
"%s
\t
S%d
\t
%c%-8s "
,
dev
->
pnp
.
bus_id
,
(
u32
)
dev
->
wakeup
.
sleep_state
,
dev
->
wakeup
.
flags
.
run_wake
?
"*"
:
""
,
dev
->
wakeup
.
flags
.
run_wake
?
'*'
:
' '
,
dev
->
wakeup
.
state
.
enabled
?
"enabled"
:
"disabled"
);
if
(
ldev
)
seq_printf
(
seq
,
"%s:%s"
,
ldev
->
bus
?
ldev
->
bus
->
name
:
"no-bus"
,
ldev
->
bus_id
);
seq_printf
(
seq
,
"
\n
"
);
put_device
(
ldev
);
spin_lock
(
&
acpi_device_lock
);
}
spin_unlock
(
&
acpi_device_lock
);
...
...
drivers/clocksource/acpi_pm.c
View file @
fb165969
...
...
@@ -26,7 +26,7 @@
/*
* The I/O port the PMTMR resides at.
* The location is detected during setup_arch(),
* in arch/i386/acpi/boot.c
* in arch/i386/
kernel/
acpi/boot.c
*/
u32
pmtmr_ioport
__read_mostly
;
...
...
drivers/pci/pci-acpi.c
View file @
fb165969
...
...
@@ -317,6 +317,10 @@ static int __init acpi_pci_init(void)
{
int
ret
;
if
(
acpi_gbl_FADT
.
boot_flags
&
BAF_MSI_NOT_SUPPORTED
)
{
printk
(
KERN_INFO
"ACPI FADT declares the system doesn't support MSI, so disable it
\n
"
);
pci_no_msi
();
}
ret
=
register_acpi_bus_type
(
&
acpi_pci_bus
);
if
(
ret
)
return
0
;
...
...
include/acpi/actbl.h
View file @
fb165969
...
...
@@ -276,6 +276,7 @@ enum acpi_prefered_pm_profiles {
#define BAF_LEGACY_DEVICES 0x0001
#define BAF_8042_KEYBOARD_CONTROLLER 0x0002
#define BAF_MSI_NOT_SUPPORTED 0x0008
#define FADT2_REVISION_ID 3
#define FADT2_MINUS_REVISION_ID 2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment