Page MenuHomeFreeBSD

iicsmb: Request the bus recursively in bread()
ClosedPublic

Authored by allanjude on Feb 17 2021, 9:35 PM.
Tags
None
Referenced Files
F102426780: D28742.diff
Tue, Nov 12, 3:06 AM
Unknown Object (File)
Mon, Nov 11, 3:00 AM
Unknown Object (File)
Sun, Nov 10, 2:55 AM
Unknown Object (File)
Wed, Nov 6, 6:02 PM
Unknown Object (File)
Wed, Nov 6, 1:36 AM
Unknown Object (File)
Mon, Nov 4, 7:48 PM
Unknown Object (File)
Fri, Oct 18, 1:26 AM
Unknown Object (File)
Tue, Oct 15, 10:06 PM
Subscribers

Details

Summary

ipmi_ssif will smbus_request_bus() to do multiple smbus requests
(which requests the iicbus), and then here in bread() we also need to
request the bus because bread() takes multiple transactions.
This causes deadlock as it's waiting for the bus it already has without
IIC_RECURSIVE.

Sponsored by: Ampere Computing LLC

Diff Detail

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