Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
fa934cc9
Commit
fa934cc9
authored
Dec 10, 2003
by
Len Brown
Committed by
Len Brown
Dec 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] set APIC ACPI SCI OVR default to level/low
http://bugzilla.kernel.org/show_bug.cgi?id=1351
parent
f2e90a1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
9 deletions
+29
-9
arch/i386/kernel/mpparse.c
arch/i386/kernel/mpparse.c
+7
-1
drivers/acpi/tables.c
drivers/acpi/tables.c
+22
-8
No files found.
arch/i386/kernel/mpparse.c
View file @
fa934cc9
...
...
@@ -1081,8 +1081,14 @@ void __init mp_config_ioapic_for_sci(int irq)
ioapic_pin
=
irq
-
mp_ioapic_routing
[
ioapic
].
irq_start
;
/*
* MPS INTI flags:
* trigger: 0=default, 1=edge, 3=level
* polarity: 0=default, 1=high, 3=low
* Per ACPI spec, default for SCI means level/low.
*/
io_apic_set_pci_routing
(
ioapic
,
ioapic_pin
,
irq
,
(
flags
.
trigger
>>
1
)
,
(
flags
.
polarity
>>
1
));
(
flags
.
trigger
==
1
?
0
:
1
),
(
flags
.
polarity
==
1
?
0
:
1
));
}
#ifdef CONFIG_ACPI_PCI
...
...
drivers/acpi/tables.c
View file @
fa934cc9
...
...
@@ -60,6 +60,9 @@ static char *acpi_table_signatures[ACPI_TABLE_COUNT] = {
[
ACPI_HPET
]
=
"HPET"
,
};
static
char
*
mps_inti_flags_polarity
[]
=
{
"dfl"
,
"high"
,
"res"
,
"low"
};
static
char
*
mps_inti_flags_trigger
[]
=
{
"dfl"
,
"edge"
,
"res"
,
"level"
};
/* System Description Table (RSDT/XSDT) */
struct
acpi_table_sdt
{
unsigned
long
pa
;
...
...
@@ -136,8 +139,14 @@ acpi_table_print_madt_entry (
{
struct
acpi_table_int_src_ovr
*
p
=
(
struct
acpi_table_int_src_ovr
*
)
header
;
printk
(
KERN_INFO
PREFIX
"INT_SRC_OVR (bus[%d] irq[0x%x] global_irq[0x%x] polarity[0x%x] trigger[0x%x])
\n
"
,
p
->
bus
,
p
->
bus_irq
,
p
->
global_irq
,
p
->
flags
.
polarity
,
p
->
flags
.
trigger
);
printk
(
KERN_INFO
PREFIX
"INT_SRC_OVR (bus %d bus_irq %d global_irq %d %s %s)
\n
"
,
p
->
bus
,
p
->
bus_irq
,
p
->
global_irq
,
mps_inti_flags_polarity
[
p
->
flags
.
polarity
],
mps_inti_flags_trigger
[
p
->
flags
.
trigger
]);
if
(
p
->
flags
.
reserved
)
printk
(
KERN_INFO
PREFIX
"INT_SRC_OVR unexpected reserved flags: 0x%x
\n
"
,
p
->
flags
.
reserved
);
}
break
;
...
...
@@ -145,8 +154,9 @@ acpi_table_print_madt_entry (
{
struct
acpi_table_nmi_src
*
p
=
(
struct
acpi_table_nmi_src
*
)
header
;
printk
(
KERN_INFO
PREFIX
"NMI_SRC (polarity[0x%x] trigger[0x%x] global_irq[0x%x])
\n
"
,
p
->
flags
.
polarity
,
p
->
flags
.
trigger
,
p
->
global_irq
);
printk
(
KERN_INFO
PREFIX
"NMI_SRC (%s %s global_irq %d)
\n
"
,
mps_inti_flags_polarity
[
p
->
flags
.
polarity
],
mps_inti_flags_trigger
[
p
->
flags
.
trigger
],
p
->
global_irq
);
}
break
;
...
...
@@ -154,8 +164,10 @@ acpi_table_print_madt_entry (
{
struct
acpi_table_lapic_nmi
*
p
=
(
struct
acpi_table_lapic_nmi
*
)
header
;
printk
(
KERN_INFO
PREFIX
"LAPIC_NMI (acpi_id[0x%02x] polarity[0x%x] trigger[0x%x] lint[0x%x])
\n
"
,
p
->
acpi_id
,
p
->
flags
.
polarity
,
p
->
flags
.
trigger
,
p
->
lint
);
printk
(
KERN_INFO
PREFIX
"LAPIC_NMI (acpi_id[0x%02x] %s %s lint[0x%x])
\n
"
,
p
->
acpi_id
,
mps_inti_flags_polarity
[
p
->
flags
.
polarity
],
mps_inti_flags_trigger
[
p
->
flags
.
trigger
],
p
->
lint
);
}
break
;
...
...
@@ -190,8 +202,10 @@ acpi_table_print_madt_entry (
{
struct
acpi_table_plat_int_src
*
p
=
(
struct
acpi_table_plat_int_src
*
)
header
;
printk
(
KERN_INFO
PREFIX
"PLAT_INT_SRC (polarity[0x%x] trigger[0x%x] type[0x%x] id[0x%04x] eid[0x%x] iosapic_vector[0x%x] global_irq[0x%x]
\n
"
,
p
->
flags
.
polarity
,
p
->
flags
.
trigger
,
p
->
type
,
p
->
id
,
p
->
eid
,
p
->
iosapic_vector
,
p
->
global_irq
);
printk
(
KERN_INFO
PREFIX
"PLAT_INT_SRC (%s %s type[0x%x] id[0x%04x] eid[0x%x] iosapic_vector[0x%x] global_irq[0x%x]
\n
"
,
mps_inti_flags_polarity
[
p
->
flags
.
polarity
],
mps_inti_flags_trigger
[
p
->
flags
.
trigger
],
p
->
type
,
p
->
id
,
p
->
eid
,
p
->
iosapic_vector
,
p
->
global_irq
);
}
break
;
...
...
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