JPH01220265A - Controller - Google Patents

Controller

Info

Publication number
JPH01220265A
JPH01220265A JP4717688A JP4717688A JPH01220265A JP H01220265 A JPH01220265 A JP H01220265A JP 4717688 A JP4717688 A JP 4717688A JP 4717688 A JP4717688 A JP 4717688A JP H01220265 A JPH01220265 A JP H01220265A
Authority
JP
Japan
Prior art keywords
error
sector address
address
control part
volatile ram
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
JP4717688A
Other languages
Japanese (ja)
Inventor
Kisho Hara
原 紀章
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP4717688A priority Critical patent/JPH01220265A/en
Publication of JPH01220265A publication Critical patent/JPH01220265A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To judge the number of times of an error generated on one and the same sector address by a controller itself and to automatically perform an alternate processing by providing a non-volatile RAM to store the sector address in which the error is generated at the time of performing a read operation or a write operation on a storage device and the number of times of the error. CONSTITUTION:An internal CPU 11 in a disk controller sends the sector address in which the error is generated to a data search control part 12 via a CPU bus A. An error count control part 13 fetches the content of an error counter bus C when a RAM address control signal G becomes active, and increments the number of count by one, and writes it on an error information buffer non- volatile RAM 14. When the updated number of times of the error exceeds a decided constant value, the error count control part 13 activates an error over signal I. An alternate processing control part 16 performs the alternate processing of the sector address supplied from an error information bus B via a drive interface J when the error over signal I becomes active.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、制御装置に関し、特に、記憶装置へのリード
動作もしくはライト動作時にエラーを起こしたセクタア
ドレスが過去何回エラーを起こしたかという情報を制御
装置のハードウェア上に蓄積でき、ある回数以上エラー
の起こったセクタに対し、自動的に代替処理を行う制御
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a control device, and particularly to a control device that controls information on how many times a sector address that has caused an error during a read or write operation to a storage device has caused an error in the past. The present invention relates to a control device that can be accumulated on the hardware of the device and automatically performs alternative processing for sectors in which errors have occurred a certain number of times or more.

従来の技術 従来、この種の制御装置は、記憶装置へのI7−ド動作
又はライト動作時にエラーの起こったセクタアドレスを
ホストコンピュータへ通知し、制御装置内部ではエラー
の起こった回数を記憶しない方法をとっていた。
BACKGROUND ART Conventionally, this type of control device has a method of notifying a host computer of the sector address where an error has occurred during a read or write operation to a storage device, but not storing the number of times an error has occurred within the control device. was taking.

発明が解決しようとする課題 上述した従来の制御装置は、記憶装置へのリード動作又
はライト動作でエラーの起ったセクタアドレスをホスト
コンピュータへ通知し、制御装置内部では、エラーの起
こった回数を記憶しない方法をとっているので、後発の
不良アドレスであることを判断する場合に必要となる同
一セクタアドレスで起こったエラー回数を制御装置の内
部で持つことができず、自動的に代替処理を行えないと
いう欠点がある。
Problems to be Solved by the Invention The conventional control device described above notifies the host computer of the sector address where an error occurred in a read or write operation to a storage device, and internally records the number of times an error has occurred. Since the method is not memorized, the control device cannot keep track of the number of errors that have occurred at the same sector address, which is necessary to determine whether it is a subsequent defective address, and it automatically performs alternative processing. The drawback is that it cannot be done.

本発明は従来の上記実情に鑑みてなされたものであり、
従って本発明の目的は、従来の技術に内在する上記欠点
を解消することを可能とした新規な制御装置を提供する
ことにある。
The present invention has been made in view of the above-mentioned conventional situation,
SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a novel control device that makes it possible to eliminate the above-mentioned drawbacks inherent in the prior art.

課題を解決するための手段 上記目的を達成する為に1本発明に係る制御装置は、記
憶装置へのリード動作又はライト動作時にエラーを起こ
したセクタアドレス及びエラーの起こった回数を記憶す
る不揮発性調と、この不揮発性RAMへの書き込み動作
の制御及びこの不揮発性RAMに書かれたデータと制御
装置内部CPUから与、tられたエラーセクタアドレス
の比較動作を行うデータサーチ制御部と、同じセクタア
ドレスで起こったエラー回数をカウントするエラーカウ
ント制御部と、報告されたセクタアドレスを自動的に代
替処理する代替処理制御部とを具備して構成される。
Means for Solving the Problems In order to achieve the above object, the control device according to the present invention includes a non-volatile controller that stores the sector address where an error occurred and the number of times the error occurred during a read or write operation to a storage device. and a data search control unit that controls the write operation to this non-volatile RAM and compares the data written to this non-volatile RAM with the error sector address given from the internal CPU of the control device, and the same sector. It is configured to include an error count control section that counts the number of errors that have occurred in an address, and an alternative processing control section that automatically performs alternative processing on a reported sector address.

実施例 次に本発明をその好ましい一実捲例について図面を参照
して具体的に説明する。
EXAMPLE Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.

第1図はディスクコントローラとディスクドライブを用
いた本発明の一実抱例を示すブロック構成図である。
FIG. 1 is a block diagram showing an embodiment of the present invention using a disk controller and a disk drive.

第1図を参照するに、参照番号11はディスクコントロ
ーラ内部のCPUを示し、このCPUIIは通常はホス
トコンピュータとディスクドライブのインターフェース
制御を行う。
Referring to FIG. 1, reference numeral 11 indicates a CPU within the disk controller, and this CPU II normally controls the interface between the host computer and the disk drives.

12はデータサーチ制御部であり、ディスクコントロー
ラの内部CPUIIからCPUパスAを使ってエラーセ
クタアドレスが送られてくるとこれと等しいデータをエ
ラー情報バッファ不揮発性RAM 14内のデータから
探す。等しいデータがあった場合には、データサーチ制
御部12は調アドレス制御装置Gをアクティブにする。
Reference numeral 12 denotes a data search control unit, which searches data in the error information buffer non-volatile RAM 14 for data equivalent to the error sector address sent from the internal CPU II of the disk controller using CPU path A. If there is equal data, the data search control section 12 activates the key address control device G.

データサーチ制御部12は、以前に蓄積されたデータ内
に等しいデータがない場合には、エラーセクタアドレス
をエラー情報パツファ不揮発性RAM 14に譬き込み
、同時にエラーカウント数の初期値を書き込む。
If there is no equivalent data in the previously stored data, the data search control unit 12 writes the error sector address into the error information puffer nonvolatile RAM 14, and at the same time writes the initial value of the error count number.

13は、エラーカウント制御部であり、RAMアドレス
制御盾号装置アクティブの時にエラーカウント数を増加
させる。エラーカウント制御部13は。
Reference numeral 13 denotes an error count control unit, which increases the error count number when the RAM address control device is active. The error count control section 13 is.

エラーカウント数が決められた一定の値を越えたときに
、エラーオーバ言置Iをアクティブにする。
When the error count exceeds a predetermined value, an error over statement I is activated.

14はエラー情報バツファ不揮発性シNであり。14 is a non-volatile error information buffer.

エラー情報を蓄積する。RAM 14は、また、蓄積さ
れ九データの最後を知らせる最終データ1号Fの生成も
行う。
Accumulate error information. The RAM 14 also generates final data No. 1 F, which signals the end of nine stored data.

15は調アドレス制御部であり、調アドレス制御装置G
がアクティブになるか又は蓄積されたデータの最後であ
ることを示す最終データ1号Fがアクティブになるまで
調アドレスバスEに送るアドレス盾号を順次変化させる
15 is a key address control section, which is a key address control device G.
The address shield signal sent to the key address bus E is sequentially changed until the final data No. 1 F indicating the end of the stored data becomes active.

16は1代替処理制御部であり、ニラ−オー31号工が
アクティブになった時にエラー情報パスBから送られる
エラーセクタアドレスの代替処理を行う。
Reference numeral 16 denotes an alternative processing control unit, which performs alternative processing for the error sector address sent from the error information path B when the Nira-O No. 31 becomes active.

次に本発明の詳細な説明する。Next, the present invention will be explained in detail.

ディスクコントローラ内部CPUIIは、ディスクドラ
イブへのリード動作又はライト動作を行ったときにエラ
ーを発見したならば、エラーの起こったセクタアドレス
をCPUパスAを通じてデータサーチ制御部12へ送る
。データサーチ制御部12は。
If the disk controller internal CPU II finds an error when performing a read or write operation to the disk drive, it sends the sector address where the error occurred to the data search control unit 12 through the CPU path A. The data search control section 12 is.

CPUパスAから送られてきたエラーの起こったセクタ
アドレスとエラー情報パスBから送られてくるエラー情
報パツファ不揮発性RAM 14の内容とを比較し1等
しければRAMアドレス制御盾号装置アクティブにする
。RAMアドレス制御部15はRAMアドレス制御信号
GがアクティブになるまでRAMアドレスバスEに送る
アドレスは号を順次変化させる。
The sector address in which the error occurred sent from CPU path A is compared with the contents of the error information buffer nonvolatile RAM 14 sent from error information path B, and if they are equal to 1, the RAM address control device is activated. The RAM address control unit 15 sequentially changes the number of addresses sent to the RAM address bus E until the RAM address control signal G becomes active.

調アドレス制御官号Gがアクティブになった時に、RA
MアドレスバスEに送る値を保持する。
When key address control number G becomes active, RA
M Holds the value sent to address bus E.

エラーカウント制御部13は、RAMアドレス制御盾号
装置アクティブになった時に、エラーカウンタパスCの
内容を取り込み、カウント数を1増加させてエラー情報
パツファ不揮発性BAM 14に書き込む。これにより
、エラー情報パツファ不揮発性RAM14に既に登録さ
れていたエラーセクタアドレスでのエラー回数が記憶さ
れる。
When the RAM address control device becomes active, the error count control section 13 takes in the contents of the error counter path C, increments the count number by 1, and writes it into the error information buffer nonvolatile BAM 14. As a result, the number of errors at the already registered error sector address is stored in the error information packer nonvolatile RAM 14.

更新されたエラー回数が決められた一定の値を越えると
、エラーカウント制御部13はエラーオーバ層号工をア
クティブにする。代替処理制御部16は、エラーオーバ
1号■がアクティブになった時に、エラー情報パスBか
ら与えられるセクタアドレスをドライブインターフェー
スJを通じて代替処理を行なう。
When the updated number of errors exceeds a predetermined value, the error count control unit 13 activates the error overlayer function. The alternative processing control unit 16 performs alternative processing on the sector address given from the error information path B through the drive interface J when error over No. 1 becomes active.

また、RAMアドレス制御部15がRAMアドレス制御
信号Gがアクティブになる前にエラー情報パツファ不揮
発性RAM 14から送られる最終データ信号Fを検出
したならば、データエンド信号Hをアクティブにする。
Furthermore, if the RAM address control section 15 detects the final data signal F sent from the error information puffer nonvolatile RAM 14 before the RAM address control signal G becomes active, it makes the data end signal H active.

データサーチ制御部12は、データエンド信号Hがアク
ティブであることを検出すると、エラーを起こしたセク
タアドレスとエラーカウントの初期値「1」をエラー情
報バッファ不揮発性RAM 14に書き込む。これによ
り、末だ登録されていないエラーセクタアドレスが記憶
される。
When the data search control unit 12 detects that the data end signal H is active, it writes the sector address where the error occurred and the initial value "1" of the error count into the error information buffer nonvolatile RAM 14. As a result, error sector addresses that have not yet been registered are stored.

発明の詳細 な説明したように1本発明によれば、制御装置において
記憶装置にリード動作又はライト動作を行った時に、エ
ラーを起こしたセクタアドレス及びエラーの起こった回
数を記憶する不揮発性RAMと、この不揮発性RAMへ
の書き込み動作制御及びこの不揮発性RAMに書かれた
データと制御装置内部のCPUから与えられたエラーセ
クタアドレスの比較動作をするデータサーチ制御部と、
同一セクタアドレスで起こったエラー回数をカウントす
るエラーカウント制御部と、与えられたセクタアドレス
を自動的に代替処理を行う代替処理制御部とを有するこ
とにより、後発の不良セクタアドレスであることを判断
するのに必要な同一セクタアドレスで起こったエラー回
数を制御装置自身で判断することができ、自動的に代替
処理を行うことができる効果が得られる。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, a control device includes a non-volatile RAM that stores a sector address where an error occurs and the number of times an error occurs when a read operation or write operation is performed on a storage device. , a data search control unit that controls the write operation to the non-volatile RAM and compares the data written to the non-volatile RAM with the error sector address given from the CPU inside the control device;
By having an error count control unit that counts the number of errors that occur in the same sector address, and an alternative processing control unit that automatically performs alternative processing on a given sector address, it is determined whether it is a later defective sector address. The control device itself can determine the number of errors that have occurred at the same sector address, which is necessary for the process, and has the effect of automatically performing alternative processing.

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

第1図は本発明の一実捲例を示すブロック構成図である
FIG. 1 is a block diagram showing an example of the winding of the present invention.

Claims (1)

【特許請求の範囲】[Claims] 記憶装置において、リード動作またはライト動作時にエ
ラーを起したセクタアドレス及びエラーの起つた回数を
記憶する不揮発性RAMと、この不揮発性RAMへの書
き込み動作制御及びこの不揮発性RAMに書かれたデー
タと制御装置内部のCPUから与えられたエラーセクタ
アドレスの比較動作を行うデータサーチ制御部と、同一
セクタアドレスで起つたエラー回数をカウントするエラ
ーカウント制御部と、報告されたセクタアドレスを自動
的に代替処理する代替処理制御部とを有することを特徴
とした制御装置。
In a storage device, there is a non-volatile RAM that stores the sector address where an error occurred during a read or write operation and the number of times the error occurred, and a non-volatile RAM that controls write operations to this non-volatile RAM and data written to this non-volatile RAM. A data search control unit that compares error sector addresses given by the CPU inside the control device, an error count control unit that counts the number of errors that have occurred at the same sector address, and an automatic replacement of reported sector addresses. A control device comprising: an alternative processing control section for processing.
JP4717688A 1988-02-29 1988-02-29 Controller Pending JPH01220265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4717688A JPH01220265A (en) 1988-02-29 1988-02-29 Controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4717688A JPH01220265A (en) 1988-02-29 1988-02-29 Controller

Publications (1)

Publication Number Publication Date
JPH01220265A true JPH01220265A (en) 1989-09-01

Family

ID=12767767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4717688A Pending JPH01220265A (en) 1988-02-29 1988-02-29 Controller

Country Status (1)

Country Link
JP (1) JPH01220265A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697977B2 (en) 2000-07-21 2004-02-24 Fujitsu Limited Disc recording apparatus, method for replacing sector on recording disc, and recording disc

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697977B2 (en) 2000-07-21 2004-02-24 Fujitsu Limited Disc recording apparatus, method for replacing sector on recording disc, and recording disc

Similar Documents

Publication Publication Date Title
JPH02281474A (en) Auto changer device for storage medium
US7085086B2 (en) Apparatus and method for reducing errors in writing to a storage medium
JP2006107720A (en) Data storage apparatus data storing method
JPH01220265A (en) Controller
JPH0452725A (en) Fault recovering/processing method for storage device
JPS59177705A (en) Data recording system
JPH02278572A (en) Alternative block processing system
JPS6269314A (en) Controller for double writing on disk
JPH0528651A (en) Information recorder and reproducer
JP2861846B2 (en) Magnetic disk control system
JPS6013360A (en) Storage device
JPS6180564A (en) Alternate track write control circuit
JPS60243755A (en) Disc cache control system
JP2595316B2 (en) Alternate assignment processing method
JP2972365B2 (en) Access control method for magnetic tape storage
JPH0191375A (en) Magnetic disk controller
JPS603769A (en) Error recovery
JPH0644011A (en) Magnetic disk device
JPH071490B2 (en) Data write-back method
JPS62209774A (en) Alternate processing system for defective area in magnetic disk device
JPH04213109A (en) Magnetic disk controller
JPH0266777A (en) Disk data substituting processing method
JPS6171464A (en) Recording unit identification system
JPH0277927A (en) Control system for semiconductor disk subsystem
JPH04157670A (en) Magnetic disk drive