aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorMichael J. Ruhl <[email protected]>2017-10-23 06:05:45 -0700
committerDoug Ledford <[email protected]>2017-10-30 14:51:36 -0400
commit4061f3a4da4574b8c9f11a82c767aaaed3ef2aa9 (patch)
tree08394267eb7dc05cc03535d6bcdc8dfbe65720d8 /tools/perf/scripts/python/call-graph-from-sql.py
parent5455e73a76a397d77541bb5b0eedac137ef525b5 (diff)
IB/hfi1: Race condition between user notification and driver state
The handler for link init state (HLS_UP_INIT) notifies userspace (update_statusp()) before enabling the device (RCV_CTRL_RCV_PORT_ENABLE_SMASK) or setting the device state (ppd->host_link_state). This causes a race condition where the userspace thinks the interface is in the INIT state before the driver has set that state. Rework the code path to eliminate the race. Delay setting the init state until after a HW settling period. Reviewed-by: Sebastian Sanchez <[email protected]> Signed-off-by: Michael J. Ruhl <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions