A method and system for configuring SAS RAID card based on BIOS

The method of configuring the SAS RAID card through the BIOS monitors and trains the speed and bandwidth of the SAS RAID card, which solves the problem of slowdown and bandwidth loss in ARM servers, improves the efficiency of troubleshooting, avoids the tediousness of hardware adjustment, and meets the requirements of SAS Card performance requirements.

CN113626231BActive Publication Date: 2024-09-03LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110728193.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-29
Publication Date
2024-09-03
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

In the FT2000+ ARM server, the SAS RAID card is prone to slowdown and bandwidth loss in high-speed signal environments, which affects the performance of the hard disk and SAS RAID card. The existing hardware adjustment method is inefficient.

Method used

Configure the SAS RAID card through the BIOS, use the device ID information to determine the SAS RAID card, query the PEX bridge under the PCI bus, read the device structure information, monitor the rate and bandwidth, and perform repeated reconnection training according to the decline to avoid degradation. Speed ​​and bandwidth loss.

Benefits of technology

It effectively shields the speed reduction and occasional bandwidth reduction caused by unstable factors during the server startup process, improves fault handling efficiency, avoids hardware circuit changes, and meets SAS card performance requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113626231B
    Figure CN113626231B
Patent Text Reader

Abstract

The present application discloses a method and system for configuring a SAS RAID card based on BIOS, the method comprising: determining the SAS RAID card through the ID information of the device; querying the PEX bridge under the PCI bus mounted by the SAS RAID card; determining the base address interface and register address by reading the device structure information of the SAS RAID card and the PEX bridge; using the BIOS to read and monitor the rate of the SAS RAID card, and repeatedly reconnect training according to the rate drop of the SAS RAID card; using the BIOS to read and monitor the bandwidth of the SAS RAID card, and repeatedly reconnect training according to the bandwidth drop of the SAS RAID card. The system comprises: a SAS RAID card determination module, a query module, an interface and register determination module, a rate control module, and a bandwidth control module. Through the present application, it is possible to effectively shield the speed reduction and occasional bandwidth reduction problems caused by unstable factors during the server startup process, and avoid hardware circuit changes, greatly improving the fault handling efficiency during the server startup process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) device failure processing, and in particular to a method and system for configuring a SAS RAID card based on BIOS. Background Art

[0002] In the currently widely used X86 servers, when a SAS (Serial Attached SCSI, SCSI stands for Small Computer System Interface) RAID (Redundant Array of Independent Disks) card is inserted into the server PCIE slot for automatic testing or stress testing, there will be no risk of signal distortion and speed reduction accompanied by bandwidth reduction during the communication between the high-speed signal and the CPU. However, under the same stress environment, the FT2000+ ARM server will still cause speed reduction, bandwidth loss and other problems due to CPU performance and other reasons, thereby affecting the performance of the hard disk and SAS RAID card, and thus having a great impact on the overall performance of the server. Therefore, how to avoid SAS RAID card speed reduction and bandwidth loss is an important technical issue.

[0003] At present, the method of preventing the SAS RAID card from slowing down and reducing bandwidth usually adopts a hardware method, specifically, adopts the method of replacing the switch bridge chip, or changes the hardware line connection relationship between the bridge chip and the PCIE slot.

[0004] However, the current method of preventing SAS RAID cards from slowing down and reducing bandwidth uses hardware methods, which requires replacing corresponding hardware or hardware line connection relationships and designing board cards. The operation is too cumbersome and the adjustment efficiency is too low. Summary of the invention

[0005] The present application provides a method and system for configuring a SAS RAID card based on BIOS, so as to solve the problem that the method for preventing the SAS RAID card from slowing down and losing bandwidth in the prior art is too complicated to operate and the efficiency of power-on failure processing is low.

[0006] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:

[0007] A method for configuring a SAS RAID card based on BIOS (Basic Input Output System), the method being applied to an ARM server, the method comprising:

[0008] Determine the SAS RAID card through the device ID information;

[0009] Query the PEX (a PCI link device) bridge under the PCI (Peripheral Component Interconnect, a standard introduced by Intel Corporation for defining a local bus) bus mounted on the SAS RAID card;

[0010] By reading the device structure information of the SAS RAID card and the PEX bridge chip, a base address interface and a register address are determined, wherein the base address interface is used to realize the communication connection between the BIOS and the PEX bridge chip, and the register address is used to read the rate and bandwidth of the SAS RAID card;

[0011] Use BIOS to read and monitor the speed of the SAS RAID card, and perform repeated reconnection training according to the speed drop of the SAS RAID card;

[0012] Use BIOS to read and monitor the bandwidth of the SAS RAID card, and perform repeated reconnection training according to the decrease in the bandwidth of the SAS RAID card.

[0013] Optionally, the method of using BIOS to read and monitor the rate of the SAS RAID card, and performing repeated reconnection training according to the rate drop of the SAS RAID card, includes:

[0014] According to the register address, using BIOS to read the rate of the SAS RAID card;

[0015] Determine whether the speed of the SAS RAID card is lower than the set SAS RAID card speed;

[0016] If yes, the BIOS controls multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address;

[0017] If not, BIOS continues to monitor the speed of the SAS RAID card.

[0018] Optionally, the using BIOS to read and monitor the bandwidth of the SAS RAID card, and performing repeated reconnection training according to the bandwidth decrease of the SAS RAID card, includes:

[0019] According to the register address, the bandwidth of the SAS RAID card is read using BIOS;

[0020] Determine whether the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth;

[0021] If yes, the BIOS controls multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address;

[0022] If not, the BIOS continues to monitor the bandwidth of the SAS RAID card.

[0023] Optionally, the method further comprises:

[0024] When using BIOS to read the rate and bandwidth of the SAS RAID card, set a certain delay time.

[0025] Optionally, when repeatedly reconnecting training is performed according to a rate drop of the SAS RAID card, and when repeatedly reconnecting training is performed according to a bandwidth drop of the SAS RAID card, a certain number of training times is set respectively.

[0026] Optionally, the training times are less than half of the maximum training times.

[0027] A system for configuring a SAS RAID card based on BIOS, the system being applied to an ARM server, the system comprising:

[0028] A SAS RAID card identification module is used to identify the SAS RAID card through the ID information of the device;

[0029] A query module, used for querying the PEX bridge chip under the PCI bus mounted by the SAS RAID card;

[0030] An interface and register determination module, used to determine a base address interface and a register address by reading device structure information of the SAS RAID card and the PEX bridge chip, wherein the base address interface is used to realize the communication connection between the BIOS and the PEX bridge chip, and the register address is used to read the rate and bandwidth of the SAS RAID card;

[0031] A rate control module is used to read and monitor the rate of the SAS RAID card using BIOS, and to perform repeated reconnection training according to the rate drop of the SAS RAID card;

[0032] The bandwidth control module is used to read and monitor the bandwidth of the SAS RAID card by using BIOS, and to perform repeated reconnection training according to the bandwidth reduction of the SAS RAID card.

[0033] Optionally, the rate control module includes:

[0034] A rate reading unit, used for reading the rate of the SAS RAID card using BIOS according to the register address;

[0035] A first judging unit, used for judging whether the rate of the SAS RAID card is lower than the set SAS RAID card rate, if yes, starting the first connection control unit, otherwise, starting the rate reading unit to continue monitoring the rate of the SAS RAID card;

[0036] The first connection control unit is used to control multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address when the rate of the SAS RAID card is lower than the set SAS RAID card rate.

[0037] Optionally, the bandwidth control module includes:

[0038] A bandwidth reading unit, used for reading the bandwidth of the SAS RAID card using BIOS according to the register address;

[0039] The second judgment unit is used to judge whether the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth, and if so, start the second connection control unit, otherwise, start the bandwidth reading unit to continue monitoring the bandwidth of the SAS RAID card;

[0040] The second connection control unit is used to control multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address when the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth.

[0041] Optionally, the system further comprises a delay module, which is used to set a certain delay time when using BIOS to read the rate of the SAS RAID card and the bandwidth of the SAS RAID card.

[0042] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0043] The present application provides a method for configuring a SAS RAID card based on BIOS. The method first determines the SAS RAID card through the ID information of the device, then queries the PEX bridge chip under the PCI bus mounted on the SAS RAID card, determines the base address interface and the register address by reading the device structure information of the SASRAID card and the PEX bridge chip, and finally uses the BIOS to read and monitor the rate and bandwidth of the SAS RAID card, and performs repeated reconnection training according to the decrease of the rate and bandwidth.

[0044] The method for configuring the SAS RAID card based on BIOS in this embodiment belongs to a software method. Through this method, it is possible to effectively shield the speed reduction and occasional bandwidth reduction problems caused by unstable factors during the server startup process, and avoid hardware circuit changes, greatly improve the fault handling efficiency during the server startup process, and meet the performance requirements of the SAS card during the server use process. Moreover, when processing the speed reduction and bandwidth loss problems during the server startup process, this embodiment reads the SAS RAID card rate and bandwidth to write values ​​to the register, repeatedly trains the RAID card register, and reconnects the SASRAID card method, rather than directly entering the fault handling stage, which can effectively screen out occasional faults during the startup process and improve the fault handling efficiency.

[0045] Moreover, when the speed and bandwidth are in effect, the present embodiment sets a certain delay time and then reads the value of the corresponding status register. That is, after reading the speed of the SAS RAID card, the bandwidth of the SAS RAID card is read again after a certain delay time. This method can effectively avoid reading conflicts and ensure the validity of the read speed and bandwidth, thereby improving the accuracy of configuring the SAS RAID card.

[0046] The present application also provides a system for configuring a SAS RAID card based on BIOS, which mainly includes five parts: a SAS RAID card determination module, a query module, an interface and register determination module, a rate control module and a bandwidth control module. The SAR RAID card is first determined by the SAS RAID card determination module, and then the PEX bridge under the PCI bus mounted by the SAS RAID card is queried through the query module, that is, the position space of the switch action of the PCI bridge where the SAS RAID card is located is determined. Then the base address interface and register address are determined by the interface and register determination module, so as to accurately and timely read the rate and bandwidth of the register. Finally, the rate control module is used to monitor and manage the rate of the SAS RAID card to avoid speed reduction. The bandwidth control module is used to monitor and manage the bandwidth of the SAS RAID card to avoid bandwidth reduction. The system can effectively shield the speed reduction and occasional bandwidth reduction problems caused by unstable factors during the server startup process, and can avoid hardware circuit changes, greatly improve the fault handling efficiency during the server startup process, thereby meeting the performance requirements of the SAS card during the server use process.

[0047] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0050] Figure 1 A flowchart of a method for configuring a SAS RAID card based on BIOS provided in an embodiment of the present application;

[0051] Figure 2 A schematic diagram of the structure of a system for configuring a SAS RAID card based on BIOS provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.

[0053] In order to better understand the present application, the implementation methods of the present application are explained in detail below with reference to the accompanying drawings.

[0054] Embodiment 1

[0055] See also Figure 1 , Figure 1 A flowchart of a method for configuring a SAS RAID card based on BIOS provided in an embodiment of the present application.

[0056] Depend on Figure 1 It can be seen that the method for configuring the SAS RAID card based on BIOS in this embodiment mainly includes the following processes:

[0057] S1: Determine the SAS RAID card through the device ID information.

[0058] Using the ARM server's BIOS system recognition, the SAR RAID card is identified through the device's ID information.

[0059] After the SAS RAID card is identified, step S2 is performed: querying the PEX bridge under the PCI bus mounted with the SAS RAID card.

[0060] That is, after identifying the SAS RAID device, the PCI bus position where the SAS RAID card is mounted is queried to determine the specific PEX bridge chip mounted, so that the BIOS can write values ​​to the SAS RAID card registers through the PEX bridge chip.

[0061] S3: Determine the base address interface and register address by reading the device structure information of the SAS RAID card and the PEX bridge.

[0062] In this embodiment, the base address interface is used to realize the communication connection between BIOS and PEX bridge chip, and the register address is used to read the rate and bandwidth of SAS RAID card. Different SAS RAID devices have different interfaces. In this embodiment, it is necessary to find an interface of SASRAID device as the device base address interface. The register address of SAS RAID card is found through the base address interface, which is convenient for subsequent reading of the rate and bandwidth of SAS RAID card.

[0063] S4: Use BIOS to read and monitor the rate of the SAS RAID card, and perform repeated reconnection training according to the rate drop of the SAS RAID card.

[0064] That is, the process of training the SAS RAID card, training the switch and the SAR RAID card to reconnect. Specifically, step S4 includes the following process:

[0065] S41: Read the rate of the SAS RAID card using BIOS according to the register address.

[0066] S42: Determine whether the rate of the SAS RAID card is lower than the set SAS RAID card rate.

[0067] If the rate of the SAS RAID card is lower than the set SAS RAID card rate, step S43 is executed: the BIOS controls multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address.

[0068] When the speed of the SAS RAID card is lower than the set SAS RAID card speed, a speed reduction occurs. When a speed reduction occurs, through step S43, the position space of the switch action of the PCI bridge where the SAS RAID card is located is read to repeatedly reconnect and repeat the training. That is, the SAS RAID card is trained, and the process of training the switch switch and the SAS RAID card to reconnect is performed.

[0069] In this embodiment, when repeated reconnection training is performed according to the rate drop of the SAS RAID card, a certain number of training times is set, which can avoid failures during server startup by repeated connection and avoid reduced troubleshooting efficiency due to repeated wireless connection.

[0070] Furthermore, after multiple reconnections, if the speed reduction problem still occurs, the BIOS is used to report the speed reduction information, and the BIOS continues to monitor the speed of the SAS RAID card at the same time.

[0071] The number of training times set in this embodiment is less than half of the limit number of training times. This method can avoid affecting the performance of the SAS RAID card and is beneficial to protecting the SAS RAID card.

[0072] When the speed of the SAS RAID card is higher than or equal to the set SAS RAID card speed, the process returns to step S41 and uses BIOS to continue reading and monitoring the speed of the SAS RAID card.

[0073] Continue to see Figure 1 It can be seen that in addition to using BIOS to read and monitor the rate of the SAS RAID card, this embodiment also includes step S6: using BIOS to read and monitor the bandwidth of the SAS RAID card, and repeatedly reconnecting training according to the decrease in the bandwidth of the SAS RAID card.

[0074] Regardless of whether the rate in step S4 decreases, step S6 must be executed to monitor the bandwidth of the SAS RAID card. Specifically, step S6 includes the following process:

[0075] S61: Read the bandwidth of the SAS RAID card using BIOS according to the register address.

[0076] S62: Determine whether the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth.

[0077] If the bandwidth of the SAS RAID card is lower than the set bandwidth of the SAS RAID card, step S63 is executed: the BIOS controls multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address.

[0078] When the bandwidth of the SAS RAID card is lower than the set bandwidth of the SAS RAID card, a bandwidth drop phenomenon occurs. At this time, step S63 is also a process of training the RAID card to reconnect with the PEX switch.

[0079] Similarly, in the present embodiment, when repeatedly reconnecting training according to the bandwidth drop of the SAS RAID card, a certain number of training times is set. In order to better protect the SAS RAID card performance, the number of training times set is lower than half of the limit number of training times.

[0080] If the bandwidth of the SAS RAID card is higher than or equal to the set bandwidth of the SAS RAID card, it indicates that no bandwidth loss occurs during the server startup process, and the process returns to step S61 to continue to monitor the bandwidth of the SAS RAID card using BIOS.

[0081] Furthermore, this embodiment further includes step S5 between step S4 and step S6: setting a certain delay time when using BIOS to read the rate of the SAS RAID card and the bandwidth of the SAS RAID card.

[0082] By setting a certain delay time, conflicts in the reading time of the rate and bandwidth can be avoided, thereby ensuring the validity of the read rate and bandwidth, which is conducive to improving the efficiency of BIOS configuration of SAS RAID cards, and further improving the efficiency and accuracy of fault handling.

[0083] In practical applications, the method for configuring the SAS RAID card based on BIOS in this embodiment is as follows:

[0084] 1) Insert the SAS RAID card into the fixed PCIE slot of the ARM server, connect the hard disk, and power on the server;

