登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
其他开源
>
操作系统
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
关闭
代码
Issues
1271
Pull Requests
991
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
【openEuler-20.03-SP1】连接fc存储后系统重启
已完成
#I46QNX
缺陷
jpzhang187
创建于
2021-08-23 10:18
背景:需要适配使用HBA卡:QLogic Corp. QLE2692 Dual Port 16Gb Fibre(芯片ISP2722-based) 在华琨服务器(HUAWEI Kunpeng 920 5221K 32C@2.6GHz),插上HBA卡样品,安装openEuler-20.03-LTS-SP1-aarch64-dvd.iso,设备识别正常,lspci信息显示正常,内核未发现异常报错。使用绿色(BOYANG OPTICAL FIBER CABLE MM 50/125UM OM3)连接FC存储后宕机重启。 dmesg日志如下: ```cpp [ 1391.526382] qla2xxx [0000:81:00.0]-500a:5: LOOP UP detected (8 Gbps). [ 1391.683593] qla2xxx [0000:81:00.0]-ffff:5: register_localport: host-traddr=nn-0x200034800d6fbc40:pn-0x210034800d6fbc40 on portID:10600 [ 1391.696523] ------------[ cut here ]------------ [ 1391.707222] WARNING: CPU: 0 PID: 0 at ./include/linux/dma-mapping.h:558 qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1391.721824] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1391.822047] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1391.878280] CPU: 0 PID: 0 Comm: swapper/0 Kdump: loaded Not tainted 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1391.895333] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1391.906319] pstate: 20400089 (nzCv daIf +PAN -UAO) [ 1391.915231] pc : qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1391.924669] lr : qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1391.934010] sp : ffff00000800fc50 [ 1391.941354] x29: ffff00000800fc50 x28: ffff00000927f080 [ 1391.950637] x27: ffff803fdf763c00 x26: 0000000000398000 [ 1391.959826] x25: 0000000000002010 x24: ffffa03f6d870000 [ 1391.968979] x23: 0000203f6d870000 x22: ffff000008aa0000 [ 1391.978049] x21: ffffa03f6f842a08 x20: ffffa03f690650a8 [ 1391.987026] x19: ffff803fd3a04400 x18: ffffffffffffffff [ 1391.995913] x17: 0000000000000000 x16: 000000000000000e [ 1392.004720] x15: 0000000000000001 x14: ffff000008b1cd98 [ 1392.013425] x13: 0000000000000000 x12: 0000000000000000 [ 1392.022026] x11: 00000000ffffffff x10: ffff0000092757f0 [ 1392.030534] x9 : ffff000008f50018 x8 : ffff00000863c9c8 [ 1392.038941] x7 : 0000000000000001 x6 : ffff803fff9e23d8 [ 1392.047251] x5 : ffff803fff9e23d8 x4 : 0000000000000001 [ 1392.055482] x3 : 0000000000000040 x2 : 98846b1aefbd5900 [ 1392.063639] x1 : 0000000000000000 x0 : 0000000000000024 [ 1392.071706] Call trace: [ 1392.076810] qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1392.084331] qla2x00_async_gpnft_gnnft_sp_done+0x230/0x470 [qla2xxx] [ 1392.093307] qla24xx_els_ct_entry+0xc0/0x330 [qla2xxx] [ 1392.101000] qla24xx_process_response_queue+0x3b8/0x860 [qla2xxx] [ 1392.109607] qla24xx_msix_rsp_q+0x68/0x108 [qla2xxx] [ 1392.116995] __handle_irq_event_percpu+0x74/0x268 [ 1392.124052] handle_irq_event_percpu+0x40/0x98 [ 1392.130782] handle_irq_event+0x50/0xe0 [ 1392.136796] handle_fasteoi_irq+0xcc/0x1b8 [ 1392.142985] generic_handle_irq+0x34/0x50 [ 1392.149006] __handle_domain_irq+0x68/0xc0 [ 1392.155092] gic_handle_irq+0x6c/0x170 [ 1392.160868] el1_irq+0xb8/0x140 [ 1392.166000] arch_cpu_idle+0x38/0x1c0 [ 1392.171662] default_idle_call+0x24/0x58 [ 1392.177596] do_idle+0x1d4/0x2b0 [ 1392.182815] cpu_startup_entry+0x28/0x78 [ 1392.188755] rest_init+0xb8/0xc8 [ 1392.193997] start_kernel+0x4cc/0x4f8 [ 1392.199679] ---[ end trace 113263e6ce620abb ]--- [ 1392.206347] WARNING: CPU: 0 PID: 0 at kernel/dma/swiotlb.c:750 swiotlb_free+0xc0/0xc8 [ 1392.218537] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1392.320531] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1392.377127] CPU: 0 PID: 0 Comm: swapper/0 Kdump: loaded Tainted: G W 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1392.395252] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1392.405978] pstate: 20400089 (nzCv daIf +PAN -UAO) [ 1392.414570] pc : swiotlb_free+0xc0/0xc8 [ 1392.422202] lr : __dma_free+0xa8/0xc0 [ 1392.429661] sp : ffff00000800fbc0 [ 1392.436753] x29: ffff00000800fbc0 x28: ffff00000927f080 [ 1392.445872] x27: ffff803fdf763c00 x26: 0000000000398000 [ 1392.454996] x25: ffffa03f6d870000 x24: 0000000000000000 [ 1392.464079] x23: 0000000000000000 x22: ffffa03f6d870000 [ 1392.473083] x21: 0000000000010000 x20: 0000203f6d870000 [ 1392.481974] x19: ffffa03f690650a8 x18: ffffffffffffffff [ 1392.490797] x17: 0000000000000000 x16: 000000000000000e [ 1392.499548] x15: 0000000000000001 x14: ffff000008b1cd98 [ 1392.508187] x13: 0000000000000000 x12: 0000000000000000 [ 1392.516727] x11: 00000000ffffffff x10: ffff0000092757f0 [ 1392.525169] x9 : ffff000008f50018 x8 : ffff00000863c9c8 [ 1392.533519] x7 : 0000000000000001 x6 : ffff803fff9e23d8 [ 1392.541765] x5 : ffff0000080acce0 x4 : 0000000000000000 [ 1392.549931] x3 : 0000000000000080 x2 : ffffa03f6d870000 [ 1392.558006] x1 : 0000000000000080 x0 : 0000203f6d870000 [ 1392.565960] Call trace: [ 1392.570949] swiotlb_free+0xc0/0xc8 [ 1392.576907] __dma_free+0xa8/0xc0 [ 1392.582597] qla24xx_sp_unmap+0x2cc/0x380 [qla2xxx] [ 1392.589810] qla2x00_async_gpnft_gnnft_sp_done+0x230/0x470 [qla2xxx] [ 1392.598475] qla24xx_els_ct_entry+0xc0/0x330 [qla2xxx] [ 1392.605855] qla24xx_process_response_queue+0x3b8/0x860 [qla2xxx] [ 1392.614151] qla24xx_msix_rsp_q+0x68/0x108 [qla2xxx] [ 1392.621263] __handle_irq_event_percpu+0x74/0x268 [ 1392.628060] handle_irq_event_percpu+0x40/0x98 [ 1392.634528] handle_irq_event+0x50/0xe0 [ 1392.640296] handle_fasteoi_irq+0xcc/0x1b8 [ 1392.646301] generic_handle_irq+0x34/0x50 [ 1392.652210] __handle_domain_irq+0x68/0xc0 [ 1392.658218] gic_handle_irq+0x6c/0x170 [ 1392.663879] el1_irq+0xb8/0x140 [ 1392.668924] arch_cpu_idle+0x38/0x1c0 [ 1392.674520] default_idle_call+0x24/0x58 [ 1392.680384] do_idle+0x1d4/0x2b0 [ 1392.685571] cpu_startup_entry+0x28/0x78 [ 1392.691449] rest_init+0xb8/0xc8 [ 1392.696616] start_kernel+0x4cc/0x4f8 [ 1392.702234] ---[ end trace 113263e6ce620abc ]--- [ 1392.708862] ------------[ cut here ]------------ [ 1392.715531] WARNING: CPU: 0 PID: 0 at ./include/linux/dma-mapping.h:558 qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1392.729870] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1392.831589] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1392.888257] CPU: 0 PID: 0 Comm: swapper/0 Kdump: loaded Tainted: G W 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1392.906412] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1392.917158] pstate: 40400089 (nZcv daIf +PAN -UAO) [ 1392.925773] pc : qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1392.934859] lr : qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1392.943890] sp : ffff00000800fc50 [ 1392.951000] x29: ffff00000800fc50 x28: ffff00000927f080 [ 1392.960141] x27: ffff803fdf763c00 x26: 0000000000398000 [ 1392.969259] x25: ffff000003711af0 x24: 0000000000002010 [ 1392.978351] x23: ffffa03f6d1e0000 x22: 0000203f6d1e0000 [ 1392.987364] x21: ffff000008aa0000 x20: ffffa03f690650a8 [ 1392.996287] x19: ffff803fd3a04400 x18: ffffffffffffffff [ 1393.005128] x17: 0000000000000000 x16: 000000000000000e [ 1393.013888] x15: 0000000000000001 x14: ffff000008b1cd98 [ 1393.022539] x13: 0000000000000000 x12: 0000000000000000 [ 1393.031089] x11: 00000000ffffffff x10: ffff0000092757f0 [ 1393.039537] x9 : ffff000008f50018 x8 : ffff00000863c9c8 [ 1393.047887] x7 : 0000000000000001 x6 : 0000000000000695 [ 1393.056149] x5 : 0000000000000001 x4 : ffff803fff9e23d0 [ 1393.064304] x3 : ffff803fff9e23d0 x2 : 98846b1aefbd5900 [ 1393.072383] x1 : 0000000000000000 x0 : 0000000000000024 [ 1393.080390] Call trace: [ 1393.085437] qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1393.092896] qla2x00_async_gpnft_gnnft_sp_done+0x230/0x470 [qla2xxx] [ 1393.101810] qla24xx_els_ct_entry+0xc0/0x330 [qla2xxx] [ 1393.109445] qla24xx_process_response_queue+0x3b8/0x860 [qla2xxx] [ 1393.117996] qla24xx_msix_rsp_q+0x68/0x108 [qla2xxx] [ 1393.125325] __handle_irq_event_percpu+0x74/0x268 [ 1393.132325] handle_irq_event_percpu+0x40/0x98 [ 1393.139012] handle_irq_event+0x50/0xe0 [ 1393.145000] handle_fasteoi_irq+0xcc/0x1b8 [ 1393.151158] generic_handle_irq+0x34/0x50 [ 1393.157148] __handle_domain_irq+0x68/0xc0 [ 1393.163197] gic_handle_irq+0x6c/0x170 [ 1393.168941] el1_irq+0xb8/0x140 [ 1393.174043] arch_cpu_idle+0x38/0x1c0 [ 1393.179669] default_idle_call+0x24/0x58 [ 1393.185570] do_idle+0x1d4/0x2b0 [ 1393.190782] cpu_startup_entry+0x28/0x78 [ 1393.196705] rest_init+0xb8/0xc8 [ 1393.201936] start_kernel+0x4cc/0x4f8 [ 1393.207603] ---[ end trace 113263e6ce620abd ]--- [ 1393.214292] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 1393.227425] Mem abort info: [ 1393.232418] ESR = 0x96000045 [ 1393.237669] Exception class = DABT (current EL), IL = 32 bits [ 1393.245866] SET = 0, FnV = 0 [ 1393.251198] EA = 0, S1PTW = 0 [ 1393.256590] Data abort info: [ 1393.261687] ISV = 0, ISS = 0x00000045 [ 1393.267728] CM = 0, WnR = 1 [ 1393.272868] user pgtable: 64k pages, 48-bit VAs, pgdp = 000000002463e280 [ 1393.281815] [0000000000000000] pgd=0000000000000000, pud=0000000000000000 [ 1393.290857] Internal error: Oops: 96000045 [#1] SMP [ 1393.297977] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1393.399845] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1393.457331] Process kworker/0:3 (pid: 419, stack limit = 0x00000000fc0b2274) [ 1393.468007] CPU: 0 PID: 419 Comm: kworker/0:3 Kdump: loaded Tainted: G W 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1393.486682] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1393.497500] Workqueue: qla2xxx_wq qla2x00_iocb_work_fn [qla2xxx] [ 1393.507370] pstate: 40c00009 (nZcv daif +PAN +UAO) [ 1393.516064] pc : __memset+0x16c/0x188 [ 1393.523659] lr : qla24xx_async_gpnft+0x1b0/0x920 [qla2xxx] [ 1393.533126] sp : ffff000029defc50 [ 1393.540418] x29: ffff000029defc50 x28: ffff000003710148 [ 1393.549686] x27: ffff000009273000 x26: ffff000003753658 [ 1393.558881] x25: ffff00000372a738 x24: 0000000000000028 [ 1393.568003] x23: ffffa03f6f842a38 x22: 0000000000008010 [ 1393.577050] x21: ffff000009273000 x20: ffffa03f6f842a08 [ 1393.577051] x19: ffff803fd3a04400 x18: ffff000009296970 [ 1393.577052] x17: 0000000000000000 x16: 000000000000000e [ 1393.577053] x15: 0000000000000001 x14: 0000000000000000 [ 1393.577054] x13: ffff000008aae368 x12: 0000000000000000 [ 1393.577057] x11: ffff000008aae340 x10: 0000000000000b80 [ 1393.629190] x9 : 0000000000000000 x8 : 0000000000000000 [ 1393.629191] x7 : 0000000000000000 x6 : 000000000000003f [ 1393.629193] x5 : 0000000000000040 x4 : 0000000000000000 [ 1393.653637] x3 : 0000000000000004 x2 : 0000000000007fd0 [ 1393.653638] x1 : 0000000000000000 x0 : 0000000000000000 [ 1393.653639] Call trace: [ 1393.653640] __memset+0x16c/0x188 [ 1393.653650] qla2x00_do_work+0x3c0/0x470 [qla2xxx] [ 1393.653658] qla2x00_iocb_work_fn+0x58/0xe0 [qla2xxx] [ 1393.653660] process_one_work+0x1b0/0x448 [ 1393.653661] worker_thread+0x54/0x468 [ 1393.653663] kthread+0x134/0x138 [ 1393.653664] ret_from_fork+0x10/0x18 [ 1393.653666] Code: 91010108 54ffff4a 8b040108 cb050042 (d50b7428) [ 1393.653691] SMP: stopping secondary CPUs [ 1393.657083] Starting crashdump kernel... [ 1393.657086] Bye! ``` 按该链接https://www.spinics.net/lists/linux-scsi/msg147232.html的提示,打上以下三个patch https://patchwork.kernel.org/project/linux-scsi/patch/20180831182439.24182-5-himanshu.madhani@cavium.com/ http://lkml.iu.edu/hypermail/linux/kernel/2009.2/07333.html https://www.spinics.net/lists/stable/msg413787.html 之后连接fc存储不再报错,但是dmesg有如下打印: scsi 5:0:0:0: Failed to get diagnostic page 0x1 scsi 5:0:0:0: Failed to bind enclosure -19 而且创建fc存储后,扫盘时有如下报错: qla2xxx [0000:0f:00.0]-5039:1: Async-tmf error - hdl=2e completion status(29). qla2xxx [0000:0f:00.0]-8030:1: TM IOCB failed (102).
背景:需要适配使用HBA卡:QLogic Corp. QLE2692 Dual Port 16Gb Fibre(芯片ISP2722-based) 在华琨服务器(HUAWEI Kunpeng 920 5221K 32C@2.6GHz),插上HBA卡样品,安装openEuler-20.03-LTS-SP1-aarch64-dvd.iso,设备识别正常,lspci信息显示正常,内核未发现异常报错。使用绿色(BOYANG OPTICAL FIBER CABLE MM 50/125UM OM3)连接FC存储后宕机重启。 dmesg日志如下: ```cpp [ 1391.526382] qla2xxx [0000:81:00.0]-500a:5: LOOP UP detected (8 Gbps). [ 1391.683593] qla2xxx [0000:81:00.0]-ffff:5: register_localport: host-traddr=nn-0x200034800d6fbc40:pn-0x210034800d6fbc40 on portID:10600 [ 1391.696523] ------------[ cut here ]------------ [ 1391.707222] WARNING: CPU: 0 PID: 0 at ./include/linux/dma-mapping.h:558 qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1391.721824] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1391.822047] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1391.878280] CPU: 0 PID: 0 Comm: swapper/0 Kdump: loaded Not tainted 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1391.895333] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1391.906319] pstate: 20400089 (nzCv daIf +PAN -UAO) [ 1391.915231] pc : qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1391.924669] lr : qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1391.934010] sp : ffff00000800fc50 [ 1391.941354] x29: ffff00000800fc50 x28: ffff00000927f080 [ 1391.950637] x27: ffff803fdf763c00 x26: 0000000000398000 [ 1391.959826] x25: 0000000000002010 x24: ffffa03f6d870000 [ 1391.968979] x23: 0000203f6d870000 x22: ffff000008aa0000 [ 1391.978049] x21: ffffa03f6f842a08 x20: ffffa03f690650a8 [ 1391.987026] x19: ffff803fd3a04400 x18: ffffffffffffffff [ 1391.995913] x17: 0000000000000000 x16: 000000000000000e [ 1392.004720] x15: 0000000000000001 x14: ffff000008b1cd98 [ 1392.013425] x13: 0000000000000000 x12: 0000000000000000 [ 1392.022026] x11: 00000000ffffffff x10: ffff0000092757f0 [ 1392.030534] x9 : ffff000008f50018 x8 : ffff00000863c9c8 [ 1392.038941] x7 : 0000000000000001 x6 : ffff803fff9e23d8 [ 1392.047251] x5 : ffff803fff9e23d8 x4 : 0000000000000001 [ 1392.055482] x3 : 0000000000000040 x2 : 98846b1aefbd5900 [ 1392.063639] x1 : 0000000000000000 x0 : 0000000000000024 [ 1392.071706] Call trace: [ 1392.076810] qla24xx_sp_unmap+0x35c/0x380 [qla2xxx] [ 1392.084331] qla2x00_async_gpnft_gnnft_sp_done+0x230/0x470 [qla2xxx] [ 1392.093307] qla24xx_els_ct_entry+0xc0/0x330 [qla2xxx] [ 1392.101000] qla24xx_process_response_queue+0x3b8/0x860 [qla2xxx] [ 1392.109607] qla24xx_msix_rsp_q+0x68/0x108 [qla2xxx] [ 1392.116995] __handle_irq_event_percpu+0x74/0x268 [ 1392.124052] handle_irq_event_percpu+0x40/0x98 [ 1392.130782] handle_irq_event+0x50/0xe0 [ 1392.136796] handle_fasteoi_irq+0xcc/0x1b8 [ 1392.142985] generic_handle_irq+0x34/0x50 [ 1392.149006] __handle_domain_irq+0x68/0xc0 [ 1392.155092] gic_handle_irq+0x6c/0x170 [ 1392.160868] el1_irq+0xb8/0x140 [ 1392.166000] arch_cpu_idle+0x38/0x1c0 [ 1392.171662] default_idle_call+0x24/0x58 [ 1392.177596] do_idle+0x1d4/0x2b0 [ 1392.182815] cpu_startup_entry+0x28/0x78 [ 1392.188755] rest_init+0xb8/0xc8 [ 1392.193997] start_kernel+0x4cc/0x4f8 [ 1392.199679] ---[ end trace 113263e6ce620abb ]--- [ 1392.206347] WARNING: CPU: 0 PID: 0 at kernel/dma/swiotlb.c:750 swiotlb_free+0xc0/0xc8 [ 1392.218537] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1392.320531] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1392.377127] CPU: 0 PID: 0 Comm: swapper/0 Kdump: loaded Tainted: G W 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1392.395252] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1392.405978] pstate: 20400089 (nzCv daIf +PAN -UAO) [ 1392.414570] pc : swiotlb_free+0xc0/0xc8 [ 1392.422202] lr : __dma_free+0xa8/0xc0 [ 1392.429661] sp : ffff00000800fbc0 [ 1392.436753] x29: ffff00000800fbc0 x28: ffff00000927f080 [ 1392.445872] x27: ffff803fdf763c00 x26: 0000000000398000 [ 1392.454996] x25: ffffa03f6d870000 x24: 0000000000000000 [ 1392.464079] x23: 0000000000000000 x22: ffffa03f6d870000 [ 1392.473083] x21: 0000000000010000 x20: 0000203f6d870000 [ 1392.481974] x19: ffffa03f690650a8 x18: ffffffffffffffff [ 1392.490797] x17: 0000000000000000 x16: 000000000000000e [ 1392.499548] x15: 0000000000000001 x14: ffff000008b1cd98 [ 1392.508187] x13: 0000000000000000 x12: 0000000000000000 [ 1392.516727] x11: 00000000ffffffff x10: ffff0000092757f0 [ 1392.525169] x9 : ffff000008f50018 x8 : ffff00000863c9c8 [ 1392.533519] x7 : 0000000000000001 x6 : ffff803fff9e23d8 [ 1392.541765] x5 : ffff0000080acce0 x4 : 0000000000000000 [ 1392.549931] x3 : 0000000000000080 x2 : ffffa03f6d870000 [ 1392.558006] x1 : 0000000000000080 x0 : 0000203f6d870000 [ 1392.565960] Call trace: [ 1392.570949] swiotlb_free+0xc0/0xc8 [ 1392.576907] __dma_free+0xa8/0xc0 [ 1392.582597] qla24xx_sp_unmap+0x2cc/0x380 [qla2xxx] [ 1392.589810] qla2x00_async_gpnft_gnnft_sp_done+0x230/0x470 [qla2xxx] [ 1392.598475] qla24xx_els_ct_entry+0xc0/0x330 [qla2xxx] [ 1392.605855] qla24xx_process_response_queue+0x3b8/0x860 [qla2xxx] [ 1392.614151] qla24xx_msix_rsp_q+0x68/0x108 [qla2xxx] [ 1392.621263] __handle_irq_event_percpu+0x74/0x268 [ 1392.628060] handle_irq_event_percpu+0x40/0x98 [ 1392.634528] handle_irq_event+0x50/0xe0 [ 1392.640296] handle_fasteoi_irq+0xcc/0x1b8 [ 1392.646301] generic_handle_irq+0x34/0x50 [ 1392.652210] __handle_domain_irq+0x68/0xc0 [ 1392.658218] gic_handle_irq+0x6c/0x170 [ 1392.663879] el1_irq+0xb8/0x140 [ 1392.668924] arch_cpu_idle+0x38/0x1c0 [ 1392.674520] default_idle_call+0x24/0x58 [ 1392.680384] do_idle+0x1d4/0x2b0 [ 1392.685571] cpu_startup_entry+0x28/0x78 [ 1392.691449] rest_init+0xb8/0xc8 [ 1392.696616] start_kernel+0x4cc/0x4f8 [ 1392.702234] ---[ end trace 113263e6ce620abc ]--- [ 1392.708862] ------------[ cut here ]------------ [ 1392.715531] WARNING: CPU: 0 PID: 0 at ./include/linux/dma-mapping.h:558 qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1392.729870] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1392.831589] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1392.888257] CPU: 0 PID: 0 Comm: swapper/0 Kdump: loaded Tainted: G W 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1392.906412] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1392.917158] pstate: 40400089 (nZcv daIf +PAN -UAO) [ 1392.925773] pc : qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1392.934859] lr : qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1392.943890] sp : ffff00000800fc50 [ 1392.951000] x29: ffff00000800fc50 x28: ffff00000927f080 [ 1392.960141] x27: ffff803fdf763c00 x26: 0000000000398000 [ 1392.969259] x25: ffff000003711af0 x24: 0000000000002010 [ 1392.978351] x23: ffffa03f6d1e0000 x22: 0000203f6d1e0000 [ 1392.987364] x21: ffff000008aa0000 x20: ffffa03f690650a8 [ 1392.996287] x19: ffff803fd3a04400 x18: ffffffffffffffff [ 1393.005128] x17: 0000000000000000 x16: 000000000000000e [ 1393.013888] x15: 0000000000000001 x14: ffff000008b1cd98 [ 1393.022539] x13: 0000000000000000 x12: 0000000000000000 [ 1393.031089] x11: 00000000ffffffff x10: ffff0000092757f0 [ 1393.039537] x9 : ffff000008f50018 x8 : ffff00000863c9c8 [ 1393.047887] x7 : 0000000000000001 x6 : 0000000000000695 [ 1393.056149] x5 : 0000000000000001 x4 : ffff803fff9e23d0 [ 1393.064304] x3 : ffff803fff9e23d0 x2 : 98846b1aefbd5900 [ 1393.072383] x1 : 0000000000000000 x0 : 0000000000000024 [ 1393.080390] Call trace: [ 1393.085437] qla24xx_sp_unmap+0x374/0x380 [qla2xxx] [ 1393.092896] qla2x00_async_gpnft_gnnft_sp_done+0x230/0x470 [qla2xxx] [ 1393.101810] qla24xx_els_ct_entry+0xc0/0x330 [qla2xxx] [ 1393.109445] qla24xx_process_response_queue+0x3b8/0x860 [qla2xxx] [ 1393.117996] qla24xx_msix_rsp_q+0x68/0x108 [qla2xxx] [ 1393.125325] __handle_irq_event_percpu+0x74/0x268 [ 1393.132325] handle_irq_event_percpu+0x40/0x98 [ 1393.139012] handle_irq_event+0x50/0xe0 [ 1393.145000] handle_fasteoi_irq+0xcc/0x1b8 [ 1393.151158] generic_handle_irq+0x34/0x50 [ 1393.157148] __handle_domain_irq+0x68/0xc0 [ 1393.163197] gic_handle_irq+0x6c/0x170 [ 1393.168941] el1_irq+0xb8/0x140 [ 1393.174043] arch_cpu_idle+0x38/0x1c0 [ 1393.179669] default_idle_call+0x24/0x58 [ 1393.185570] do_idle+0x1d4/0x2b0 [ 1393.190782] cpu_startup_entry+0x28/0x78 [ 1393.196705] rest_init+0xb8/0xc8 [ 1393.201936] start_kernel+0x4cc/0x4f8 [ 1393.207603] ---[ end trace 113263e6ce620abd ]--- [ 1393.214292] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 1393.227425] Mem abort info: [ 1393.232418] ESR = 0x96000045 [ 1393.237669] Exception class = DABT (current EL), IL = 32 bits [ 1393.245866] SET = 0, FnV = 0 [ 1393.251198] EA = 0, S1PTW = 0 [ 1393.256590] Data abort info: [ 1393.261687] ISV = 0, ISS = 0x00000045 [ 1393.267728] CM = 0, WnR = 1 [ 1393.272868] user pgtable: 64k pages, 48-bit VAs, pgdp = 000000002463e280 [ 1393.281815] [0000000000000000] pgd=0000000000000000, pud=0000000000000000 [ 1393.290857] Internal error: Oops: 96000045 [#1] SMP [ 1393.297977] Modules linked in: fuse msdos xfs dm_mod xt_CHECKSUM ipt_MASQUERADE tun ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c rfkill ip_set nfnetlink ip6table_filter ip6_tables iptable_filter ib_isert iscsi_target_mod vfat fat ib_srpt target_core_mod ib_srp scsi_transport_srp rpcrdma sunrpc rdma_ucm ib_iser rdma_cm iw_cm libiscsi ib_umad ib_ipoib scsi_transport_iscsi ib_cm ipmi_ssif aes_ce_blk crypto_simd cryptd aes_ce_cipher ses ghash_ce enclosure sha2_ce ofpart sha256_arm64 cmdlinepart mlx5_ib hns_roce_hw_v2 [ 1393.399845] sha1_ce sbsa_gwdt hns_roce ipmi_si ib_uverbs sg ib_core ipmi_devintf hi_sfc ipmi_msghandler mtd spi_dw_mmio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod realtek qla2xxx hisi_sas_v3_hw hclge mlx5_core hisi_sas_main nvme_fc ahci libahci libsas nvme_fabrics mlxfw nvme_core devlink hns3 smartpqi libata scsi_transport_fc hnae3 nfit scsi_transport_sas libnvdimm i2c_designware_platform i2c_designware_core [ 1393.457331] Process kworker/0:3 (pid: 419, stack limit = 0x00000000fc0b2274) [ 1393.468007] CPU: 0 PID: 419 Comm: kworker/0:3 Kdump: loaded Tainted: G W 4.19.90-2012.4.0.0053.oe1.aarch64 #1 [ 1393.486682] Hardware name: RCSIT TG225 A1/BC82AMDGM, BIOS 1.76.K 06/11/2021 [ 1393.497500] Workqueue: qla2xxx_wq qla2x00_iocb_work_fn [qla2xxx] [ 1393.507370] pstate: 40c00009 (nZcv daif +PAN +UAO) [ 1393.516064] pc : __memset+0x16c/0x188 [ 1393.523659] lr : qla24xx_async_gpnft+0x1b0/0x920 [qla2xxx] [ 1393.533126] sp : ffff000029defc50 [ 1393.540418] x29: ffff000029defc50 x28: ffff000003710148 [ 1393.549686] x27: ffff000009273000 x26: ffff000003753658 [ 1393.558881] x25: ffff00000372a738 x24: 0000000000000028 [ 1393.568003] x23: ffffa03f6f842a38 x22: 0000000000008010 [ 1393.577050] x21: ffff000009273000 x20: ffffa03f6f842a08 [ 1393.577051] x19: ffff803fd3a04400 x18: ffff000009296970 [ 1393.577052] x17: 0000000000000000 x16: 000000000000000e [ 1393.577053] x15: 0000000000000001 x14: 0000000000000000 [ 1393.577054] x13: ffff000008aae368 x12: 0000000000000000 [ 1393.577057] x11: ffff000008aae340 x10: 0000000000000b80 [ 1393.629190] x9 : 0000000000000000 x8 : 0000000000000000 [ 1393.629191] x7 : 0000000000000000 x6 : 000000000000003f [ 1393.629193] x5 : 0000000000000040 x4 : 0000000000000000 [ 1393.653637] x3 : 0000000000000004 x2 : 0000000000007fd0 [ 1393.653638] x1 : 0000000000000000 x0 : 0000000000000000 [ 1393.653639] Call trace: [ 1393.653640] __memset+0x16c/0x188 [ 1393.653650] qla2x00_do_work+0x3c0/0x470 [qla2xxx] [ 1393.653658] qla2x00_iocb_work_fn+0x58/0xe0 [qla2xxx] [ 1393.653660] process_one_work+0x1b0/0x448 [ 1393.653661] worker_thread+0x54/0x468 [ 1393.653663] kthread+0x134/0x138 [ 1393.653664] ret_from_fork+0x10/0x18 [ 1393.653666] Code: 91010108 54ffff4a 8b040108 cb050042 (d50b7428) [ 1393.653691] SMP: stopping secondary CPUs [ 1393.657083] Starting crashdump kernel... [ 1393.657086] Bye! ``` 按该链接https://www.spinics.net/lists/linux-scsi/msg147232.html的提示,打上以下三个patch https://patchwork.kernel.org/project/linux-scsi/patch/20180831182439.24182-5-himanshu.madhani@cavium.com/ http://lkml.iu.edu/hypermail/linux/kernel/2009.2/07333.html https://www.spinics.net/lists/stable/msg413787.html 之后连接fc存储不再报错,但是dmesg有如下打印: scsi 5:0:0:0: Failed to get diagnostic page 0x1 scsi 5:0:0:0: Failed to bind enclosure -19 而且创建fc存储后,扫盘时有如下报错: qla2xxx [0000:0f:00.0]-5039:1: Async-tmf error - hdl=2e completion status(29). qla2xxx [0000:0f:00.0]-8030:1: TM IOCB failed (102).
评论 (
5
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
成坚 (CHENG Jian)
gatieme
负责人
协作者
+负责人
+协作者
标签
sig/Kernel
issue_resolved
未设置
项目
未立项任务
未立项任务
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(4)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册