numam-dpdk/drivers
Chengwen Feng a8f1f7cf1b net/hns3: fix crash when secondary process access FW
Currently, to prevent missing reporting of reset interrupts and quickly
identify reset interrupts, the following logic is designed in the
FW (firmware) command interface hns3_cmd_send: if an unprocessed
interrupt exist (by checking reset registers), related reset task is
scheduled.

The secondary process may invoke the hns3_cmd_send interface (e.g. using
proc-info query some stats). Unfortunately, the secondary process
does not support reset processing, and a segment fault may occur if it
schedules reset task.

Fix it by limit the checking and scheduling of reset under only primary
process.

Fixes: 2790c64647 ("net/hns3: support device reset")
Cc: stable@dpdk.org

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
2022-10-04 17:59:18 +02:00
..
baseband dev: hide driver object 2022-09-23 16:14:34 +02:00
bus drivers/bus: set device NUMA node to unknown by default 2022-10-06 21:26:55 +02:00
common common/sfc_efx/base: use avail and used terms for indexes 2022-10-04 17:22:56 +02:00
compress dev: hide driver object 2022-09-23 16:14:34 +02:00
crypto crypto/mvsam: fix build after session rework 2022-10-06 12:16:16 +02:00
dma drivers/bus: set device NUMA node to unknown by default 2022-10-06 21:26:55 +02:00
event event/sw: report idle when no work is performed 2022-10-05 15:44:48 +02:00
gpu dev: hide driver object 2022-09-23 16:14:34 +02:00
mempool common/cnxk: reserve AURA zero on CN10KA NPA 2022-09-22 10:44:04 +02:00
net net/hns3: fix crash when secondary process access FW 2022-10-04 17:59:18 +02:00
raw raw/skeleton: remove useless check 2022-10-05 21:34:30 +02:00
regex dev: hide driver object 2022-09-23 16:14:34 +02:00
vdpa vdpa/sfc: support multi-queue 2022-10-04 17:23:58 +02:00
meson.build build: export drivers headers 2022-09-23 16:14:34 +02:00