[0085] 2) The BIOS system of the ARM server identifies the PCIE switch to which the PCI bus of the currently used SAS RIAD card is mounted, that is, it identifies the PEX bridge chip where the current SAS RAID card is located, finds the register address that the BIOS can directly act on the PXE, and reads the SAS RAID card register and bandwidth value through the PEX interface;

[0086] 3) The BIOS will first read the value of the SAS RAID card register monitoring rate, and after a certain delay, read the value of the monitoring bandwidth. If the rate and bandwidth do not drop, the BIOS does not need to take any action and can continue monitoring;

[0087] 4) If the reading rate of the SAS RAID card drops during monitoring, the BIOS needs to write values ​​to the SASRAID and PEX function registers to allow the two to retry training the connection.

[0088] In order not to affect the performance requirements of the SAS RAID card, a certain number of times can be limited.

[0089] It is also necessary to read the bandwidth drop value. When the rate is stable, if the bandwidth drops, the BIOS needs to write values ​​to the registers of the SAS RAID card and the PEX switch. During the writing process, a certain time threshold is reserved so that the two can try to train the connection again. In order not to affect the performance requirements of the card, a certain number of times needs to be limited.

[0090] 5) If the speed reduction and bandwidth reduction problems still occur after continuous training attempts for a certain number of times, the BIOS will not take any action after the speed reduction again, and will report the relevant information of the speed reduction. At this time, the BIOS will continue to monitor at the same time. The intermittent rate and bandwidth will increase again, and then decrease after a period of time, and repeat step 4);

[0091] In summary, BIOS software can effectively shield the speed reduction and occasional bandwidth reduction problems caused by unstable factors during the server startup process.

[0092] Embodiment 2

[0093] Figure 2 A schematic diagram of the structure of a system for configuring a SAS RAID card based on BIOS provided in an embodiment of the present application. Figure 2 It can be seen that the system for configuring the SAS RAID card based on BIOS in this embodiment mainly includes five parts: a SAS RAID card determination module, a query module, an interface and register determination module, a rate control module and a bandwidth control module.

[0094] Among them, the SAS RAID card determination module is used to determine the SAS RAID card through the ID information of the device; the query module is used to query the PEX bridge under the PCI bus mounted on the SAS RAID card; the interface and register determination module is used to determine the base address interface and register address by reading the device structure information of the SAS RAID card and the PEX bridge, the base address interface is used to realize the communication connection between the BIOS and the PEX bridge, and the register address is used to read the rate and bandwidth of the SAS RAID card; the rate control module is used to use the BIOS to read and monitor the rate of the SAS RAID card, and repeatedly reconnect training according to the rate drop of the SAS RAID card; the bandwidth control module is used to use the BIOS to read and monitor the bandwidth of the SAS RAID card, and repeatedly reconnect training according to the bandwidth drop of the SAS RAID card.

[0095] The rate control module includes: a rate reading unit, a first judgment unit and a first connection control unit. The rate reading unit is used to read the rate of the SAS RAID card using BIOS according to the register address; the first judgment unit is used to judge whether the rate of the SAS RAID card is lower than the set SAS RAID card rate, if so, start the first connection control unit, otherwise, start the rate reading unit to continue monitoring the rate of the SAS RAID card; the first connection control unit is used to control multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address when the rate of the SAS RAID card is lower than the set SAS RAID card rate.

[0096] The bandwidth control module includes: a bandwidth reading unit, a second judgment unit and a second connection control unit. The bandwidth reading unit is used to read the bandwidth of the SAS RAID card using BIOS according to the register address; the second judgment unit is used to judge whether the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth, if so, start the second connection control unit, otherwise, start the bandwidth reading unit to continue monitoring the bandwidth of the SAS RAID card; the second connection control unit is used to control multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address when the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth.

[0097] Furthermore, the system also includes a delay module, which is used to set a certain delay time when using BIOS to read the rate of the SAS RAID card and the bandwidth of the SAS RAID card.

[0098] The working principle and working method of the system based on BIOS configuration of SAS RAID card in this embodiment are as follows: Figure 1 The embodiments shown have been described in detail, and the two embodiments can refer to each other, which will not be described again here.

[0099] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features disclosed herein.

Claims

1. A method for configuring a SAS RAID card based on BIOS, characterized in that: The method is applied to an ARM server, and the method comprises: Determine the SAS RAID card through the device ID information; Query the PEX bridge chip under the PCI bus mounted by the SAS RAID card; By reading the device structure information of the SAS RAID card and the PEX bridge chip, a base address interface and a register address are determined, wherein the base address interface is used to realize the communication connection between the BIOS and the PEX bridge chip, and the register address is used to read the rate and bandwidth of the SASRAID card; Use BIOS to read and monitor the speed of the SAS RAID card, and perform repeated reconnection training according to the speed drop of the SAS RAID card; Use BIOS to read and monitor the bandwidth of the SAS RAID card, and perform repeated reconnection training according to the decrease in the bandwidth of the SAS RAID card; The method of using BIOS to read and monitor the rate of the SAS RAID card and repeatedly reconnecting the card according to the rate drop of the SAS RAID card includes: According to the register address, using BIOS to read the rate of the SAS RAID card; Determine whether the speed of the SAS RAID card is lower than the set SAS RAID card speed; If yes, the BIOS controls multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address; If not, the BIOS continues to monitor the speed of the SAS RAID card; The method of using BIOS to read and monitor the bandwidth of the SAS RAID card and repeatedly reconnecting the card according to the decrease in the bandwidth of the SAS RAID card includes: According to the register address, the bandwidth of the SAS RAID card is read using BIOS; Determine whether the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth; If yes, the BIOS controls multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address; If not, the BIOS continues to monitor the bandwidth of the SAS RAID card.

2. A method for configuring a SAS RAID card based on BIOS according to claim 1, characterized in that: The method further comprises: When using BIOS to read the rate and bandwidth of the SAS RAID card, set a certain delay time.

3. The method for configuring a SAS RAID card based on BIOS according to claim 1, characterized in that: When repeatedly reconnecting training is performed according to a rate drop of the SASRAID card, and when repeatedly reconnecting training is performed according to a bandwidth drop of the SAS RAID card, a certain number of training times is set respectively.

4. The method for configuring a SAS RAID card based on BIOS according to claim 1, characterized in that: The training times are less than half of the maximum training times.

5. A system for configuring a SAS RAID card based on BIOS, characterized in that: The system is applied to an ARM server, and the system includes: A SAS RAID card identification module is used to identify the SAS RAID card through the ID information of the device; A query module, used for querying the PEX bridge chip under the PCI bus mounted by the SAS RAID card; An interface and register determination module, used to determine a base address interface and a register address by reading device structure information of the SAS RAID card and the PEX bridge chip, wherein the base address interface is used to realize the communication connection between the BIOS and the PEX bridge chip, and the register address is used to read the rate and bandwidth of the SAS RAID card; A rate control module is used to read and monitor the rate of the SAS RAID card using BIOS, and to perform repeated reconnection training according to the rate drop of the SAS RAID card; A bandwidth control module is used to read and monitor the bandwidth of the SAS RAID card using BIOS, and to perform repeated reconnection training according to the bandwidth reduction of the SAS RAID card; The rate control module comprises: A rate reading unit, used for reading the rate of the SAS RAID card using BIOS according to the register address; A first judging unit, used for judging whether the rate of the SAS RAID card is lower than the set SAS RAID card rate, if yes, starting the first connection control unit, otherwise, starting the rate reading unit to continue monitoring the rate of the SAS RAID card; The first connection control unit is used to control multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address when the rate of the SAS RAID card is lower than the set SAS RAID card rate; The bandwidth control module comprises: A bandwidth reading unit, used for reading the bandwidth of the SAS RAID card using BIOS according to the register address; The second judgment unit is used to judge whether the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth, and if so, start the second connection control unit, otherwise, start the bandwidth reading unit to continue monitoring the bandwidth of the SAS RAID card; The second connection control unit is used to control multiple reconnections between the SAS RAID card and the PEX switch by writing a value to the register address when the bandwidth of the SAS RAID card is lower than the set SAS RAID card bandwidth.

6. A system for configuring a SAS RAID card based on BIOS according to claim 5, characterized in that: The system also includes a delay module, which is used to set a certain delay time when using BIOS to read the rate of the SAS RAID card and the bandwidth of the SAS RAID card.