Comment 3 for bug 1982456

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

Apply all patches for hisi_dma.c to Ubuntu 5.15.0-53.59 kernel but system still crash when RAID 5 is setup. For now I do not see any reason we shall re-enable CONFIG_HISI_DMA.

The patches applied are

fa8e8c4e6892 <email address hidden> 2022-10-24 07:12:44 +0000 dmaengine: hisilicon: Dump regs to debugfs
ece07f953395 <email address hidden> 2022-10-24 07:12:34 +0000 dmaengine: hisilicon: Adapt DMA driver to HiSilicon IP09
c64bc7326a68 <email address hidden> 2022-10-24 07:12:22 +0000 dmaengine: hisilicon: Use macros instead of magic number
a0b1e6bb9569 <email address hidden> 2022-10-24 07:12:03 +0000 dmaengine: hisilicon: Add multi-thread support for a DMA channel
ca8c98693ff9 <email address hidden> 2022-10-24 07:11:51 +0000 dmaengine: hisilicon: Fix CQ head update
d5a2fdcd7c69 <email address hidden> 2022-10-24 07:11:40 +0000 dmaengine: hisilicon: Disable channels when unregister hisi_dma
d4b1e65bb7a7 <email address hidden> 2022-10-24 07:11:24 +0000 dmaengine: hisi_dma: switch from 'pci_' to 'dma_' API

ubuntu@saenger:~$ sudo mdadm -Cv -l5 -n3 /dev/md0 /dev/sdb1 /dev/sdb2 /dev/sdb3
mdadm: layout defaults to left-symmetric
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 512K
mdadm: size set to 104791040K
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.
ubuntu@saenger:~$ [ 317.762217] hisi_dma 0000:7b:00.0: dma_sync_wait: timeout!
[ 317.767703] Kernel panic - not syncing: async_tx_quiesce: DMA error waiting for transaction
[ 317.776042] CPU: 86 PID: 2515 Comm: md0_raid5 Not tainted 5.15.0-53-generic #59~20.04.1+hisidma.1
[ 317.784901] Hardware name: Huawei XA320 V2 /BC82HPNB, BIOS 0.95 08/15/2019
[ 317.791762] Call trace:
[ 317.794195] dump_backtrace+0x0/0x200
[ 317.797850] show_stack+0x20/0x30
[ 317.801152] dump_stack_lvl+0x68/0x84
[ 317.804804] dump_stack+0x18/0x34
[ 317.808106] panic+0x18c/0x39c
[ 317.811150] async_tx_submit+0x0/0x610 [async_tx]
[ 317.815846] async_trigger_callback+0x94/0x15c [async_tx]
[ 317.821232] raid_run_ops+0x960/0x1288 [raid456]
[ 317.825851] handle_stripe+0x79c/0x1218 [raid456]
[ 317.830546] handle_active_stripes.isra.0+0x3f8/0x5f8 [raid456]
[ 317.836455] raid5d+0x378/0x6e0 [raid456]
[ 317.840455] md_thread+0xc8/0x1a8
[ 317.843760] kthread+0x114/0x120
[ 317.846978] ret_from_fork+0x10/0x20
[ 317.850544] SMP: stopping secondary CPUs
[ 317.854476] Kernel Offset: 0x50000 from 0xffff800008000000
[ 317.859948] PHYS_OFFSET: 0x0
[ 317.862815] CPU features: 0x00000441,a3202c40
[ 317.867159] Memory Limit: none
[ 318.031605] ---[ end Kernel panic - not syncing: async_tx_quiesce: DMA error waiting for transaction ]---