Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160161080
D23965.id69215.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23965.id69215.diff
View Options
Index: sys/x86/x86/io_apic.c
===================================================================
--- sys/x86/x86/io_apic.c
+++ sys/x86/x86/io_apic.c
@@ -94,7 +94,7 @@
struct ioapic {
struct pic io_pic;
u_int io_id:8; /* logical ID */
- u_int io_apic_id:4;
+ u_int io_apic_id:8;
u_int io_intbase:8; /* System Interrupt base */
u_int io_numintr:8;
u_int io_haseoi:1;
@@ -192,8 +192,11 @@
low1 |= IOART_TRGREDG | IOART_INTMSET;
ioapic_write(io->io_addr, IOAPIC_REDTBL_LO(src->io_intpin),
low1);
+ low1 = src->io_lowreg;
+ if (src->io_masked != 0)
+ low1 |= IOART_INTMSET;
ioapic_write(io->io_addr, IOAPIC_REDTBL_LO(src->io_intpin),
- src->io_lowreg);
+ low1);
if (!locked)
mtx_unlock_spin(&icu_lock);
}
@@ -639,8 +642,8 @@
ioapic_write(apic, IOAPIC_ID, apic_id << APIC_ID_SHIFT);
mtx_unlock_spin(&icu_lock);
io->io_apic_id = apic_id;
- printf("ioapic%u: Changing APIC ID to %d\n", io->io_id,
- apic_id);
+ printf("ioapic%u: Changing APIC ID from %d to %d\n", io->io_id,
+ io->io_apic_id, apic_id);
} else
mtx_unlock_spin(&icu_lock);
if (intbase == -1) {
@@ -1023,8 +1026,9 @@
mtx_unlock_spin(&icu_lock);
if (bootverbose)
device_printf(dev,
- "cannot match pci bar apic id %d against MADT\n",
- apic_id);
+ "cannot match pci bar apic id %d against MADT, "
+ "BAR0 %#jx io id %d\n",
+ apic_id, (uintmax_t)rman_get_start(res), apic_id);
fail:
bus_release_resource(dev, SYS_RES_MEMORY, rid, res);
return (ENXIO);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 22, 8:22 PM (8 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34209760
Default Alt Text
D23965.id69215.diff (1 KB)
Attached To
Mode
D23965: x86: Support IO APICs on newer big Intel machines and hypervisors.
Attached
Detach File
Event Timeline
Log In to Comment