Magnetic disk device

The magnetic disk device addresses the issue of varying scrambler seeds by associating sector-specific seed values with test data for accurate read data evaluation, ensuring error detection and sector shift identification.

JP2024137148AInactive Publication Date: 2024-10-07KK TOSHIBA +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023048550
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-10-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing magnetic disk devices face challenges in correctly evaluating read data when the scrambler seed expected at read time differs from the scrambler seed used at write time during manufacturing or evaluation.

Method used

A magnetic disk device employs a write control system that scrambles data with a sector-specific seed value and associates it with test data, and a read control system that extracts and compares the seed value with an expected value to determine if the data is correctly read, even if the scrambler seed changes.

Benefits of technology

Ensures accurate evaluation of read data by identifying errors or sector shifts, maintaining reliability even when scrambler seeds differ between write and read times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024137148000001_ABST
    Figure 2024137148000001_ABST
Patent Text Reader

Abstract

To accurately evaluate read data even if a scrambler seed expected during reading is changed from a scrambler seed used during writing.SOLUTION: A magnetic disk device extracts data scrambled from media data read from media and inspection data associated with a seed value during writing, in a read control system, generates inspection data with respect to data extracted from the media data, determines a seed value associated with both the inspection data and inspection data extracted from the media data from both of the inspection data, compares the seed value with a seed value expected by a controller, determines an error when the comparison result shows a mismatch, and cancels scramble of the data extracted from the media data using the seed value when the comparison result shows a match.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The embodiments relate to a magnetic disk device. [Background technology]

[0002] In a magnetic disk device, when writing user data, CRC (Cyclic Redundancy Check) data is generated from the user data as a code for error correction. At this time, a seed value (Seed2) specific to the sector of the write destination is provided as part of the CRC data based on the scrambler seed, which is information specific to the sector of the write destination medium and is provided to the scrambler as a seed value. Specifically, the seed value (Seed2) information is provided to the CRC data by performing an XOR (exclusive OR) operation on the CRC data and the seed value (Seed2). This is to check both the CRC and the seed value (Seed2) when reading, and to ensure that the read sector does not contain errors and is the expected sector.

[0003] In other words, when writing, a sector-specific seed value (Seed1) that is the same as or unrelated to the CRC seed value (Seed2) is given to the user data and CRC, and the data is scrambled before being written to the media (magnetic disk). When reading, the controller uses the seed value (Seed1) set during writing to descrambler the user data and CRC. After that, a CRC check is performed on the user data, and the controller provides a seed value (Seed2) that it expects for comparison. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] U.S. Pat. No. 10,116,292 [Patent Document 2] U.S. Patent No. 6,556,407 [Patent Document 3] JP 2006-129593 A Summary of the Invention [Problem to be solved by the invention]

[0005] An object of the embodiment is to provide a magnetic disk device that can correctly evaluate read data even if the scrambler seed expected at the time of reading changes from the scrambler seed used at the time of writing during the manufacturing process or evaluation. [Means for solving the problem]

[0006] According to one embodiment, the magnetic disk device has a magnetic disk as a medium, a write control system for writing data to a sector designated by a controller, and a read control system for reading data from the sector designated by the controller. When writing the data to a sector of the medium, the write control system scrambles the data using a seed value specific to the write destination sector indicated in a preset scrambler seed, generates test data for error detection from the scrambled data, performs an association process for associating the seed value used for the scrambling with a part of the test data, and writes the associated test data by adding it to the scrambled data. The read control system extracts the scrambled data and the test data from the media data read from the media, generates test data for the data extracted from the media data, determines a seed value associated with both the test data and the test data extracted from the media data, compares this seed value with a seed value expected by the controller, and if the comparison results in a mismatch, evaluates it as an error, and if they match, descrambles the data extracted from the media data using either the seed value obtained from the media data or the seed value expected by the controller. [Brief description of the drawings]

