JPH0728604A - Disk device - Google Patents

Disk device

Info

Publication number
JPH0728604A
JPH0728604A JP17285393A JP17285393A JPH0728604A JP H0728604 A JPH0728604 A JP H0728604A JP 17285393 A JP17285393 A JP 17285393A JP 17285393 A JP17285393 A JP 17285393A JP H0728604 A JPH0728604 A JP H0728604A
Authority
JP
Japan
Prior art keywords
command
sense data
execution
initiator
storage area
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
JP17285393A
Other languages
Japanese (ja)
Inventor
Masatoshi Ichikawa
正敏 市川
Yukie Yamazaki
雪絵 山崎
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP17285393A priority Critical patent/JPH0728604A/en
Publication of JPH0728604A publication Critical patent/JPH0728604A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the execution speed of queued commands after a CA state is reset by providing a means which stores sense data corresponding to respective commands and a means which stores tags for making the sense data and commands to correspond to each other in a controller. CONSTITUTION:In a data RAM 201, a command execution table 101 by commands is provided in addition to an area 102 in which the sense data to be reported to an initiator are stored, and in the command execution table 101, a sense data storage area 304 and a tag storage area 301 are provided as means which store and hold the sense data corresponding to the respective commands and the tags for making the sense data and commands correspond to each other. Further, information detailing abnormality generated asynchronously with the execution of the commands is also stored in this sense data storage area 304. Then if abnormality is generated during command interpretation and execution and there is a command that is already received even while the sense data to be reported to the initiator is generated, stored, and held, preparations for command interpretation and execution are made.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、SCSI−2で他の装
置と接続されているディスク装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk device connected to another device by SCSI-2.

【0002】[0002]

【従来の技術】SCSI−2で他の装置と接続されたデ
ィスク装置では、Request Senseコマンド
を必須コマンドとしてサポートしており、各SCSI
ID毎に、転送するセンスデータを記憶するセンスデー
タ記憶領域を有する。センスデータは、イニシエータか
ら受信したコマンドを実行中に異常が発生しCheck
Conditionステータスでコマンドを終了する場
合、Check Conditionステータスを詳述
するデータである。ディスク装置は、コマンド実行中、
発生した異常に対するセンスデータを作成し、このコマ
ンドを送信したイニシエータのSCSI IDに対する
センスデータ記憶領域に、上記センスデータを記憶す
る。また、ディスク装置は上記イニシエータから次のコ
マンドを受信するまで、上記センスデータを保持する。
また、上記ディスク装置は、上記イニシエータからコマ
ンドを受信するまで他のイニシエータからコマンドを受
信しても、そのコマンドにはBUSYで応答する。この
状態をcontingentallegiance c
ondition(CA状態)と呼ぶ。また、SCSI
−2で他の装置と接続され、コマンドキューを有しタグ
ドキューイングをサポートしているディスク装置では、
このCA状態が解除されるまで、コマンドキューに存在
するコマンドの実行を行なわない。CA状態は、ひとつ
には上記イニシエータから次のコマンドを受信すること
で解除される。
2. Description of the Related Art A disk device connected to another device by SCSI-2 supports a Request Sense command as an indispensable command.
It has a sense data storage area for storing sense data to be transferred for each ID. The sense data indicates that an error occurred while the command received from the initiator was being executed.
It is data that details the Check Condition status when the command ends in the Condition status. The disk device is
Sense data for the generated abnormality is created, and the sense data is stored in the sense data storage area for the SCSI ID of the initiator that transmitted this command. Also, the disk device holds the sense data until it receives the next command from the initiator.
Even if the disk device receives a command from another initiator until it receives a command from the initiator, it responds to the command with BUSY. This state is controlled by contenting c
It is called an ON state (CA state). Also, SCSI
-2, which is connected to another device, has a command queue and supports tagged queuing,
Commands existing in the command queue are not executed until the CA state is released. The CA state is released, in part, by receiving the next command from the initiator.

【0003】また、SCSI−2で他の装置と接続さ
れ、スピンドル同期をサポートしているディスク装置で
は、スピンドルを一旦同期した後同期が外れた場合、全
イニシエータに対してUnit attention
conditionとし、センスデータとしてUnit
attention Sense Key、Spin
dols not Synchronizedアディシ
ョナルセンスコードを生成する。
Further, in a disk device which is connected to another device by SCSI-2 and supports spindle synchronization, when the spindle is once synchronized and then out of synchronization, the unit attachment to all the initiators is performed.
condition and Unit as sense data
Attention Sense Key, Spin
Generate the dols not Synchronized additional sense code.

【0004】上記のようなSCSI−2で他の装置と接
続され、コマンドキューを有し、スピンドル同期をサポ
ートしている従来のディスク装置では、各SCSI I
D毎に1つずつのセンスデータを生成、保持している
が、保持しているセンスデータがCheck Cond
ition Statusで終了したコマンドに対する
データでなくCA状態中に発生した異常を詳述するデー
タであることがあった。
In a conventional disk device which is connected to another device by SCSI-2 as described above, has a command queue, and supports spindle synchronization, each SCSI I
One sense data is generated and held for each D, but the held sense data is Check Cond.
The data may not be the data for the command ended by the "Status Status" but the data for detailing the abnormality that occurred during the CA state.

【0005】例えば、従来のディスク装置で、あるイニ
シエータからREADコマンドを受信し、このREAD
コマンドを実行中、CRCエラーでアクセスする該当I
Dが検出できなかった場合、上記ディスク装置はこのR
EADコマンドをCheckCondition St
atusで終了させ、センスデータとしてMedium
Error Sense Key、ID CRC E
rrorアディショナルセンスコードを生成し、上記イ
ニシエータから次のコマンドを受信するまで保持する。
また、上記ディスク装置は、READコマンドをChe
ck Condition Statusで終了させた
後、CA状態になる。ところがCA状態中に、一旦同期
していたスピンドルモータの同期が外れると、上記ディ
スク装置は、上記イニシエータに対して生成保持してい
たセンスデータを無効にして、全イニシエータに対して
Unit attention conditionと
し、センスデータとしてUnit attention
Sense Key、Spindols not S
ynchronizedアディショナルセンスコードを
生成、保持する。上記READコマンドがCheck
Condition Statusで終了したため、上
記READコマンドを送信した上記イニシエータは、上
記ディスク装置にRequest Senseコマンド
を送信しセンスデータの転送を要求する。しかし、ディ
スク装置が転送するセンスデータは、READコマンド
のCheck Condition Statusを詳
述するものではなく、CA状態中に発生した異常を詳述
するデータになっていた。
For example, a conventional disk device receives a READ command from a certain initiator, and
Corresponding I to access with CRC error while executing command
If D is not detected, the above disk device uses this R
Set the EAD command to Check Condition St
end with atus, Medium as sense data
Error Sense Key, ID CRC E
The error additional sense code is generated and held until the next command is received from the initiator.
In addition, the above disk device sends a READ command to the Che command.
After terminating with ck Condition Status, the state becomes CA. However, in the CA state, if the once synchronized spindle motor goes out of synchronization, the disk device invalidates the sense data generated and held for the initiators and sets all the initiators as unit attention condition. , Unit attention as sense data
Sense Key, Spindols not S
Generates and retains the synchronized additional sense code. The above READ command is Check
Since it ended in Condition Status, the initiator that has transmitted the READ command transmits a Request Sense command to the disk device to request transfer of sense data. However, the sense data transferred by the disk device does not detail Check Condition Status of the READ command, but is data detailing an abnormality that occurred during the CA state.

【0006】また、上記従来のディスク装置では各SC
SI ID毎に1つずつのセンスデータのみを生成、保
持しているため、CA状態中にコマンドキューに存在す
るコマンドの解釈及び実行準備を行なっていなかった。
Further, in the above conventional disk device, each SC
Since only one sense data is generated and held for each SI ID, the command existing in the command queue in the CA state is not interpreted and prepared for execution.

【0007】これについては、draft propo
sed American National Sta
ndard for information sys
tems−SCSI−2(March9,1990)
p.6−16、pp.7−41 − 7−56、日立磁
気ディスク装置SCSIインタフェース仕様書(バージ
ョン5)pp.5−28〜5−55、6−1〜6−31
等に記載されている。
Regarding this, draft propo
sed American National Sta
ndard for information sys
tems-SCSI-2 (March 9, 1990)
p. 6-16, pp. 7-41-7-56, Hitachi magnetic disk device SCSI interface specification (version 5) pp. 5-28 to 5-55, 6-1 to 6-31
Etc.

【0008】[0008]

【発明が解決しようとする課題】SCSI−2で他の装
置と接続され、コマンドキューを有し、スピンドル同期
機能を有する従来のディスク装置では、各イニシエータ
ごとに1つずつのセンスデータのみを生成、保持してい
た。このため、従来のディスク装置では、イニシエータ
からのコマンドを実行中に異常が発生し、Check
Condition Statusでコマンドを終了さ
せ、センスデータを生成、保持し、CA状態となった後
にディスクドライブで異常が発生するとセンスデータを
更新してしまい、センスデータは、上記Check C
ondition Statusを詳述するデータでな
くなっていた。
In a conventional disk device which is connected to another device by SCSI-2, has a command queue, and has a spindle synchronization function, only one sense data is generated for each initiator. I was holding. Therefore, in the conventional disk device, an abnormality occurs while executing the command from the initiator, and the Check
The command is terminated by Condition Status, the sense data is generated and held, and if an error occurs in the disk drive after entering the CA state, the sense data is updated. The sense data is the Check C
It is no longer the data that details the ondition status.

【0009】また、CA状態中にコマンドキューに存在
するコマンドの解釈及び実行準備で異常が発生してもセ
ンスデータを更新してしまうため、従来のディスク装置
では、CA状態中にコマンドキューに存在するコマンド
の解釈及び実行準備を行なわなかった。このため、CA
状態解除後にコマンドキューに存在するコマンドの実行
時間に問題があった。
Further, since the sense data is updated even if an error occurs in the interpretation and execution preparation of the command existing in the command queue in the CA state, the conventional disk device exists in the command queue in the CA state. Command was not interpreted and prepared for execution. Therefore, CA
There was a problem with the execution time of the commands that existed in the command queue after the status was released.

【0010】本発明が解決しようとする課題は、SCS
I−2で他の装置と接続され、コマンドキューを有し、
スピンドル同期機能を有するディスク装置で、CA状態
中にディスク装置内で異常が発生しても、Check
Condition Statusで終了したコマンド
を送信したイニシエータに対してこのCheck Co
ndition Statusを詳述するセンスデータ
を保持し、転送する手段と、CA状態中に発生した異
常、異常に対するセンスデータを記憶保持する手段、及
びディスク装置を提供することにある。また、CA状態
中にコマンドキューに存在するコマンドの解釈、実行準
備を行ない、CA状態解除後にキューイングされている
コマンドを実行速度を向上させる手段及びディスク装置
を提供することにある。
The problem to be solved by the present invention is that the SCS
I-2 is connected to other devices, has a command queue,
In a disk device that has a spindle synchronization function, even if an error occurs in the disk device during the CA state, Check
This Check Co is sent to the initiator that has sent the command that was completed in Condition Status.
An object of the present invention is to provide a means for holding and transferring sense data which details the status status, a means for storing and holding an abnormality occurring in the CA state, sense data for the abnormality, and a disk device. Another object of the present invention is to provide a means and a disk device for interpreting and preparing for execution of commands existing in the command queue in the CA state, and improving the execution speed of commands queued after the CA state is released.

【0011】[0011]

【課題を解決するための手段】上記課題を解決するた
め、SCSI−2で他の装置と接続され、スピンドル同
期機能を有し、SCSI−2を制御する手段と、イニシ
エータから受信したコマンドを解釈、実行するコントロ
ーラと、データを記録再生するドライブを有し、さら
に、上記コントローラ内に各イニシエータ毎にコマンド
を記憶するコマンドキューと各イニシエータ毎に報告す
るセンスデータを1つずつ記憶する手段を有するディス
ク装置で、上記コントローラ内に、各コマンドに対応し
たセンスデータを記憶する手段及びセンスデータとコマ
ンドとを対応づけるタグを記憶する手段を新たに設け
た。さらに、コマンド実行とは非同期に発生した異常及
び異常を詳述する情報を記憶する手段を設けた。
In order to solve the above-mentioned problems, means for controlling the SCSI-2, which is connected to another device by SCSI-2, has a spindle synchronization function, and interprets the command received from the initiator. , A controller for executing and a drive for recording / reproducing data, and further, in the controller, a command queue for storing a command for each initiator and a means for storing one sense data for reporting for each initiator. In the disk device, a means for storing sense data corresponding to each command and a means for storing a tag associating the sense data with the command are newly provided in the controller. Further, a means for storing an abnormality that occurs asynchronously with the command execution and information that details the abnormality is provided.

【0012】[0012]

【作用】上記コントローラは、SCSI−2を制御する
手段を介してイニシエータからコマンドを受信し、イニ
シエータに対応する上記コマンドキューにコマンドを記
憶する。上記コントローラは、コマンドキューに存在す
るコマンドを順番に実行し、コマンド実行中に異常が発
生するとこのコマンドをCheck Conditio
n Statusで終了させ、Check Condi
tion Statusを詳述するセンスデータを生成
し、このイニシエータに対応するセンスデータを記憶す
る手段に記憶、保持し、ディスク装置をCA状態とす
る。上記コントローラは、対応するイニシエータからコ
マンドで転送要求があれば、SCSI−2を制御する手
段を介して上記センスデータをイニシエータに転送す
る。上記コントローラは、ひとつには上記イニシエータ
から次のコマンドを受信するとCA状態を解除する。上
記コントローラは、CA状態中も、上記コマンドキュー
にコマンドが存在すればそのコマンドを解釈し、実行準
備を行なう。コマンド解釈及び実行準備中に異常が発生
すると異常を詳述するセンスデータを生成し、コマンド
に対応したセンスデータを記憶する手段に記憶する。ま
た、このセンスデータと異常が発生したコマンドとの対
応づけるタグを生成し、上記センスデータとコマンドと
を対応づけるタグを記憶する手段に記憶する。上記コン
トローラは、CA状態を解除した後、CA状態中に解
釈、実行準備したコマンドを実行する。もし、コマンド
解釈、実行準備中に異常が発生していたら、コマンドを
Check Condition Statusで終了
させ、上記センスデータキューを参照し、上記タグを記
憶する手段に記憶しているタグに従いCheck Co
ndition Statusを詳述するセンスデータ
をイニシエータに報告するセンスデータとして記憶、保
持する。また、上記コントローラはディスク装置をCA
状態とする。
The controller receives a command from the initiator via the means for controlling SCSI-2, and stores the command in the command queue corresponding to the initiator. The controller sequentially executes the commands existing in the command queue, and if an error occurs during command execution, this command is executed by Check Condition
End with n Status, Check Condi
The sense data that details the state status is generated, and the sense data corresponding to this initiator is stored and held in the storing means, and the disk device is set to the CA state. The controller transfers the sense data to the initiator via the means for controlling SCSI-2 when the transfer request is issued from the corresponding initiator by a command. In part, the controller releases the CA state when it receives the next command from the initiator. Even in the CA state, the controller interprets the command if there is a command in the command queue and prepares for execution. When an abnormality occurs during command interpretation and preparation for execution, sense data that details the abnormality is generated and stored in the unit that stores the sense data corresponding to the command. Further, a tag for associating the sense data with the command in which the abnormality has occurred is generated and stored in the means for storing the tag for associating the sense data with the command. After releasing the CA state, the controller executes the command that is interpreted and prepared for execution during the CA state. If an error occurs during command interpretation or execution preparation, the command is terminated by Check Condition Status, the sense data queue is referred to, and the Check Coding is performed according to the tag stored in the means for storing the tag.
The sense data detailing the Ndition Status is stored and held as sense data to be reported to the initiator. In addition, the controller controls the disk device to the CA.
State.

【0013】また、上記コントローラは、コマンド実行
とは非同期な異常が発生すると、異常及び異常を詳述す
る情報を生成し、上記非同期に発生した異常及び異常を
詳述する情報を記憶する手段に記憶する。
Further, the controller, when an abnormality occurs asynchronously with the command execution, generates information detailing the abnormality and the abnormality, and stores in the means which stores the abnormality detailing the asynchronous and the information detailing the abnormality. Remember.

【0014】コマンド実行とは非同期な異常が発生した
とき、本ディスク装置がコマンド受信待ち状態(idl
e状態)であれば、次にイニシエータから受信したコマ
ンドをCheck Condition Status
で終了させ、センスデータとして、非同期に発生した異
常及び異常を詳述する情報を記憶する手段に記憶保持し
ている情報をイニシエータに報告するセンスデータを記
憶する手段に記憶する。
When an abnormality occurs that is asynchronous with the command execution, this disk drive waits for command reception (idl
(e state), the command received from the initiator is checked next to Check Condition Status.
Then, the sense data is stored in the means for storing the sense data for reporting to the initiator as the sense data.

【0015】コマンド実行とは非同期な異常が発生した
とき、本ディスク装置がコマンド実行中であれば、実行
中のコマンドをCheck Condition St
atusで終了させ、センスデータとして、非同期に発
生した異常及び異常を詳述する情報を記憶する手段に記
憶保持している情報をイニシエータに報告するセンスデ
ータを記憶する手段に記憶する。
When an error occurs that is asynchronous with the command execution, if the disk device is executing the command, the command being executed is checked by Check Condition St
The information stored in the means for storing the abnormality that occurred asynchronously and the information detailing the abnormality is stored as sense data in the means for storing the sense data for reporting to the initiator.

【0016】コマンド実行とは非同期な異常が発生した
とき、本ディスク装置がCA状態であれば、上記コント
ローラはCA状態解除後イニシエータから最初に受信し
たコマンドをCheck Condition Sta
tusで終了させ、センスデータとして、非同期に発生
した異常及び異常を詳述する情報を記憶する手段に記憶
保持している情報をイニシエータに報告するセンスデー
タを記憶する手段に記憶する。
When an abnormality asynchronous with the command execution occurs and the present disk device is in the CA state, the above controller checks the command first received from the initiator after the CA state is released by the Check Condition Status.
The process is terminated by tus, and the sense data is stored in the unit that stores sense information for reporting to the initiator the information that is stored and held in the unit that stores the abnormality that occurred asynchronously and the information that details the abnormality.

【0017】本発明によれば、ディスク装置でCA状態
中に異常が発生しても、異常の発生したコマンドに対す
るセンスデータが更新されることがない。また、CA状
態中に発生した異常を詳述するセンスデータも記憶保持
される。さらに、ディスク装置は、CA状態中も、コマ
ンドキューに存在するコマンドの解釈、実行準備が可能
である。
According to the present invention, even if an abnormality occurs in the disk device in the CA state, the sense data for the command in which the abnormality has occurred is not updated. In addition, sense data that details the abnormality that occurred during the CA state is also stored and held. Further, the disk device can interpret the command existing in the command queue and prepare for execution even in the CA state.

【0018】[0018]

【実施例】本発明の一実施例を、図1から図8を用いて
説明する。図2は、ディスク装置の構成図である。ディ
スク装置212は、SCSI−IIでホストコンピュータ
213(イニシエータ)と接続されている。ディスク装
置212は、ディスクドライブ209と、SCSIコン
トローラ203、データバッファ204、ハードディス
クコントローラ205よりなるデータ処理系211と、
信号処理系206と、サーボ系207とスピンドルモー
タ制御回路208、これらすべてを統括制御するマイク
ロプロセッサ202、及びデータRAM201で構成さ
れる。マイクロプロセッサ202は実行するプログラム
を記憶しているプログラムROM210を内部に有す
る。マイクロプロセッサ202は、SCSIコントロー
ラ203とハードディスクコントローラ203とサーボ
系207及びスピンドルモータ制御回路208からそれ
ぞれ割込み信号を受ける。データRAM201は、マイ
クロプロセッサ202がプログラムを実行するときに必
要なデータを記憶、保持しており、マイクロプロセッサ
202からアクセス可能である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a block diagram of the disk device. The disk device 212 is connected to the host computer 213 (initiator) by SCSI-II. The disk device 212 includes a disk drive 209, a data processing system 211 including a SCSI controller 203, a data buffer 204, and a hard disk controller 205.
It is composed of a signal processing system 206, a servo system 207, a spindle motor control circuit 208, a microprocessor 202 that controls all of these, and a data RAM 201. The microprocessor 202 has a program ROM 210 inside which stores a program to be executed. The microprocessor 202 receives interrupt signals from the SCSI controller 203, hard disk controller 203, servo system 207, and spindle motor control circuit 208, respectively. The data RAM 201 stores and holds data required when the microprocessor 202 executes a program, and is accessible from the microprocessor 202.

【0019】本実施例では、このディスク装置212
に、イニシエータに報告するセンスデータを記憶する領
域とは別に、コマンド毎にコマンド実行テーブルを設
け、各コマンドに対応するセンスデータ、センスデータ
とコマンドを対応づけるタグを記憶保持する手段とし
て、コマンド実行テーブル内にセンスデータ記憶領域と
タグ記憶領域を設けた。コマンドの実行に非同期に発生
した異常を詳述する情報もコマンド実行テーブル内のセ
ンスデータ記憶領域に記憶する。コマンド実行テーブル
はデータRAM201内に設ける。
In this embodiment, this disk device 212
In addition to the area for storing the sense data to be reported to the initiator, a command execution table is provided for each command, and the command execution table is provided as a means for storing and holding the sense data corresponding to each command and the tag for associating the sense data with the command. A sense data storage area and a tag storage area are provided in the table. Information that details an abnormality that occurred asynchronously with the execution of the command is also stored in the sense data storage area in the command execution table. The command execution table is provided in the data RAM 201.

【0020】図1は、データRAM201の詳細を表す
図である。データRAM201は、コマンドキュー10
3、センスデータ記憶領域102、コマンド実行テーブ
ル記憶領域101を有する。コマンドキュー103、セ
ンスデータ記憶領域a102は、それぞれイニシエータ
毎に分割され管理されている。コマンド実行テーブル1
01はコマンドごとのコマンド実行テーブル101aに
分割され管理されている。コマンドキュー103は、S
CSIコントローラ203を介してイニシエータから受
信したコマンドを記憶する領域である。センスデータ記
憶領域a102は、Check Condition
Statusで終了したコマンドに対してCheck
Condition Statusを詳述するセンスデ
ータをイニシエータごとに記憶する領域である。コマン
ド実行テーブル101aは、コマンドの実行状況、実行
ステータス及び実行ステータスを詳述するセンスデータ
を記憶するテーブルである。図8は、コマンドキュー1
03のうちで1つのイニシエータに対するコマンドキュ
ーの詳細を示す。各イニシエータに対するコマンドキュ
ーは、CDB記憶領域a801、タグ記憶領域a802
をひとつの単位とする。CDB記憶領域a801は、こ
のイニシエータから受信したコマンドを記憶する領域で
ある。タグ記憶領域a802は、コマンドに付随してイ
ニシエータから受信したタグ情報を記憶する領域であ
る。
FIG. 1 is a diagram showing details of the data RAM 201. The data RAM 201 has a command queue 10
3, a sense data storage area 102, and a command execution table storage area 101. The command queue 103 and the sense data storage area a102 are divided and managed for each initiator. Command execution table 1
01 is divided and managed in the command execution table 101a for each command. The command queue 103 is S
This area stores the command received from the initiator via the CSI controller 203. The sense data storage area a102 is a Check Condition.
Check for commands finished with Status
This is an area in which sense data that details the Condition Status is stored for each initiator. The command execution table 101a is a table that stores command execution status, execution status, and sense data that details the execution status. FIG. 8 shows the command queue 1
Details of the command queue for one of the 03 are shown. The command queue for each initiator is a CDB storage area a801 and a tag storage area a802.
Is one unit. The CDB storage area a801 is an area for storing the command received from this initiator. The tag storage area a802 is an area for storing the tag information received from the initiator along with the command.

【0021】図3は、コマンド実行テーブル101の詳
細を示す。コマンド実行テーブル101は、CDB記憶
領域b305、SCSI ID記憶領域306、タグ記
憶領域b301、実行フラグ記憶領域302、実行ステ
ータス記憶領域303、センスデータb304からなる
セットをひとつの単位とする。CDB記憶領域b305
は、コマンドキュー103から取り出したコマンドを記
憶する領域である。SCSI ID記憶領域306は、
イニシエータのSCSI IDが記憶される領域で、C
DB記憶領域b305に記憶されているコマンドを送信
したイニシエータのSCSI IDが記憶される。タグ
記憶領域b301は、CDB記憶領域b305に記憶さ
れているコマンドに付随してイニシエータから受信した
タグ情報を記憶する領域であり、コマンドキュー103
からコマンドを取り出すときにタグ記憶領域a802の
情報を記憶する。実行フラグ記憶領域302は、CDB
記憶領域b305に記憶されているコマンドの実行状況
を示すフラグを記憶する領域である。図4は、実行フラ
グ記憶領域302の詳細を示す図である。実行フラグ記
憶領域302は、実行順記憶領域401、コマンド解釈
終了ビット402、シーク起動終了ビット403、ハー
ドディスクコントローラ設定終了ビット404、転送終
了ビット405を有する。実行ステータス記憶領域30
3は、上記タグで対応づけられるコマンドの異常の発生
等コマンド実行ステータスを記憶する領域である。CD
B記憶領域b305に記憶されているコマンドの解釈、
実行準備中に発生した異常に対するセンスデータを記憶
する領域である。
FIG. 3 shows the details of the command execution table 101. The command execution table 101 has a set including a CDB storage area b305, a SCSI ID storage area 306, a tag storage area b301, an execution flag storage area 302, an execution status storage area 303, and sense data b304 as one unit. CDB storage area b305
Is an area for storing the command extracted from the command queue 103. The SCSI ID storage area 306 is
In the area where the SCSI ID of the initiator is stored, C
The SCSI ID of the initiator that transmitted the command stored in the DB storage area b305 is stored. The tag storage area b301 is an area for storing the tag information received from the initiator along with the command stored in the CDB storage area b305, and is the command queue 103.
The information in the tag storage area a 802 is stored when the command is retrieved from the. The execution flag storage area 302 is a CDB.
This is an area for storing a flag indicating the execution status of the command stored in the storage area b305. FIG. 4 is a diagram showing details of the execution flag storage area 302. The execution flag storage area 302 has an execution order storage area 401, a command interpretation end bit 402, a seek start end bit 403, a hard disk controller setting end bit 404, and a transfer end bit 405. Execution status storage area 30
Reference numeral 3 is an area for storing a command execution status such as the occurrence of a command abnormality associated with the tag. CD
Interpretation of commands stored in the B storage area b305,
This area stores sense data for an abnormality that occurred during preparation for execution.

【0022】次にマイクロプロセッサ202の動作につ
いて説明する。マイクロプロセッサ202は、SCSI
コントローラ203を介してSCSI−IIバスを制御し
イニシエータからコマンドを受信し、コマンドの実行を
制御する。マイクロプロセッサ202は、サーボ系20
7を介しディスクドライブ209のヘッドを目的の位置
に位置決めし、ハードディスクコントローラ205を介
し、ディスクドライブ209のデータ記録再生を行い、
SCSIコントローラ203を介し、イニシエータとの
データ転送を行う。また、マイクロプロセッサ202
は、SCSIコントローラ203を介し、センスデータ
とメッセージをイニシエータに送信し、コマンド終了を
報告する。SCSIコントローラ203は、SCSI−
IIバスのフェーズ遷移、イニシエータからのコマンドの
受信を、割込み信号を出力することでマイクロプロセッ
サ202に報告する。ハードディスクコントローラ20
5は、データの読み出し等、ディスクドライブ209に
対する所定の処理が終了したことを、割込み信号を出力
することでマイクロプロセッサ202に報告する。サー
ボ系207は、ディスクドライブ209のヘッドを該当
の位置に位置決め完了したこと及び位置決め異常を割込
み信号を出力することでマイクロプロセッサ202に報
告する。本実施例では、ディスク装置212はスピンド
ル同期機能を有しており、スピンドル同期外れ異常が、
コマンドの実行とは非同期に発生する。スピンドルモー
タ制御回路208は、スピンドル同期外れ異常を、割込
み信号を出力することでマイクロプロセッサ202に報
告する。
Next, the operation of the microprocessor 202 will be described. The microprocessor 202 is a SCSI
It controls the SCSI-II bus via the controller 203, receives commands from the initiator, and controls command execution. The microprocessor 202 uses the servo system 20.
The head of the disk drive 209 is positioned at a desired position via 7, and data recording / reproduction of the disk drive 209 is performed via the hard disk controller 205.
Data transfer with the initiator is performed via the SCSI controller 203. Also, the microprocessor 202
Sends sense data and a message to the initiator via the SCSI controller 203 and reports the command end. The SCSI controller 203 is SCSI-
The II bus phase transition and the reception of a command from the initiator are reported to the microprocessor 202 by outputting an interrupt signal. Hard disk controller 20
Reference numeral 5 reports to the microprocessor 202 that the predetermined processing such as data reading has been completed for the disk drive 209 by outputting an interrupt signal. The servo system 207 reports to the microprocessor 202 that positioning of the head of the disk drive 209 has been completed at the corresponding position and positioning error is output by outputting an interrupt signal. In this embodiment, the disk device 212 has a spindle synchronization function, and if the spindle out-of-sync error occurs,
It occurs asynchronously with the command execution. The spindle motor control circuit 208 reports the spindle out-of-sync error to the microprocessor 202 by outputting an interrupt signal.

【0023】このマイクロプロセッサ202の処理につ
いて説明する。図5は、マイクロプロセッサの処理の概
略フローである。コマンドがマイクロプロセッサ202
は、以下の処理を行なう。
The processing of the microprocessor 202 will be described. FIG. 5 is a schematic flow of processing of the microprocessor. Command is microprocessor 202
Performs the following processing.

【0024】STEP1:データRAM201初期化 パワーオンリセット時、データRAM201を初期化す
る。
STEP 1: Initialization of data RAM 201 At power-on reset, the data RAM 201 is initialized.

【0025】STEP2:ディスクドライブ209初期
化 スピンドルモータ制御回路208を介してディスクドラ
イブ209内のスピンドルモータの回転を開始させ、ス
ピンドルモータの回転数を定回転にした後、サーボ系2
07を介してディスクドライブ209のヘッドをホーム
ポジションに位置決めする。また、サーボ系207から
の割込みを許可する。
STEP 2: Initialize the disk drive 209. After starting the rotation of the spindle motor in the disk drive 209 via the spindle motor control circuit 208 to make the rotation speed of the spindle motor constant, the servo system 2
The head of the disk drive 209 is positioned at the home position via 07. Also, the interrupt from the servo system 207 is permitted.

【0026】STEP3:データ処理系211、信号処
理系206初期化 SCSIコントローラ203、ハードディスクコントロ
ーラ205及び信号処理系206を初期化する。SCS
Iコントローラ203を初期化し、ディスク装置212
をイニシエータの要求に応答可能とする。SCSIコン
トローラ203は、SCSI−2バスのプロトコルに従
いイニシエータからコマンドを受信すると割込み信号を
出力する。
STEP 3: Initialize the data processing system 211, the signal processing system 206. The SCSI controller 203, the hard disk controller 205 and the signal processing system 206 are initialized. SCS
The I controller 203 is initialized and the disk device 212
To respond to the request of the initiator. The SCSI controller 203 outputs an interrupt signal when it receives a command from the initiator according to the SCSI-2 bus protocol.

【0027】STEP4:SCSIコントローラ203
からの割込み許可 SCSIコントローラ203からの割込みを許可する。
SCSIコントローラ203を介し、イニシエータから
の要求に応答を開始する。
STEP 4: SCSI controller 203
Allow interrupt from SCSI controller 203.
It initiates a response to the request from the initiator via the SCSI controller 203.

【0028】STEP5:イニシエータからのコマンド
待ち イニシエータからコマンドを受信すると、SCSIコン
トローラ203が割込み信号をマイクロプロセッサ20
2に出力する。マイクロプロセッサは、割込み処理で、
イニシエータに対応したコマンドキュー103にコマン
ドとコマンドに付随するタグを記憶する。
STEP 5: Waiting for command from initiator When a command is received from the initiator, the SCSI controller 203 sends an interrupt signal to the microprocessor 20.
Output to 2. The microprocessor handles interrupts,
The command and the tag attached to the command are stored in the command queue 103 corresponding to the initiator.

【0029】STEP6:コマンド解釈 コマンドキュー103にコマンドが存在すれば、順番に
従ってCDB記憶領域a801からコマンドを取り出
し、コマンド実行テーブル101のCDB記憶領域b3
05に記憶する。さらに、イニシエータのSCSI I
DをSCSI ID記憶領域306に記憶する。およ
び、タグ記憶領域a802の値をタグ記憶領域b301
に記憶する。また、このコマンドを解釈する。解釈後、
実行フラグ記憶領域302のコマンド解釈終了ビット4
02に1をセットする。並びにコマンドの実行順を実行
順記憶領域401に記憶する。
STEP 6: Command Interpretation If a command exists in the command queue 103, the command is fetched from the CDB storage area a 801 in order, and the command execution table 101 CDB storage area b 3 is fetched.
Store in 05. In addition, the initiator SCSI I
Store D in the SCSI ID storage area 306. Also, the value of the tag storage area a802 is set to the tag storage area b301.
Remember. It also interprets this command. After interpretation,
Command interpretation end bit 4 of the execution flag storage area 302
Set 1 to 02. The command execution order is stored in the execution order storage area 401.

【0030】STEP7:コマンド解釈エラー判定 コマンド解釈の結果、コマンドが識別でき、解釈したコ
マンドに異常がなければ、STEP8を実行する。コマ
ンド解釈の結果、解釈したコマンドに異常があれば、S
TEP9bを実行する。
STEP 7: Command Interpretation Error Judgment As a result of command interpretation, if the command can be identified and the interpreted command is normal, STEP 8 is executed. As a result of command interpretation, if the interpreted command is abnormal, S
Execute TEP9b.

【0031】STEP8:各コマンド実行処理 各コマンドに対する処理を行なう。実行に際し、実行フ
ラグ記憶領域302のシーク起動終了ビット403、ハ
ードディスクコントローラ設定終了ビット404、転送
終了ビット405を適宜設定する。
STEP 8: Process for executing each command Process for each command is executed. Upon execution, the seek start end bit 403, the hard disk controller setting end bit 404, and the transfer end bit 405 of the execution flag storage area 302 are set appropriately.

【0032】STEP9:コマンド実行エラー判定とス
テータスの作成 コマンドの解釈、実行が正常に終了した場合、Good
Statusを生成する。コマンド解釈、実行中に異
常が発生した場合、Check Condition
Statusを生成する。生成したステータスを実行ス
テータス記憶領域303に記憶する。
STEP 9: Judgment of command execution error and creation of status When the interpretation and execution of the command are completed normally, Good
Generate Status. If an error occurs during command interpretation or execution, Check Condition
Generate Status. The generated status is stored in the execution status storage area 303.

【0033】STEP10:コマンド実行終了処理 STEP9で生成したステータスとCommand C
omplete Messageをイニシエータに送出
し、コマンドを終了させる。Good Statusで
終了した場合、コマンド実行テーブル101に未実行の
コマンドが存在すればSTEP8に戻る。未実行のコマ
ンドが存在しなければ、STEP5に戻る。
STEP 10: Command execution end processing The status generated in STEP 9 and Command C
Sends complete message to the initiator and terminates the command. If the command has ended in Good Status and there is an unexecuted command in the command execution table 101, the process returns to STEP 8. If there is no unexecuted command, the process returns to STEP5.

【0034】Check Condition Sta
tusで終了した場合、STEP11以降を実行する。
Check Condition Sta
When the processing ends in tus, STEP11 and subsequent steps are executed.

【0035】STEP11:センスデータの作成 Check Condition Statusを詳述
するセンスデータを作成し、コマンド実行テーブル10
1のセンスデータ記憶領域b304に記憶する。
STEP 11: Creation of Sense Data Sense data that details Check Condition Status is created, and the command execution table 10 is created.
1 sense data storage area b304.

【0036】STEP12:CA状態 STEP11で生成したセンスデータをセンスデータ記
憶領域a102のこのイニシエータに対応する領域に記
憶する。
STEP 12: CA state The sense data generated in STEP 11 is stored in the area of the sense data storage area a 102 corresponding to this initiator.

【0037】ディスク装置212をCA状態とする。C
A状態の間ディスク装置212はセンスデータ記憶領域
a102に記憶しているセンスデータを保持する。詳細
は後述するが、マイクロプロセッサ202はCA状態中
もコマンドキュー103にコマンドが存在すれば、コマ
ンドの解釈、実行準備を行なう。
The disk device 212 is set to the CA state. C
During the A state, the disk device 212 holds the sense data stored in the sense data storage area a102. As will be described in detail later, if there is a command in the command queue 103 even in the CA state, the microprocessor 202 interprets the command and prepares for execution.

【0038】STEP13:CA状態の解除 CA状態は、ひとつには、Check Conditi
on Statusで終了させたコマンドを送信したイ
ニシエータが、次のコマンドをこのディスク装置212
に対して送信することで解除される。マイクロプロセッ
サ202は、SCSIコントローラ203を介し、この
イニシエータからのコマンドを受信することでCA状態
を解除し、CA状態の間保持していたセンスデータを無
効とする。CA状態を解除した後、コマンド解釈が終了
しているコマンドがあれば、STEP8に戻る。コマン
ド解釈が終了しているコマンドがなければ、STEP6
に戻る。
STEP 13: Release of CA State One of the CA states is Check Conditi.
The initiator that has sent the command terminated by on Status sends the next command to the disk device 212.
It is canceled by sending to. The microprocessor 202 receives the command from this initiator via the SCSI controller 203 to release the CA state, and invalidates the sense data held during the CA state. After the CA state is released, if there is a command whose command interpretation is completed, the process returns to STEP8. If there is no command whose command interpretation has been completed, STEP6
Return to.

【0039】次に、CA状態でのマイクロプロセッサ2
02の処理を説明する。本実施例では、マイクロプロセ
ッサ202は、CA状態中コマンド実行準備としてシー
ク動作起動とハードディスクコントローラ205の設定
を行なう。図6は、CA状態でのマイクロプロセッサ2
02の処理のフローチャートである。マイクロプロセッ
サ202は、CA状態中以下の処理を行なう。
Next, the microprocessor 2 in the CA state
The processing of 02 will be described. In this embodiment, the microprocessor 202 activates the seek operation and sets the hard disk controller 205 in preparation for command execution during the CA state. FIG. 6 shows the microprocessor 2 in the CA state.
It is a flowchart of the process of 02. The microprocessor 202 performs the following processing during the CA state.

【0040】STEP14:コマンド解釈 コマンドキュー103にコマンドが存在すれば順番に従
ってコマンドを取り出し、CDB記憶領域b305に記
憶し、解釈する。STEP6と同様に、SCSI ID
記憶領域306、タグ記憶領域b301、実行フラグ記
憶領域302、に値を記憶する。解釈後、STEP15
以降を実行する。コマンドが存在しないときは、ディス
ク装置212のCA状態を保持する。
STEP 14: Command Interpretation If a command exists in the command queue 103, the command is taken out in order, stored in the CDB storage area b305, and interpreted. SCSI ID as in STEP 6
Values are stored in the storage area 306, the tag storage area b301, and the execution flag storage area 302. After interpretation, STEP15
Do the following. When no command exists, the CA state of the disk device 212 is held.

【0041】STEP15:コマンド解釈エラーの判定 コマンド解釈の結果、コマンドが識別でき、解釈したコ
マンドに異常がなければ、STEP16を実行する。コ
マンド解釈の結果、解釈したコマンドに異常があれば、
STEP20以降を実行する。
STEP 15: Judgment of Command Interpretation Error As a result of command interpretation, the command can be identified, and if there is no abnormality in the interpreted command, STEP 16 is executed. As a result of command interpretation, if the interpreted command is abnormal,
Execute STEP20 and subsequent steps.

【0042】STEP16:コマンド実行準備a;シー
ク動作起動 コマンド解釈の結果、コマンドの実行にディスク装置の
ヘッドシークが必要である場合、目的のヘッド位置を計
算し、サーボ系207を介しシーク動作を起動する。ま
た、実行フラグ記憶領域302のシーク起動終了ビット
403に1をセットする。
STEP 16: Command execution preparation a: Seek operation start If the result of command interpretation is that head seek of the disk device is necessary for command execution, the target head position is calculated and seek operation is started via the servo system 207. To do. Also, the seek start end bit 403 of the execution flag storage area 302 is set to 1.

【0043】STEP17:コマンド実行準備b;ハー
ドディスクコントローラ205の設定 コマンド実行に必要な設定をハードディスクコントロー
ラ205に対して行なう。また、実行フラグ記憶領域3
02のハードディスクコントローラ設定終了ビット40
41をセットする。
STEP 17: Command execution preparation b: Setting of hard disk controller 205 The hard disk controller 205 is set up for command execution. Also, the execution flag storage area 3
02 hard disk controller setting end bit 40
Set 41.

【0044】STEP18:コマンド解釈 コマンドキュー103にコマンドが存在すれば順番に従
ってコマンドを取り出し、CDB記憶領域b305に記
憶し、解釈する。STEP6と同様に、SCSI ID
記憶領域306、タグ記憶領域b301、実行フラグ記
憶領域302、に値を記憶する。解釈後、STEP19
以降を実行する。コマンドが存在しないときは、ディス
ク装置212のCA状態を保持する。
STEP 18: Command Interpretation If a command exists in the command queue 103, the command is taken out in order, stored in the CDB storage area b305, and interpreted. SCSI ID as in STEP 6
Values are stored in the storage area 306, the tag storage area b301, and the execution flag storage area 302. After interpretation, STEP19
Do the following. When no command exists, the CA state of the disk device 212 is held.

【0045】STEP19:コマンド解釈エラーの判定 コマンド解釈の結果、コマンドが識別でき、解釈したコ
マンドに異常がなければ、STEP18を実行する。コ
マンド解釈の結果、解釈したコマンドに異常があれば、
STEP20以降を実行する。以上をコマンドキュー1
03にコマンドが無くなるまで繰り返す。コマンドキュ
ー103にコマンドが亡くなったら、CA状態を保持す
る。
STEP 19: Judgment of Command Interpretation Error As a result of command interpretation, the command can be identified, and if the interpreted command is normal, STEP 18 is executed. As a result of command interpretation, if the interpreted command is abnormal,
Execute STEP20 and subsequent steps. Command queue 1
Repeat until there are no commands in 03. When the command dies in the command queue 103, the CA state is held.

【0046】STEP20:実行ステータスの生成 実行ステータスとしてCheck Condition
Statusを生成し、コマンド実行テーブル101
の実行ステータス記憶領域303に記憶する。
STEP 20: Generation of Execution Status Check Condition as execution status
Status is generated and the command execution table 101
Stored in the execution status storage area 303.

【0047】STEP21:センスデータの生成 STEP20で生成したCheck Conditio
n Statusを詳述するセンスデータを生成し、コ
マンド実行テーブル101のセンスデータ記憶領域b3
04に記憶する。
STEP 21: Generation of Sense Data Check Condition generated in STEP 20
n sense is generated in detail, and the sense data storage area b3 of the command execution table 101 is generated.
Store in 04.

【0048】マイクロプロセッサ202は、スピンドル
モータ制御回路208からの割込み信号により、スピン
ドルモータの同期外れ異常を検出する。スピンドルモー
タの同期外れ異常が発生した場合は、その割込み信号に
対する割込み処理で以下の処理を行う。図7は、スピン
ドルモータ制御回路208からの割込信号に対する割込
み処理を示す。
The microprocessor 202 detects an out-of-synchronization abnormality of the spindle motor by an interrupt signal from the spindle motor control circuit 208. When an out-of-synchronization abnormality of the spindle motor occurs, the following processing is performed by interrupt processing for the interrupt signal. FIG. 7 shows an interrupt process for an interrupt signal from the spindle motor control circuit 208.

【0049】STEP21:非同期事象の記憶 非同期事象の発生を示すコードをCDB記憶領域b30
5に記憶する。また、SCSI ID記憶領域306
に、全SCSI IDに対応するコードを記憶する。
STEP 21: Storage of asynchronous event A code indicating the occurrence of an asynchronous event is stored in the CDB storage area b30.
Store in 5. Also, the SCSI ID storage area 306
The code corresponding to all SCSI IDs is stored in.

【0050】STEP22:実行ステータスの生成 実行ステータスとしてCheck Condition
Statusを生成し、コマンド実行テーブル101
の実行ステータス記憶領域303に記憶する。
STEP 22: Generation of Execution Status Check Condition as execution status
Status is generated and the command execution table 101
Stored in the execution status storage area 303.

【0051】STEP23:センスデータの生成 STEP21で生成したCheck Conditio
n Statusを詳述するセンスデータを生成し、コ
マンド実行テーブル101のセンスデータ記憶領域b3
04に記憶する。
STEP 23: Generation of Sense Data Check Condition generated in STEP 21
n sense is generated in detail, and the sense data storage area b3 of the command execution table 101 is generated.
Store in 04.

【0052】スピンドルモータの同期外れ異常が発生し
たとき、ディスク装置212がコマンド受信待ち状態
(idle状態)であれば、マイクロプロセッサ202
は、次にイニシエータから受信したコマンドをChec
k Condition Statusで終了させる。
また、上記STEP24でセンスデータ記憶領域b30
4に記憶した情報をセンスデータとして、全てのイニシ
エータに対応したセンスデータ記憶領域a102に記憶
する。さらに、ディスク装置212をCA状態とする。
When the disk drive 212 is in a command reception waiting state (idle state) when a spindle motor out-of-synchronization abnormality occurs, the microprocessor 202
Next check the command received from the initiator.
End with k Condition Status.
Further, in STEP 24, the sense data storage area b30
The information stored in No. 4 is stored as sense data in the sense data storage area a102 corresponding to all the initiators. Further, the disk device 212 is set to the CA state.

【0053】スピンドルモータの同期外れ異常が発生し
たとき、ディスク装置212がコマンド実行中であれ
ば、マイクロプロセッサ202は、実行中のコマンドを
Check Condition Statusで終了
させる。また、上記STEP24でセンスデータ記憶領
域b304に記憶した情報をセンスデータとして、全て
のイニシエータに対応したセンスデータ記憶領域a10
2に記憶する。さらに、ディスク装置212をCA状態
とする。
When the disk drive 212 is executing a command when a spindle motor out-of-synchronization abnormality occurs, the microprocessor 202 terminates the command being executed by Check Condition Status. Further, the information stored in the sense data storage area b304 in STEP 24 is used as sense data, and the sense data storage area a10 corresponding to all the initiators is used.
Store in 2. Further, the disk device 212 is set to the CA state.

【0054】スピンドルモータの同期外れ異常が発生し
たとき、ディスク装置212がCA状態であれば、上記
コントローラはCA状態解除後イニシエータから最初に
受信したコマンドをCheck Condition
Statusで終了させる。また、上記STEP24で
センスデータ記憶領域b304に記憶した情報をセンス
データとして、全てのイニシエータに対応したセンスデ
ータ記憶領域a102に記憶する。さらに、ディスク装
置212をCA状態とする。
If the disk drive 212 is in the CA state when the spindle motor out-of-synchronization abnormality occurs, the controller checks the command first received from the initiator after the CA state is released.
End with Status. The information stored in the sense data storage area b304 in STEP 24 is stored as sense data in the sense data storage area a102 corresponding to all the initiators. Further, the disk device 212 is set to the CA state.

【0055】以上のように本実施例では、CA状態中に
イニシエータに報告するセンスデータを記憶保持する領
域とは別に、コマンド毎にステータスを記憶する領域と
ステータスを詳述するセンスデータを記憶する領域をコ
マンド実行テーブル101内に有し、コマンド実行時に
生成したステータス、センスデータはおよびコマンドと
非同期に発生したディスクドライブ209の異常をコマ
ンド実行テーブル101に記憶するため、CA状態中に
イニシエータに報告するセンスデータが更新されること
がない。
As described above, in this embodiment, in addition to the area for storing and holding the sense data to be reported to the initiator in the CA state, the area for storing the status for each command and the sense data for describing the status in detail are stored. The command execution table 101 has an area, and the status and sense data generated at the time of command execution are stored in the command execution table 101, and the abnormalities of the disk drive 209 that occur asynchronously with the command are stored in the command execution table 101. The sense data is not updated.

【0056】[0056]

【発明の効果】本発明によれば、CA状態中にイニシエ
ータに報告するセンスデータを記憶保持する領域とは別
に、コマンド毎にステータスを記憶する領域とセンスデ
ータを記憶する領域及びコマンド実行とは非同期に発生
した異常と異常を詳述する情報を記憶する領域を有し、
コマンド実行時に生成したステータス、センスデータは
コマンド毎にステータスを記憶する領域とセンスデータ
を記憶する領域に記憶する。また、コマンド実行と非同
期に発生した異常をコマンド実行とは非同期に発生した
異常と異常を詳述する情報を記憶する領域に記憶する。
このため、CA状態中にイニシエータに報告するセンス
データが更新されることがない。
According to the present invention, in addition to the area for storing and holding the sense data reported to the initiator during the CA state, the area for storing the status for each command, the area for storing the sense data, and the command execution are It has an area to store abnormalities that occur asynchronously and information that details the abnormality,
The status and sense data generated at the time of command execution are stored in the area for storing the status and the area for storing the sense data for each command. Further, the abnormality that occurs asynchronously with the command execution is stored in the area that stores the abnormality that occurs asynchronously with the command execution and the information that details the abnormality.
Therefore, the sense data reported to the initiator is not updated during the CA state.

【0057】また、CA状態中もコマンドの解釈及び実
行準備を行うため、CA状態解除後のコマンド実行速度
が向上する。
Further, since the command is interpreted and prepared for execution even in the CA state, the command execution speed after the CA state is released is improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明実施例のデータRAMの詳細図である。FIG. 1 is a detailed diagram of a data RAM according to an embodiment of the present invention.

【図2】本発明実施例のディスク装置の構成図である。FIG. 2 is a configuration diagram of a disk device according to an embodiment of the present invention.

【図3】本発明実施例のコマンド実行テーブルの詳細図
である。
FIG. 3 is a detailed diagram of a command execution table according to the embodiment of this invention.

【図4】本発明実施例のコマンド実行フラグ記憶領域の
詳細図である。
FIG. 4 is a detailed diagram of a command execution flag storage area according to the embodiment of this invention.

【図5】本発明実施例のマイクロプロセッサの処理の概
略フローチャート図である。
FIG. 5 is a schematic flowchart of processing of the microprocessor according to the embodiment of the present invention.

【図6】本発明実施例のCA状態でのマイクロプロセッ
サの処理のフローチャート図である。
FIG. 6 is a flowchart of the processing of the microprocessor in the CA state according to the embodiment of the present invention.

【図7】本発明実施例のスピンドルモータ同期化色から
の割込みに対する割込み処理のフローチャート図であ
る。
FIG. 7 is a flowchart of interrupt processing for an interrupt from a spindle motor synchronization color according to the embodiment of this invention.

【図8】本発明実施例のコマンドキューの詳細図であ
る。
FIG. 8 is a detailed diagram of a command queue according to the embodiment of this invention.

【符号の説明】[Explanation of symbols]

101…コマンド実行テーブル、 102…センスデータ記憶領域a、 103…コマンドキュー、 201…データRAM、 202…マイクロプロセッサ、 203…SCSIコントローラ、 204…データバッファ、 205…ハードディスクコントローラ、 206…信号処理系、 207…サーボ系、 208…スピンドルモータ制御回路、 209…ディスクドライブ、 210…プログラムROM、 211…データ処理系、 212…ディスク装置、 213…ホストコンピュータ、 301…タグ記憶領域b、 302…実行フラグ記憶領域、 303…実行ステータス記憶領域、 304…センスデータ記憶領域b、 305…CDB記憶領域b、 306…SCSI ID記憶領域b、 401…実行順記憶領域、 402…コマンド解釈終了ビット、 403…シーク起動終了ビット、 404…ハードディスクコントローラ設定終了ビット、 405…転送終了ビット、 801…CDB記憶領域a、 802…タグ記憶領域a。 101 ... Command execution table, 102 ... Sense data storage area a, 103 ... Command queue, 201 ... Data RAM, 202 ... Microprocessor, 203 ... SCSI controller, 204 ... Data buffer, 205 ... Hard disk controller, 206 ... Signal processing system, 207 ... Servo system, 208 ... Spindle motor control circuit, 209 ... Disk drive, 210 ... Program ROM, 211 ... Data processing system, 212 ... Disk device, 213 ... Host computer, 301 ... Tag storage area b, 302 ... Execution flag storage Area: 303 ... Execution status storage area 304: Sense data storage area b, 305 ... CDB storage area b, 306 ... SCSI ID storage area b, 401 ... Execution order storage area, 402 ... Command interpretation end bit 403 ... seek start end bit, 404 ... hard disk controller setting completion bit, 405 ... transfer end bit, 801 ... CDB storage area a, 802 ... tag storage area a.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】SCSI−2で他の装置と接続され、SC
SI−2を制御する手段と、イニシエータから受信した
コマンドを解釈、実行するコントローラと、データを記
録再生するドライブを有し、上記コントローラ内に各イ
ニシエータ毎に複数のコマンドを記憶するコマンドキュ
ーと各イニシエータ毎に報告するセンスデータを1つず
つ記憶する手段を有するディスク装置で、上記コントロ
ーラ内に、各コマンドに対応してセンスデータを記憶す
る手段及びセンスデータとコマンドとを対応づけるタグ
を記憶する手段を有し、コマンド解釈、実行中に異常が
発生し、イニシエータに報告するセンスデータを生成、
記憶保持している間も既に受信しているコマンドが存在
すれば、コマンド解釈及び実行準備を行うことを特徴と
するディスク装置。
1. A SC-2 is used to connect to another device,
A means for controlling SI-2, a controller for interpreting and executing commands received from the initiator, a drive for recording and reproducing data, and a command queue and a command queue for storing a plurality of commands for each initiator in the controller. A disk device having means for storing one sense data to be reported for each initiator, and storing means for storing sense data corresponding to each command and a tag for associating the sense data with the command in the controller. It has a means to interpret command, an error occurs during execution, and generate sense data to report to the initiator.
A disk device characterized by interpreting a command and preparing for execution if there is a command already received even while being stored.
【請求項2】上記コマンド解釈及び実行準備中に発生し
た異常に対するセンスデータ及びセンスデータとコマン
ドとを対応づけるタグを各コマンドに対応してセンスデ
ータを記憶する手段及びセンスデータとコマンドとを対
応づけるタグを記憶する手段に記憶保持することを特徴
とする請求項1記載のディスク装置。
2. A means for storing sense data corresponding to each command and a sense data corresponding to each command and a tag for associating the sense data and the command with the command for an abnormality occurring during the command interpretation and preparation for execution, and the sense data and the command are associated with each other. 2. The disk device according to claim 1, wherein the tag to be attached is stored and held in a unit for storing the tag.
【請求項3】SCSI−2で他の装置と接続され、スピ
ンドル同期機能を有し、SCSI−2を制御する手段
と、イニシエータから受信したコマンドを解釈、実行す
るコントローラと、データを記録再生するドライブを有
し、上記コントローラ内に各イニシエータ毎に複数のコ
マンドを記憶するコマンドキューと各イニシエータ毎に
報告するセンスデータを1つずつ記憶する手段を有する
ディスク装置で、上記コントローラ内に、各コマンドに
対応してセンスデータを記憶する手段及びセンスデータ
とコマンドとを対応づけるタグを記憶する手段と、コマ
ンド実行とは非同期に発生した異常を詳述する情報を記
憶する手段を有することを特徴とする請求項1又は2記
載のディスク装置。
3. A device connected to another device via SCSI-2, having a spindle synchronization function, for controlling SCSI-2, a controller for interpreting and executing a command received from an initiator, and recording / reproducing data. A disk device having a drive, a command queue for storing a plurality of commands for each initiator in the controller, and a unit for storing one sense data for reporting for each initiator. And a means for storing a tag for associating the sense data with a command, and a means for storing information detailing an abnormality that occurred asynchronously with the command execution. The disk device according to claim 1 or 2.
JP17285393A 1993-07-13 1993-07-13 Disk device Pending JPH0728604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17285393A JPH0728604A (en) 1993-07-13 1993-07-13 Disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17285393A JPH0728604A (en) 1993-07-13 1993-07-13 Disk device

Publications (1)

Publication Number Publication Date
JPH0728604A true JPH0728604A (en) 1995-01-31

Family

ID=15949517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17285393A Pending JPH0728604A (en) 1993-07-13 1993-07-13 Disk device

Country Status (1)

Country Link
JP (1) JPH0728604A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006309755A (en) * 2005-04-15 2006-11-09 Toshiba Corp System and method for removing entry discarded from command buffer by using tag information
WO2007102434A1 (en) * 2006-03-03 2007-09-13 International Business Machines Corporation Read device for processing a read error, system, its method, and program
JP2008544436A (en) * 2005-06-23 2008-12-04 インターナショナル・ビジネス・マシーンズ・コーポレーション Remote media cache optimization system and method for use with multiple processing units (data processing system and computer program)
WO2016194166A1 (en) * 2015-06-03 2016-12-08 株式会社日立製作所 Storage system
JP2017162113A (en) * 2016-03-08 2017-09-14 東芝メモリ株式会社 Storage device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006309755A (en) * 2005-04-15 2006-11-09 Toshiba Corp System and method for removing entry discarded from command buffer by using tag information
JP2008544436A (en) * 2005-06-23 2008-12-04 インターナショナル・ビジネス・マシーンズ・コーポレーション Remote media cache optimization system and method for use with multiple processing units (data processing system and computer program)
JP4857338B2 (en) * 2005-06-23 2012-01-18 インターナショナル・ビジネス・マシーンズ・コーポレーション Remote media cache optimization system, method and computer program for use in multiple processing units
WO2007102434A1 (en) * 2006-03-03 2007-09-13 International Business Machines Corporation Read device for processing a read error, system, its method, and program
US8037346B2 (en) 2006-03-03 2011-10-11 International Business Machines Corporation Avoiding a part of tape where error occurs by computing a number of records and a number of boundary marks included in an error data unit
WO2016194166A1 (en) * 2015-06-03 2016-12-08 株式会社日立製作所 Storage system
JP2017162113A (en) * 2016-03-08 2017-09-14 東芝メモリ株式会社 Storage device

Similar Documents

Publication Publication Date Title
US9483433B2 (en) Processing communication data in a ships passing condition
US7856511B2 (en) Processing of data to suspend operations in an input/output processing system
US8214562B2 (en) Processing of data to perform system changes in an input/output processing system
US8312189B2 (en) Processing of data to monitor input/output operations
US6018779A (en) System for encapsulating a plurality of selected commands within a single command and transmitting the single command to a remote device over a communication link therewith
US20090210884A1 (en) Processing of data to determine compatability in an input/output processing system
CN101971154B (en) Method and system for determining state of I/O operation
US5073854A (en) Data processing system with search processor which initiates searching in response to predetermined disk read and write commands
US20110196993A1 (en) Bi-directional data transfer within a single i/o operation
US20050027894A1 (en) Standard ATA queuing automation in serial ATA interface
WO2011130975A1 (en) Method and device for identifying device ports of data card in linux system
US20040078707A1 (en) Adapter and method for handling errors in a data storage device converted to be accessible to multiple hosts
JPH0728604A (en) Disk device
US5448700A (en) Method and system for interfacing PC to CD-ROM drives
JPS593787B2 (en) How to execute commands for direct access storage devices
JPH10105502A (en) Peripheral equipment controller
EP1118942B1 (en) Method of and system for managing reselection on a scsi bus
US7721007B2 (en) Methods of transmitting non-SCSI commands involving loading opcode in command descriptor block (CDB) bytes and non-SCSI commands into remaining CDB bytes
JP3664139B2 (en) Retry processing method of SCSI interface controller
JP3183912B2 (en) SCSI device self-diagnosis method
US6625676B1 (en) Small computer system with interface control and method of operating same
JPH10214247A (en) External storage device interface
JP2541158B2 (en) Information processing system
JPH03278155A (en) Scsi bus extending circuit
JPH01178164A (en) Disk device recognizing system