Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152014181
D55426.id173780.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
D55426.id173780.diff
View Options
diff --git a/sys/x86/x86/msi.c b/sys/x86/x86/msi.c
--- a/sys/x86/x86/msi.c
+++ b/sys/x86/x86/msi.c
@@ -92,6 +92,10 @@
#define INTEL_ADDR(msi) \
(MSI_INTEL_ADDR_BASE | (msi)->msi_cpu << 12 | \
MSI_INTEL_ADDR_RH_OFF | MSI_INTEL_ADDR_DM_PHYSICAL)
+#define INTEL_ADDR_EXT(msi) \
+ (MSI_INTEL_ADDR_BASE | ((msi)->msi_cpu & 0xff) << 12 | \
+ ((msi)->msi_cpu & 0x7f00) >> 3 | \
+ MSI_INTEL_ADDR_RH_OFF | MSI_INTEL_ADDR_DM_PHYSICAL)
#define INTEL_DATA(msi) \
(MSI_INTEL_DATA_TRGREDG | MSI_INTEL_DATA_DELFIXED | (msi)->msi_vector)
@@ -652,13 +656,16 @@
mtx_unlock(&msi_lock);
error = EOPNOTSUPP;
#endif
- if (error == EOPNOTSUPP && msi->msi_cpu > 0xff) {
+ if (error == EOPNOTSUPP &&
+ (msi->msi_cpu > 0x7fff ||
+ (msi->msi_cpu > 0xff && apic_ext_dest_id != 1))) {
printf("%s: unsupported destination APIC ID %u\n", __func__,
msi->msi_cpu);
error = EINVAL;
}
if (error == EOPNOTSUPP) {
- *addr = INTEL_ADDR(msi);
+ *addr = (apic_ext_dest_id == 1) ?
+ INTEL_ADDR_EXT(msi) : INTEL_ADDR(msi);
*data = INTEL_DATA(msi);
error = 0;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 2:43 AM (11 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29875073
Default Alt Text
D55426.id173780.diff (1 KB)
Attached To
Mode
D55426: msi: Support APIC Extended Destination IDs
Attached
Detach File
Event Timeline
Log In to Comment