Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107333470
D29942.id88423.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
D29942.id88423.diff
View Options
Index: sys/x86/x86/local_apic.c
===================================================================
--- sys/x86/x86/local_apic.c
+++ sys/x86/x86/local_apic.c
@@ -202,6 +202,7 @@
static struct eventtimer lapic_et;
#ifdef SMP
static uint64_t lapic_ipi_wait_mult;
+static int __read_mostly lapic_ds_idle_timeout = 1000000;
#endif
unsigned int max_apic_id;
@@ -212,6 +213,11 @@
&lapic_eoi_suppression, 0, "");
SYSCTL_INT(_hw_apic, OID_AUTO, timer_tsc_deadline, CTLFLAG_RD,
&lapic_timer_tsc_deadline, 0, "");
+#ifdef SMP
+SYSCTL_INT(_hw_apic, OID_AUTO, ds_idle_timeout, CTLFLAG_RWTUN,
+ &lapic_ds_idle_timeout, 0,
+ "timeout (in us) for APIC Delivery Status to become Idle (xAPIC only)");
+#endif
static void lapic_calibrate_initcount(struct lapic *la);
static void lapic_calibrate_deadline(struct lapic *la);
@@ -2035,7 +2041,6 @@
}
}
-#define BEFORE_SPIN 50000
#ifdef DETECT_DEADLOCK
#define AFTER_SPIN 50
#endif
@@ -2082,7 +2087,7 @@
icrlo |= APIC_DESTMODE_PHY | APIC_TRIGMOD_EDGE | APIC_LEVEL_ASSERT;
/* Wait for an earlier IPI to finish. */
- if (!lapic_ipi_wait(BEFORE_SPIN)) {
+ if (!lapic_ipi_wait(lapic_ds_idle_timeout)) {
if (KERNEL_PANICKED())
return;
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 3:31 PM (13 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15783565
Default Alt Text
D29942.id88423.diff (1 KB)
Attached To
Mode
D29942: Wait longer for a previous IPI to be sent
Attached
Detach File
Event Timeline
Log In to Comment