Bug 3864 - 【4.19】第三方的mlx5_core.ko和ice.ko不能同时加载
Summary: 【4.19】第三方的mlx5_core.ko和ice.ko不能同时加载
Status: RESOLVED FIXED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: net (show other bugs) net
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: XuanZhuo
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-29 16:09 UTC by cuishw
Modified: 2023-02-28 19:35 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cuishw inspur_group 2023-01-29 16:09:50 UTC
Description of problem:

第三方驱动mlnx-ofa_kernel-5.8-OFED.5.8.1.1.2.1.src.rpm和ice-1.8.9.tar.gz编译生成的驱动mlx5_core.ko和ice.ko同一时间只能加载一个。
比如加载mlx5_core.ko之后再加载ice.ko,将会报如下错误:
[ 1032.695185] ice: disagrees about version of symbol auxiliary_device_init
[ 1032.695188] ice: Unknown symbol auxiliary_device_init (err -22)
[ 1032.695462] ice: disagrees about version of symbol __auxiliary_device_add
[ 1032.695462] ice: Unknown symbol __auxiliary_device_add (err -22)
原因为这两个驱动都带了auxiliary驱动但互不兼容导致。
合入upstream 7de3697e9cbd4bd3d62bafa249d57990e1b8f294可以解决
Comment 1 maqiao alibaba_cloud_group 2023-02-28 19:35:52 UTC
merged: https://gitee.com/anolis/cloud-kernel/pulls/1083