WO2020001150A1 - 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质 - Google Patents

一种即时提示SATA和NVMe设备在位变化的方法、系统及介质 Download PDF

Info

Publication number
WO2020001150A1
WO2020001150A1 PCT/CN2019/084528 CN2019084528W WO2020001150A1 WO 2020001150 A1 WO2020001150 A1 WO 2020001150A1 CN 2019084528 W CN2019084528 W CN 2019084528W WO 2020001150 A1 WO2020001150 A1 WO 2020001150A1
Authority
WO
WIPO (PCT)
Prior art keywords
sata
nvme
change
data
devices
Prior art date
Application number
PCT/CN2019/084528
Other languages
English (en)
French (fr)
Inventor
马井彬
唐斌
Original Assignee
深圳市同泰怡信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市同泰怡信息技术有限公司 filed Critical 深圳市同泰怡信息技术有限公司
Publication of WO2020001150A1 publication Critical patent/WO2020001150A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Definitions

  • the present invention relates to the field of server storage, and in particular, to a method, a system, and a medium for promptly prompting SATA and NVMe devices to change in place.
  • the motherboard is hot-swappable.
  • the driver is responsible for detecting the presence of the hard disk in real time and notifying the user.
  • the hot-swap hard disk under non-operating system does not have any prompt information.
  • the user cannot confirm whether the functional position of the inserted hard disk is correct, whether the inserted hard disk link is normal, and whether the inserted hard disk is faulty.
  • a faulty hard disk may cause System is down.
  • Each server has a large number of hard disks. After inserting the hard disks, it is difficult to accurately determine which hard disk is connected after entering the system. After checking the function port to unplug the hard disk, you also need to enter the BIOS setting interface to determine which function port the hard disk is unplugged, which is troublesome.
  • the invention provides a method for promptly prompting the change of the SATA and NVMe devices in place.
  • the BIOS software By designing the BIOS software, when the hard disk is turned off, the hard disk is unplugged, and the user can be prompted immediately after being powered on; when a new hard disk is connected when the power is turned off, it can be immediately switched on. Prompt to the user; during the boot process, plugging and unplugging the hard disk can prompt the user immediately to determine the functional location information of the link, the link information, and whether the link is normal, which solves the technology of no prompting for hot plugging the hard disk in the non-operating system environment in the prior art. problem.
  • the motherboard is powered on, the BIOS starts running, initializes the startup service program list, and mounts all basic service programs;
  • step F Determine whether all the PCIE bridge devices have been checked. If not, go back to step F. If all the PCIE bridge devices are checked, the connection status data of the SATA device and the NVMe device are stored in the temporary data storage. Area;
  • step D Compare whether the temporary data storage area and the non-volatile data storage area are consistent. If the data is consistent, perform step D after waiting for an interval, and if the data is inconsistent, proceed to step N;
  • step Q If there is a change in the presence of the SATA device, go to step Q. If there is a change in the presence of the NVMe device, then Go to step X;
  • step D If the periodic function stops, end all execution operations.
  • the basic service program in the step A is an event service program.
  • the PCIE device in step B includes a PCIE SATA controller and a PCIE bridge device.
  • the SATA device is connected to the PCIE SATA controller, and an NVMe device is connected to the PCIE bridge device.
  • the temporary data storage area in the step D is used to store data for the program to check the hard disk presence status this time.
  • the consistent data in step L indicates that there is no change in the presence of the hard disk, and the inconsistent comparison data indicates that there is a change in the presence of the hard disk.
  • a pop-up window is output at the designated coordinate position on the display, displaying the SATA device port number, the SATA The device name and the SATA communication error information are prompted to the user; when the SATA device is unplugged, the SATA display device port number and the SATA device unplug information are prompted to the user.
  • step X If there is an error in the communication of the NVMe device or the connection status is abnormal in step X, it means that although the NVMe device is in place, the connection is unsuccessful or the NVMe device is faulty, and a pop-up window is output at the designated coordinate position on the display. Display the NVMe device address, link width, speed, slot number and the NVMe device name, abnormal link conditions, display an error message, and prompt the user when the NVMe device is unplugged, display the slot number and unplug information, Prompt to the customer.
  • a system for promptly prompting the change of SATA and NVMe devices in place is characterized in that the system for promptly prompting the change of SATA and NVMe devices in place includes a memory, a processor, and a computer program stored on the memory.
  • the computer The program is configured to be a step of the method according to any one when called by the processor.
  • a computer-readable storage medium is characterized in that: the computer-readable storage medium stores a computer program configured to implement the steps of any one of the methods when called by a processor.
  • the invention has the beneficial effects: through the design of the BIOS software, hot plugging equipment is realized, the function of promptly prompting the user when plugging in and unplugging is specified, designing coordinate pop-up windows, displaying basic information or error information of the device, and increasing a user operation result feedback mechanism, Improve user experience.
  • FIG. 1 is a schematic diagram of a method for promptly prompting SATA and NVMe devices to change in place according to the present invention.
  • the present invention provides a method for promptly prompting SATA and NVMe setting changes, including the following steps:
  • the motherboard is powered on, the BIOS starts running, initializes the startup service program list, and mounts all basic service programs;
  • step I Read the Slot capability register of the Nth PCIE bridge device according to the PCIE bridge device address, and determine whether the PCIE bridge device supports the hot-swap function based on the data. If it does not, no further judgment is required. Go to step I. If the hot-plug function is supported, then determine whether the hot-plug function is enabled. If the hot-plug function is not supported, the temporary data storage area gives initial data. This data does not change. If the hot-plug function is not enabled, no further Judging, proceed to step I, and if the hot plug function is supported and enabled, proceed to step H;
  • step F Determine whether all the PCIE bridge devices have been checked. If not, go back to step F. If all the PCIE bridge devices are checked, the connection status data of the SATA device and the NVMe device are stored in the temporary data storage. Area;
  • step D Compare whether the temporary data storage area and the non-volatile data storage area are consistent. If the data is consistent, perform step D after waiting for an interval, and if the data is inconsistent, proceed to step N;
  • step Q If there is a change in the presence of the SATA device, go to step Q. If there is a change in the presence of the NVMe device, then Go to step X;
  • step D If the periodic function stops, end all execution operations.
  • the basic service program in the step A is an event service program.
  • the PCIE device in step B includes a PCIE SATA controller and a PCIE bridge device.
  • the SATA device is connected to the PCIE SATA controller, and an NVMe device is connected to the PCIE bridge device.
  • the temporary data storage area in the step D is used to store data for the program to check the hard disk presence status this time.
  • the consistent data in step L indicates that there is no change in the presence of the hard disk, and the inconsistent comparison data indicates that there is a change in the presence of the hard disk.
  • a pop-up window is output at the designated coordinate position on the display, displaying the SATA device port number, the SATA The device name and the SATA communication error information are prompted to the user; when the SATA device is unplugged, the SATA display device port number and the SATA device unplug information are prompted to the user.
  • step X If there is an error in the communication of the NVMe device or the connection status is abnormal in step X, it means that although the NVMe device is in place, the connection is unsuccessful or the NVMe device is faulty, and a pop-up window is output at the designated coordinate position on the display. Display the NVMe device address, link width, speed, slot number and the NVMe device name, abnormal link conditions, display an error message, and prompt the user when the NVMe device is unplugged, display the slot number and unplug information, Prompt to the customer.
  • a system for promptly prompting the change of SATA and NVMe devices in place is characterized in that the system for promptly prompting the change of SATA and NVMe devices in place includes a memory, a processor, and a computer program stored on the memory.
  • the computer The program is configured to implement the steps of the method according to any one when called by the processor.
  • a computer-readable storage medium is characterized in that: the computer-readable storage medium stores a computer program configured to implement the steps of any one of the methods when called by a processor.
  • the invention is designed by BIOS software.
  • BIOS software When the hard disk is switched off, the hard disk is unplugged, and it can prompt the user immediately after booting; when a new hard disk is connected when the power is off, it can prompt the user immediately after booting;
  • the user determines the functional location information of the link, the link information, and whether the link is normal; establishes an effective fast feedback mechanism to promptly and accurately confirm the operation actions completed by the user, and confirms the function.
  • the BIOS software design is used to achieve thermal Plug and unplug devices, instant plug-in and plug-out functions to prompt users, specify coordinate pop-up window design, display basic device information or error information, increase user operation result feedback mechanism, and improve user experience.
  • BIOS Basic Input Output System
  • Basic input output system which is mainly used for initialization and detection of various hardware devices during computer startup.
  • CPU Central Processing Unit
  • PCIE Peripheral Component Interconnect Express
  • PCIE Peripheral Component Interconnect Express
  • PCH (Platform Controller Hub) Intel Corporation ’s Integrated South Bridge.
  • SATA Serial Advanced Technology Attachment
  • NVMe Non-Volatile Memory express
  • non-volatile memory standard is a specification for solid-state drives using PCI-E channels.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种即时提示SATA和NVMe设备在位变化的方法、系统及介质,通过BIOS软件设计,关机状态下,拔掉硬盘,开机后可以立即提示给用户;关机状态下接入新硬盘,开机后可以立即提示给用户;开机过程中,插拔硬盘可以即时提示给用户,确定链接的功能位置信息、链接信息,以及是否链接正常,解决现有技术中非操作系统环境下热插拔硬盘没有提示的技术问题,实现热插拔设备,即时插入拔出即时提示用户的功能,指定坐标弹窗设计,显示设备基本信息或者错误信息,增加用户操作结果反馈机制,提高用户体验。

Description

一种即时提示SATA和NVMe设备在位变化的方法、系统及介质 技术领域
本发明涉及服务器存储领域,具体而言,涉及一种即时提示SATA和NVMe设备在位变化的方法、系统及介质。
背景技术
在存储服务器领域,服务器用于存储大量数据,每一台服务器都需要配备足够多的硬盘,增加单台服务器的总存储容量,十几个或者几十个硬盘都是常见设计,一般采用高密度的2U/4U设计,来容纳足够多的存储盘位,可以将PCH SATA盘位全部连接出来,多达10几个硬盘(目前主流芯片支持14个),成本很低。对于高速且超大容量需求,可以采用NVMe接口设计,根据需要来设计硬盘数量,目前单CPU支持12个,双路(2个CPU)、四路(4个CPU)产品足够满足用户需要,NVMe设计成本较高,但容量和速度优势明显,是未来的发展趋势。SATA和NVMe硬盘均支持热插拔功能,众多的硬盘,通过热插拔来更换硬盘,是常规操作手法。
技术问题
目前主板热插拔硬盘,在操作系统下,由驱动负责即时侦测硬盘的在位情况,通知用户。但是非操作系统下热插拔硬盘,没有任何提示信息,用户无法确认所插入硬盘的功能位置是否正确,插入硬盘链接是否正常,也无法判断所插入硬盘是否有故障,有故障的硬盘可能会导致系统宕机。每台服务器有大量数量硬盘,插入硬盘后,进入系统后很难准确判断接入的是哪个硬盘。查看功能端口后拔出硬盘,也需要进入BIOS设置界面才能确定拔掉的是哪个功能端口的硬盘,比较麻烦。
技术解决方案
本发明提供一种即时提示SATA和NVMe设备在位变化的方法,通过BIOS软件设计,关机状态下,拔掉硬盘,开机后可以立即提示给用户;关机状态下接入新硬盘,开机后可以立即提示给用户;开机过程中,插拔硬盘可以即时提示给用户,确定链接的功能位置信息、链接信息,以及是否链接正常,解决现有技术中非操作系统环境下热插拔硬盘没有提示的技术问题。
本发明为解决上述技术问题而提供的这种即时提示SATA和NVMe设备在位变化的方法,包括以下步骤:
A.主板上电,BIOS开始运行,对启动服务程序列表进行初始化,挂载所有基础服务程序;
B. CPU、芯片组、内存自检完成以后,初始化所有PCIE设备;
C. 创建周期性事件服务处理程序,开始周期性执行,执行间隔根据设计需要,灵活设置;
D. 在执行周期性事件程序时,首先创建临时数据存储区;
E. 根据SATA控制器地址,来读取控制器所有端口连接情况的状态寄存器,将SATA设备连接状态数据存储到所述临时数据存储区;
F. 根据PCIE桥设备地址读取第N个所述PCIE桥设备的Slot能力寄存器,根据数据判断所述PCIE桥设备是否支持热插拔功能,如果不支持,不需要进一步判断,进行步骤I,如果支持热插拔功能,再判断是否开启了热插拔功能,如果不支持热插拔功能,临时数据存储区赋予初始数据,此数据不变化,如果没有开启热插拔功能,也不需要进一步判断,进行步骤I, 如果支持且开启了热插拔功能,则继续进行步骤H;
H. 读取Slot状态寄存器设备的在位数据;
I. 监测NVMe设备和所述PCIE桥设备的连接情况,并将状态数据存储到所述临时数据存储区;
J. 判断是否所有所述PCIE桥设备都检查完毕了,如果没有,返回进行步骤F,如果所有所述PCIE桥设备检查完, 则SATA设备和NVMe设备连接状态数据都存放在所述临时数据存储区;
K. 从预先定义的非易失数据存储区中读取SATA设备和NVMe设备在位状态的数据;
L. 比较所述临时数据存储区和所述非易失数据存储区是否一致,如果数据一致,等待时间间隔后进行步骤D,如果数据不一致,进行步骤N;
N. 将临时存储区数据存储到非易失数据存储区当中,并记录硬盘在位情况;
O. 判断是SATA设备在位情况有变化还是NVMe设备在位情况有变化,如果是所述SATA设备在位情况有变化,则进行步骤Q,如果是所述NVMe设备在位情况有变化,则进行步骤X;
Q. 根据数据差别判断所述SATA设备的端口号,当设备接入时,调用SATA通信服务程序,与所述SATA设备通信,获取所述SATA设备数据,提取所述SATA设备名字,调用弹窗服务程序,并将所述SATA设备的状态和监测结果输出弹窗给用户,如果有多个所述SATA设备变化,重复执行本步骤,变动坐标,逐一显示弹窗信息,并进行步骤Z;
X. 根据数据差别,判断所属PCIE桥设备,根据所述PCIE桥设备地址读取所述PCIE桥设备寄存器,当所述NVMe设备接入,先读取所述PCIE桥设备链接状态寄存器,获取链接宽度和链接速度,读取所述PCIE桥设备Slot能力寄存器,获取Slot号,再读取次级地址寄存器,获取所述NVMe设备的地址,根据地址与所述NVMe设备通信获取所述NVMe设备名字,调用弹窗服务程序,并将所述NVMe设备的状态和监测结果输出弹窗给用户,如果有多个所述NVMe设备变化,重复执行本步骤,变动坐标,逐一显示弹窗信息,并进行步骤Z;
Z. 本次检查完成,等待周期性时间间隔后,如果周期性函数不停止,进行步骤D,如果周期性函数停止,则结束所有执行操作。
所述步骤A中所述基础服务程序为事件服务程序。
所述步骤B中所述PCIE设备包括PCIE SATA控制器、PCIE桥设备,所述SATA设备连接在所述PCIE SATA控制器上面,NVMe设备连接在所述PCIE桥设备的上面。
所述步骤D中所述临时数据存储区用于存储程序本次检查硬盘在位状态数据。
所述步骤L中所述数据一致说明硬盘在位情况没有变化,所述比较数据不一致说明硬盘在位情况有变化。
所述步骤Q中如果所述SATA设备通信有错误,说明虽然设备在位,但是连接不正常或者设备有故障,在显示器上面指定坐标位置输出弹窗,显示所述SATA设备端口号、所述SATA设备名字和所述SATA通信错误信息提示给用户;当所述SATA设备拔出时,所述SATA显示设备端口号和所述SATA设备拔出信息,提示给用户。
所述步骤X中如果所述NVMe设备通信有错误,或者连接状态有异常,说明虽然所述NVMe设备在位,但是连接不成功或者所述NVMe设备有故障,在显示器指定坐标位置输出弹窗,显示所述NVMe设备地址、链接宽度、速度、Slot号及所述NVMe设备名字,异常链接情况,显示报错信息,提示给用户,当所述NVMe设备拔出时,显示Slot号及拔出信息,提示给客户。
一种即时提示SATA和NVMe设备在位变化的系统,其特征在于:所述即时提示SATA和NVMe设备在位变化的系统包括存储器、处理器以及存储在所述存储器上的计算机程序,所述计算机程序配置为由所述处理器调用时任一项所述的方法的步骤。
一种计算机可读存储介质,其特征在于:所述计算机可读存储介质存储有计算机程序,所述计算机程序配置为由处理器调用时实现任一项所述的方法的步骤。
有益效果
本发明所具有的有益效果:通过BIOS软件设计,实现热插拔设备,即时插入拔出即时提示用户的功能,指定坐标弹窗设计,显示设备基本信息或者错误信息,增加用户操作结果反馈机制,提高用户体验。
附图说明
图1是本发明所述即时提示SATA和NVMe设备在位变化的方法示意图。
本发明的最佳实施方式
在此处键入本发明的最佳实施方式描述段落。
本发明的实施方式
结合上述附图说明本发明的具体实施例。
由图1可知,本发明提供一种及时提示SATA和NVMe设置在位变化的方法,包括以下步骤:
A.主板上电,BIOS开始运行,对启动服务程序列表进行初始化,挂载所有基础服务程序;
B. CPU、芯片组、内存自检完成以后,初始化所有PCIE设备;
C. 创建周期性事件服务处理程序,开始周期性执行,执行间隔根据设计需要,灵活设置;
D. 在执行周期性事件程序时,首先创建临时数据存储区;
E. 根据SATA控制器地址,来读取控制器所有端口连接情况的状态寄存器,将SATA设备连接状态数据存储到所述临时数据存储区;
F. 根据PCIE桥设备地址读取第N个所述PCIE桥设备的Slot能力寄存器,根据数据判断所述PCIE桥设备是否支持热插拔功能,如果不支持,不需要进一步判断,进行步骤I,如果支持热插拔功能,再判断是否开启了热插拔功能,如果不支持热插拔功能,临时数据存储区赋予初始数据,此数据不变化,如果没有开启热插拔功能,也不需要进一步判断,进行步骤I, 如果支持且开启了热插拔功能,则继续进行步骤H;
H. 读取Slot状态寄存器设备的在位数据;
I. 监测NVMe设备和所述PCIE桥设备的连接情况,并将状态数据存储到所述临时数据存储区;
J. 判断是否所有所述PCIE桥设备都检查完毕了,如果没有,返回进行步骤F,如果所有所述PCIE桥设备检查完, 则SATA设备和NVMe设备连接状态数据都存放在所述临时数据存储区;
K. 从预先定义的非易失数据存储区中读取SATA设备和NVMe设备在位状态的数据;
L. 比较所述临时数据存储区和所述非易失数据存储区是否一致,如果数据一致,等待时间间隔后进行步骤D,如果数据不一致,进行步骤N;
N. 将临时存储区数据存储到非易失数据存储区当中,并记录硬盘在位情况;
O. 判断是SATA设备在位情况有变化还是NVMe设备在位情况有变化,如果是所述SATA设备在位情况有变化,则进行步骤Q,如果是所述NVMe设备在位情况有变化,则进行步骤X;
Q. 根据数据差别判断所述SATA设备的端口号,当设备接入时,调用SATA通信服务程序,与所述SATA设备通信,获取所述SATA设备数据,提取所述SATA设备名字,调用弹窗服务程序,并将所述SATA设备的状态和监测结果输出弹窗给用户,如果有多个所述SATA设备变化,重复执行本步骤,变动坐标,逐一显示弹窗信息,并进行步骤Z;
X. 根据数据差别,判断所属PCIE桥设备,根据所述PCIE桥设备地址读取所述PCIE桥设备寄存器,当所述NVMe设备接入,先读取所述PCIE桥设备链接状态寄存器,获取链接宽度和链接速度,读取所述PCIE桥设备Slot能力寄存器,获取Slot号,再读取次级地址寄存器,获取所述NVMe设备的地址,根据地址与所述NVMe设备通信获取所述NVMe设备名字,调用弹窗服务程序,并将所述NVMe设备的状态和监测结果输出弹窗给用户,如果有多个所述NVMe设备变化,重复执行本步骤,变动坐标,逐一显示弹窗信息,并进行步骤Z;
Z. 本次检查完成,等待周期性时间间隔后,如果周期性函数不停止,进行步骤D,如果周期性函数停止,则结束所有执行操作。
所述步骤A中所述基础服务程序为事件服务程序。
所述步骤B中所述PCIE设备包括PCIE SATA控制器、PCIE桥设备,所述SATA设备连接在所述PCIE SATA控制器上面,NVMe设备连接在所述PCIE桥设备的上面。
所述步骤D中所述临时数据存储区用于存储程序本次检查硬盘在位状态数据。
所述步骤L中所述数据一致说明硬盘在位情况没有变化,所述比较数据不一致说明硬盘在位情况有变化。
所述步骤Q中如果所述SATA设备通信有错误,说明虽然设备在位,但是连接不正常或者设备有故障,在显示器上面指定坐标位置输出弹窗,显示所述SATA设备端口号、所述SATA设备名字和所述SATA通信错误信息提示给用户;当所述SATA设备拔出时,所述SATA显示设备端口号和所述SATA设备拔出信息,提示给用户。
所述步骤X中如果所述NVMe设备通信有错误,或者连接状态有异常,说明虽然所述NVMe设备在位,但是连接不成功或者所述NVMe设备有故障,在显示器指定坐标位置输出弹窗,显示所述NVMe设备地址、链接宽度、速度、Slot号及所述NVMe设备名字,异常链接情况,显示报错信息,提示给用户,当所述NVMe设备拔出时,显示Slot号及拔出信息,提示给客户。
一种即时提示SATA和NVMe设备在位变化的系统,其特征在于:所述即时提示SATA和NVMe设备在位变化的系统包括存储器、处理器以及存储在所述存储器上的计算机程序,所述计算机程序配置为由所述处理器调用时实现任一项所述的方法的步骤。
一种计算机可读存储介质,其特征在于:所述计算机可读存储介质存储有计算机程序,所述计算机程序配置为由处理器调用时实现任一项所述的方法的步骤。
本发明通过BIOS软件设计,关机状态下,拔掉硬盘,开机后可以立即提示给用户;关机状态下接入新硬盘,开机后可以立即提示给用户;开机过程中,插拔硬盘可以即时提示给用户,确定链接的功能位置信息、链接信息,以及是否链接正常;建立有效的快速反馈机制,及时准确对用户所完成操作动作,进行功能上的确认本发明方法中,通过BIOS软件设计,实现热插拔设备,即时插入拔出即时提示用户的功能,指定坐标弹窗设计,显示设备基本信息或者错误信息,增加用户操作结果反馈机制,提高用户体验。
名词解释
BIOS: (Basic Input Output System)基本输入输出系统,主要用于计算机开机过程中各种硬件设备的初始化和检测.
CPU:(Central Processing Unit)中央处理器。本文特指X86架构处理器,它的功能主要是解释计算机指令以及处理计算机软件中的数据。
PCIE:(Peripheral Component Interconnect Express)一种高速串行计算机扩展总线标准。
PCH:(Platform Controller Hub) 英特尔公司的集成南桥.
SATA:(Serial Advanced Technology Attachment)串行ATA接口规范。
NVMe:(Non-Volatile Memory express)非易失性存储器标准,是使用PCI-E通道的固态硬盘一种规范。
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于发明的保护范围。
工业实用性
在此处键入工业实用性描述段落。
序列表自由内容
在此处键入序列表自由内容描述段落。

Claims (9)

  1. 一种即时提示SATA和NVMe设备在位变化的方法,其特征在于:该方法包括以下步骤:
    A.主板上电,BIOS开始运行,对启动服务程序列表进行初始化,挂载所有基础服务程序;
    B. CPU、芯片组、内存自检完成以后,初始化所有PCIE设备;
    C. 创建周期性事件服务处理程序,开始周期性执行,执行间隔根据设计需要,灵活设置;
    D. 在执行周期性事件程序时,首先创建临时数据存储区;
    E. 根据SATA控制器地址,来读取控制器所有端口连接情况的状态寄存器,将SATA设备连接状态数据存储到所述临时数据存储区;
    F. 根据PCIE桥设备地址读取第N个所述PCIE桥设备的Slot能力寄存器,根据数据判断所述PCIE桥设备是否支持热插拔功能,如果不支持,不需要进一步判断,进行步骤I,如果支持热插拔功能,再判断是否开启了热插拔功能,如果不支持热插拔功能,临时数据存储区赋予初始数据,此数据不变化,如果没有开启热插拔功能,也不需要进一步判断,进行步骤I, 如果支持且开启了热插拔功能,则继续进行步骤H;
    H. 读取Slot状态寄存器设备的在位数据;
    I. 监测NVMe设备和所述PCIE桥设备的连接情况,并将状态数据存储到所述临时数据存储区;
    J. 判断是否所有所述PCIE桥设备都检查完毕了,如果没有,返回进行步骤F,如果所有所述PCIE桥设备检查完, 则SATA设备和NVMe设备连接状态数据都存放在所述临时数据存储区;
    K. 从预先定义的非易失数据存储区中读取SATA设备和NVMe设备在位状态的数据;
    L. 比较所述临时数据存储区和所述非易失数据存储区是否一致,如果数据一致,等待时间间隔后进行步骤D,如果数据不一致,进行步骤N;
    N. 将临时存储区数据存储到非易失数据存储区当中,并记录硬盘在位情况;
    O. 判断是SATA设备在位情况有变化还是NVMe设备在位情况有变化,如果是所述SATA设备在位情况有变化,则进行步骤Q,如果是所述NVMe设备在位情况有变化,则进行步骤X;
    Q. 根据数据差别判断所述SATA设备的端口号,当设备接入时,调用SATA通信服务程序,与所述SATA设备通信,获取所述SATA设备数据,提取所述SATA设备名字,调用弹窗服务程序,并将所述SATA设备的状态和监测结果输出弹窗给用户,如果有多个所述SATA设备变化,重复执行本步骤,变动坐标,逐一显示弹窗信息,并进行步骤Z;
    X. 根据数据差别,判断所属PCIE桥设备,根据所述PCIE桥设备地址读取所述PCIE桥设备寄存器,当所述NVMe设备接入,先读取所述PCIE桥设备链接状态寄存器,获取链接宽度和链接速度,读取所述PCIE桥设备Slot能力寄存器,获取Slot号,再读取次级地址寄存器,获取所述NVMe设备的地址,根据地址与所述NVMe设备通信获取所述NVMe设备名字,调用弹窗服务程序,并将所述NVMe设备的状态和监测结果输出弹窗给用户,如果有多个所述NVMe设备变化,重复执行本步骤,变动坐标,逐一显示弹窗信息,并进行步骤Z;
    Z. 本次检查完成,等待周期性时间间隔后,如果周期性函数不停止,进行步骤D,如果周期性函数停止,则结束所有执行操作。
  2. 根据权利要求1所述的即时提示SATA和NVMe设备在位变化的方法,其特征在于:所述步骤A中所述基础服务程序为事件服务程序。
  3. 根据权利要求1所述的即时提示SATA和NVMe设备在位变化的方法,其特征在于:所述步骤B中所述PCIE设备包括PCIE SATA控制器、PCIE桥设备,所述SATA设备连接在所述PCIE SATA控制器上面,NVMe设备连接在所述PCIE桥设备的上面。
  4. 根据权利要求1所述的即时提示SATA和NVMe设备在位变化的方法,其特征在于:所述步骤D中所述临时数据存储区用于存储程序本次检查硬盘在位状态数据。
  5. 根据权利要求1所述的即时提示SATA和NVMe设备在位变化的方法,其特征在于:所述步骤L中所述数据一致说明硬盘在位情况没有变化,所述比较数据不一致说明硬盘在位情况有变化。
  6. 根据权利要求1所述的即时提示SATA和NVMe设备在位变化的方法,其特征在于:所述步骤Q中如果所述SATA设备通信有错误,说明虽然设备在位,但是连接不正常或者设备有故障,在显示器上面指定坐标位置输出弹窗,显示所述SATA设备端口号、所述SATA设备名字和所述SATA通信错误信息提示给用户;当所述SATA设备拔出时,所述SATA显示设备端口号和所述SATA设备拔出信息,提示给用户。
  7. 根据权利要求1所述的即时提示SATA和NVMe设备在位变化的方法,其特征在于:所述步骤X中如果所述NVMe设备通信有错误,或者连接状态有异常,说明虽然所述NVMe设备在位,但是连接不成功或者所述NVMe设备有故障,在显示器指定坐标位置输出弹窗,显示所述NVMe设备地址、链接宽度、速度、Slot号及所述NVMe设备名字,异常链接情况,显示报错信息,提示给用户,当所述NVMe设备拔出时,显示Slot号及拔出信息,提示给客户。
  8. 一种即时提示SATA和NVMe设备在位变化的系统,其特征在于:所述即时提示SATA和NVMe设备在位变化的系统包括存储器、处理器以及存储在所述存储器上的计算机程序,所述计算机程序配置为由所述处理器调用时实现权利要求1-7中任一项所述的方法的步骤。
  9. 一种计算机可读存储介质,其特征在于:所述计算机可读存储介质存储有计算机程序,所述计算机程序配置为由处理器调用时实现权利要求1-7中任一项所述的方法的步骤。
PCT/CN2019/084528 2018-06-29 2019-04-26 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质 WO2020001150A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810696986.9A CN109086081B (zh) 2018-06-29 2018-06-29 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质
CN201810696986.9 2018-06-29

Publications (1)

Publication Number Publication Date
WO2020001150A1 true WO2020001150A1 (zh) 2020-01-02

Family

ID=64834817

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/084528 WO2020001150A1 (zh) 2018-06-29 2019-04-26 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质

Country Status (2)

Country Link
CN (1) CN109086081B (zh)
WO (1) WO2020001150A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086081B (zh) * 2018-06-29 2020-11-03 深圳市同泰怡信息技术有限公司 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质
CN111048138A (zh) * 2019-12-22 2020-04-21 北京浪潮数据技术有限公司 一种硬盘的故障检测方法及相关装置
CN113656339B (zh) * 2021-07-14 2024-02-02 浪潮商用机器有限公司 Nvme热插拔的处理方法、bmc、装置、设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169221A1 (en) * 2013-12-12 2015-06-18 Fujitsu Limited Information processing apparatus and method for monitoring the same
CN105634814A (zh) * 2016-01-05 2016-06-01 浪潮电子信息产业股份有限公司 一种服务器资产信息变更的监控方法
CN105975382A (zh) * 2016-05-13 2016-09-28 深圳市国鑫恒宇科技有限公司 一种硬件配置变动的报警方法
CN106970866A (zh) * 2017-03-13 2017-07-21 郑州云海信息技术有限公司 一种磁盘监控系统及方法
CN109086081A (zh) * 2018-06-29 2018-12-25 深圳市同泰怡信息技术有限公司 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7134052B2 (en) * 2003-05-15 2006-11-07 International Business Machines Corporation Autonomic recovery from hardware errors in an input/output fabric
CN107766213A (zh) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 一种实现nvme硬盘点灯的方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169221A1 (en) * 2013-12-12 2015-06-18 Fujitsu Limited Information processing apparatus and method for monitoring the same
CN105634814A (zh) * 2016-01-05 2016-06-01 浪潮电子信息产业股份有限公司 一种服务器资产信息变更的监控方法
CN105975382A (zh) * 2016-05-13 2016-09-28 深圳市国鑫恒宇科技有限公司 一种硬件配置变动的报警方法
CN106970866A (zh) * 2017-03-13 2017-07-21 郑州云海信息技术有限公司 一种磁盘监控系统及方法
CN109086081A (zh) * 2018-06-29 2018-12-25 深圳市同泰怡信息技术有限公司 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质

Also Published As

Publication number Publication date
CN109086081B (zh) 2020-11-03
CN109086081A (zh) 2018-12-25

Similar Documents

Publication Publication Date Title
TWI588649B (zh) 硬體修復方法、硬體修復系統以及計算機可讀取儲存裝置
US11693806B2 (en) Host-safe firmware upgrade of a PCI express device
CN107423169B (zh) 用于测试高速外围设备互连设备的方法和系统
US10423425B2 (en) System and method for runtime update of ESRT table for hot-pluggable disks
US9680712B2 (en) Hardware management and control of computer components through physical layout diagrams
US10241868B2 (en) Server control method and server control device
US9218893B2 (en) Memory testing in a data processing system
TWI632462B (zh) 開關裝置及偵測積體電路匯流排之方法
US20100162043A1 (en) Method, Apparatus, and System for Restarting an Emulated Mainframe IOP
WO2020001150A1 (zh) 一种即时提示SATA和NVMe设备在位变化的方法、系统及介质
US9529410B2 (en) Service processor (SP) initiated data transaction with BIOS utilizing power off commands
WO2021098485A1 (zh) PCIe设备的上下电控制方法以及系统
US20060294149A1 (en) Method and apparatus for supporting memory hotplug operations using a dedicated processor core
US20200272593A1 (en) Server and method of identifying unsupported drives in a server
US7080164B2 (en) Peripheral device having a programmable identification configuration register
CN107145198B (zh) 一种提升服务器对硬盘兼容能力的方法及其主板
US9749189B2 (en) Generating graphical diagram of physical layout of computer platforms
TWI553490B (zh) 遠端系統配置管理方法、遠端系統配置管理系統及非暫態電腦可讀式儲存多媒體
CN107818061B (zh) 关联外围设备的数据总线和管理总线
TWI529525B (zh) 處理系統錯誤之方法及系統
WO2017124918A1 (zh) 一种设备热处理方法和装置
US20080127229A1 (en) Multiple interface standard support for redundant array of independent disks
CN116235175A (zh) 加速器卡安全模式的静态配置
TW201202944A (en) Method for detecting pluggable storage apparatus and electronic apparatus
KR101103940B1 (ko) 서버 i/o 슬롯의 무전원 식별 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19824732

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19824732

Country of ref document: EP

Kind code of ref document: A1