Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED Linux Kernel Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Miscellaneous
KED Linux Kernel Fork
Commits
b25e8442
Commit
b25e8442
authored
18 years ago
by
Len Brown
Browse files
Options
Downloads
Plain Diff
Pull bugzilla-7465 into release branch
parents
f5ea908c
09fe5835
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/kernel-parameters.txt
+6
-0
6 additions, 0 deletions
Documentation/kernel-parameters.txt
drivers/acpi/tables.c
+52
-5
52 additions, 5 deletions
drivers/acpi/tables.c
with
58 additions
and
5 deletions
Documentation/kernel-parameters.txt
+
6
−
0
View file @
b25e8442
...
@@ -138,6 +138,12 @@ and is between 256 and 4096 characters. It is defined in the file
...
@@ -138,6 +138,12 @@ and is between 256 and 4096 characters. It is defined in the file
See also Documentation/pm.txt, pci=noacpi
See also Documentation/pm.txt, pci=noacpi
acpi_apic_instance= [ACPI, IOAPIC]
Format: <int>
2: use 2nd APIC table, if available
1,0: use 1st APIC table
default: 2
acpi_sleep= [HW,ACPI] Sleep options
acpi_sleep= [HW,ACPI] Sleep options
Format: { s3_bios, s3_mode }
Format: { s3_bios, s3_mode }
See Documentation/power/video.txt
See Documentation/power/video.txt
...
...
This diff is collapsed.
Click to expand it.
drivers/acpi/tables.c
+
52
−
5
View file @
b25e8442
...
@@ -42,7 +42,9 @@ static char *mps_inti_flags_trigger[] = { "dfl", "edge", "res", "level" };
...
@@ -42,7 +42,9 @@ static char *mps_inti_flags_trigger[] = { "dfl", "edge", "res", "level" };
static
struct
acpi_table_desc
initial_tables
[
ACPI_MAX_TABLES
]
__initdata
;
static
struct
acpi_table_desc
initial_tables
[
ACPI_MAX_TABLES
]
__initdata
;
void
acpi_table_print_madt_entry
(
struct
acpi_subtable_header
*
header
)
static
int
acpi_apic_instance
__initdata
=
2
;
void
acpi_table_print_madt_entry
(
struct
acpi_subtable_header
*
header
)
{
{
if
(
!
header
)
if
(
!
header
)
return
;
return
;
...
@@ -183,8 +185,10 @@ acpi_table_parse_entries(char *id,
...
@@ -183,8 +185,10 @@ acpi_table_parse_entries(char *id,
if
(
!
handler
)
if
(
!
handler
)
return
-
EINVAL
;
return
-
EINVAL
;
/* Locate the table (if exists). There should only be one. */
if
(
strncmp
(
id
,
ACPI_SIG_MADT
,
4
)
==
0
)
acpi_get_table
(
id
,
0
,
&
table_header
);
acpi_get_table
(
id
,
acpi_apic_instance
,
&
table_header
);
else
acpi_get_table
(
id
,
0
,
&
table_header
);
if
(
!
table_header
)
{
if
(
!
table_header
)
{
printk
(
KERN_WARNING
PREFIX
"%4.4s not present
\n
"
,
id
);
printk
(
KERN_WARNING
PREFIX
"%4.4s not present
\n
"
,
id
);
...
@@ -237,10 +241,15 @@ acpi_table_parse_madt(enum acpi_madt_type id,
...
@@ -237,10 +241,15 @@ acpi_table_parse_madt(enum acpi_madt_type id,
int
__init
acpi_table_parse
(
char
*
id
,
acpi_table_handler
handler
)
int
__init
acpi_table_parse
(
char
*
id
,
acpi_table_handler
handler
)
{
{
struct
acpi_table_header
*
table
=
NULL
;
struct
acpi_table_header
*
table
=
NULL
;
if
(
!
handler
)
if
(
!
handler
)
return
-
EINVAL
;
return
-
EINVAL
;
acpi_get_table
(
id
,
0
,
&
table
);
if
(
strncmp
(
id
,
ACPI_SIG_MADT
,
4
)
==
0
)
acpi_get_table
(
id
,
acpi_apic_instance
,
&
table
);
else
acpi_get_table
(
id
,
0
,
&
table
);
if
(
table
)
{
if
(
table
)
{
handler
(
table
);
handler
(
table
);
return
0
;
return
0
;
...
@@ -248,6 +257,31 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler)
...
@@ -248,6 +257,31 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler)
return
1
;
return
1
;
}
}
/*
* The BIOS is supposed to supply a single APIC/MADT,
* but some report two. Provide a knob to use either.
* (don't you wish instance 0 and 1 were not the same?)
*/
static
void
__init
check_multiple_madt
(
void
)
{
struct
acpi_table_header
*
table
=
NULL
;
acpi_get_table
(
ACPI_SIG_MADT
,
2
,
&
table
);
if
(
table
)
{
printk
(
KERN_WARNING
PREFIX
"BIOS bug: multiple APIC/MADT found,"
" using %d
\n
"
,
acpi_apic_instance
);
printk
(
KERN_WARNING
PREFIX
"If
\"
acpi_apic_instance=%d
\"
works better, "
"notify linux-acpi@vger.kernel.org
\n
"
,
acpi_apic_instance
?
0
:
2
);
}
else
acpi_apic_instance
=
0
;
return
;
}
/*
/*
* acpi_table_init()
* acpi_table_init()
*
*
...
@@ -257,9 +291,22 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler)
...
@@ -257,9 +291,22 @@ int __init acpi_table_parse(char *id, acpi_table_handler handler)
* result: sdt_entry[] is initialized
* result: sdt_entry[] is initialized
*/
*/
int
__init
acpi_table_init
(
void
)
int
__init
acpi_table_init
(
void
)
{
{
acpi_initialize_tables
(
initial_tables
,
ACPI_MAX_TABLES
,
0
);
acpi_initialize_tables
(
initial_tables
,
ACPI_MAX_TABLES
,
0
);
check_multiple_madt
();
return
0
;
}
static
int
__init
acpi_parse_apic_instance
(
char
*
str
)
{
acpi_apic_instance
=
simple_strtoul
(
str
,
NULL
,
0
);
printk
(
KERN_NOTICE
PREFIX
"Shall use APIC/MADT table %d
\n
"
,
acpi_apic_instance
);
return
0
;
return
0
;
}
}
early_param
(
"acpi_apic_instance"
,
acpi_parse_apic_instance
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment