JPH1050004A - Magnetic disk control device - Google Patents
Magnetic disk control deviceInfo
- Publication number
- JPH1050004A JPH1050004A JP19932896A JP19932896A JPH1050004A JP H1050004 A JPH1050004 A JP H1050004A JP 19932896 A JP19932896 A JP 19932896A JP 19932896 A JP19932896 A JP 19932896A JP H1050004 A JPH1050004 A JP H1050004A
- Authority
- JP
- Japan
- Prior art keywords
- data
- crc code
- error
- magnetic disk
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Detection And Correction Of Errors (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、磁気ディスク制御
装置に関し、特に磁気ディスク制御装置のデータエラー
検出手段に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk controller, and more particularly, to a data error detecting means of the magnetic disk controller.
【0002】[0002]
【従来の技術】従来、磁気ディスク制御装置は、データ
読み出し中の異常を示すシンドロームを発生させる誤り
訂正符号(以下、Error-correcting Code:ECCとい
う)および転送系の異常を示すシンドロームを発生させ
る巡回冗長検査(以下、Cyclic Redundancy Check:CR
Cという)符号を含む可変長ブロックに対して、ECC
によるエラー訂正を行った後にCRC符号によるエラー
検出を行っており、データエラーを検出したときは、磁
気ディスク装置で検出したECCによる訂正パターンお
よび訂正位置と、CRC符号の発生するシンドロームと
を基に、エラー訂正後のデータのシンドロームを再発生
し、これよりデータの再チェックを行っている(例え
ば、特開平4−355279号公報)。2. Description of the Related Art Conventionally, a magnetic disk control device has an error-correcting code (hereinafter referred to as "ECC") for generating a syndrome indicating an abnormality during data reading and a circuit for generating a syndrome indicating an abnormality in a transfer system. Redundancy Check (hereinafter Cyclic Redundancy Check: CR
ECC for a variable-length block containing a code
After performing error correction using the CRC code, error detection using the CRC code is performed. When a data error is detected, a correction pattern and a correction position based on the ECC detected by the magnetic disk device and a syndrome where the CRC code occurs are used. Then, the syndrome of the data after the error correction is regenerated, and the data is rechecked from this (for example, JP-A-4-355279).
【0003】[0003]
【発明が解決しようとする課題】上述した従来の磁気デ
ィスク制御装置では、ECCエラーが発生しなければC
RC符号のエラー訂正が不可能なため、意識的にCRC
符号エラーとなるようなデータとCRC符号とを書き込
んでおき、そのデータを読み出すとECCエラーは検出
されずにCRC符号エラーのみが検出される。その場
合、再試行(リトライ)を行ってもエラーが回復しない
のは当然であるにもかかわらず、所定の回数分の再試行
処理を行ってしまうため、システムのスループットが低
下するという欠点がある。In the above-described conventional magnetic disk control device, if an ECC error does not occur, C
Since error correction of RC code is impossible, CRC
When a data that causes a code error and a CRC code are written in advance and the data is read, an ECC error is not detected and only a CRC code error is detected. In this case, although it is natural that the error is not recovered even if the retry (retry) is performed, the retry process is performed a predetermined number of times, so that there is a disadvantage that the system throughput is reduced. .
【0004】本発明の目的は、意識的にCRC符号エラ
ーとなるデータを磁気ディスク装置に書き込んでおき、
そのデータを読み出す場合に、それが作為的に発生させ
たCRC符号エラーであるか否(真のCRC符号エラー
である)かを判別し、前者の場合には再試行処理には行
わず上位装置に報告のみとし、システムのスループット
の低下を防ぐ磁気ディスク制御装置を提供することにあ
る。An object of the present invention is to consciously write data that causes a CRC code error in a magnetic disk drive,
When the data is read, it is determined whether or not the data is a CRC code error generated artificially (it is a true CRC code error). It is another object of the present invention to provide a magnetic disk control device that can only report to the system and prevent a decrease in system throughput.
【0005】[0005]
【課題を解決するための手段】本発明は、磁気ディスク
装置へのデータ書き込み時に上位装置の障害によりデー
タが送られてこないとき、ダミーデータの転送および転
送データに付加するCRC符号を反転して送出する不完
全書き込み対策機能を有する磁気ディスク制御装置にお
いて、前記磁気ディスク装置からのデータ読み出し時に
データとCRC符号をそのままチェックする第1のCR
C符号チェック回路と、前記データをそのままとし前記
CRC符号を反転させてチェックする第2のCRC符号
チェック回路と、前記第1のCRC符号チェック回路お
よび前記第2のCRC符号チェック回路のチェック結果
からデータエラーを検出したとき、そのデータエラーが
真のデータエラーであるかもしくは前記不完全書き込み
対策によるデータエラーあるかを判別するエラー判別回
路とを備えることを特徴とする。SUMMARY OF THE INVENTION According to the present invention, when data is not sent due to a failure of a higher-level device when writing data to a magnetic disk device, dummy data is transferred and a CRC code added to the transferred data is inverted. In a magnetic disk control device having a function of preventing incomplete writing to be transmitted, a first CR for directly checking data and a CRC code when reading data from the magnetic disk device.
A C code check circuit, a second CRC code check circuit for checking the data by inverting the CRC code while keeping the data as it is, and a check result of the first CRC code check circuit and the second CRC code check circuit. When detecting a data error, an error discriminating circuit for discriminating whether the data error is a true data error or a data error due to the incomplete writing countermeasure is provided.
【0006】また、前記エラー判別回路は、前記第1の
CRC符号チェック回路でデータエラーなしの場合、第
2のCRC符号チェック回路の結果に関係なく磁気ディ
スク装置から読み出したデータを上位装置に転送すると
ともに正常終了したものと判別し、前記第1のCRC符
号チェック回路でデータエラーありかつ前記第2のCR
C符号チェック回路でデータエラーなしの場合、前記不
完全書き込み対策により書かれたデータと判別し、前記
第1のCRC符号チェック回路および前記第2のCRC
符号チェック回路がともにデータエラーを検出した場
合、何らかの障害によるデータエラーありと判別するこ
とを特徴とする。The error discriminating circuit transfers the data read from the magnetic disk device to a host device regardless of the result of the second CRC code checking circuit when there is no data error in the first CRC code checking circuit. The first CRC code check circuit determines that there is a data error and the second CR
If there is no data error in the C code check circuit, the data is determined to be data written by the countermeasure against incomplete writing, and the first CRC code check circuit and the second CRC code are used.
When both the code check circuits detect a data error, it is determined that there is a data error due to some failure.
【0007】[0007]
【発明の実施の形態】次に、本発明について図面を参照
して説明する。Next, the present invention will be described with reference to the drawings.
【0008】図1は、本発明の一実施の形態を示すブロ
ック図である。図1を参照すると、本発明の磁気ディス
ク制御装置10は、書き込みデータ線31,読み出しデ
ータ線32,動作不可能表示線33および転送結果報告
線34を介して上位装置(図示せず)と接続され、さら
に、書き込みデータ線35および読み出しデータ線36
を介して磁気ディスク装置20と接続されている。FIG. 1 is a block diagram showing an embodiment of the present invention. Referring to FIG. 1, a magnetic disk controller 10 of the present invention is connected to a host device (not shown) via a write data line 31, a read data line 32, an inoperable display line 33, and a transfer result report line 34. The write data line 35 and the read data line 36
Is connected to the magnetic disk drive 20 via the.
【0009】そして、磁気ディスク制御装置10は、作
不可能表示線33を介して上位装置から送出する信号が
アクティブのとき不完全書き込みを指示する不完全書き
込み対策指示回路11と、この不完全書き込み対策指示
回路11の指示によりダミーデータを発生させるダミー
データ発生回路14と、書き込みデータ線31を介して
上位装置から送出する信号もしくはダミーデータ発生回
路14から出力するデータの最後にCRC符号を付加す
るCRC符号生成回路12と、通常はCRC符号生成回
路12から送られてきたデータとCRC符号とを書き込
みデータ線35を介してそのまま磁気ディスク装置20
に転送するが、書き込み対策指示回路11から指示があ
る場合のみCRC符号を反転して磁気ディスク装置20
に転送するCRC符号反転回路13と、不完全書き込み
対策指示回路11の指示によりダミーデータを発生させ
るダミーデータ発生回路14と、読み出しデータ線36
を介して磁気ディスク装置20から送出されたデータと
CRC符号のチェックを行うCRC符号チェック回路A
15と、読み出しデータ線36を介して磁気ディスク装
置20から送出されたCRC符号を反転させてデータの
チェックを行うCRC符号チェック回路B16と、CR
C符号チェック回路A15およびCRC符号チェック回
路B16によるチェック結果に基づいてデータエラーの
有無もしくはダミーデータを読み出したことを判別する
エラー判別回路17とを備えている。The magnetic disk controller 10 includes an incomplete write countermeasure instruction circuit 11 for instructing an incomplete write when a signal sent from the host device via the inoperable display line 33 is active. A dummy data generation circuit 14 for generating dummy data according to an instruction from the countermeasure instruction circuit 11, and a CRC code added to the end of a signal transmitted from a higher-level device via the write data line 31 or data output from the dummy data generation circuit 14. The CRC code generation circuit 12 and the data normally sent from the CRC code generation circuit 12 and the CRC code are directly written to the magnetic disk drive 20 via the write data line 35.
The CRC code is inverted only when instructed by the write countermeasure instructing circuit 11 and the magnetic disk device 20
A CRC code inverting circuit 13, a dummy data generating circuit 14 for generating dummy data according to an instruction from the incomplete writing countermeasure instruction circuit 11, and a read data line 36.
Code check circuit A for checking the CRC code and the data sent from the magnetic disk device 20 via the
15, a CRC code check circuit B16 for inverting the CRC code sent from the magnetic disk device 20 via the read data line 36 to check data,
An error discriminating circuit 17 is provided for discriminating the presence or absence of a data error or the reading of dummy data based on the check results by the C code check circuit A15 and the CRC code check circuit B16.
【0010】次に、このように構成された本発明の磁気
ディスク制御装置の処理動作について説明する。Next, the processing operation of the magnetic disk control device of the present invention configured as described above will be described.
【0011】まず、CRC符号生成回路12は、磁気デ
ィスク装置20への書き込みデータに対してCRC符号
の演算を行いデータの最後に付加し、CRC符号反転回
路13を介して磁気ディスク装置に転送する。そして、
不完全書き込み対策指示回路11は、上位装置とのイン
タフェース信号である動作不可能表示線33を常に監視
し、磁気ディスク装置20への書き込み中に動作不可能
表示線33の信号がアクティブとなると、CRC符号反
転回路13およびダミーデータ発生回路14に対して不
完全書き込み対策の指示を行う。First, a CRC code generation circuit 12 performs a CRC code operation on data to be written to the magnetic disk device 20, adds the data to the end of the data, and transfers the data to the magnetic disk device via a CRC code inversion circuit 13. . And
The incomplete writing countermeasure instructing circuit 11 constantly monitors the inoperable display line 33 which is an interface signal with the host device, and when the signal of the inoperable display line 33 becomes active during writing to the magnetic disk device 20, It instructs the CRC sign inversion circuit 13 and the dummy data generation circuit 14 to take measures against incomplete writing.
【0012】ここで、不完全書き込み対策とは、磁気デ
ィスク装置20へのデータ書き込み中に、上位装置の何
らかの障害によりデータの送出ができなくなったとき、
予め決められていたデータ転送数の残り分についてはダ
ミーデータを転送することである。また、その際にCR
C符号を反転させることにより、後に読み出したときに
正常なデータでないためデータエラーを検出させる、と
いうものである。Here, the countermeasure against incomplete writing means that when data cannot be sent out due to some kind of failure of the host device during data writing to the magnetic disk device 20.
Dummy data is to be transferred for the remainder of the predetermined number of data transfers. In that case, CR
By inverting the C code, a data error is detected because the data is not normal when read later.
【0013】CRC符号反転回路13は、通常の場合、
CRC符号生成回路12において生成されたCRC符号
が付加されたデータを書き込みデータ線35を介してそ
のまま磁気ディスク装置20に転送するが、不完全書き
込み対策指示回路11から不完全書き込み対策の指示が
あると、CRC符号生成回路12で生成されたCRC符
号を反転し、反転CRC符号付きのデータとして磁気デ
ィスク装置20に転送する。また、ダミーデータ発生回
路14は、不完全書き込み対策指示回路11から不完全
書き込み対策の指示があると、ダミーデータを生成して
CRC符号生成回路12およびCRC符号反転回路13
を介して磁気ディスク装置20に転送する。The CRC sign inverting circuit 13 normally has
The data to which the CRC code generated by the CRC code generation circuit 12 is added is transferred to the magnetic disk device 20 via the write data line 35 as it is. Then, the CRC code generated by the CRC code generation circuit 12 is inverted and transferred to the magnetic disk device 20 as data with an inverted CRC code. When the incomplete write countermeasure instruction circuit 11 gives an instruction for the incomplete write countermeasure, the dummy data generation circuit 14 generates the dummy data to generate the CRC code generation circuit 12 and the CRC code inversion circuit 13.
Is transferred to the magnetic disk device 20 via the.
【0014】次に、CRC符号チェック回路A15は、
読み出しデータ線36を介して磁気ディスク装置20か
らのデータ読み出し時に、磁気ディスク装置20から読
み出したデータとCRC符号とのチェックを行い、その
チェック結果をエラー判別回路17に報告する。一方、
CRC符号チェック回路B16については、読み出しデ
ータ線36を介して磁気ディスク装置20からのデータ
読み出し時に、磁気ディスク装置20からのデータとC
RC符号を反転させてチェックを行い、そのチェック結
果をエラー判別回路17に報告する。Next, the CRC code check circuit A15
When reading data from the magnetic disk device 20 via the read data line 36, the data read from the magnetic disk device 20 and the CRC code are checked, and the check result is reported to the error determination circuit 17. on the other hand,
When the CRC code check circuit B16 reads data from the magnetic disk device 20 via the read data line 36, the data from the magnetic disk device 20 and C
A check is performed by inverting the RC code, and the check result is reported to the error determination circuit 17.
【0015】ここで、エラー判別回路17は、CRC符
号チェック回路A15およびCRC符号チェック回路B
16のチェック結果に基づいてエラーの判別を行う。そ
して、CRC符号チェック回路A15においてデータエ
ラーなしの場合は、CRC符号チェック回路B16の結
果に関係なく、CRC符号チェック回路A15により磁
気ディスク装置20から読み出したデータを読み出しデ
ータ線32を介して上位装置に転送されるとともに、正
常終了した旨を転送結果報告線34を介して上位装置に
報告する。Here, the error determination circuit 17 comprises a CRC code check circuit A15 and a CRC code check circuit B
An error is determined based on the 16 check results. If there is no data error in the CRC code check circuit A15, the data read from the magnetic disk device 20 by the CRC code check circuit A15 is read out from the magnetic disk device 20 via the read data line 32 regardless of the result of the CRC code check circuit B16. And reports the normal end to the higher-level device via the transfer result report line 34.
【0016】また、エラー判別回路17は、CRC符号
チェック回路A15においてデータエラーありの場合
に、CRC符号チェック回路B16でデータエラーなし
のときは、以前に不完全書き込み対策により書かれたデ
ータを読み出した旨を転送結果報告線34を介して上位
装置に報告する。The error discriminating circuit 17 reads out data previously written by the countermeasure against incomplete writing when there is a data error in the CRC code checking circuit A15 and when there is no data error in the CRC code checking circuit B16. Is reported to the host device via the transfer result report line 34.
【0017】さらに、エラー判別回路17は、CRC符
号チェック回路A15とCRC符号チェック回路B16
とがともにデータエラーを検出したときは、何らかの障
害によるデータエラーであるため再試行処理を行い、規
定回数再試行を行って回復しない場合には、データエラ
ーを検出した旨を転送結果報告線34を介して上位装置
に報告する。Further, the error determination circuit 17 comprises a CRC code check circuit A15 and a CRC code check circuit B16.
If both are detected as a data error, retry processing is performed because the data error is due to some kind of failure, and if recovery is not performed after performing the specified number of retries, the transfer result report line 34 indicates that a data error has been detected. To the host device via
【0018】[0018]
【発明の効果】以上説明したように、本発明の磁気ディ
スク制御装置は、磁気ディスク装置からデータを読み出
した際にデータエラーを検出すると、それが意識的にC
RC符号を反転させたことによるデータエラーなのか、
本当のデータエラーよるものなのかを判別できるため、
余計な再行処理を行う必要もなく、システムスループッ
トの低下を防止できるという効果がある。As described above, the magnetic disk control device of the present invention, when detecting a data error when reading data from the magnetic disk device, consciously detects the error.
Is it a data error caused by inverting the RC code?
Because you can determine whether it is due to a real data error,
There is an effect that it is not necessary to perform extra rerun processing, and a decrease in system throughput can be prevented.
【図1】本発明の一実施の形態を示すブロック図であ
る。FIG. 1 is a block diagram showing an embodiment of the present invention.
10 磁気ディスク制御装置 11 不完全書き込み対策指示回路 12 CRC符号生成回路 13 CRC符号反転回路 14 ダミーデータ発生回路 15 CRC符号チェック回路A 16 CRC符号チェック回路B 17 エラー判別回路 20 磁気ディスク装置 31,35 書き込みデータ線 32,36 読み出しデータ線 33 動作不可能表示線 34 転送結果報告線 DESCRIPTION OF SYMBOLS 10 Magnetic disk controller 11 Incomplete write countermeasure instruction circuit 12 CRC code generation circuit 13 CRC code inversion circuit 14 Dummy data generation circuit 15 CRC code check circuit A 16 CRC code check circuit B 17 Error discrimination circuit 20 Magnetic disk devices 31, 35 Write data line 32, 36 Read data line 33 Inoperable display line 34 Transfer result report line
Claims (2)
に上位装置の障害によりデータが送られてこないとき、
ダミーデータの転送および転送データに付加するCRC
符号を反転して送出する不完全書き込み対策機能を有す
る磁気ディスク制御装置において、前記磁気ディスク装
置からのデータ読み出し時にデータとCRC符号をその
ままチェックする第1のCRC符号チェック回路と、前
記データをそのままとし前記CRC符号を反転させてチ
ェックする第2のCRC符号チェック回路と、前記第1
のCRC符号チェック回路および前記第2のCRC符号
チェック回路のチェック結果からデータエラーを検出し
たとき、そのデータエラーが真のデータエラーであるか
もしくは前記不完全書き込み対策によるデータエラーあ
るかを判別するエラー判別回路とを備えることを特徴と
する磁気ディスク制御装置。1. When data is not sent due to a failure of a host device when writing data to a magnetic disk device,
Dummy data transfer and CRC added to transfer data
In a magnetic disk controller having an incomplete writing countermeasure function of inverting and transmitting a code, a first CRC code check circuit for directly checking data and a CRC code when reading data from the magnetic disk device, A second CRC code check circuit for inverting and checking the CRC code;
When a data error is detected from the check results of the CRC code check circuit and the second CRC code check circuit, it is determined whether the data error is a true data error or a data error due to the incomplete writing countermeasure. A magnetic disk control device comprising: an error determination circuit.
C符号チェック回路でデータエラーなしの場合、第2の
CRC符号チェック回路の結果に関係なく磁気ディスク
装置から読み出したデータを上位装置に転送するととも
に正常終了したものと判別し、前記第1のCRC符号チ
ェック回路でデータエラーありかつ前記第2のCRC符
号チェック回路でデータエラーなしの場合、前記不完全
書き込み対策により書かれたデータと判別し、前記第1
のCRC符号チェック回路および前記第2のCRC符号
チェック回路がともにデータエラーを検出した場合、何
らかの障害によるデータエラーありと判別することを特
徴とする請求項1記載の磁気ディスク制御装置。2. The method according to claim 1, wherein the error determining circuit includes a first CR.
If there is no data error in the C code check circuit, the data read from the magnetic disk device is transferred to the host device regardless of the result of the second CRC code check circuit, and it is determined that the data has been normally terminated. If there is a data error in the code check circuit and no data error in the second CRC code check circuit, it is determined that the data has been written by the countermeasures against incomplete writing, and the first
2. The magnetic disk control device according to claim 1, wherein when both the CRC code check circuit and the second CRC code check circuit detect a data error, it is determined that there is a data error due to some failure.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19932896A JPH1050004A (en) | 1996-07-29 | 1996-07-29 | Magnetic disk control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19932896A JPH1050004A (en) | 1996-07-29 | 1996-07-29 | Magnetic disk control device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1050004A true JPH1050004A (en) | 1998-02-20 |
Family
ID=16405975
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19932896A Pending JPH1050004A (en) | 1996-07-29 | 1996-07-29 | Magnetic disk control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1050004A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012508425A (en) * | 2008-12-29 | 2012-04-05 | インテル コーポレイション | Poison bit error check code technique |
-
1996
- 1996-07-29 JP JP19932896A patent/JPH1050004A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012508425A (en) * | 2008-12-29 | 2012-04-05 | インテル コーポレイション | Poison bit error check code technique |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2001228980A (en) | Controller for disk array | |
| US20020144193A1 (en) | Method and system for fault isolation methodology for I/O unrecoverable, uncorrectable error | |
| JP2672916B2 (en) | Data check method for array disk device | |
| JPH1050004A (en) | Magnetic disk control device | |
| JPH0535616A (en) | Data transfer system | |
| JP2806856B2 (en) | Diagnostic device for error detection and correction circuit | |
| JPS58223860A (en) | Magnetic disk controller | |
| JPH05174505A (en) | Data protective system | |
| JP3663650B2 (en) | Optical disk signal inspection device | |
| JP3358701B2 (en) | Verify method and verify device | |
| JPS6023379B2 (en) | data processing system | |
| JPH0242688A (en) | Magnetic disk device | |
| JPH05108385A (en) | Error correction circuit diagnostic method | |
| JP2503981B2 (en) | Peripheral storage | |
| JPS6095665A (en) | Data storage processing device | |
| JP2000207289A (en) | Data error detecting system and its method | |
| JPH04291427A (en) | Storage subsystem | |
| JPH04353935A (en) | Magnetic disk controller | |
| JPH04205133A (en) | Disk controller | |
| JP2000148408A (en) | Circuit, system, and method for checking data of magnetic disk drive | |
| JPH05224968A (en) | Data check system | |
| JPH04344374A (en) | Method for executing cyclic redundancy check | |
| JPH0377546B2 (en) | ||
| JPH0793171A (en) | Memory access failure handling method | |
| JPH0454655A (en) | Information recording/reproducing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19990608 |