mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 13:25:12 +07:00
be43324d8b
Running 'ifconfig up' on the cxgb3 interface with iw_cxgb3 loaded causes a deadlock. The rtnl lock is already held in this path. The function fw_supports_fastreg() was introduced in 2.6.27 to conditionally set the IB_DEVICE_MEM_MGT_EXTENSIONS bit iff the firmware was at 7.0 or greater, and this function also acquires the rtnl lock and which thus causes a deadlock. Further, if iw_cxgb3 is loaded _after_ the nic interface is brought up, then the deadlock does not occur and therefore fw_supports_fastreg() does need to grab the rtnl lock in that path. It turns out this code is all useless anyway. The low level driver will NOT allow the open if the firmware isn't 7.0, so iw_cxgb3 can always set the MEM_MGT_EXTENSIONS bit. Simplify... Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <rolandd@cisco.com> |
||
---|---|---|
.. | ||
cxio_dbg.c | ||
cxio_hal.c | ||
cxio_hal.h | ||
cxio_resource.c | ||
cxio_resource.h | ||
cxio_wr.h | ||
iwch_cm.c | ||
iwch_cm.h | ||
iwch_cq.c | ||
iwch_ev.c | ||
iwch_mem.c | ||
iwch_provider.c | ||
iwch_provider.h | ||
iwch_qp.c | ||
iwch_user.h | ||
iwch.c | ||
iwch.h | ||
Kconfig | ||
Makefile | ||
tcb.h |