CN111258661A - RAID card drive design method based on UEFI SCSI - Google Patents

RAID card drive design method based on UEFI SCSI Download PDF

Info

Publication number
CN111258661A
CN111258661A CN202010030041.0A CN202010030041A CN111258661A CN 111258661 A CN111258661 A CN 111258661A CN 202010030041 A CN202010030041 A CN 202010030041A CN 111258661 A CN111258661 A CN 111258661A
Authority
CN
China
Prior art keywords
uefi
raid card
scsi
design method
protocol
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010030041.0A
Other languages
Chinese (zh)
Inventor
韩德亮
刘君朋
张久明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics Co Ltd
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 Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN202010030041.0A priority Critical patent/CN111258661A/en
Publication of CN111258661A publication Critical patent/CN111258661A/en
Pending legal-status Critical Current

Links

Images

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

Abstract

The invention discloses a RAID card drive design method based on UEFI SCSI, and belongs to the technical field of RAID cards. The design method of the RAID card drive based on UEFI SCSI comprises a hardware abstraction layer, a protocol layer and a core layer, wherein a hardware card drive is arranged in the hardware abstraction layer and used for initializing and driving the RAID card to work; the protocol layer comprises a host driver and a bus driver; the core layer comprises a starting service and a runtime service, and the hardware abstraction layer and the protocol layer provide services for the core layer. The RAID card drive design method based on UEFI SCSI can realize the support of UEFI BIOS on the RAID card, greatly expands the application range of UEFI BIOS, and has good popularization and application values.

Description

RAID card drive design method based on UEFI SCSI
Technical Field
The invention relates to the technical field of RAID cards, and particularly provides a RAID card drive design method based on UEFI SCSI.
Background
The RAID card can fully exert the added advantages of a plurality of hard disks in the aspect of data storage, can provide functions such as online capacity expansion, dynamic modification of array level, automatic data recovery, drive roaming, and cache, and is excellent in the aspects of improving the performance of the hard disks, data security, reliability, availability, and manageability, and thus has been increasingly widely applied to high-performance servers and storage systems.
The BIOS plays a vital role in a computer system as a key component connecting hardware and software. The UEFI BIOS has the advantages of high development efficiency, strong expansibility, superior performance and the like, so the UEFI BIOS gradually replaces the legacy BIOS.
However, because UEFI BIOS cannot support RAID cards, the application in server products is very limited.
Disclosure of Invention
The technical task of the invention is to provide a RAID card drive design method based on UEFI SCSI, which can realize the support of UEFI BIOS to RAID card and greatly expand the application range of UEFI BIOS.
In order to achieve the purpose, the invention provides the following technical scheme:
a design method of RAID card drive based on UEFI SCSI is provided with a hardware abstraction layer, a protocol layer and a core layer, wherein a hardware card drive is arranged in the hardware abstraction layer and used for initializing and driving the RAID card to work; the protocol layer comprises a host driver and a bus driver; the core layer comprises a starting service and a runtime service, and the hardware abstraction layer and the protocol layer provide services for the core layer.
The bus drive is realized by adopting the existing UEFI BIOS, and the host drive and the RAID card drive are related to hardware and need to be designed and realized by self. The RAID card drive is divided into a RAID card drive framework and a RAID card drive service. The RAID card drive frame comprises three parts of Start, Stop and Supported, wherein the Start is used for allocating resources and initializing the RAID card, the Stop is used for releasing the resources allocated in the Start and stopping the equipment, and the Supported is used for checking whether the RAID card is Supported by the drive. The RAID card driving service defines a universal service template, which comprises a group of service interfaces for operating the hardware equipment at the bottom layer and is provided for the bus service layer at the upper layer. The design of a host machine driving of the RAID card is realized based on a UEFI SCSI Pass Thru protocol, wherein a PassThru function is directly related to specific hardware, and the main function is to construct and send SCSI commands to the RAID card.
Preferably, the hardware abstraction layer further includes a processor driver module, a chipset driver module and a peripheral driver module of the UEFI BIOS.
Preferably, the host driver is an example of UEFI SCSI host protocol defined by UEFI specification, and is used to implement UEFI BIOS management on a specific SCSI host controller.
Preferably, the bus driver obtains the response from the underlying RAID card from the host driver and provides it up to the SCSI disk. The SCSI disk drive further provides services to upper layer drives (e.g., file systems) to convert upper layer IO requests into SCSI requests, thereby implementing IO request processing applied from the upper layer to the underlying RAID cards.
Preferably, the host driver analyzes the command packet issued by the bus driver, transmits the analyzed command to the RAID card, and stores the response result of the RAID card to the SCSI command.
Preferably, the protocol layer further comprises an ISA bus protocol, a PCI bus protocol and a USB bus protocol, a network protocol stack module and a file system module.
In addition, the protocol layer is also provided with a virtual disk drive and a block protocol.
Preferably, the core layer provides an interface for user space to access the kernel space.
Preferably, the boot service provides UEFI event management service, memory management service, Protocol management service, driver management service, and Image management service.
Preferably, the runtime service is configured to continue to provide read-write system time and read-write UEFI system variable services for the OS loader and the OS after the start service is ended.
Compared with the prior art, the UEFI SCSI based RAID card drive design method has the following outstanding beneficial effects: the RAID card drive design method based on UEFI SCSI realizes the support of UEFI BIOS on the RAID card, greatly expands the application range of UEFI BIOS, and has good popularization and application values.
Drawings
FIG. 1 is a RAID card drive architecture diagram designed by the UEFI SCSI based RAID card drive design method of the present invention.
Detailed Description
The UEFI SCSI-based RAID card drive design method and the design method thereof according to the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.
Examples
As shown in fig. 1, the UEFI SCSI-based RAID card drive design method of the present invention is provided with a hardware abstraction layer, a protocol layer, and a core layer.
And a hardware card driver is arranged in the hardware abstraction layer and used for initializing and driving the RAID card to work. The hardware abstraction layer also comprises a processor driving module, a chip set driving module and a peripheral driving module of UEFI BIOS.
The protocol layer includes a host driver and a bus driver. The system also comprises an ISA bus protocol, a PCI bus protocol, a USB bus protocol, a network protocol stack module and a file system module.
In addition, the protocol layer is also provided with a virtual disk drive and a block protocol.
The host driver is an example of UEFI SCSI host protocol defined by UEFI specification, and is used for realizing management of UEFI BIOS on a specific SCSI host controller.
The host drive analyzes the command packet sent by the bus drive, transmits the analyzed command to the RAID card downwards, and stores the response result of the RAID card to the SCSI command.
The bus drive is realized by adopting the existing UEFI BIOS, and the host drive and the RAID card drive are related to hardware and need to be designed and realized by self. The RAID card drive is divided into a RAID card drive framework and a RAID card drive service. The RAID card drive frame comprises three parts of Start, Stop and Supported, wherein the Start is used for allocating resources and initializing the RAID card, the Stop is used for releasing the resources allocated in the Start and stopping the equipment, and the Supported is used for checking whether the RAID card is Supported by the drive. The RAID card driving service defines a universal service template, which comprises a group of service interfaces for operating the hardware equipment at the bottom layer and is provided for the bus service layer at the upper layer. The design of a host machine driving of the RAID card is realized based on a UEFI SCSI Pass Thru protocol, wherein a PassThru function is directly related to specific hardware, and the main function is to construct and send SCSI commands to the RAID card. The bus driver takes the response from the underlying RAID card from the host driver and provides it up to the SCSI disk. The SCSI disk drive further provides services to upper layer drives (e.g., file systems) to convert upper layer IO requests into SCSI requests, thereby implementing IO request processing applied from the upper layer to the underlying RAID cards.
The core layer comprises a starting service and a runtime service, and the hardware abstraction layer and the protocol layer provide services for the core layer.
The core layer provides an interface for user space to access the kernel space.
The starting service provides UEFI event management service, memory management service, Protocol management service, drive management service and Image management service.
And the runtime service is used for continuously providing the read-write system time and the read-write UEFI system variable service for the OS loader and the OS after the start service is finished.
The above-described embodiments are merely preferred embodiments of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.

Claims (9)

1. A RAID card drive design method based on UEFI SCSI is characterized in that: the system is provided with a hardware abstraction layer, a protocol layer and a core layer, wherein a hardware card driver is arranged in the hardware abstraction layer and used for initializing and driving the RAID card to work; the protocol layer comprises a host driver and a bus driver; the core layer comprises a starting service and a runtime service, and the hardware abstraction layer and the protocol layer provide services for the core layer.
2. The UEFI SCSI based RAID card drive design method of claim 1, wherein: the hardware abstraction layer also comprises a processor driving module, a chip set driving module and a peripheral driving module of UEFIBIOS.
3. The UEFI SCSI based RAID card drive design method of claim 2, wherein: the host driver is an example of UEFI SCSI host protocol defined by UEFI specification, and is used for realizing management of UEFIBIOS on a specific SCSI host controller.
4. The UEFI SCSI based RAID card drive design method of claim 3, wherein: the bus driver obtains the response from the underlying RAID card from the host driver and provides it up to the SCSI disk.
5. The UEFI SCSI based RAID card drive design method of claim 4, wherein: the host drive analyzes the command packet sent by the bus drive, transmits the analyzed command to the RAID card downwards, and stores the response result of the RAID card to the SCSI command.
6. The UEFI SCSI based RAID card drive design method of claim 5, wherein: the protocol layer also comprises an ISA bus protocol, a PCI bus protocol, a USB bus protocol, a network protocol stack module and a file system module.
7. The UEFI SCSI based RAID card drive design method of claim 6, wherein: the core layer provides an interface for user space to access kernel space.
8. The UEFI SCSI based RAID card drive design method of claim 7, wherein: the starting service provides UEFI event management service, memory management service, Protocol management service, drive management service and Image management service.
9. The UEFI SCSI based RAID card drive design method of claim 8, wherein: and the runtime service is used for continuously providing read-write system time and read-write UEFI system variable services for the OS loader and the OS after the start service is finished.
CN202010030041.0A 2020-01-13 2020-01-13 RAID card drive design method based on UEFI SCSI Pending CN111258661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010030041.0A CN111258661A (en) 2020-01-13 2020-01-13 RAID card drive design method based on UEFI SCSI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010030041.0A CN111258661A (en) 2020-01-13 2020-01-13 RAID card drive design method based on UEFI SCSI