[0007] [Figure 1]FIG. 1 is a block diagram showing the configuration of a magnetic disk device according to the first embodiment. [Diagram 2] FIG. 2 is a flowchart showing the control operation of the lead control system shown in FIG. [Diagram 3] FIG. 3 is a conceptual diagram for explaining the control operation shown in FIG. [Figure 4] FIG. 4 is a flowchart showing a modified example of the control operation of the lead control system shown in FIG. [Diagram 5] FIG. 5 is a conceptual diagram for explaining the control operation shown in FIG. [Figure 6] FIG. 6 is a block diagram showing the configuration of a write / read control system of a controller used in a magnetic disk device according to the second embodiment. [Figure 7] FIG. 7 is a flowchart showing the control operation of the lead control system shown in FIG. [Figure 8] FIG. 8 is a conceptual diagram for explaining the control operation of the lead control system shown in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, the embodiments will be described with reference to the drawings. Note that the disclosure is merely an example, and the invention is not limited to the contents described in the following embodiments. Modifications that a person skilled in the art can easily conceive are naturally included in the scope of the disclosure. In order to make the explanation clearer, the size, shape, etc. of each part may be changed from the actual embodiment and shown diagrammatically. In multiple drawings, corresponding elements may be given the same reference numerals, and detailed explanations may be omitted.

[0009] (First embodiment) FIG. 1 is a block diagram showing the configuration of a magnetic disk device according to the first embodiment.

[0010] In Fig. 1, 11 denotes a controller having a write control system and a read control system. This controller 11 controls writing and reading of user data by specifying sectors of a magnetic disk as a medium, and although details are not shown, a CPU (Central Processor Unit) 111 temporarily stores user data from a host system (hereinafter, HOST) 12 in a DRAM (Dynamic random access memory) 112, and executes control to write data to a predetermined sector of a medium (magnetic disk) 13 through a write control system in response to a write command, and to read data from a predetermined sector of the medium 13 through a read control system in response to a read command.

[0011] The write control system reads the temporarily stored user data from the DRAM 112 and sends it to the scrambler 113. The scrambler 113 scrambles the user data based on a seed value (hereinafter, write seed value Seed-W) specific to the write destination sector indicated in the scrambler seed stored in the scrambler seed storage unit 114.

[0012] The user data scrambled by the scrambler 113 is sent to a CRC adding section 115. The CRC adding section 115 generates CRC data, which is check data for error detection, from the scrambled user data and adds it to the user data.

[0013] The user data with the CRC data added is sent to a seed value XOR (exclusive OR) calculation unit (Seed-XOR) 116. The seed value XOR calculation unit 116 performs an XOR operation on the write seed value from the write seed value storage unit 114 and the user data+CRC data from the CRC addition unit 115. This XOR operation is performed to associate the seed value with the CRC data. The CRC data calculated by the seed value XOR calculation unit 116 is RLL-encoded by an RLL encoder (RLLEnc) 117, and an LDPC (Low-Density Parity Check) code is added by an LDPC addition unit 118, and the CRC data is written to the medium 13 as media data.

[0014] In the read control system, data (media data) read from the medium 13 is sent to the LDPC correction unit 119. The LDPC correction unit 119 corrects read errors based on the LDPC code added to the media data.

[0015] The media data after read error correction is RLL decoded by an RLL decoder (RLLDec) 11A, which results in the user data + CRC data before writing. Of these, the user data is sent to a CRC generation unit 11B, and the CRC data is sent to a CRC-XOR calculation unit (CRC-XOR) 11C.

[0016] The CRC generation unit 11B generates CRC data from the RLL decoded user data and sends it to the CRC-XOR calculation unit 11C. The CRC-XOR calculation unit 11C calculates a read seed value (Seed-R) by performing an exclusive OR operation (XOR) between the CRC data generated from the user data before descrambling and the CRC data RLL decoded by the RLL decoder (RLLDec) 11A. The calculated read seed value is sent to the seed value storage unit 11D, and the user data is sent to the descrambler 11E.

[0017] Here, the read seed value (Seed-R) stored in the seed value storage unit 11D is sent to the comparison unit 11F. The comparison unit 11F compares the write seed value (Seed-W) read from the write-side scrambler seed storage unit 114 with the read seed value (Seed-R) stored in the read-side seed value storage unit 11D.

[0018] In this comparison, if they match, it is determined that the sector expected by the CPU 111 has been read, and if they do not match, it is determined that they have not been read correctly (an error has occurred). If they do not match, the type of error is estimated according to the position where the difference between the two occurs. For example, if the values ​​other than the seed value portion do not match, it is determined that a miscorrection has occurred, and if the values ​​other than the seed value portion match, the possibility of a sector shift is taken into consideration.

[0019] When the comparator 11F determines that the write seed value and the read seed value (Seed-R) match, the descrambler 11E descrambles (descrambles) the user data based on the read seed value (Seed-R) read from the seed value storage unit 11D. The descrambled user data is output to the HOST 12 via the DRAM 111.

[0020] FIG. 2 is a flow chart showing the control operation of the lead control system shown in FIG. 1, and FIG. 3 is a conceptual diagram for explaining the control operation shown in FIG.

[0021] In the first embodiment, when media data is read from a specified sector by an instruction of a read sector (step S11), the read media data is LDPC corrected (119, step S12), and RLL decoded to obtain user data (User Data) + CRC data (CRC) (11A, step S13). Here, CRC data of the user data is generated (11B, step S14), and an exclusive OR (XOR) is calculated between the CRC data generated from the user data and the RLL decoded CRC data to obtain a read seed value (Seed-R) associated with the CRC data (11C, step S15), and this read seed value (Seed-R) is stored (11D, step S16). Next, the read seed value (Seed-R) is compared with the write seed value (Seed-W) (11F, step S17). In this comparison, by utilizing the fact that the seed value is a part of the CRC data, it is determined whether the data other than the seed value match (step S171). For example, when the CRC data is 80 bits and the seed value is 20 bits, the 60-bit portion of the CRC data remains unchanged even if the CRC data and the seed value are XORed. This 60-bit portion is treated as a portion other than the seed value, and is compared with data other than the read seed value (Seed-R) and data other than the write seed value (Seed-W). If the data other than the seed value does not match (NO), it is determined to be a miscorrection (NG) and re-read. If the data other than the seed value matches (YES), it is determined whether the seed values ​​match (step S172), and if the seed values ​​do not match (NO), it is determined that the read position may be a sector shift (NG) and re-read. If the seed values ​​match (YES), it is determined that the read is normal, and the user data is descrambled with the read seed value (Seed-R) (11E, step S18), and output to the HOST 12 through the DRAM 111 (111, step S19).

[0022] During the manufacturing process or evaluation of the magnetic disk drive, the scrambler seed expected during reading may be changed from the scrambler seed used during writing.

[0023] In contrast, in this embodiment, the read control system extracts scrambled user data from the media data read from the media and CRC data which is XORed with a seed value at the time of writing, generates CRC data for the user data extracted from the media data, and performs an XOR operation on this CRC data and the CRC data extracted from the media data to obtain a seed value. This seed value is then compared with a seed value expected by the controller, and if the comparison results in a mismatch, an error is detected, and if the comparison results in a match, the seed value resulting from the XOR operation is used to descramble the data extracted from the media data.

[0024] Therefore, even if the CPU 111 does not provide a seed value for descrambling during reading, it is possible to estimate and evaluate whether there was an error (miscorrection) in the correction of the read sector or whether there was a sector deviation other than a miscorrection. This allows the read data to be correctly evaluated even if the scrambler seed expected during reading has changed from the scrambler seed used during writing.

[0025] In contrast to this, in a configuration that uses a seed value set at the time of writing, releases the scrambler of the user data and CRC data, and then performs a CRC check on the user data, and also provides a seed value expected by the controller for comparison, if the scrambler seed expected at the time of reading is changed from the scrambler seed used at the time of writing, the seed value at the time of writing cannot be set correctly at the time of reading. As a result, even if the data read from the sector is correctly RLL decoded, the scrambler is not correctly released, resulting in a CRC error. In this way, since a CRC error occurs due to the inability to release the scramble, it is unclear whether the read data is a true miscorrection or a sector position shift has occurred, and there is a problem that the reliability of the evaluation of the read data is impaired.

[0026] As described above, this embodiment overcomes the above-mentioned problems by generating CRC data for user data extracted from media data, performing an XOR operation on the CRC data and the CRC data extracted from the media data to obtain a seed value, comparing this seed value with the seed value expected by the controller, and performing evaluation based on the comparison result to correctly set the seed value at the time of writing when reading.

[0027] According to the above configuration, when reading, it is possible to estimate and evaluate whether there was an error (miscorrection) in the correction of the read sector or whether there was a sector shift other than a miscorrection, even if the CPU 111 does not provide a seed value for descrambling. This makes it possible to evaluate the reliability of the read data even if the scrambler seed expected when reading has changed from the scrambler seed used when writing.

[0028] (Modification) Fig. 4 is a flow chart showing a modified example of the control operation of the lead control system shown in Fig. 1, and Fig. 5 is a conceptual diagram for explaining the control operation shown in Fig. 4. In Fig. 4 and Fig. 5, the same processes as those in Fig. 2 and Fig. 3 are denoted by the same reference numerals, and duplicated explanations will be omitted here.

[0029] In this modified example, attention is paid to the fact that the value used as the seed value has a plurality of sources. Specifically, the data used as the seed value is configured as a combination of a mode and a seed value designated by the mode, such as an LBA mode and an LBA seed value (Mode1:SeedLBA), a CHS mode and a CHS seed value (Mode2:SeedCHS), etc. When reading, the CPU 111 determines in which mode the sector in which this data was written, sets what seed value is expected for each mode, and compares the set expected value with the read seed value (11F, step S20). That is, in this comparison, it is determined whether the read seed value (Seed-R) is the LBA mode and LBA seed value (Mode=Mode1:SEED=SeedLBA?) (step S201), and if YES, the read seed value (Seed-R) is used as the LBA mode and LBA seed value to descramble the user data (11E, step S21). Also, if the answer is NO in step S201, it is determined whether the read seed value (Seed-R) is the CHS mode and CHS seed value (Mode=Mode2:SEED=SeedCHS?) (step S202), and if the answer is YES, the read seed value (Seed-R) is used as the CHS mode and CHS seed value to descramble the user data (11E, step S22).

[0030] As described above, in this modified example, the data used as the seed value is a combination of the mode and the seed value designated by that mode, and when reading, it is determined in which mode the user data is written in the sector, and the expected seed value is set for each mode, and the expected value is compared with the read seed value. If they do not match, an error (correction was not performed correctly or the sector is not the expected one) is returned to the CPU 11. This allows the original seed value to be obtained even if multiple types of scrambler seeds are mixed (for example, a sector written with a CHS seed at the time of manufacture and a sector written with an LBA seed after manufacture are mixed), so it is possible to determine whether the sector is the sector at the position where it is originally intended to be read and whether the correction was performed correctly.

[0031] In other words, for example, if an LBA (Logical Block Address) is applied as a scrambler seed, it is necessary to apply all LBAs in order to restore that sector. For this reason, a cylinder head sector (CHS), which is easy to predict, may be applied as a scrambler seed.

[0032] However, if an incorrect scrambler seed is used when reading, that sector will have a CRC error and will need to be read again. This means that sectors that use CHS as the scrambler seed and sectors that use LBA as the scrambler seed cannot be mixed.

[0033] As described above, according to the configuration of the above modified example, the data used as the seed value is a combination of the mode and the seed value specified by that mode, and when reading, it is determined in which mode the user data sector was written, and the expected seed value for each mode is set, and the set expected value is compared with the read seed value, and if they do not match, an error is returned to the CPU 11, thereby overcoming the above problem.

[0034] Second Embodiment Next, a second embodiment will be described with reference to Figures 6 to 8. Figure 6 is a block diagram showing the configuration of a write / read control system of a controller used in a magnetic disk device according to the second embodiment, Figure 7 is a flowchart showing the control operation of the read control system shown in Figure 6, and Figure 8 is a conceptual diagram for explaining the control operation of the read control system shown in Figure 7. In Figures 6 to 8, the same processes as those in Figures 1 to 5 are denoted by the same reference numerals, and duplicated explanations will be omitted here.

[0035] In this embodiment, as in the modified example described above, the data used as a seed value is configured as a combination of a mode and a seed value specified by that mode, such as LBA mode and LBA seed value (Mode1:SeedLBA), CHS mode and CHS seed value (Mode2:SeedCHS), and is stored in the scrambler seed storage unit 114 in the write control system.

[0036] Meanwhile, in the read control system, the CPU 111 determines in what mode this data was written at the time of reading, sets what seed value is expected for each mode, and compares the set expected value with the read seed value (11F, step S20).

[0037] In this comparison, in this embodiment, it is determined whether the read seed value (Seed-R) is an LBA mode and an LBA seed value (Mode=Mode1: SEED=SeedLBA?) (step S201). If the result of this determination is YES, the CPU 111 is notified that the read seed value (Seed-R) is an LBA seed value of the LBA mode expected by the CPU 111, and if the result is NO, it is determined whether the read seed value (Seed-R) is a CHS mode and a CHS seed value (Mode=Mode2: SEED=SeedCHS?) (step S202). If the result of this determination is YES, the CPU 111 is notified that the read seed value (Seed-R) is a CHS seed value of the CHS mode expected by the CPU 111, and if the result is NO, the evaluation is notified to the CPU 111 as NG. If the result of either step S201 or S202 is YES, the CPU 111 descrambles the user data with the seed value of the mode stored in the write seed value storage unit 114.

[0038] That is, in this embodiment, if the read seed value (Seed-R) is the LBA mode and LBA seed value or the CHS mode and CHS seed value in steps S201 and S202 (YES), the user data is descrambled using the seed value (Seed-W) of the mode specified by CPU 111 in parallel with the data processing of the CRC calculation, rather than the read seed value (11E, step S23).

[0039] This allows descrambling to be performed while the CRC calculation is being performed, thereby shortening the latency of data processing and providing the same effects as in the first embodiment.

[0040] Although several embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]

[0041] 11...write / read control system controller, 111...CPU (Central Processor Unit), 12...host system (HOST), 112...DRAM (Dynamic random access memory), 13...media (magnetic disk), 113...scrambler, 114...scrambler seed storage unit, 115...CRC addition unit, 116...seed value XOR calculation unit (Seed-XOR), 117...RLL encoder (RLLEnc), 118...LDPC (Low-Density Parity Check) addition unit, 119...LDPC correction unit, 11A...RLL decoder (RLLDec), 11B...CRC generation unit, 11C...CRC-XOR calculation unit (CRC-XOR), 11D...seed value storage unit, 11E...descrambler, 11F...comparison unit.

Claims

1. A magnetic disk device using a magnetic disk as a medium, which writes and reads data to and from a specified sector by a controller, a write control system for, when writing the data to a sector of the medium, scrambling the data using a seed value specific to the sector of the write destination that is indicated in a preset scrambler seed, generating test data for error detection from the scrambled data, performing an association process for associating the seed value used for the scrambling with a part of the test data, and adding the associated test data to the scrambled data and writing the data; a read control system that extracts the scrambled data and the check data from the media data read from the medium, generates check data for the data extracted from the media data, determines a seed value from the check data and the check data extracted from the media data, compares the seed value with a seed value specific to the sector of the read destination indicated in a scrambler seed expected by the controller, and evaluates it as an error if the comparison results in a mismatch, and descrambles the user data extracted from the media data using either the seed value obtained from the media data or the seed value expected by the controller if the comparison results in a match; A magnetic disk device comprising:

2. 2. The magnetic disk drive according to claim 1, wherein the read control system, when comparing the seed value obtained from the read media data with the seed value expected by the controller and finding a mismatch, infers the type of error depending on the position where the difference between the two occurs.

3. 3. The magnetic disk device of claim 2, wherein the read control system, in comparing a seed value obtained from the read media data with a seed value expected by the controller, utilizes the fact that the seed value is part of the inspection data to determine whether data other than the seed value matches, and if data other than the seed value does not match, determines that a correction has occurred. If data other than the seed value matches, the read control system determines whether the seed values ​​match, and if the seed values ​​do not match, determines that there is a possibility that the read position is sector shifted, and if the seed values ​​match, determines that the read is normal.

4. the write control system, when the value used as the seed value has a plurality of sources, associates a value indicating the source used at the time of writing with the inspection data and adds the value to the scrambled data; the read control system obtains the seed value and a value indicating the source from the inspection data generated from the data extracted from the media data and the inspection data extracted from the media data, compares the source and seed value with the source and seed value expected by the controller, and evaluates an error if either the source or the seed value does not match, and descrambles the data extracted from the media data using the matching seed value if both match.

2. The magnetic disk drive according to claim 1.

Citation Information

Patent Citations

  • Semiconductor integrated circuit for power supply control and system with power supply device

    JP2006129593A

  • IGBT gate driving circuit

    US10116292B2

  • Method and device for driving a power output stage

    US6556407B2