Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147383649
D50295.1783152735.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
940 B
Referenced Files
None
Subscribers
None
D50295.1783152735.diff
View Options
diff --git a/sys/dev/ixgbe/ixgbe_common.c b/sys/dev/ixgbe/ixgbe_common.c
--- a/sys/dev/ixgbe/ixgbe_common.c
+++ b/sys/dev/ixgbe/ixgbe_common.c
@@ -4631,11 +4631,11 @@
/* Setting this bit tells the ARC that a new command is pending. */
IXGBE_WRITE_REG(hw, IXGBE_HICR, hicr | IXGBE_HICR_C);
- for (i = 0; i < timeout; i++) {
+ for (i = 0; i < timeout * 1000; i++) {
hicr = IXGBE_READ_REG(hw, IXGBE_HICR);
if (!(hicr & IXGBE_HICR_C))
break;
- msec_delay(1);
+ usec_delay(1);
}
/* For each command except "Apply Update" perform
diff --git a/sys/dev/ixgbe/ixgbe_x540.c b/sys/dev/ixgbe/ixgbe_x540.c
--- a/sys/dev/ixgbe/ixgbe_x540.c
+++ b/sys/dev/ixgbe/ixgbe_x540.c
@@ -878,7 +878,10 @@
IXGBE_WRITE_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw), swfw_sync);
ixgbe_release_swfw_sync_semaphore(hw);
- msec_delay(2);
+ if (mask & (IXGBE_GSSR_EEP_SM | IXGBE_GSSR_FLASH_SM))
+ usec_delay(2000);
+ else
+ usec_delay(10);
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 8:12 AM (13 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29011794
Default Alt Text
D50295.1783152735.diff (940 B)
Attached To
Mode
D50295: ixgbe: improve MDIO performance by reducing semaphore/IPC delays
Attached
Detach File
Event Timeline
Log In to Comment