linux/drivers/net/ethernet/chelsio/cxgb4
Rahul Lakkireddy 3822d0670c cxgb4: avoid link re-train during TC-MQPRIO configuration
When configuring TC-MQPRIO offload, only turn off netdev carrier and
don't bring physical link down in hardware. Otherwise, when the
physical link is brought up again after configuration, it gets
re-trained and stalls ongoing traffic.

Also, when firmware is no longer accessible or crashed, avoid sending
FLOWC and waiting for reply that will never come.

Fix following hung_task_timeout_secs trace seen in these cases.

INFO: task tc:20807 blocked for more than 122 seconds.
      Tainted: G S                5.13.0-rc3+ #122
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:tc   state:D stack:14768 pid:20807 ppid: 19366 flags:0x00000000
Call Trace:
 __schedule+0x27b/0x6a0
 schedule+0x37/0xa0
 schedule_preempt_disabled+0x5/0x10
 __mutex_lock.isra.14+0x2a0/0x4a0
 ? netlink_lookup+0x120/0x1a0
 ? rtnl_fill_ifinfo+0x10f0/0x10f0
 __netlink_dump_start+0x70/0x250
 rtnetlink_rcv_msg+0x28b/0x380
 ? rtnl_fill_ifinfo+0x10f0/0x10f0
 ? rtnl_calcit.isra.42+0x120/0x120
 netlink_rcv_skb+0x4b/0xf0
 netlink_unicast+0x1a0/0x280
 netlink_sendmsg+0x216/0x440
 sock_sendmsg+0x56/0x60
 __sys_sendto+0xe9/0x150
 ? handle_mm_fault+0x6d/0x1b0
 ? do_user_addr_fault+0x1c5/0x620
 __x64_sys_sendto+0x1f/0x30
 do_syscall_64+0x3c/0x80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f7f73218321
RSP: 002b:00007ffd19626208 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 000055b7c0a8b240 RCX: 00007f7f73218321
RDX: 0000000000000028 RSI: 00007ffd19626210 RDI: 0000000000000003
RBP: 000055b7c08680ff R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000055b7c085f5f6
R13: 000055b7c085f60a R14: 00007ffd19636470 R15: 00007ffd196262a0

Fixes: b1396c2bd6 ("cxgb4: parse and configure TC-MQPRIO offload")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-04 14:45:13 -07:00
..
Makefile
clip_tbl.c cxgb4: remove unneeded if-null-free check 2021-04-09 16:47:41 -07:00
clip_tbl.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
cudbg_common.c
cudbg_entity.h cxgb4: collect serial config version from register 2021-02-10 15:05:40 -08:00
cudbg_if.h cxgb4: add support to read serial flash 2020-06-18 20:49:55 -07:00
cudbg_lib.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-09 20:48:35 -07:00
cudbg_lib.h cxgb4: move device dump arrays in header to C file 2020-06-23 20:55:44 -07:00
cudbg_lib_common.h
cudbg_zlib.c
cudbg_zlib.h
cxgb4.h cxgb4: avoid link re-train during TC-MQPRIO configuration 2021-06-04 14:45:13 -07:00
cxgb4_cudbg.c cxgb4: remove unneeded if-null-free check 2021-04-09 16:47:41 -07:00
cxgb4_cudbg.h cxgb4: add support to read serial flash 2020-06-18 20:49:55 -07:00
cxgb4_dcb.c
cxgb4_dcb.h cxgb4: move DCB version extern to header file 2020-06-23 15:18:48 -07:00
cxgb4_debugfs.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-12 16:54:48 -08:00
cxgb4_debugfs.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
cxgb4_ethtool.c cxgb4/ch_ktls: ktls stats are added at port level 2020-09-29 13:57:03 -07:00
cxgb4_fcoe.c
cxgb4_fcoe.h
cxgb4_filter.c cxgb4: avoid accessing registers when clearing filters 2021-05-19 13:00:54 -07:00
cxgb4_filter.h cxgb4: add skeleton for ethtool n-tuple filters 2020-06-19 13:17:31 -07:00
cxgb4_main.c cxgb4: avoid link re-train during TC-MQPRIO configuration 2021-06-04 14:45:13 -07:00
cxgb4_mps.c cxgb4: fix memory leak during module unload 2020-09-17 16:29:20 -07:00
cxgb4_ptp.c cxgb4: update kernel-doc line comments 2020-06-23 15:18:48 -07:00
cxgb4_ptp.h
cxgb4_tc_flower.c cxgb4: fix regression with HASH tc prio value update 2021-06-03 15:12:42 -07:00
cxgb4_tc_flower.h cxgb4: handle 4-tuple PEDIT to NAT mode translation 2020-10-14 18:20:37 -07:00
cxgb4_tc_matchall.c flow_offload: reject configuration of packet-per-second policing in offload drivers 2021-03-13 14:18:09 -08:00
cxgb4_tc_matchall.h cxgb4: add TC-MATCHALL IPv6 support 2020-08-03 18:17:08 -07:00
cxgb4_tc_mqprio.c cxgb4: avoid link re-train during TC-MQPRIO configuration 2021-06-04 14:45:13 -07:00
cxgb4_tc_mqprio.h cxgb4: add EOTID tracking and software context dump 2020-05-15 10:54:07 -07:00
cxgb4_tc_u32.c cxgb4: remove unneeded if-null-free check 2021-04-09 16:47:41 -07:00
cxgb4_tc_u32.h
cxgb4_tc_u32_parse.h cxgb4: parse TC-U32 key values and masks natively 2020-06-23 15:18:47 -07:00
cxgb4_thermal.c cxgb4: fix thermal zone device registration 2020-08-31 12:27:23 -07:00
cxgb4_uld.c cxgb4: Avoid log flood 2020-09-29 13:57:03 -07:00
cxgb4_uld.h cxgb4/chtls/cxgbit: Keeping the max ofld immediate data size same in cxgb4 and ulds 2021-02-15 12:39:33 -08:00
l2t.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
l2t.h cxgb4/chcr: Save tx keys and handle HW response 2020-03-08 21:16:23 -07:00
sched.c cxgb4: update kernel-doc line comments 2020-06-23 15:18:48 -07:00
sched.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
sge.c cxgb4: avoid link re-train during TC-MQPRIO configuration 2021-06-04 14:45:13 -07:00
smt.c cxgb4: use eth_zero_addr() to clear mac address 2020-07-23 11:49:12 -07:00
smt.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
srq.c
srq.h
t4_chip_type.h
t4_hw.c pci-v5.13-changes 2021-05-05 13:24:11 -07:00
t4_hw.h
t4_msg.h cxgb4/chcr: complete record tx handling 2020-03-08 21:16:23 -07:00
t4_pci_id_tbl.h cxgb4: Add new T6 PCI device id 0x6092 2021-02-04 18:09:23 -08:00
t4_regs.h cxgb4: collect serial config version from register 2021-02-10 15:05:40 -08:00
t4_tcb.h cxgb4/chtls: Fix tid stuck due to wrong update of qid 2021-01-13 19:40:05 -08:00
t4_values.h
t4fw_api.h cxgb4/chcr: Enable ktls settings at run time 2020-06-01 15:48:18 -07:00
t4fw_version.h