/ 详情

[openEuler-20.03-LTS-SP1] nvme 驱动导出接口破坏了 nvme.ko 的兼容性

Done
Task member
Opened this issue  
2021-04-26 19:18

openEuler bugzilla 18

4.19.90-2101.1.0 版本与 4.19.90-2012.5.0 相比,下面 kabi 发生变化,
导致 nvme.ko 不兼容。

nvme_change_ctrl_state 0xa9831066 0x7cb85193
nvme_complete_async_event 0x52d0a2b8 0x25e80f2d
nvme_disable_ctrl 0x47ba7c61 0xccd6e6c2
nvme_enable_ctrl 0xef62820f 0x2b2447c1
nvme_init_ctrl 0x17723398 0x579b21cb
nvme_init_identify 0xd63f62b9 0xa1f10e6d
nvme_kill_queues 0x6e10a1e5 0x01bed9b3
nvme_remove_namespaces 0xbfeae630 0x80f1cd87
nvme_reset_ctrl 0x2e006b8c 0xdc731a9b
nvme_reset_ctrl_sync 0xd8e8e0ac 0x4c929e3e
nvme_set_queue_count 0x67501a93 0x113901fe
nvme_setup_cmd 0xe0ebe950 0xc1b15179
nvme_shutdown_ctrl 0x2e9991f6 0xc147a6ae
nvme_start_ctrl 0xfaf0baf2 0x8491b0dd
nvme_start_freeze 0x1af15095 0x250af59f
nvme_start_queues 0xd0896027 0x4220215b
nvme_stop_ctrl 0x9cc4eb28 0x9418189c
nvme_stop_queues 0xb7324ae4 0x734f644c
nvme_unfreeze 0x3d32dcf2 0xf792031f
nvme_uninit_ctrl 0x7a544999 0x23c7ad7b
nvme_wait_freeze 0x886db947 0xce2e1195
nvme_wait_freeze_timeout 0x1b9c04fc 0xd34fe27e
Attachments

Comments (3)

成坚 (CHENG Jian) created任务
成坚 (CHENG Jian) set related repository to openEuler/kernel
展开全部操作日志

Hey gatieme, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot .
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

成坚 (CHENG Jian) changed description

首先
[PATCH] nvme-fabrics: reject I/O to offline device

经定位是该补丁修改了 drivers/nvme/host/fabrics.h 和 drivers/nvme/host/nvme.h 中的结构体引起的不兼容
回退

commit 9888c2c61094de95e91319ccdfb81ce76100ecc5 (tag: 4.19.90-2104.3.0)
Author: Chen Zhou <chenzhou10@huawei.com>
Date:   Wed Apr 7 17:57:11 2021 +0800

    nvme-fabrics: fix kabi broken due to adding fields in struct nvme_ctrl

    driver inclusion
    category: bugfix
    bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=18
    CVE: NA

    -------------------------------------------------
commit 55a95864ba07235b291add633775b61003d9d0f6 (tag: 4.19.90-2104.16.0)
Author: Cheng Jian <cj.chengjian@huawei.com>
Date:   Thu Apr 15 22:13:37 2021 +0800

CONFIG_NVME_MULTIPATH 也导致了 nvme 的 KABI 问题


    config/arm64: fix kabi by disable CONFIG_NVME_MULTIPATH

    hulk inclusion
    category: bugfix
    bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=20
    CVE: NA

    -------------------------------------------------

这个补丁在 ARM64 下被主动开起来,引起了 KABI 变更
X86 下是默认就开起来的。

本地 SP1/SP2 先把 CONFIG_NVME_MULTIPATH ARM64 下关掉

kernel-4.19 下开起来

成坚 (CHENG Jian) changed issue state from 待办的 to 已完成
成坚 (CHENG Jian) changed description
成坚 (CHENG Jian) translation missing: en.project.new_issues_operate_log.link_issue(Normal)【kernel-4.19】openEuler kernel nvme 驱动增强

Sign in to comment

状态
Assignees
Projects
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
确定
参与者(2)
5329419 openeuler ci bot 1578984659