1. Field of the Invention
The present invention relates to a detection system for detecting failure block, in particular, to a detection system for detecting failure block using logic block address and data buffer in a storage tester, capable of comparing data read in Solid State Drive (SSD) test without an expected data buffer unlike a conventional method storing data generated by a pattern generator and a pattern data generator in a buffer.
2. Description of the Related Art
There is prior art related to a device for testing storage filed or disclosed such as Korea patent publication No. 10-2010-0114697 (hereinafter referred to as “cited reference”), and etc.
The cited reference aforementioned comprises a storage interface unit for maintaining interface with storage; a user interface unit for receiving test condition from user for storage test; a test pattern generation unit for generating test pattern for storage test corresponding to the test condition received from the user; a test control unit for controlling the storage test through the test pattern.
But a conventional testing device from the prior art including the cited reference performs writing data of specific pattern on SSD Device and reads back, and compares to check whether the data is valid in order to detect fail LBA (Logic Block Address) of flash array. This kind of device stores data generated from pattern data generator in buffer (expected data buffer). The stored data read back from SSD Device, and is compared with the contents of the data buffer to determine fail. This type of method will have a problem with capacity of usable buffer.
Currently, capacity of SSD reaches hundreds of gigabytes. Increasing the capacity of expected data buffer will bring various restriction issues. For example if the capacity is configured too small, dataRead/Write is performed with small data blocks and overall testing time will be increased. However, if it is configured too large for better performance, it will require a capacity of memory which cannot be accepted in perspective of system.
The present invention is derived to consider those problems above, and is to provide fail block detection system using data buffer address and logic block address in a storage tester which can compare data read from SSD test without expected data buffer.
In order to achieve this technical matter, the present invention relates to a detection system for detecting fail block using logic block address and data buffer address in a storage tester, and the system comprises a device driver for controlling HBA; a request processor for reading the request to Root Complex and transmitting the result to a data engine; and the data engine for generating data to be transmitted to SSD and comparing the read data.
Also, the device driver comprises a control unit for generating Read/Write command on the SSD, and controlling test mode and various commands; a LBA generation unit for generating random LBA or sequential LBA in order to access to LBA of SSD during command generation of the control unit.
Also, the control unit as a block generating ATA (Advanced Technology Attachment) command used for the SSD communicates with HBA (Host Bridge Adapter) managing the SSD, makes HBA perform DMA operation by accessing register of the HBA in order to read/write data on SSD.
Also, the command comprises size and base address of Data Buffer for Read/Write, and information of LBA (Logic Block Address) of the SSD.
And also the request processor, in case Mwr packet transmittance flag is transmitted for the device driver to access HBA register, decodes the flag such that Root Complex completes Write on HBA register.
In case the HBA sends Mrd (Memory Read Request) packet in order to request Command Header information, the request processor connects the packet to the device driver, reads the packet and connects that in order to transmit relevant information from the device driver to Cpld (Completion with Data) packet.
And the data engine comprises a pattern data generation unit for performing DMA (direct Memory Access) operation for reading or writing data on SSD by control of the device driver, generating random data with Seed value made by using memory address requested by the request processor and LBA generated by the device driver and resetting data generation logic in case the amount of request data of packet is accumulated as a specific sector; a comparison unit for determining whether the data of the LBA is the same by comparing expected data generated by the pattern data generation unit and data read from SSD, i.e. data of HBA Mwr (Memory Write Request) on operation of Read & compare; and a fail record storing unit for storing fail information in case that the result of the comparison unit is not the same.
According to the present invention, the amount of memory doesn't need to be increased in order to store expected data and shorten the overall time for test.
And according to the present invention, comparison by write/read operation for overall LBA of SSD in random mode is possible, and also usable in sequential mode in which address is increased by constant value.
The above and other objects, features and advantages of the present invention will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
Hereinafter, a detailed description will be given of the present invention. Referring to
As illustrated in
Currently, there are two types of SSD, that is, SAS type and PCIe (PCI express) type in SSD. In SAS type, SSD requires an external form of HBA, and in PCIe type SATA device and HBA are included. SSD is connected to PCIe Bus of computer system through an external HBA while in PCIe type the device itself is connected to PCIe for operation.
Data Link marked as (a)˜(e) are described as follows.
Link (e) comprises data link with SCSI level of packet such as SATA, SAS. Link (d) comprises data link with packets of Memory Read Request (Mrd), Memory Write Request (Mrw), Completion with Data (Cpld), and so on. In the present invention Mrd, Mwr contain information of data buffer to be read from or written on SSD. And link (a), (b), and (c), as user logic of the present invention, send information of packet coming into Root Complex (RC) for example, Cpld to Mrd as response, or connect data of Mwr to data buffer.
The device driver 100 includes a control unit 110 and a LBA generation unit 120 as shown in
In particular, the control unit 110 generates Read/Write command for SSD, controls test mode and various commands.
Herein, the control unit 110 as a block for generating ATA (Advanced Technology Attachment) command used for SSD communicates with HBA (Host Bridge Adapter) such as AHCI (Advanced Host Controller Interface) managing SSD. Those commands include information about size and base address of data buffer for Read/Write, and LBA (Logic Block Address). Based on the information, HBA performs DMA (Direct Memory Access) operation to read or write on SSD.
That is, the control unit 110 controls HBA (SATA, SAS). In order to read/write data on SSD, the control unit accesses HBA register and allows HBA to perform DMA operation.
LBA generation unit 120 during SSD test has random LBA mode in which access is made as LBA increases sequentially and Random LBA Mode in which random LBA is used.
Accordingly, LBA generation unit 120 generates random LBA or sequential LBA to access LBA of SSD.
Thus, LBA generation unit 120 generates LBA according to test mode when the control unit 110 generates commands.
The request processor 200 receives information for request sent to Root Complex by HBA EP (Endpoint), and transmits that to the device driver 100 and the data engine 300.
For example, if the device driver 100 transmits Mwr packet transmission flag to access HBA register, the flag is decoded and Root Complex completes writing the relevant information on HBA register.
Thereafter, if HBA sends Mrd (Memory Read Request) packet to request Command Header information to Root Complex, the packet is read and connected such that the packet can be connected to the device driver 100 and the relevant information can be transmitted from the device driver 100 to Cpld (Completion with Data) packet.
The data engine 300 comprises a pattern data generation unit 310, a comparison unit 320, and a fail record storing unit 330 as shown in
Specifically, the pattern data generation unit 310 performs DMA (Direct Memory Access) operation to read or write on data on SSD by control of the control unit 110.
Herein, the pattern data generation unit 310 generates random data with Seed value made by using memory address requested to the request processor 200 and LBA generated through LBA generation unit 120.
More specifically, the pattern data generation unit 310 generates data needed to be written on SSD, and generates expected Data on operation of Read & compare. Also Mrd request is received to the request processor 200 on operation of Write.
The amount of request data is accumulated in the packet, and when the amount is accumulated as much as I-Sector, requested address and LBA of command are added to generate Seed and reset logic.
Herein, relevant LBA under same Seed Factor will store the same data regardless of random or sequential LBA because random data generated with the same Seed value is stored.
Because of this, additional memory for storing expected data is not needed. Herein, Seed Factor is a variable to avoid the same pattern data to be stored in LBA all the time by being added to basic Seed value.
The comparison unit 320 on operation of Read & compare, compares expected data generated by the pattern data generation unit 310 and data of HBA Mwr (Memory Write Request) i.e. data read from SSD, and determines by comparison whether the relevant LBA data are same or not, in case the data are not same, fail information is stored in the fail record storing unit 330.
Thus, the fail record storing unit 330 stores LBA and expected data and read data, etc. in which failure occurs.
As described above, the present invention is not limited by the embodiments and the accompanying drawings. Possible for a large number of changes and modifications to the category of the technical idea disclosed in the present invention without departing from the present invention to those skilled in the art will be able to understand better.
Appropriate, all such changes and modifications and equivalents as fall within the scope of the invention, therefore, can be considered.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2013-0116138 | Sep 2013 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
7992061 | Zeng | Aug 2011 | B2 |
8966155 | Mulligan | Feb 2015 | B1 |
9111598 | Jibbe | Aug 2015 | B2 |
20090222617 | Yano | Sep 2009 | A1 |
20100077117 | Asnaashari | Mar 2010 | A1 |
20100125767 | Zeng | May 2010 | A1 |
20110138136 | Shitomi | Jun 2011 | A1 |
20110153930 | Serizawa | Jun 2011 | A1 |
20120059976 | Rosenband | Mar 2012 | A1 |
20120110259 | Mills | May 2012 | A1 |
20130086311 | Huang | Apr 2013 | A1 |
20130124932 | Schuh | May 2013 | A1 |
20130275835 | Aswadhati | Oct 2013 | A1 |
20130297894 | Cohen | Nov 2013 | A1 |
20140006659 | Foong | Jan 2014 | A1 |
20140059278 | Schuh | Feb 2014 | A1 |
20140325141 | Liu | Oct 2014 | A1 |
20150078111 | Jibbe | Mar 2015 | A1 |
20150095712 | Han | Apr 2015 | A1 |
Number | Date | Country |
---|---|---|
10-2010-0114697 | Oct 2010 | KR |
Number | Date | Country | |
---|---|---|---|
20150095723 A1 | Apr 2015 | US |