JPS6196575A - Erroneous read correction of magnetic disk device - Google Patents

Erroneous read correction of magnetic disk device

Info

Publication number
JPS6196575A
JPS6196575A JP21773084A JP21773084A JPS6196575A JP S6196575 A JPS6196575 A JP S6196575A JP 21773084 A JP21773084 A JP 21773084A JP 21773084 A JP21773084 A JP 21773084A JP S6196575 A JPS6196575 A JP S6196575A
Authority
JP
Japan
Prior art keywords
data
memory
magnetic disk
error
channel
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
Application number
JP21773084A
Other languages
Japanese (ja)
Inventor
Morihiko Uda
右田 守彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP21773084A priority Critical patent/JPS6196575A/en
Publication of JPS6196575A publication Critical patent/JPS6196575A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1816Testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To correct reading without a central processing unit by providing a channel which ORs exclusively data in memory and an error pattern when an erroneous pattern is received from a controller, and re-stores the result in the memory. CONSTITUTION:When an erroneous read arises in the data area of a magnetic disk 50, the erroneous pattern from a magnetic disk controller 40 is transferred to a data buffer 23 of a channel 20. Data read out from a memory 30 specified by a memory address register 22 and the erroneous pattern are calculated by an exclusive OR circuit 27 and re-stored in the memory 30. With respect to zero data from the controller 40, data in the memory 30 will not be re-written, but only the subtraction of a byte counter 24 and the addition of the register 22 are executed. Thus the erroneous read is corrected without the central processing unit and the processing efficiency can be improved.

Description

【発明の詳細な説明】 (技術分野) 本発明は磁気ディスク装置の読み取り誤り訂正方式に関
し、特に磁気ディスク装置のデータ領域に訂正可能な読
み取り誤りが発生した場合の誤り訂正方式に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a read error correction method for a magnetic disk device, and more particularly to an error correction method when a correctable read error occurs in a data area of a magnetic disk device.

(従来技術) 従来のこの種の磁気ディスク装置σ)読み取り誤  。(Conventional technology) Conventional magnetic disk device of this type σ) Reading error.

り訂正方式は磁気ディスクサブシステムにおけるデータ
領域で訂正可能な読み取り誤りが発生した場合第2図に
示すように磁気ディスクサブシステムが中央処理S置(
CPtJ)io’の制御によりチャネル20′を経由し
メモリ30′の内容が読み出され磁気ディスク制御装[
40’により複数の磁気ディスク袈1[DKU)50’
の1台が選択され、書き込まれるデータの読み出しは逆
経路を、経由してメモリ3 o Iに格納される。
In this correction method, when a correctable read error occurs in the data area of the magnetic disk subsystem, the magnetic disk subsystem performs a central processing
Under the control of CPtJ)io', the contents of the memory 30' are read out via the channel 20' and the magnetic disk controller [
40' for multiple magnetic disks 1 [DKU) 50'
One of the devices is selected, and the data to be written is read out and stored in the memory 3 o I via the reverse route.

この場合の磁気ディスク装置におけるデータ7オーマッ
トは第2図に示すように領域HAがディスクの物理的ア
ドレス上水すホームアドレスで次の領域ROが不良トラ
ックに対する処置等の特別な用途に使用するものであり
さらに以下の領域RINがユーザの用途に使用され、そ
れぞれ、カウントi (Q 、  キ一部(6)、デー
タ部■に分けられる。これらは、誤シ訂正コード(EC
C)t−付加して周知の論理により誤シ訂正チェックが
行なわれる。  ′この紗果訂正可能な誤りが発生した
場合には、カウント部とキ一部については、磁気ディス
ク制御装置40’で再試行指示をチャネル20′にて行
い、エラーパターンが磁気ディスク制御装置40’内部
のバッファに格納されて訂正が行なわれ、この内容をチ
ャネル20rt−通してメモリ30’への再書込みが行
なわれる。しかしデータ領域は、通常長いバイト数であ
る為磁気ディスク制御装置40’では訂正処理が不可能
である。そこで長いデータ領域に訂正可能の読み取り誤
りが発生した場合には磁気ディスク制御装置40′は命
令を異常終了させる。その後中央処理装置10′はエラ
ーパターンとその位li′¥を求めるために、センス命
令を発行し、第3図に示すように、エラー・パターンデ
ータと最終データ位置からエラーを含む最初のバイト位
置までの長さくバイト数)?示すエラーディスプレイス
タットをセンスバイトとして磁気ディスク制御装置ff
40’より転送してもらう。
In this case, the data 7 format in the magnetic disk drive is as shown in Figure 2, where the area HA is the physical address of the disk and the home address, and the next area RO is used for special purposes such as dealing with defective tracks. Furthermore, the following areas RIN are used for user purposes, and are divided into count i (Q), key part (6), and data part ■.These are error correction codes (EC
C) t-Additional error correction checking is performed by well-known logic. ``If this error that can be corrected occurs, the magnetic disk controller 40'' issues a retry instruction through the channel 20'' for the count section and the key part, and the error pattern is confirmed by the magnetic disk controller 40. The data is stored in an internal buffer and corrected, and the contents are rewritten to the memory 30 through channel 20rt-. However, since the data area usually has a long number of bytes, it is impossible for the magnetic disk controller 40' to perform correction processing. Therefore, if a correctable read error occurs in a long data area, the magnetic disk controller 40' abnormally terminates the instruction. Thereafter, the central processing unit 10' issues a sense command to obtain the error pattern and its position li', and as shown in FIG. up to (in bytes)? The magnetic disk controller ff uses the error display stat shown as the sense byte.
Have it transferred from 40'.

そしてこのセンスバイトの内容に基づき、中央処理装置
lO′が介在してメモIJ 30 ’上で、データの訂
正を行う。その後磁気ディスク制御装置40′の異常終
了により中断した命令チェインの次の命令から実行を再
開し、以後の読取り動作を続行する。
Then, based on the contents of this sense byte, the central processing unit lO' intervenes and corrects the data on the memo IJ 30'. Thereafter, execution is resumed from the next instruction in the instruction chain that was interrupted due to the abnormal termination of the magnetic disk controller 40', and subsequent reading operations are continued.

このように従来のデータ領域に、おける読み取り誤りの
訂正には磁気ディスク制御装置40′の異常終了による
読取り動作の中断を含むことになり結果的に中央処理後
[10’の介在?必要とし処理効率が低下するという欠
点があった。
In this way, correction of read errors in the conventional data area involves interrupting the read operation due to abnormal termination of the magnetic disk controller 40', resulting in the intervention of the central processing unit 10'. This has the disadvantage of reducing processing efficiency.

(発明の目的) 本発明の目的は、従来の磁気ディスク装置の読み取シ誤
り訂正方式のかかる欠点を除去すると共に磁気ディスク
装置のデータ領域の訂正可能な読み取り誤11)k訂正
する場合に中央処理装置の処理を必要としない誤シ訂正
方式金提供することにある。
(Objective of the Invention) An object of the present invention is to eliminate such drawbacks of the conventional read error correction method of a magnetic disk device, and to perform a central processing when correcting read errors 11) in the data area of the magnetic disk device. The objective is to provide an error correction method that does not require processing equipment.

(発明の構成) 本発明によれば制御装置とチャネルを通し中央処理装置
の介入によりメモリの内容を訂正する磁気ディスク装置
の読み取シ誤り訂正方式において、磁気ディスクのデー
タ領域から求められたエラーディスプレイスタットとエ
ラーパターンによシ当該データ領域の読み取り誤りの部
分では、エラー・パターンをデータとし、その他の部分
では、ゼロデータをチャネルに転送する前記制御装置と
(Structure of the Invention) According to the present invention, in a read error correction method of a magnetic disk device that corrects the contents of a memory by intervention of a central processing unit through a control device and a channel, an error display obtained from a data area of a magnetic disk is used. The control device transfers the error pattern to the channel in the read error part of the data area according to the stat and the error pattern, and transfers zero data to the channel in the other part.

該制御@置からのエラーパターンを受領した時、前記メ
モリアドレスの示すメモリ内のデータとそのエラーパタ
ーンデータとを排他的論理和演算を行い、その結果をメ
モ°す内へ再格納し、また前記ゼロデータを受領した時
には、単にバイトカウンタとメモリアドレスのみを更新
するようにした前記チャンネルとを含むことを特徴とす
る読み取り誤り訂正方式。
When receiving the error pattern from the control @, performs an exclusive OR operation on the data in the memory indicated by the memory address and the error pattern data, stores the result again in the memory, and A read error correction system characterized in that the channel only updates a byte counter and a memory address when the zero data is received.

(実施例) 次に本発明の実施例について図面全参照して説明する。(Example) Next, embodiments of the present invention will be described with reference to all the drawings.

第3図は1本発明の一実施例における構成を示す。第3
図において、磁気ディスク装置50は長さtのデータ領
域51t−有しており、このデータ領域51の先頭から
t1バイトのところでt2バイトにおよぶ読取り誤りが
発生したとする。データ領域51からの直列デー・タビ
ットは磁気ディスク制御装置40内の直/並列変換回路
43全通してバイト単位のデータに変換され、エラー検
出回路44により誤り訂正バイトが作られ、第3図に示
すように誤りバイトがエラー・パターン・レジスタ45
に格納され、またエラーパターンの先頭バイトから最終
バイトまでのバイト数がディスプレイスメントレジスタ
46に格納される。これらのレジスタはチャネル20か
らの再試行命令を磁気ディスク制御装置40が受は取っ
た時、エラーディスプレースメントで示されるエラーの
検出された部分では、エラーパターンを、その他の部分
ではゼロデータ全チャネル2に転送するために使用され
る。
FIG. 3 shows the configuration of an embodiment of the present invention. Third
In the figure, it is assumed that the magnetic disk device 50 has a data area 51t- of length t, and a read error of t2 bytes occurs at t1 bytes from the beginning of this data area 51. The serial data bits from the data area 51 are converted into data in byte units through the serial/parallel conversion circuit 43 in the magnetic disk controller 40, and an error correction byte is created by the error detection circuit 44, as shown in FIG. The erroneous byte is stored in the error pattern register 45 as shown.
The number of bytes from the first byte to the last byte of the error pattern is stored in the displacement register 46. When the magnetic disk controller 40 receives a retry command from the channel 20, these registers store the error pattern in the detected part of the error indicated by error displacement, and the zero data for all channels in other parts. Used to transfer to 2.

本実施例のチャネル20では、サブチャネルバッファ2
1にあらかじめ命令コード、バイトカウンタ値、先頭メ
モリアドレスが格納されており、その出力aがメモリ・
アドレスレジスタ22と、バイトカウンタ24ヘセツト
される。このバイトカウンタ24は磁気ディスク制御装
置40のバイトカウンタ41と同期して動作し、データ
バッファ42の内容がチャネルのデータバッファ23を
介し、AND回路28.28’およびOR回路29を経
てメモリライトバスfk通し、メモリ30に書き込まれ
る。
In channel 20 of this embodiment, subchannel buffer 2
1 stores the instruction code, byte counter value, and start memory address in advance, and its output a is stored in the memory.
The address register 22 and byte counter 24 are set. This byte counter 24 operates in synchronization with the byte counter 41 of the magnetic disk controller 40, and the contents of the data buffer 42 are transferred to the memory write bus via the data buffer 23 of the channel, the AND circuit 28, 28', and the OR circuit 29. fk and is written to the memory 30.

前述のようにして磁気ディスク制御装置40が読取り誤
りを検出するとチャネル20に対し再試行要求の状態バ
イトが送られるのでチャネル20の状態バイト判定回路
25が再試行要求を検出し信号6によシサプチャネルバ
ッファ21から、バイトカウンタ24とメモリアドレス
レジスタ22に初期値の再設?を行う、 通常転送時は、磁気ディスク装置50から送られてくる
、ビットシリアルデータは磁気ディスク制#装置40の
直/並列変換回路43によりバイトシリアルなデータに
変換され、エラー検出回路44t−通してデータ・バッ
ファ42Il?:より、チャネル20のデータバッファ
23に転送される。チャネル20は4バイト単位でデー
タバッファ23よりAND回路28′(通常転送時信号
e=l)を通してメモリライトバスfによシメモリ・ア
ドレスレジスタ22の示すメモリ内に順次書き込まれる
。磁気ディスク制御装置40が訂正可能な読み取り誤シ
全検出し、チャネル20へ再試行要求をした後のデータ
転送時には、データ作成回路47は直/並列変換回路4
3から1バイト単位の信号で発生し、その信号に同期し
て、エラーディスプレイスタットレジスタ46で示され
るバイト位置カラ、エラーパターンレジスタ45の内容
をデータバッファ23に転送する。誤りの発生していな
い部分(第3図のA、  0部)では、データ作成回路
47がゼロデータ全作成しデータ・バッファ42に介し
、チャネル20のデータバッファ23に転送する。
When the magnetic disk controller 40 detects a read error as described above, the status byte of the retry request is sent to the channel 20, so the status byte determination circuit 25 of the channel 20 detects the retry request and sends the status byte using the signal 6. Reset initial values from subchannel buffer 21 to byte counter 24 and memory address register 22? During normal transfer, the bit serial data sent from the magnetic disk device 50 is converted into byte serial data by the serial/parallel conversion circuit 43 of the magnetic disk system # device 40, and the error detection circuit 44t Data buffer 42Il? : is transferred to the data buffer 23 of the channel 20. The channel 20 is sequentially written in units of 4 bytes from the data buffer 23 into the memory indicated by the memory address register 22 via the AND circuit 28' (normal transfer signal e=1) and the memory write bus f. During data transfer after the magnetic disk controller 40 detects a correctable read error and requests a retry to the channel 20, the data creation circuit 47 converts the serial/parallel converter 4
3 to 1 byte, and in synchronization with the signal, the byte position indicated by the error display stat register 46 and the contents of the error pattern register 45 are transferred to the data buffer 23. In the portion where no error has occurred (part A, 0 in FIG. 3), the data creation circuit 47 creates all zero data and transfers it to the data buffer 23 of the channel 20 via the data buffer 42.

こうして磁気ディスク制御装置40よりデータバッファ
23に送られてくるデータを非ゼロデータ検出回路26
は、1バイト毎に、ゼロデータであるかないかのチェッ
クをする。ゼロデータでは信号e、  dはゼロである
為、AND回路28.28’は機能せず、またメモリ3
0のリードも行なわれない。−万゛非ゼロデータを非ゼ
ロデータ検出回路26が検出すると、メモリアドレス・
レジスタ22で示されるメモリ30内のデータは一旦読
取られ、メモリ・リードバスgを通して排他的論理和回
路27へ入力する。
The data sent from the magnetic disk controller 40 to the data buffer 23 in this way is detected by the non-zero data detection circuit 26.
checks each byte to see if it is zero data. With zero data, the signals e and d are zero, so the AND circuits 28 and 28' do not function, and the memory 3
A read of 0 is also not performed. - If the non-zero data detection circuit 26 detects non-zero data, the memory address
The data in the memory 30 indicated by the register 22 is once read and input to the exclusive OR circuit 27 through the memory read bus g.

再びデータはデータバッファ23内の非ゼロデータと排
他的論理和かとられAND回路28(信号d=1)から
メモリライトバス/vf−通してメモリアドレスレジス
タ22の示すメモリ30内へ再書込みがなされる。
The data is again exclusive-ORed with the non-zero data in the data buffer 23 and rewritten from the AND circuit 28 (signal d=1) into the memory 30 indicated by the memory address register 22 through the memory write bus/vf-. Ru.

以上のように本実施例は、訂正可能な読取り誤りのあっ
た後の再試行転送時には、磁気ディスク制御装置40か
らのデータがゼロの時はメモリ30内のデータの賽き換
えは行なわず、単にバイトカウンタ24の減算とメモリ
アドレスレジスタ22の加算が行なわれるだけである。
As described above, in this embodiment, during retry transfer after a correctable read error occurs, when the data from the magnetic disk control device 40 is zero, the data in the memory 30 is not replaced; The byte counter 24 is simply subtracted and the memory address register 22 is added.

しかしDKC,iからのデータが非ゼロの時に限り、そ
の時メモリアドレスレジスタ22の示しているメモリ3
0から°一旦読み取られたデータはデータバッファ23
内の非ゼロデータ(エラーパターン)と排他的論理和を
とり、再度メモリ・アドレスレジスタ22の示すメモリ
30への書込みが行なわれる。
However, only when the data from DKC,i is non-zero, then the memory 3 indicated by the memory address register 22
The data once read from 0° is stored in the data buffer 23.
Exclusive OR is performed with the non-zero data (error pattern) in the data, and writing to the memory 30 indicated by the memory address register 22 is performed again.

従って1本実施例においてはチャネル20と磁気ディス
ク制御装置との間で再試行転送動作を行いながらメモリ
30内の誤シのあるデータの訂正が行なえることになる
Therefore, in this embodiment, erroneous data in the memory 30 can be corrected while performing a retry transfer operation between the channel 20 and the magnetic disk controller.

(発明の効果) 本発明は以上説明したように、データ領域の読取り誤り
が発生した場合、制御装置で異常終了させ命令全中断す
る必要がなくなり中央処理装置の介入を不必要とし処理
効率を高めるという効果がある。
(Effects of the Invention) As described above, the present invention eliminates the need for the control device to abnormally terminate all instructions when a reading error occurs in the data area, eliminates the need for central processing unit intervention, and improves processing efficiency. There is an effect.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例金示す図、第2図は従来の磁気
ディスク装置のシステム構成を示す図、第3図は従来の
磁気ディスクのデータ領域で示す図で必る、 lO・・・・・・中央処理袋fit(CPU)、20・
・・・・・チャネル、21・・・・・・サブチャネルバ
ッファ、22・・・・・・メモリアドレスレジスタ、2
3・・・・・・データ・バッファ、24・・・・・・バ
イトカウンタ、25・・・・・・状態バイトデコーダ、
26・・・・・・非ゼロデータ検出回路、27・・・・
・・排他的論理和回路、28.28’・・・・・・AN
D回路、29・・・・・・OR回路、30・・・・・・
メモリ、40・・・・・・磁気ディスク制御装置(DK
C)、41・・・・・・バイトカウンタ%42・・・・
・・データ拳バッファ、43・・・・・・直/並例変換
回路、44・・・・・・エラー検出Oi、45・・・・
・・エラーパターンレジスタ、46・・・・・・ディス
プレイスメントレジスタ、47・・・・・・データ作成
回路、50・・・・・・磁気ディスク装置(DKU)。 P Iせ−1
FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the system configuration of a conventional magnetic disk device, and FIG. 3 is a diagram showing the data area of a conventional magnetic disk. ...Central processing bag fit (CPU), 20.
... Channel, 21 ... Sub channel buffer, 22 ... Memory address register, 2
3... Data buffer, 24... Byte counter, 25... Status byte decoder,
26...Non-zero data detection circuit, 27...
・・Exclusive OR circuit, 28.28'・・・・・・AN
D circuit, 29...OR circuit, 30...
Memory, 40...Magnetic disk controller (DK
C), 41... Byte counter %42...
...Data fist buffer, 43...Direct/parallel conversion circuit, 44...Error detection Oi, 45...
...Error pattern register, 46...Displacement register, 47...Data creation circuit, 50...Magnetic disk unit (DKU). PI-1

Claims (1)

【特許請求の範囲】[Claims] 制御装置とチャネルを通し、中央処理装置の介入により
メモリの内容を訂正する磁気ディスク装置の読み取り誤
り訂正方式において、磁気ディスクのデータ領域から求
められたエラーディスプレイスタットとエラーパターン
により当該データ領域の読み取り誤りの部分では、エラ
ー・パターンをデータとし、その他の部分ではゼロデー
タをチャネルに転送する前記制御装置と、該制御装置か
らのエラーパターンを受領した時前記メモリアドレスの
示すメモリ内のデータとそのエラーパターンデータとを
排他的論理和演算を行い、その結果をメモリ内へ再格納
し、また前記ゼロデータを受領した時には、単にバイト
カウンタとメモリアドレスのみを更新するようにした前
記チャンネルとを含むことを特徴とする読み取り誤り訂
正方式。
In the read error correction method of magnetic disk drives, which corrects the contents of memory through the intervention of the central processing unit through a control unit and a channel, the data area is read using the error display stat and error pattern determined from the data area of the magnetic disk. The control device transfers the error pattern as data in the error part and zero data to the channel in the other part, and the data in the memory indicated by the memory address and its data when receiving the error pattern from the control device. The channel performs an exclusive OR operation with the error pattern data, stores the result again in the memory, and simply updates only the byte counter and memory address when the zero data is received. A reading error correction method characterized by:
JP21773084A 1984-10-17 1984-10-17 Erroneous read correction of magnetic disk device Pending JPS6196575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21773084A JPS6196575A (en) 1984-10-17 1984-10-17 Erroneous read correction of magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21773084A JPS6196575A (en) 1984-10-17 1984-10-17 Erroneous read correction of magnetic disk device

Publications (1)

Publication Number Publication Date
JPS6196575A true JPS6196575A (en) 1986-05-15

Family

ID=16708840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21773084A Pending JPS6196575A (en) 1984-10-17 1984-10-17 Erroneous read correction of magnetic disk device

Country Status (1)

Country Link
JP (1) JPS6196575A (en)

Similar Documents

Publication Publication Date Title
JP2003516598A (en) Error correction device
US7809899B2 (en) System for integrity protection for standard 2n-bit multiple sized memory devices
JP2696212B2 (en) Error correction device
US7389466B1 (en) ECC in computer system with associated mass storage device, and method for operating same
JPS6196575A (en) Erroneous read correction of magnetic disk device
JP2543519B2 (en) Data error detection / correction method for rotating external storage device
JPH1078853A (en) Storage device
JPH0316655B2 (en)
JPH01194046A (en) Memory access system
JP3242682B2 (en) Error correction processor
JPS6048769B2 (en) Loading method
JP3022688B2 (en) Auxiliary storage
JPS6041374B2 (en) 1-bit error correction/2-bit error detection method
JPS5847057B2 (en) magnetic disk controller
JPH06274421A (en) Data securing system
JPH0348543B2 (en)
JPH04205133A (en) Disk controller
JPH03191451A (en) Error correction system
JPS62125453A (en) Storage device
JPS58178457A (en) File control system
JP2003177973A (en) Data processor
JPH0520215A (en) Information processor
JPH06259335A (en) External storage device
JPH0520777B2 (en)
JP2000207289A (en) Data error detecting system and its method