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
98620656
Commit
98620656
authored
Sep 26, 2002
by
Linus Torvalds
Committed by
Christoph Hellwig
Sep 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the ACPI SCI interrupt get the right polarity
when it is explicitly overridden in the MADT
parent
fdba8dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
arch/i386/kernel/mpparse.c
arch/i386/kernel/mpparse.c
+29
-0
No files found.
arch/i386/kernel/mpparse.c
View file @
98620656
...
@@ -1019,10 +1019,39 @@ void __init mp_config_acpi_legacy_irqs (void)
...
@@ -1019,10 +1019,39 @@ void __init mp_config_acpi_legacy_irqs (void)
/* Ensure the ACPI SCI interrupt level is active low, edge-triggered */
/* Ensure the ACPI SCI interrupt level is active low, edge-triggered */
extern
FADT_DESCRIPTOR
acpi_fadt
;
void
__init
mp_config_ioapic_for_sci
(
int
irq
)
void
__init
mp_config_ioapic_for_sci
(
int
irq
)
{
{
int
ioapic
;
int
ioapic
;
int
ioapic_pin
;
int
ioapic_pin
;
struct
acpi_table_madt
*
madt
;
struct
acpi_table_int_src_ovr
*
entry
=
NULL
;
void
*
madt_end
;
acpi_status
status
;
/*
* Ensure that if there is an interrupt source override entry
* for the ACPI SCI, we leave it as is. Unfortunately this involves
* walking the MADT again.
*/
status
=
acpi_get_firmware_table
(
"APIC"
,
1
,
ACPI_LOGICAL_ADDRESSING
,
(
acpi_table_header
**
)
&
madt
);
if
(
ACPI_SUCCESS
(
status
))
{
madt_end
=
madt
+
madt
->
header
.
length
;
entry
=
(
struct
acpi_table_int_src_ovr
*
)
((
unsigned
long
)
madt
+
sizeof
(
struct
acpi_table_madt
));
while
((
void
*
)
entry
<
madt_end
)
{
if
(
entry
->
header
.
type
==
ACPI_MADT_INT_SRC_OVR
&&
acpi_fadt
.
sci_int
==
entry
->
global_irq
)
return
;
entry
=
(
struct
acpi_table_int_src_ovr
*
)
((
unsigned
long
)
entry
+
entry
->
header
.
length
);
}
}
ioapic
=
mp_find_ioapic
(
irq
);
ioapic
=
mp_find_ioapic
(
irq
);
...
...
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