Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152454901
D27265.id.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
D27265.id.diff
View Options
Index: head/sys/dev/e1000/if_em.h
===================================================================
--- head/sys/dev/e1000/if_em.h
+++ head/sys/dev/e1000/if_em.h
@@ -316,7 +316,6 @@
#define EM_BAR_MEM_TYPE_MASK 0x00000006
#define EM_BAR_MEM_TYPE_32BIT 0x00000000
#define EM_BAR_MEM_TYPE_64BIT 0x00000004
-#define EM_MSIX_BAR 3 /* On 82575 */
/* More backward compatibility */
#if __FreeBSD_version < 900000
Index: head/sys/dev/e1000/if_em.c
===================================================================
--- head/sys/dev/e1000/if_em.c
+++ head/sys/dev/e1000/if_em.c
@@ -847,9 +847,7 @@
** use a different BAR, so we need to keep
** track of which is used.
*/
- scctx->isc_msix_bar = PCIR_BAR(EM_MSIX_BAR);
- if (pci_read_config(dev, scctx->isc_msix_bar, 4) == 0)
- scctx->isc_msix_bar += 4;
+ scctx->isc_msix_bar = pci_msix_table_bar(dev);
} else if (adapter->hw.mac.type >= em_mac_min) {
scctx->isc_txqsizes[0] = roundup2(scctx->isc_ntxd[0]* sizeof(struct e1000_tx_desc), EM_DBA_ALIGN);
scctx->isc_rxqsizes[0] = roundup2(scctx->isc_nrxd[0] * sizeof(union e1000_rx_desc_extended), EM_DBA_ALIGN);
@@ -883,7 +881,7 @@
* that it shall give MSI at least a try with other devices.
*/
if (adapter->hw.mac.type == e1000_82574) {
- scctx->isc_msix_bar = PCIR_BAR(EM_MSIX_BAR);
+ scctx->isc_msix_bar = pci_msix_table_bar(dev);;
} else {
scctx->isc_msix_bar = -1;
scctx->isc_disable_msix = 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 1:56 AM (4 h, 23 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31569752
Default Alt Text
D27265.id.diff (1 KB)
Attached To
Mode
D27265: Use the standard method for localizing of MSI-X table bar.
Attached
Detach File
Event Timeline
Log In to Comment