Page MenuHomeFreeBSD

iicsmb: Request the bus recursively in bread()
ClosedPublic

Authored by allanjude on Feb 17 2021, 9:35 PM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.