CN110941580A - Method for reading information and serial small computer system interface SAS expander - Google Patents
Method for reading information and serial small computer system interface SAS expander Download PDFInfo
- Publication number
- CN110941580A CN110941580A CN201911050333.4A CN201911050333A CN110941580A CN 110941580 A CN110941580 A CN 110941580A CN 201911050333 A CN201911050333 A CN 201911050333A CN 110941580 A CN110941580 A CN 110941580A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- sata hard
- sas
- computer system
- state information
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000004044 response Effects 0.000 claims description 23
- 239000003999 initiator Substances 0.000 claims description 14
- 238000012163 sequencing technique Methods 0.000 claims description 6
- 239000007858 starting material Substances 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 description 4
- 239000007787 solid Substances 0.000 description 3
- 230000033228 biological regulation Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000017525 heat dissipation Effects 0.000 description 2
- 239000004606 Fillers/Extenders Substances 0.000 description 1
- 108700002011 T7 protocol Proteins 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1668—Details of memory controller
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0028—Serial attached SCSI [SAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a method for reading information and a serial small computer system interface (SAS) expander. The method comprises the following steps: the SAS expander sends a protocol packet according to a serial ATA channel protocol STP to the SATA hard disk through an SAS port so as to carry out a thread for acquiring state information of the SATA hard disk; and determining whether to adjust the state of the SATA hard disk or not by the SAS expander according to the data which is received through the SAS port and indicates the state information of the SATA hard disk. The SAS expander does not need to acquire the state information of the SATA hard disk through a computer system with an X86 architecture, but can directly acquire the data of the state information of the SATA hard disk, including temperature information, so that the SAS expander can determine whether to adjust and can automatically adjust the state of the SATA hard disk, and does not depend on the computer system to transmit the state information of the SATA hard disk, so that the capability of adjusting the state of the SATA hard disk is more reliable.
Description
Technical Field
The invention relates to the field of computers, in particular to a method for reading information and a serial small computer system interface (SAS) expander.
Background
In the T10 protocol cluster, the SATA (Serial Advanced Technology Attachment, high Technology configuration) protocol is used as a main protocol for storage and server backend IO, and its specification is widely applied in storage backend systems. With the increasing capacity of the hard disk, the power consumption of the solid state disk and the HDD also increases. The system heat dissipation design has made clear demands on the temperature management capability of SATA solid state disks, HDDs.
In the SATA protocol, there are generally two methods for acquiring the temperature supported by the hard disk:
1) through an out-of-band IIC (Inter-Integrated Circuit) interface;
2) acquiring through STP (Serial ATA channel protocol) of an in-band SAS (Serial Attached SCSI ) port;
for a mechanical Disk HDD (Hard Disk Driver), an out-of-band IIC channel is not designed for a part of the Hard Disk itself, or a CPU board card that needs to access the temperature of the Hard Disk is not reserved for connection with the IIC channel, so the Hard Disk temperature obtaining method 1) often cannot effectively meet the requirement for obtaining the temperature of the Hard Disk;
for the method for acquiring the temperature of the hard disk in the in-band STP protocol mode, a connection between an STP initiator (a port initiator of a computer system with an X86 architecture) and a target (a SATA HDD or a solid state disk) is established in the system for data interaction. However, the user of the hard disk temperature is a fan speed control execution CPU (typically BMC (baseboard management Controller) or SAS expander in the industry). Both are clearly not in one system. To resolve this conflict, it is often necessary to pass the hard disk temperature from the computer system of the X86 architecture to the BMC or extender via a vendor-defined protocol. This solution is conceptually feasible, but has significant drawbacks: architecturally, belonging to the downstream dependency upstream; when the computer system with the in-band X86 architecture is abnormal, the computer system with the X86 architecture cannot normally provide temperature information, so that the heat dissipation speed regulation strategy cannot be normally executed, and the speed regulation strategy is forced to be shifted to an abnormal high-power-consumption high-noise mode.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for reading information and a SAS expander, so that the SAS expander can determine whether to adjust and can adjust the state of the SATA hard disk by itself.
In order to achieve the object of the present invention, an embodiment of the present invention provides a method for reading information, where the method includes:
a serial small computer system interface SAS expander sends a protocol packet according to a serial ATA channel protocol STP to the SATA hard disk through an SAS port so as to carry out a thread for acquiring state information of the SATA hard disk; the state information of the SATA hard disk comprises temperature information of the SATA hard disk;
and determining whether to adjust the state of the SATA hard disk or not by the SAS expander according to the data which is received through the SAS port and indicates the state information of the SATA hard disk.
In an optional embodiment, before the step of sending the STP protocol packet to the SATA hard disk through the SAS port by the SAS expander, the method further includes:
receiving, by the SAS expander, an instruction sent by the computer system of the X86 architecture according to the STP protocol; the command sent by the computer system is used for managing the SATA hard disk;
the SAS expander sequences and serializes the instruction sent by the computer system and the instruction for starting the hard disk state information acquisition thread sent by the STP starter of the SAS expander;
and the SAS expander sends an instruction to the SATA hard disk according to the STP protocol.
In an optional embodiment, the method further comprises:
when a response to the instruction transmitted from the computer of the X86 architecture from the SATA hard disk is received through the SAS port, the response is transmitted to the computer of the X86 architecture.
In an optional embodiment, the step of sequencing and serializing, by the SAS expander, the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander to start the hard disk state information obtaining thread includes:
according to the delay threshold value of the SAS expander, the position of the instruction sent by the computer system in the sequence of the instruction when the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander for starting the hard disk state information acquisition thread are sequenced and serialized is determined, so that the SAS expander receives a response to the instruction sent by the computer system from the SATA hard disk within the delay threshold value after sending the instruction sent by the computer system to the SATA hard disk through the SAS port.
In an optional embodiment, the step of sending, by the SAS expander, the STP protocol packet to the SATA hard disk through the SAS port includes:
judging state information of the SATA hard disk provided by the SAS expander or the computer and acquired through the SAS port;
if the SAS expander is determined to acquire the state information of the hard disk through the SAS port, the SAS expander sends an STP protocol packet to the SATA hard disk through the SAS port;
the method further comprises the following steps:
and if the state information of the SATA hard disk is determined to be acquired by the computer system through the SAS port, the state information of the SATA hard disk is sent to the SAS expander after the state information of the SATA hard disk is acquired by the computer system.
In another aspect, an embodiment of the present invention provides a serial small computer system interface SAS expander, including a memory and a processor;
the memory is to store computer readable instructions;
the processor is used for reading the computer readable instructions to execute the following operations:
transmitting an STP protocol packet to the SATA hard disk through an SAS port so as to perform a thread for acquiring state information of the SATA hard disk;
and determining whether to adjust the state of the SATA hard disk or not according to the data which is received through the SAS port and indicates the state information of the SATA hard disk.
In an alternative embodiment, the processor is configured to read and execute computer readable instructions to perform the following operations:
before an operation of sending an STP protocol packet to the SATA hard disk through the SAS port, receiving an instruction sent by a computer system of an X86 architecture according to an STP protocol; the command sent by the computer system is used for managing the SATA hard disk;
sequencing and serializing an instruction sent by a computer system and an instruction which is sent by an STP starter of an SAS expander and used for starting a hard disk state information acquisition thread;
and sending an instruction to the SATA hard disk according to the STP protocol.
In an alternative embodiment, the processor is configured to read and execute computer readable instructions to perform the following operations:
when a response to the instruction transmitted by the computer of the X86 architecture from the SATA hard disk is received through the SAS port, the response is transmitted to the computer of the X86 architecture.
In an alternative embodiment, the operation of ordering and serializing the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander to start the hard disk state information obtaining thread includes:
according to the delay threshold value of the SAS expander, the position of the instruction sent by the computer system in the sequence of the instruction when the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander for starting the hard disk state information acquisition thread are sequenced and serialized is determined, so that the SAS expander receives a response to the instruction sent by the computer system from the SATA hard disk within the delay threshold value after sending the instruction sent by the computer system to the SATA hard disk through the SAS port.
In an optional embodiment, the operation of sending the STP protocol packet to the SATA hard disk through the SAS port includes:
judging state information of the SATA hard disk provided by the SAS expander or the computer and acquired through the SAS port;
if the SAS expander is determined to acquire the state information of the hard disk through the SAS port, an STP protocol packet is sent to the SATA hard disk through the SAS port;
the processor is used for reading and executing the computer readable instructions to execute the following operations:
and if the state information of the SATA hard disk is determined to be acquired by the computer system through the SAS port, receiving the state information of the SATA hard disk sent by the computer system after the state information of the SATA hard disk is acquired.
Because the SAS expander does not need to acquire the state information of the SATA hard disk through the computer system of the X86 architecture, but can directly acquire data of the state information of the SATA hard disk including temperature information, the SAS expander can determine whether to adjust and can adjust the state of the SATA hard disk by itself, and does not rely on the computer system to transmit the state information of the SATA hard disk, so that the capability of adjusting the state of the SATA hard disk is more reliable.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for reading information according to an embodiment of the present invention;
fig. 2 is a block diagram of a SAS expander provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In order to solve the above technical problem, an embodiment of the present invention provides a method for reading information, which includes steps S101 to S103 as shown in fig. 1.
Step S101, the serial small computer system interface SAS expander sends an STP protocol packet to the SATA hard disk through the SAS port so as to carry out a thread for acquiring the state information of the SATA hard disk.
The SAS port is composed of 3 types of protocols, data transmission is carried out by using corresponding protocols according to different connected devices, and a serial ATA channel protocol (STP) is used for communicating with the SATA device. By means of transmitting STP protocol packet, SAS expander can obtain state information of SATA hard disk. The state information of the SATA hard disk comprises temperature information of the SATA hard disk.
Step S103, the SAS expander determines whether to adjust the state of the SATA hard disk according to the data indicating the SATA hard disk state information received through the SAS port.
In step S103, the SAS expander may determine whether to adjust the state of the SATA hard disk through the data indicating the state information of the SATA hard disk received through the SAS port. Because the SAS expander does not need to acquire the state information of the SATA hard disk through the computer system of the X86 architecture, but can directly acquire data of the state information of the SATA hard disk including temperature information, the SAS expander can determine whether to adjust and can adjust the state of the SATA hard disk by itself, and does not rely on the computer system to transmit the state information of the SATA hard disk, so that the capability of adjusting the state of the SATA hard disk is more reliable.
In an optional embodiment, before step S101, the method further comprises:
receiving an instruction sent by a computer system with an X86 architecture according to a serial ATA channel protocol STP protocol by a SAS expander; the command sent by the computer system is used for managing the SATA hard disk;
the SAS expander sequences and serializes the instruction sent by the computer system and the instruction for starting the hard disk state information acquisition thread sent by the STP starter of the SAS expander;
and the SAS expander sends an instruction to the SATA hard disk according to the STP protocol.
In this optional embodiment, the SAS expander receives, in addition to acquiring status information of the SATA hard disk, an instruction for managing the SATA hard disk sent by the computer system; therefore, the SAS expander is an information exchange center between the computer system and the SATA hard disk; because the SAS expander needs to send an STP protocol packet to the SATA hard disk and also sends an instruction sent by the computer system to the SATA hard disk, and the SAS expander sends the protocol packet and the instruction to the SATA hard disk through the SAS port, before sending the instruction, it needs to sequence and serialize various instructions so as to meet the specification of serial transmission, and after serializing, it transmits the instructions to the SATA hard disk.
In an optional embodiment, the method further comprises:
when a response to the instruction transmitted from the computer of the X86 architecture from the SATA hard disk is received through the SAS port, the response is transmitted to the computer of the X86 architecture.
Here, when responding to the command sent by the computer system of the X86 architecture, the response of the SATA hard disk is not sent directly to the computer system, but is sent to the SAS expander through the SAS port, and then sent to the computer system by the SAS expander. By the mode, the SAS expander is located at the position of the information exchange center between the SATA hard disk and the computer system, and the SAS expander can directly acquire information.
In an optional embodiment, the step of sequencing and serializing, by the SAS expander, the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander to start the hard disk state information obtaining thread includes:
according to the delay threshold value of the SAS expander, the position of the instruction sent by the computer system in the sequence of the instruction when the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander for starting the hard disk state information acquisition thread are sequenced and serialized is determined, so that the SAS expander receives a response to the instruction sent by the computer system from the SATA hard disk within the delay threshold value after sending the instruction sent by the computer system to the SATA hard disk through the SAS port.
Here, considering that the SAS expander, if it does not receive a reply to the instruction within a certain period of time after transmitting the instruction, assumes no response, and returns an error code to the computer system, so that the computer system erroneously assumes the SATA hard disk as being abnormal; therefore, when serialization processing is carried out, the positions of all the instructions in the instruction sequence sent to the SATA hard disk are determined according to the delay threshold of the SAS expander, and the SAS expander is prevented from returning error codes to the computer system because no response to the instructions sent by the computer system is received from the SATA hard disk within the delay threshold. The delay threshold is used for determining whether the response of the SATA hard disk can be normally received. And if the SAS expander does not receive the response to the instruction within the delay threshold after sending the instruction to the SATA hard disk, the SAS expander determines that the SATA hard disk is abnormal. However, if the SATA hard disk is normal due to improper sorting but fails to respond to the command within the delay threshold in time during sorting, the status of the SATA hard disk may be erroneously determined. Therefore, the method provided by the embodiment of the invention can avoid the situation that the state of the SATA hard disk is judged by mistake.
In an alternative embodiment, step S101 includes:
judging state information of the SATA hard disk provided by the SAS expander or the computer and acquired through the SAS port;
if the SAS expander is determined to acquire the state information of the hard disk through the SAS port, the SAS expander sends an STP protocol packet to the SATA hard disk through the SAS port;
the method further comprises the following steps:
and if the state information of the SATA hard disk is determined to be acquired by the computer system through the SAS port, the state information of the SATA hard disk is sent to the SAS expander after the state information of the SATA hard disk is acquired by the computer system.
In order to solve the above problem, an embodiment of the present invention further provides a serial small computer system interface SAS expander, as shown in fig. 2, which includes a memory 10 and a processor 20;
the processor 20 is configured to read the computer readable instructions to perform the following operations:
transmitting an STP protocol packet to the SATA hard disk through an SAS port so as to perform a thread for acquiring state information of the SATA hard disk;
and determining whether to adjust the state of the SATA hard disk or not according to the data which is received through the SAS port and indicates the state information of the SATA hard disk.
In an alternative embodiment, processor 20 is configured to read and execute computer readable instructions to perform the following operations:
before an operation of sending an STP protocol packet to the SATA hard disk through the SAS port, receiving an instruction sent by a computer system of an X86 architecture according to an STP protocol; the command sent by the computer system is used for managing the SATA hard disk;
sequencing and serializing an instruction sent by a computer system and an instruction which is sent by an STP starter of an SAS expander and used for starting a hard disk state information acquisition thread;
and sending an instruction to the SATA hard disk according to the STP protocol.
In an alternative embodiment, processor 20 is configured to read and execute computer readable instructions to perform the following operations:
when a response to the instruction transmitted by the computer of the X86 architecture from the SATA hard disk is received through the SAS port, the response is transmitted to the computer of the X86 architecture.
In an alternative embodiment, the operation of ordering and serializing the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander to start the hard disk state information obtaining thread includes:
according to the delay threshold value of the SAS expander, the position of the instruction sent by the computer system in the sequence of the instruction when the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander for starting the hard disk state information acquisition thread are sequenced and serialized is determined, so that the SAS expander receives a response to the instruction sent by the computer system from the SATA hard disk within the delay threshold value after sending the instruction sent by the computer system to the SATA hard disk through the SAS port.
In an optional embodiment, the operation of sending the STP protocol packet to the SATA hard disk through the SAS port includes:
judging state information of the SATA hard disk provided by the SAS expander or the computer and acquired through the SAS port;
if the SAS expander is determined to acquire the state information of the hard disk through the SAS port, an STP protocol packet is sent to the SATA hard disk through the SAS port;
the processor 20 is configured to read and execute computer readable instructions to perform the following operations:
and if the state information of the SATA hard disk is determined to be acquired by the computer system through the SAS port, receiving the state information of the SATA hard disk sent by the computer system after the state information of the SATA hard disk is acquired.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method of reading information, comprising:
a serial small computer system interface SAS expander sends a protocol packet according to a serial ATA channel protocol STP to an SATA hard disk through an SAS port so as to carry out a thread for acquiring state information of the SATA hard disk; the state information of the SATA hard disk comprises temperature information of the SATA hard disk;
and determining whether to adjust the state of the SATA hard disk or not by the SAS expander according to the data which is received through the SAS port and indicates the state information of the SATA hard disk.
2. The method of claim 1, wherein prior to the step of said SAS expander sending STP protocol packets to the SATA hard disk through the SAS port, the method further comprises:
receiving, by the SAS expander, an instruction sent by a computer system of an X86 architecture according to STP protocol; the instruction sent by the computer system is used for managing the SATA hard disk;
the SAS expander sequences and serializes the instruction sent by the computer system and the instruction sent by an STP starter of the SAS expander and used for starting the hard disk state information acquisition thread;
and the SAS expander sends an instruction to the SATA hard disk according to an STP protocol.
3. The method of claim 1, further comprising:
transmitting, by the SAS expander, a response to the instruction transmitted by the computer of the X86 architecture from the SATA hard disk upon receipt of the response through the SAS port to the computer of the X86 architecture.
4. The method of claim 2 wherein the step of sequencing and serializing by the SAS expander the instructions sent by the computer system and the instructions sent by the STP initiator of the SAS expander to initiate the hard disk state information acquisition thread comprises:
according to the delay threshold value of the SAS expander, the position of the instruction sent by the computer system in the sequence of the instruction when the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander for starting the hard disk state information acquisition thread are sequenced and serialized is determined, so that the SAS expander receives a response to the instruction sent by the computer system from the SATA hard disk within the delay threshold value after the instruction sent by the computer system is sent to the SATA hard disk through the SAS port.
5. The method of claim 2, wherein the step of sending STP protocol packets by the SAS expander to the SATA hard disk through the SAS port comprises:
judging that the SAS expander or the computer provides the state information for acquiring the SATA hard disk through an SAS port;
if the SAS expander is determined to acquire the state information of the hard disk through the SAS port, the SAS expander sends an STP protocol packet to the SATA hard disk through the SAS port;
the method further comprises the following steps:
and if the computer system is determined to acquire the state information of the SATA hard disk through the SAS port, the state information of the SATA hard disk is sent to the SAS expander after the computer system acquires the state information of the SATA hard disk.
6. A serial small computer system interface SAS expander comprising a memory and a processor;
the memory is to store computer readable instructions;
the processor is configured to read the computer readable instructions to perform the following operations:
transmitting an STP protocol packet to the SATA hard disk through an SAS port so as to perform a thread for acquiring state information of the SATA hard disk;
and determining whether to adjust the state of the SATA hard disk or not according to the data which is received through the SAS port and indicates the state information of the SATA hard disk.
7. The expander according to claim 6, wherein the processor is configured to read and execute the computer-readable instructions to:
before an operation of sending an STP protocol packet to the SATA hard disk through the SAS port, receiving an instruction sent by a computer system of an X86 architecture according to an STP protocol; the instruction sent by the computer system is used for managing the SATA hard disk;
sequencing and serializing the instruction sent by the computer system and the instruction sent by the STP starter of the SAS expander and used for starting the hard disk state information acquisition thread;
and sending an instruction to the SATA hard disk according to the STP protocol.
8. The expander according to claim 6, wherein the processor is configured to read and execute the computer-readable instructions to:
when a response to the instruction sent by the computer of the X86 architecture is received from the SATA hard disk through an SAS port, the response is sent to the computer of the X86 architecture.
9. The expander of claim 7 wherein said operations of ordering and serializing the instructions sent by the computer system and the instructions sent by the STP initiator of the SAS expander to initiate a hard disk state information acquisition thread comprise:
according to the delay threshold value of the SAS expander, the position of the instruction sent by the computer system in the sequence of the instruction when the instruction sent by the computer system and the instruction sent by the STP initiator of the SAS expander for starting the hard disk state information acquisition thread are sequenced and serialized is determined, so that the SAS expander receives a response to the instruction sent by the computer system from the SATA hard disk within the delay threshold value after the instruction sent by the computer system is sent to the SATA hard disk through the SAS port.
10. The expander of claim 7, wherein said operation of sending STP protocol packets to the SATA hard disk through the SAS port comprises:
judging that the SAS expander or the computer provides the state information for acquiring the SATA hard disk through an SAS port;
if the SAS expander is determined to acquire the state information of the hard disk through the SAS port, transmitting an STP protocol packet to the SATA hard disk through the SAS port;
the processor is configured to read and execute the computer readable instructions to perform the following operations:
and if the state information of the SATA hard disk is determined to be acquired by the computer system through the SAS port, receiving the state information of the SATA hard disk sent by the computer system after the state information of the SATA hard disk is acquired.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911050333.4A CN110941580B (en) | 2019-10-31 | 2019-10-31 | Method for reading information and serial small computer system interface SAS expander |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911050333.4A CN110941580B (en) | 2019-10-31 | 2019-10-31 | Method for reading information and serial small computer system interface SAS expander |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110941580A true CN110941580A (en) | 2020-03-31 |
CN110941580B CN110941580B (en) | 2021-07-27 |
Family
ID=69906186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911050333.4A Active CN110941580B (en) | 2019-10-31 | 2019-10-31 | Method for reading information and serial small computer system interface SAS expander |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110941580B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111722686A (en) * | 2020-06-21 | 2020-09-29 | 苏州浪潮智能科技有限公司 | Cross-node in-band heat dissipation control method and device |
CN112559406A (en) * | 2020-12-22 | 2021-03-26 | 无锡众星微***技术有限公司 | SATA transport layer state machine optimization method |
CN112765078A (en) * | 2021-01-20 | 2021-05-07 | 无锡众星微***技术有限公司 | STP transmission layer realizing method for supporting multi-disk PIO command concurrence |
CN113220231A (en) * | 2021-05-11 | 2021-08-06 | 无锡众星微***技术有限公司 | Adaptive flow control method and device supporting STP application |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359309A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Status indication apparatus for hard disc of serial connection small computer system interface and method |
US20100088467A1 (en) * | 2008-10-02 | 2010-04-08 | Jae Don Lee | Memory device and operating method of memory device |
US20140101386A1 (en) * | 2012-10-04 | 2014-04-10 | SK Hynix Inc. | Data storage device including buffer memory |
CN103902427A (en) * | 2014-03-11 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Out-band hard disk status obtaining method |
CN105526183A (en) * | 2014-09-30 | 2016-04-27 | 联想(北京)有限公司 | Method and device for controlling rotating speed of fan |
CN105981001A (en) * | 2013-12-06 | 2016-09-28 | 并发投资有限责任公司 | A system and method for abstracting storage media devices via a full duplex queued command interface |
CN108885599A (en) * | 2016-01-29 | 2018-11-23 | 美高森美解决方案美国股份有限公司 | The score of Serial Attached Small Computer system interface link is multiplexed |
CN109643296A (en) * | 2016-09-23 | 2019-04-16 | 英特尔公司 | The server of the depolymerization of alternative upgrading |
-
2019
- 2019-10-31 CN CN201911050333.4A patent/CN110941580B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359309A (en) * | 2007-08-03 | 2009-02-04 | 中兴通讯股份有限公司 | Status indication apparatus for hard disc of serial connection small computer system interface and method |
US20100088467A1 (en) * | 2008-10-02 | 2010-04-08 | Jae Don Lee | Memory device and operating method of memory device |
US20140101386A1 (en) * | 2012-10-04 | 2014-04-10 | SK Hynix Inc. | Data storage device including buffer memory |
CN105981001A (en) * | 2013-12-06 | 2016-09-28 | 并发投资有限责任公司 | A system and method for abstracting storage media devices via a full duplex queued command interface |
CN103902427A (en) * | 2014-03-11 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Out-band hard disk status obtaining method |
CN105526183A (en) * | 2014-09-30 | 2016-04-27 | 联想(北京)有限公司 | Method and device for controlling rotating speed of fan |
CN108885599A (en) * | 2016-01-29 | 2018-11-23 | 美高森美解决方案美国股份有限公司 | The score of Serial Attached Small Computer system interface link is multiplexed |
CN109643296A (en) * | 2016-09-23 | 2019-04-16 | 英特尔公司 | The server of the depolymerization of alternative upgrading |
Non-Patent Citations (2)
Title |
---|
RAJA SUBRAMANI等: "《Coverage Metrics for Device Level Validation of SATA and SAS Devices -- An Approach》", 《2014 5TH INTERNATIONAL CONFERENCE ON INTELLIGENT SYSTEMS, MODELLING AND SIMULATION》 * |
邓安远: "《存储测试平台监控***的设计与实现》", 《计算机工程》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111722686A (en) * | 2020-06-21 | 2020-09-29 | 苏州浪潮智能科技有限公司 | Cross-node in-band heat dissipation control method and device |
CN111722686B (en) * | 2020-06-21 | 2022-04-29 | 苏州浪潮智能科技有限公司 | Cross-node in-band heat dissipation control method and device |
CN112559406A (en) * | 2020-12-22 | 2021-03-26 | 无锡众星微***技术有限公司 | SATA transport layer state machine optimization method |
CN112765078A (en) * | 2021-01-20 | 2021-05-07 | 无锡众星微***技术有限公司 | STP transmission layer realizing method for supporting multi-disk PIO command concurrence |
CN112765078B (en) * | 2021-01-20 | 2022-02-08 | 无锡众星微***技术有限公司 | STP transmission layer realizing method for supporting multi-disk PIO command concurrence |
CN113220231A (en) * | 2021-05-11 | 2021-08-06 | 无锡众星微***技术有限公司 | Adaptive flow control method and device supporting STP application |
CN113220231B (en) * | 2021-05-11 | 2022-07-22 | 无锡众星微***技术有限公司 | Adaptive flow control method and device supporting STP application |
Also Published As
Publication number | Publication date |
---|---|
CN110941580B (en) | 2021-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110941580B (en) | Method for reading information and serial small computer system interface SAS expander | |
EP2564307B1 (en) | Method for providing asynchronous event notification in systems | |
KR100263523B1 (en) | An automated write data transfer with optional skip | |
US8612644B2 (en) | Storage apparatus and a data management method employing the storage apparatus | |
US9146797B2 (en) | Method for ensuring remediation of hung multiplexer bus channels | |
US20140122753A1 (en) | Electronic Device, Management Method Thereof, and Rack Serving System | |
US9081705B2 (en) | Methods and apparatus for reliable detection and enumeration of devices | |
CN101416170B (en) | Method used for managing connection in environment facing connection and device | |
US20050228924A1 (en) | Expander device capable of persistent reservations and persistent affiliations | |
US11496340B2 (en) | Fast equalization method, chip, and communications system | |
US20170269847A1 (en) | Method and Device for Differential Data Backup | |
US20090228610A1 (en) | Storage system, storage apparatus, and control method for storage system | |
US8527667B2 (en) | Apparatuses and methods for transferring data | |
US11163644B2 (en) | Storage boost | |
CN116680104A (en) | Hard disk management method and computing device | |
US20050182867A1 (en) | Systems and methods for signaling write status | |
US7571266B2 (en) | Peripheral device in a computerized system and method | |
EP2477120B1 (en) | Method for processing device connection, combination device and host device | |
KR20140029153A (en) | Storage device, control method for storage device and computer-readable recording medium | |
US20060004929A1 (en) | Method and apparatus for recovering from inefficient behavior of devices on I/O buses | |
CN114884768B (en) | Detection device, system and detection method for bus idle state | |
CN113672537B (en) | SATA (Serial advanced technology attachment) equipment hot plug management method and device | |
CN111400079A (en) | Isolator, software resetting method and device applicable to isolator and storage medium | |
US20090157840A1 (en) | Controlling Shared Access Of A Media Tray | |
CN117648277A (en) | PCIe resource allocation method based on connector pin detection and server |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |