Bug 11568 - [devel-6.6] nvme-pci: Add nvme probe mode option to setup probe_type
Summary: [devel-6.6] nvme-pci: Add nvme probe mode option to setup probe_type
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-29 16:51 UTC by LeoLiu-oc
Modified: 2024-10-29 16:55 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LeoLiu-oc zhaoxin_group 2024-10-29 16:51:53 UTC
When a server boot/reboot, nvme driver async probe would case linux
drive letter drift.

First boot:
nvme nvme0: pci function 0000:03:00.0
nvme nvme1: pci function 0000:04:00.0
nvme nvme2: pci function 0000:81:00.0

Second boot:
nvme nvme0: pci function 0000:03:00.0
nvme nvme1: pci function 0000:81:00.0
nvme nvme2: pci function 0000:04:00.0

Some cases, the server need the nvme letter order can sort by pci
bus(Bus:Dev.Fun), nvme driver need probe synchronous in this time.

Add a module_param option probe_mode to allow nvme probe sync or
async.

nvme.probe_mode = { default | async | sync }

default, probe_type = PROBE_DEFAULT_STRATEGY
async, probe_type = PROBE_PREFER_ASYNCHRONOUS
sync, probe_type = PROBE_FORCE_SYNCHRONOUS
Comment 1 小龙 admin 2024-10-29 16:55:20 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4040