Publications (1)

Publication Number Publication Date
CN111258661A true CN111258661A (en) 2020-06-09

Family

ID=70948674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010030041.0A Pending CN111258661A (en) 2020-01-13 2020-01-13 RAID card drive design method based on UEFI SCSI

Country Status (1)

Country Link
CN (1) CN111258661A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986362A (en) * 2021-10-22 2022-01-28 山东云海国创云计算装备产业创新中心有限公司 RAID card, control method thereof and server host

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572061A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson server
CN105183367A (en) * 2015-08-06 2015-12-23 曙光信息产业(北京)有限公司 Method and apparatus for implementing small computer system interface SCSI
CN106909350A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of RAID card suitable for domestic processor platform is configured and driving method
CN109213449A (en) * 2018-09-04 2019-01-15 山东超越数控电子股份有限公司 A kind of RAID driving realization system and equipment based on domestic firmware
CN109614156A (en) * 2018-12-26 2019-04-12 贵州华芯通半导体技术有限公司 Support the methods, devices and systems of the driving of starting class external equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572061A (en) * 2014-03-21 2015-04-29 中电科技(北京)有限公司 UEFI (Unified Extensible Firmware Interface) firmware implementation method based on Loongson server
CN105183367A (en) * 2015-08-06 2015-12-23 曙光信息产业(北京)有限公司 Method and apparatus for implementing small computer system interface SCSI
CN106909350A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of RAID card suitable for domestic processor platform is configured and driving method
CN109213449A (en) * 2018-09-04 2019-01-15 山东超越数控电子股份有限公司 A kind of RAID driving realization system and equipment based on domestic firmware
CN109614156A (en) * 2018-12-26 2019-04-12 贵州华芯通半导体技术有限公司 Support the methods, devices and systems of the driving of starting class external equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986362A (en) * 2021-10-22 2022-01-28 山东云海国创云计算装备产业创新中心有限公司 RAID card, control method thereof and server host
CN113986362B (en) * 2021-10-22 2024-01-23 山东云海国创云计算装备产业创新中心有限公司 RAID card, control method thereof and server host

Similar Documents

Publication Publication Date Title
US10360060B2 (en) Virtual machine monitor to I/O stack conduit in virtual real memory
US9110702B2 (en) Virtual machine migration techniques
US9448728B2 (en) Consistent unmapping of application data in presence of concurrent, unquiesced writers and readers
US8830228B2 (en) Techniques for enabling remote management of servers configured with graphics processors
US9075540B2 (en) Virtualizing storage for WPAR clients
US9032176B2 (en) Avoiding physical fragmentation in a virtualized storage environment
US20190155548A1 (en) Computer system and storage access apparatus
US8392670B2 (en) Performance management of access to flash memory in a storage device
CN100347692C (en) Implementing method of virtual intelligent controller in SAN system
US20050198632A1 (en) Method, apparatus and system for dynamically reassigning a physical device from one virtual machine to another
JP4576398B2 (en) System for controlling I / O devices of a multi-partition computer system
US20070294459A1 (en) Apparatus for bridging a host to a SAN
US9495172B2 (en) Method of controlling computer system and computer system
CN1274123A (en) Peripheral component interlink slot controller of partition system with dynamic arrangement
JP2008530706A (en) Method, apparatus and system for dynamically reallocating memory from one virtual machine to another
US7370175B2 (en) System, method, and apparatus to aggregate heterogeneous RAID sets
CN105808167A (en) SR-IOV (Single Root I/O Virtualization)-based linked clone method, storage equipment and system
US20190037043A1 (en) Data Prefetching Method and Apparatus
CN111258661A (en) RAID card drive design method based on UEFI SCSI
CN1920731A (en) System and method for implementing operation system separation
US7930445B2 (en) Computer system using remote I/O and I/O data transfer method
US6915524B2 (en) Method for controlling multiple storage devices from a single software entity
CN102622245A (en) Virtual machine automatic-starting control method under sun4v architecture
CN112068927B (en) Recorder redirection method and system for cloud desktop
JP6244786B2 (en) Information processing apparatus, storage control apparatus, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination