Page MenuHomeFreeBSD

ig4(4): Increase timeout to about 1 second
ClosedPublic

Authored by allanjude on Feb 17 2021, 9:35 PM.
Tags
None
Referenced Files
F81406785: D28747.diff
Mon, Apr 15, 9:42 PM
Unknown Object (File)
Thu, Apr 11, 5:29 PM
Unknown Object (File)
Thu, Mar 28, 1:00 AM
Unknown Object (File)
Feb 12 2024, 5:42 AM
Unknown Object (File)
Feb 4 2024, 2:23 PM
Unknown Object (File)
Jan 20 2024, 5:51 PM
Unknown Object (File)
Dec 28 2023, 3:15 AM
Unknown Object (File)
Dec 25 2023, 4:19 AM
Subscribers

Details

Summary

Per the i2c spec, a slave device can stretch SCL idefinitely, so 25ms is
a bit arbitrary in general. smbus does specify an optional timeout
recovery mechanism to be done at about 25~35ms, but the IPMI SSIF spec
says that BMCs don't have any obligation to implement that.
The BMC on Altra seems to mostly respond within 25ms, but occasionally
will stretch SCL for ~300 msec.

Also, the count_us mechanism seems to actually timeout around 25%
earlier than it would claim (timeout really happening around 19ms
instead of 25ms).

Sponsored by: Ampere Computing LLC

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable