Comment 8 for bug 1943301

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Hi Xinwei,

I can reset SEC module with 5.11 kernel on Taishan 2280 system. Are these messages expected?

ubuntu@kreiken:~$ sudo dmesg --clear
ubuntu@kreiken:~$ lspci | grep SEC
76:00.0 Network and computing encryption device: Huawei Technologies Co., Ltd. HiSilicon SEC Engine (rev 21)
b6:00.0 Network and computing encryption device: Huawei Technologies Co., Ltd. HiSilicon SEC Engine (rev 21)
ubuntu@kreiken:~$ echo 1 | sudo tee /sys/devices/pci0000:74/0000:74:01.0/0000:76:00.0/reset
1
ubuntu@kreiken:~$ echo 1 | sudo tee /sys/devices/pci0000:b4/0000:b4:01.0/0000:b6:00.0/reset
1
ubuntu@kreiken:~$ dmesg
[ 471.629138] hisi_sec2 0000:76:00.0: FLR resetting...
[ 471.734131] hisi_sec2 0000:76:00.0: FLR reset complete
[ 479.167301] hisi_sec2 0000:b6:00.0: FLR resetting...
[ 479.274189] hisi_sec2 0000:b6:00.0: FLR reset complete
ubuntu@kreiken:~$ sudo busybox devmem 0x200141B01018 32 0x1
ubuntu@kreiken:~$ dmesg
[ 471.629138] hisi_sec2 0000:76:00.0: FLR resetting...
[ 471.734131] hisi_sec2 0000:76:00.0: FLR reset complete
[ 479.167301] hisi_sec2 0000:b6:00.0: FLR resetting...
[ 479.274189] hisi_sec2 0000:b6:00.0: FLR reset complete
[ 976.191626] {1}[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 0
[ 976.199885] {1}[Hardware Error]: event severity: recoverable
[ 976.205532] {1}[Hardware Error]: Error 0, type: recoverable
[ 976.211179] {1}[Hardware Error]: section_type: PCIe error
[ 976.216732] {1}[Hardware Error]: version: 4.0
[ 976.221251] {1}[Hardware Error]: command: 0x0006, status: 0x0010
[ 976.227413] {1}[Hardware Error]: device_id: 0000:b6:00.0
[ 976.232885] {1}[Hardware Error]: slot: 0
[ 976.236971] {1}[Hardware Error]: secondary_bus: 0x00
[ 976.242093] {1}[Hardware Error]: vendor_id: 0x19e5, device_id: 0xa255
[ 976.248689] {1}[Hardware Error]: class_code: 100000
[ 976.254045] hisi_sec2 0000:b6:00.0: AER: aer_status: 0x00000000, aer_mask: 0x00000000
[ 976.261886] hisi_sec2 0000:b6:00.0: AER: aer_layer=Transaction Layer, aer_agent=Receiver ID
[ 976.270260] hisi_sec2 0000:b6:00.0: AER: aer_uncor_severity: 0x00000000
[ 976.276909] hisi_sec2 0000:b6:00.0: PCI error detected, state(=1)!!
[ 976.276928] hisi_sec2 0000:b6:00.0: sec_axi_rresp_err_rint [error status=0x1] found
[ 976.284623] hisi_sec2 0000:b6:00.0: Controller resetting...
[ 976.286859] hisi_sec2 0000:b6:00.0: Controller reset complete
[ 976.286983] pci 0000:b4:01.0: AER: device recovery successful
ubuntu@kreiken:~$ uname -a
Linux kreiken 5.11.0-36-generic #40~20.04.1-Ubuntu SMP Sat Sep 18 02:14:50 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux