JPH10340519A - Disk device and power save control method applied to the disk device - Google Patents

Disk device and power save control method applied to the disk device

Info

Publication number
JPH10340519A
JPH10340519A JP15121097A JP15121097A JPH10340519A JP H10340519 A JPH10340519 A JP H10340519A JP 15121097 A JP15121097 A JP 15121097A JP 15121097 A JP15121097 A JP 15121097A JP H10340519 A JPH10340519 A JP H10340519A
Authority
JP
Japan
Prior art keywords
buffer
command
data
buffer memory
power
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
JP15121097A
Other languages
Japanese (ja)
Inventor
Yuu Kasebayashi
祐 加瀬林
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP15121097A priority Critical patent/JPH10340519A/en
Publication of JPH10340519A publication Critical patent/JPH10340519A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Rotational Drive Of Disk (AREA)

Abstract

(57)【要約】 【課題】スタンバイモードにおいて、各種コマンドの基
本動作を損なわずにバッファメモリの電源をオフでき、
消費電力の一層の節約が図れるようにする。 【解決手段】CPU16は、スピンドルモータ12の停
止を伴うスタンバイモードに移行する際にはバッファメ
モリ13の電源をオフする。この状態でHDC14がホ
スト装置からライトバッファコマンドを受信した場合、
バッファ電源制御回路140はバッファメモリ13の電
源をオンした後、自動転送回路141を起動すること
で、ホスト装置からのデータをバッファメモリ13に転
送させる。CPU16は、ライトバッファコマンドが終
了するとタイマ17により一定時間Tを計測させ、時間
T内にコマンドを受信したならば、そのコマンドの処理
に進み、受信しなかったならば、バッファメモリ13の
電源をオフしてスタンバイモードにおけるコマンド待ち
状態に戻る。
(57) [Summary] [PROBLEMS] In a standby mode, a buffer memory can be turned off without impairing the basic operation of various commands,
To further reduce power consumption. A CPU turns off a power supply of a buffer memory when shifting to a standby mode in which a spindle motor is stopped. When the HDC 14 receives a write buffer command from the host device in this state,
After turning on the power of the buffer memory 13, the buffer power control circuit 140 activates the automatic transfer circuit 141 so that the data from the host device is transferred to the buffer memory 13. Upon completion of the write buffer command, the CPU 16 causes the timer 17 to measure a predetermined time T. If the command is received within the time T, the process proceeds to the command. If the command is not received, the power of the buffer memory 13 is turned off. Turns off and returns to the command waiting state in the standby mode.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディスクからの読
み出しデータ及びディスクへの書き込みデータを一時記
憶するバッファメモリを備えたディスク装置に係り、特
にモータ停止を伴うスタンバイモードにおけるバッファ
メモリの電源のオン/オフ制御によるパワーセーブを実
現するのに好適なディスク装置及び同装置に適用される
パワーセーブ制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk drive having a buffer memory for temporarily storing read data from a disk and write data to a disk, and more particularly to turning on the power of the buffer memory in a standby mode with a motor stopped. The present invention relates to a disk device suitable for realizing power save by on / off control and a power save control method applied to the disk device.

【0002】[0002]

【従来の技術】ヘッドにより、記録媒体(メディア)と
してのディスクに対するデータの記録再生が行われるデ
ィスク装置、例えば磁気ディスク装置では、ディスクか
らの読み出しデータ及びディスクへの書き込みデータを
ブロック(セクタ)単位で一時記憶するバッファメモリ
を備えているのが一般的である。バッファメモリを用い
る利点の1つは、主としてディスクアクセス速度で決ま
るディスクとバッファメモリとの間のデータ転送レート
(ディスク転送レート)と、ホスト装置とバッファメモ
リとの間のデータ転送レート(ホスト転送レート)とが
異なっても、その転送レートの違いをバッファメモリで
吸収できることである。この他に、以前に出されたホス
ト装置からのリード/ライト系のコマンドの実行によ
り、既にバッファメモリに読み出されているデータに対
して読み出し要求があった場合(キャッシュヒット時)
には、ディスクからの読み出しは行わずにバッファメモ
リに読み出されているデータをホスト装置に転送するこ
とで処理時間を短縮できるという利点もある。
2. Description of the Related Art In a disk device in which data is recorded and reproduced on a disk as a recording medium by a head, for example, a magnetic disk device, data read from the disk and data written to the disk are written in block (sector) units. In general, a buffer memory for temporarily storing data is provided. One of the advantages of using the buffer memory is that the data transfer rate (disk transfer rate) between the disk and the buffer memory, which is mainly determined by the disk access speed, and the data transfer rate (host transfer rate) between the host device and the buffer memory ), The difference in transfer rate can be absorbed by the buffer memory. In addition, when there is a read request for data that has already been read into the buffer memory due to the execution of a read / write command from the host device issued earlier (at the time of a cache hit).
Has the advantage that the processing time can be reduced by transferring the data read into the buffer memory to the host device without reading from the disk.

【0003】さて、バッファメモリを備えた磁気ディス
ク装置において、ホスト装置とディスクとの間のデータ
転送は、当該バッファメモリを介して制御される。例え
ばホスト装置からライト系コマンドが発行された場合に
は、ホスト装置からの書き込みデータがHDC(ディス
クコントローラ)によりハードウェアでバッファメモリ
に自動転送される。
In a magnetic disk device having a buffer memory, data transfer between a host device and a disk is controlled via the buffer memory. For example, when a write command is issued from the host device, the write data from the host device is automatically transferred to the buffer memory by hardware by the HDC (disk controller).

【0004】また、ホスト装置から、ライトバッファコ
マンドまたはリードバッファコマンドが発行された場合
には、磁気ディスク装置では、ディスクをアクセスせず
に、バッファメモリだけを対象にデータの書き込みまた
は読み出しを行う。このライトバッファコマンド及びリ
ードバッファコマンドはバッファメモリ等をチェックす
るために次のように用いられる。まず、ライトバッファ
コマンドによりバッファメモリにデータを書き込む。次
に、バッファメモリに書き込んだデータをリードバッフ
ァコマンドにより読み出してホスト装置に転送する。ホ
スト装置では、バッファへの書き込みデータとバッファ
からの読み出しデータを比較することでバッファメモリ
等のチェックを行う。
When a host device issues a write buffer command or a read buffer command, the magnetic disk device writes or reads data only in the buffer memory without accessing the disk. The write buffer command and the read buffer command are used as follows to check the buffer memory and the like. First, data is written to the buffer memory by a write buffer command. Next, the data written in the buffer memory is read by a read buffer command and transferred to the host device. The host device checks the buffer memory and the like by comparing the data written to the buffer with the data read from the buffer.

【0005】このようにライトバッファコマンドまたは
リードバッファコマンドは、ディスクアクセスを伴わな
い。このため、ディスクの回転停止状態、即ちディスク
を回転駆動するモータ(スピンドルモータ)の停止状態
でも実行可能である。したがって、モータが停止状態に
ある場合でも、ホスト装置からのコマンドが受け付けら
れる状態では、ライトバッファコマンドまたはリードバ
ッファコマンドに対処できるようにバッファメモリは常
に使用可能状態に設定されている必要がある。なお、モ
ータが停止し、且つホスト装置からのコマンドが受け付
け可能な状態は、スタンバイモードと呼ばれ、予め設定
された時間ホスト装置からコマンドを受け取らなかった
場合に消費電力を節約する(パワーセーブの)ために設
定される。
As described above, the write buffer command or the read buffer command does not involve a disk access. Therefore, it can be executed even when the rotation of the disk is stopped, that is, the motor (spindle motor) for rotating the disk is stopped. Therefore, even when the motor is in a stopped state, in a state in which a command from the host device is accepted, it is necessary that the buffer memory is always set to a usable state so as to be able to cope with the write buffer command or the read buffer command. Note that a state in which the motor is stopped and a command from the host device can be received is called a standby mode, and power consumption is saved when no command is received from the host device for a preset time (power saving). ) Set for.

【0006】[0006]

【発明が解決しようとする課題】上記したように、バッ
ファメモリを備えた従来の磁気ディスク装置において
は、ホスト装置からライト系コマンドが与えられた場
合、ホスト装置からの書き込みデータをバッファメモリ
に転送する動作が自動的に行われる。このため、もしバ
ッファメモリの電源がオフ(OFF)されているなら
ば、上記の書き込みデータは(電源オフ状態にある)バ
ッファメモリへの自動転送動作で失われてしまう。
As described above, in a conventional magnetic disk device having a buffer memory, when a write command is given from a host device, write data from the host device is transferred to the buffer memory. Is automatically performed. Therefore, if the power of the buffer memory is turned off (OFF), the above-described write data is lost by the automatic transfer operation to the buffer memory (in the power-off state).

【0007】また、ホスト装置からリードバッファコマ
ンドが与えられた場合に、もしバッファメモリの電源が
オフされているならば、不定のデータがホスト装置に転
送されてしまう。
In addition, when a read buffer command is given from the host device, if the power of the buffer memory is turned off, undefined data is transferred to the host device.

【0008】このため従来は、磁気ディスク装置がホス
ト装置からのコマンドを受け付け可能な状態では、たと
え消費電力の節約を目的としたモータの停止を伴うスタ
ンバイモードであっても、バッファメモリの電源をオン
しておく必要があった。即ち従来は、消費電力の節約の
ためにバッファメモリをオフすることができなかった。
For this reason, conventionally, in a state in which a magnetic disk device can receive a command from a host device, the power of the buffer memory is turned off even in a standby mode in which the motor is stopped for the purpose of saving power consumption. I had to keep it on. That is, conventionally, the buffer memory could not be turned off to save power consumption.

【0009】本発明は上記事情を考慮してなされたもの
でその目的は、モータ停止を伴うスタンバイモードにお
いて、各種コマンド、特にディスクアクセスを伴わずに
バッファアクセスが行われるコマンドの基本動作を損な
わずにバッファメモリの電源をオフすることができ、消
費電力の一層の節約が図れるディスク装置及び同装置に
適用されるパワーセーブ制御方法を提供することにあ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to impair the basic operation of various commands, particularly commands in which buffer access is performed without disk access, in a standby mode with motor stoppage. Another object of the present invention is to provide a disk device capable of turning off the power of a buffer memory and further saving power consumption, and a power save control method applied to the disk device.

【0010】[0010]

【課題を解決するための手段】本発明の第1の観点に係
る構成は、ディスクからの読み出しデータ及びディスク
への書き込みデータを一時記憶するバッファメモリを備
えたディスク装置において、ディスクを回転駆動するモ
ータの停止を伴うスタンバイモードに移行する際には上
記バッファメモリの電源をオフする第1のバッファ電源
オフ手段と、上記バッファメモリへのデータ書き込みを
指示するライトバッファコマンドを上記スタンバイモー
ドでホスト装置から受信した場合に、上記バッファメモ
リの電源をオンするバッファ電源オン手段と、このバッ
ファ電源オン手段により電源がオンされたバッファメモ
リに上記ライトバッファコマンドで指定されたデータを
転送するデータ転送手段と、上記ライトバッファコマン
ドの終了後、予め定められた一定時間内にホスト装置か
らコマンドを受信しなかった場合には、上記バッファメ
モリの電源をオフする第2のバッファ電源オフ手段とを
備えたことを特徴とする。
According to a first aspect of the present invention, there is provided a disk drive provided with a buffer memory for temporarily storing read data from a disk and write data to a disk. First buffer power-off means for turning off the power of the buffer memory when shifting to the standby mode with the motor stopped; and a write buffer command for instructing data writing to the buffer memory in the host device in the standby mode. A buffer power-on means for turning on the power of the buffer memory when received from the buffer memory; and a data transfer means for transferring data specified by the write buffer command to the buffer memory powered on by the buffer power-on means. After the end of the write buffer command, If it does not receive a command from the host device in order was within a predetermined time, characterized in that a second buffer power-off means for turning off the power supply of the buffer memory.

【0011】このような構成によれば、モータの回転停
止を伴うスタンバイモードでは、バッファメモリの電源
がオフ状態に設定されるため、消費電力を一層節約でき
る。しかも、バッファメモリの電源がオフ状態にあるス
タンバイモードにおいてホスト装置からライトバッファ
コマンドが発行された場合には、バッファメモリの電源
がオンされ、しかる後に当該コマンドで指定されたデー
タが、電源オン状態に切り換えられたバッファメモリに
転送されるため、ライトバッファコマンドの動作を保証
することが可能となる。
According to such a configuration, in the standby mode in which the rotation of the motor is stopped, the power of the buffer memory is set to the off state, so that the power consumption can be further reduced. Moreover, when a write buffer command is issued from the host device in the standby mode in which the power of the buffer memory is off, the power of the buffer memory is turned on, and thereafter, the data specified by the command is changed to the power-on state. , The operation of the write buffer command can be guaranteed.

【0012】さて、ライトバッファコマンドの次には、
当該コマンドの実行によりバッファメモリに書き込まれ
たデータを読み込んでホスト装置に転送するコマンド
(例えばリードバッファコマンド)がホスト装置から発
行されるのが一般的である。そこで上記の構成において
は、バッファメモリのアクセスを伴うこの種のコマンド
がライトバッファコマンドの次に速やかに発行されるこ
とを予測して、ライトバッファコマンドの終了後一定時
間を計測し、一定時間内にホスト装置からコマンドを受
信しなかった場合には、予測が外れたものとして、消費
電力を節約するために直ちにバッファメモリの電源をオ
フ状態に戻すようにしていることから、バッファメモリ
のアクセスを伴うコマンドに対処するのに、無駄な電力
が消費されるのを防止できる。
Now, next to the write buffer command,
In general, a command (for example, a read buffer command) for reading data written in the buffer memory and transferring it to the host device by executing the command is issued from the host device. Therefore, in the above configuration, it is expected that this type of command involving access to the buffer memory will be issued immediately after the write buffer command, and a certain period of time is measured after the end of the write buffer command. If a command is not received from the host device during this time, the prediction is deemed to be incorrect and the power to the buffer memory is immediately turned off to save power consumption. It is possible to prevent unnecessary power from being consumed to deal with the accompanying command.

【0013】このように、上記の構成によれば、スタン
バイモードでのバッファメモリの電源のオン/オフ制御
により、各種コマンド、特にディスクアクセスを伴わず
にバッファアクセスが行われるコマンドの基本動作を損
なわずに、スタンバイモードでの消費電力の一層の節約
が図れる。
As described above, according to the above configuration, the basic operation of various commands, in particular, a command in which buffer access is performed without disk access, is impaired by the on / off control of the power supply of the buffer memory in the standby mode. Instead, the power consumption in the standby mode can be further reduced.

【0014】ここで、上記一定時間を経過後にバッファ
メモリのリードアクセスを伴うコマンド、例えばリード
バッファコマンドを受信した場合には、既にバッファメ
モリの電源がオフ状態に戻されて当該メモリのデータは
失われていることから、受信コマンドをアボートエラー
とするとよい。一方、上記一定時間内にリードバッファ
コマンドを受信した場合には、バッファメモリの電源が
オンされていることから、当該コマンドを実行し、バッ
ファメモリからデータを読み出してホスト装置に転送す
ることが可能であり、リードバッファコマンドの動作を
保証できる。この場合にも、リードバッファコマンドの
終了後一定時間内にホスト装置からコマンドを受信しな
かったならば、消費電力を節約するために直ちにバッフ
ァメモリの電源をオフ状態に戻すようにするとよい。
When a command accompanied by read access to the buffer memory, for example, a read buffer command is received after the elapse of the predetermined time, the power of the buffer memory is already turned off and the data in the memory is lost. Therefore, it is preferable that the received command be an abort error. On the other hand, if the read buffer command is received within the above-mentioned fixed time, since the power of the buffer memory is turned on, the command can be executed, data can be read from the buffer memory and transferred to the host device. Thus, the operation of the read buffer command can be guaranteed. Also in this case, if the command is not received from the host device within a certain period of time after the end of the read buffer command, the power of the buffer memory may be immediately turned off to save power consumption.

【0015】本発明の第2の観点に係る構成は、上記第
1の観点に係る構成に、バッファメモリのデータを保存
するための領域を有する書き換え可能な不揮発性メモリ
と、ライトバッファコマンドの終了後、予め定められた
一定時間内にホスト装置からコマンドを受信しなかった
場合には、バッファメモリのデータを不揮発性メモリに
保存するデータ保存手段とを追加し、上記第2のバッフ
ァ電源オフ手段がバッファメモリの電源をオフ状態に戻
すのは、当該データ保存手段による不揮発性メモリへの
データ保存後としたことを特徴とすると共に、上記一定
時間を経過後にリードバッファコマンドを受信した場合
にバッファメモリの電源をオンする新たなバッファ電源
オン手段(第2のバッファ電源オン手段)と、ここで電
源がオンされたバッファメモリに上記不揮発性メモリに
保存されているデータをロードするデータロード手段
と、上記リードバッファコマンドを上記一定時間内に受
信した場合には直ちに、上記一定時間を経過後に受信し
た場合には、上記データロード手段によるバッファメモ
リへのデータロード後に、当該バッファメモリからデー
タを読み出してホスト装置に転送する新たなデータ転送
手段(第2のデータ転送手段)とを追加したことを特徴
とする。
According to a second aspect of the present invention, in the configuration according to the first aspect, there is provided a rewritable nonvolatile memory having an area for storing data in a buffer memory; Thereafter, when a command is not received from the host device within a predetermined period of time, a data storage unit for storing data in the buffer memory in the nonvolatile memory is added, and the second buffer power-off unit is added. Is characterized in that the power of the buffer memory is returned to the off state after the data is stored in the nonvolatile memory by the data storage means, and when the read buffer command is received after the lapse of the predetermined time, the buffer is turned off. New buffer power-on means (second buffer power-on means) for turning on the power of the memory; Data loading means for loading data stored in the non-volatile memory into a memory, and if the read buffer command is received within the fixed time, immediately if the read buffer command is received after the fixed time, After the data is loaded into the buffer memory by the data loading means, a new data transfer means (second data transfer means) for reading data from the buffer memory and transferring the data to the host device is added.

【0016】このような構成においては、ライトバッフ
ァコマンドの終了後一定時間内にホスト装置からコマン
ドを受信しなかった場合には、バッファメモリのデータ
を不揮発性メモリに保存し、しかる後に当該バッファメ
モリの電源がオフ状態に戻すようにしているため、ライ
トバッファコマンドでバッファメモリに書き込まれたデ
ータがディスク装置から失われるのを防止しながら、ス
タンバイモードにおける消費電力の一層の節約を図るこ
とができる。また、上記一定時間経過後にリードバッフ
ァコマンドを受信した場合でも、バッファメモリの電源
をオンした後、当該バッファメモリに上記不揮発性メモ
リに保存されているデータをロードすることにより、リ
ードバッファコマンドを正しく実行することが可能とな
る。
In such a configuration, if a command is not received from the host device within a certain period of time after the end of the write buffer command, the data in the buffer memory is stored in the non-volatile memory. Is turned off, so that the data written to the buffer memory by the write buffer command is prevented from being lost from the disk device, and the power consumption in the standby mode can be further reduced. . Also, even when the read buffer command is received after the elapse of the predetermined time, after the power of the buffer memory is turned on, the data stored in the non-volatile memory is loaded into the buffer memory so that the read buffer command can be correctly read. It is possible to execute.

【0017】このように上記の構成においては、スタン
バイモードでバッファメモリの電源をオフして消費電力
を節約しても、ライトバッファコマンド及びリードバッ
ファコマンドの動作を常に保証することができる。
As described above, in the above configuration, even if the power of the buffer memory is turned off in the standby mode to save power consumption, the operation of the write buffer command and the read buffer command can always be guaranteed.

【0018】なお、バッファメモリをDRAM(Dynami
c Random Access Memory)を用いて構成する場合には、
電源をオフする代わりに、メモリリフレッシュ動作をオ
フ(停止)するようにしても、消費電力を節約すること
が可能となる。
The buffer memory is a DRAM (Dynami
c Random Access Memory)
Even if the memory refresh operation is turned off (stopped) instead of turning off the power, power consumption can be saved.

【0019】[0019]

【発明の実施の形態】以下、本発明の実施の形態につき
図面を参照して説明する。 [第1の実施形態]図1は本発明の第1の実施形態に係
る磁気ディスク装置の概略構成を示すブロック図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. [First Embodiment] FIG. 1 is a block diagram showing a schematic configuration of a magnetic disk drive according to a first embodiment of the present invention.

【0020】図1の磁気ディスク装置は、記録媒体とし
てのディスク11と、このディスク1を高速回転させる
スピンドルモータ12と、ディスク11からの読み出し
データ及びディスクへの書き込みデータを例えば1セク
タ分(ここでは1セクタ=512バイト)一時記憶する
ためのバッファ領域を持つバッファメモリ13とを備え
ている。このバッファメモリ13は、揮発性メモリ、例
えばDRAM(Dynamic Random Access Memory)により
構成されている。なお、バッファメモリ13には、ディ
スク11上の欠陥セクタとその代替先セクタの情報(デ
ィフェクト情報)を格納するための領域なども確保され
ているが、本発明に直接関係しないため、ここでは説明
の便宜上、バッファ領域だけが確保されているものとし
て説明する。
The magnetic disk drive shown in FIG. 1 has a disk 11 as a recording medium, a spindle motor 12 for rotating the disk 1 at a high speed, and read data from the disk 11 and write data to the disk, for example, for one sector (here, (1 sector = 512 bytes). A buffer memory 13 having a buffer area for temporarily storing the data is provided. The buffer memory 13 is configured by a volatile memory, for example, a DRAM (Dynamic Random Access Memory). Note that the buffer memory 13 also has an area for storing information (defect information) of a defective sector on the disk 11 and its replacement destination sector. However, the area is not directly related to the present invention, and will not be described here. For the sake of convenience, description will be made assuming that only the buffer area is secured.

【0021】図1の磁気ディスク装置はまた、ホスト装
置とのインタフェースをなすと共に、バッファメモリ1
3を介してのディスク11とホスト装置との間のデータ
転送を制御するHDC(ディスクコントローラ)14を
備えている。このHDC14には、後述するスタンバイ
モードにおけるホスト装置からのライト系コマンドの受
信時にバッファメモリ13の電源を自動的にオンする制
御を行うバッファ電源制御回路140と、上記ライト系
コマンドの受信時に当該バッファ電源制御回路140に
より起動されて当該コマンドに従うデータ転送を行う自
動転送回路141と、ECC回路142とを内蔵する。
ECC回路142は、ライトコマンドの実行時には、ホ
スト装置からの書き込みデータに対して、例えば1セク
タ単位でECC(エラー検出・訂正情報)を生成して、
当該データの末尾に付加するECC生成機能と、リード
コマンドの実行時には、ディスク11から読み出される
データに1セクタ単位で付されているECCをもとに当
該データのエラー検出・訂正を行うエラー検出・訂正機
能を有している。
The magnetic disk drive shown in FIG. 1 also serves as an interface with a host device, and has a buffer memory 1.
An HDC (disk controller) 14 for controlling data transfer between the disk 11 and the host device via the host computer 3 is provided. The HDC 14 includes a buffer power supply control circuit 140 for controlling to automatically turn on the power of the buffer memory 13 when a write command is received from the host device in a standby mode, which will be described later. It has an automatic transfer circuit 141 that is activated by the power supply control circuit 140 and performs data transfer according to the command, and an ECC circuit 142.
When executing the write command, the ECC circuit 142 generates ECC (error detection / correction information) in units of, for example, one sector for write data from the host device,
An ECC generation function added to the end of the data, and an error detection / correction for performing error detection / correction on the data read from the disk 11 based on the ECC attached on a sector-by-sector basis when the read command is executed. It has a correction function.

【0022】図1の磁気ディスク装置は更に、磁気ディ
スク装置全体を制御するための制御プログラム(ファー
ムウェア)等が格納されているROM(Read Only Memo
ry)15と、このROM15内の制御プログラムに従っ
てHDC14の動作など磁気ディスク装置内の各部の動
作を制御するCPU(マイクロプロセッサ)16と、時
間計測用のタイマ17とを備えている。
The magnetic disk device of FIG. 1 further includes a ROM (Read Only Memory) storing a control program (firmware) for controlling the entire magnetic disk device.
ry) 15, a CPU (microprocessor) 16 for controlling the operation of each unit in the magnetic disk device such as the operation of the HDC 14 in accordance with the control program in the ROM 15, and a timer 17 for measuring time.

【0023】なお、図1では、ディスク11へのデータ
書き込み(データ記録)及びディスク11からのデータ
読み出し(データ再生)に用いられるヘッド(磁気ヘッ
ド)、及び当該ヘッドによりディスク11から読み取ら
れたアナログ出力(ヘッドのリード信号)を入力してデ
ータ再生動作に必要な信号処理を行うデコード機能(リ
ードチャネル)並びにディスク11へのデータ記録に必
要な信号処理を行うエンコード機能(ライトチャネル)
等を有するリード/ライト回路などは、本発明に直接関
係しないため省略されている。
In FIG. 1, a head (magnetic head) used for writing data to the disk 11 (data recording) and reading data from the disk 11 (reproducing data), and an analog head read from the disk 11 by the head. A decode function (read channel) for inputting an output (head read signal) and performing signal processing necessary for data reproduction operation, and an encode function (write channel) for performing signal processing required for data recording on the disk 11
Are omitted because they are not directly related to the present invention.

【0024】以下、図1の構成の動作を、図2乃至図5
のフローチャートを参照して説明する。まず本実施形態
における磁気ディスク装置には、消費電力を節約するた
めのパワーセーブモードの1つとして、スピンドルモー
タ12が停止されるスタンバイモードが用意されてい
る。このスタンバイモードでは、リード/ライトチャネ
ルの電源もオフされる。この他スタンバイモードでは、
従来と異なって、バッファメモリ13の電源がオフされ
る(但し、例外あり)。また、スタンバイモードよりは
パワーセーブレベルが低いアイドルモードも用意されて
いる。このアイドルモードでは、リード/ライトチャネ
ルの電源はオフされるが、(キャッシュ等も含めて)ホ
スト装置からのコマンドに即座に対応できるように、ス
ピンドルモータ12は回転状態にあり、且つバッファメ
モリ13の電源はオン状態にある。
Hereinafter, the operation of the configuration of FIG. 1 will be described with reference to FIGS.
This will be described with reference to the flowchart of FIG. First, the magnetic disk device of the present embodiment is provided with a standby mode in which the spindle motor 12 is stopped as one of the power save modes for saving power consumption. In this standby mode, the power of the read / write channel is also turned off. In addition, in standby mode,
Unlike the related art, the power supply of the buffer memory 13 is turned off (with an exception). An idle mode having a lower power save level than the standby mode is also provided. In this idle mode, the power of the read / write channel is turned off, but the spindle motor 12 is in a rotating state and the buffer memory 13 is turned on so as to be able to immediately respond to a command from the host device (including a cache or the like). Is in the ON state.

【0025】今、パワーセーブのためにスタンバイモー
ドに移行するものとする。この場合、CPU16はRO
M15に格納されている制御プログラム(ファームウェ
ア)に従って図示せぬモータドライバを制御してスピン
ドルモータ12を停止し(ステップS1)、更にバッフ
ァメモリ13の電源をオフした後(ステップS2)、
(ホスト装置からの)コマンド待ち状態とする(ステッ
プS3)。ここではバッファメモリ13はDRAMで構
成されていることから、当該メモリ13の電源をオフす
る代わりに、メモリリフレッシュ動作を停止(オフ)す
るようにしても構わない。
Now, it is assumed that a transition is made to the standby mode for power saving. In this case, the CPU 16
After controlling the motor driver (not shown) according to the control program (firmware) stored in M15 to stop the spindle motor 12 (step S1), and further turning off the power of the buffer memory 13 (step S2),
A command waiting state (from the host device) is set (step S3). Here, since the buffer memory 13 is configured by a DRAM, the memory refresh operation may be stopped (turned off) instead of turning off the power of the memory 13.

【0026】磁気ディスク装置内では、このスタンバイ
モード(におけるコマンド待ち状態S3)でHDC14
がホスト装置から何らかのコマンドを受け取った場合に
は、そのコマンドの種別を判断し(ステップS21)、
そのコマンド種別に応じて以下に述べる処理が行われ
る。
In the magnetic disk drive, the HDC 14 is in this standby mode (command waiting state S3).
Receives a command from the host device, determines the type of the command (step S21),
The processing described below is performed according to the command type.

【0027】まず、ホスト装置からのコマンドが、ディ
スク11及びバッファメモリ13のアクセスを必要とし
ないコマンド(例えば故障診断を指示するコマンド)の
場合、CPU16はバッファメモリ13の電源がオフ
で、且つスピンドルモータ12が停止(オフ)の状態の
ままで、当該コマンドを実行する(ステップS22)。
そして当該コマンドが終了すると(ステップS23)、
そのままスタンバイモードのコマンド待ち状態(ステッ
プS3)に戻る。
First, when the command from the host device is a command that does not require access to the disk 11 and the buffer memory 13 (for example, a command for instructing a failure diagnosis), the CPU 16 turns off the buffer memory 13 and turns off the spindle. The command is executed while the motor 12 is stopped (off) (step S22).
When the command ends (step S23),
The process returns to the standby mode command waiting state (step S3).

【0028】次に、ホスト装置からのコマンドがリード
コマンドまたはリードロングコマンド(即ちリード系コ
マンド)の場合、CPU16はまず、ROM15内の制
御プログラムに従ってバッファメモリ13の電源をオン
し(ステップS24)、更にスピンドルモータ12を回
転(オン)する(ステップS25)。そしてCPU16
は、リードコマンドまたはリードロングコマンドで指定
されたディスク11上のデータを読み出してバッファメ
モリ13を介してホスト装置に転送する動作をHDC1
4により実行させ(ステップS26)、当該コマンドが
終了すると(ステップS27)、アイドルモードのコマ
ンド待ち状態(ステップS13)に進む。
Next, when the command from the host device is a read command or a read long command (that is, a read command), the CPU 16 first turns on the power of the buffer memory 13 according to the control program in the ROM 15 (step S24). Further, the spindle motor 12 is rotated (turned on) (step S25). And CPU16
The HDC 1 reads the data on the disk 11 specified by the read command or the read long command and transfers the data to the host device via the buffer memory 13.
4 (step S26), and when the command ends (step S27), the process proceeds to a command waiting state in the idle mode (step S13).

【0029】ここで、リードコマンドとリードロングコ
マンドとの違いは次の通りである。まず、ディスク11
からバッファメモリ13に読み出されるデータには、1
セクタ単位でその末尾に例えば20バイトのECCが付
加されており、リードコマンドの実行時には、ECCを
除くデータ(データ部のデータ)だけがバッファメモリ
13に格納される。このときHDC14内のECC回路
142が動作し、バッファメモリ13に格納されるデー
タからECCを算出し、当該データに続く(ディスク1
1からの)ECCと比較することで、当該データのエラ
ー検出を行う。もし、エラーが検出され、且つ訂正可能
な場合には、ECC回路142はバッファメモリ13内
の該当するデータを訂正する。これによりホスト装置に
は、エラー検出・訂正後のバッファメモリ13内のデー
タ、即ちECCを持たない正しいデータがHDC14に
より転送される。なお、ECC付きのデータのままでバ
ッファメモリ13に格納するようにしても構わない。
Here, the difference between the read command and the read long command is as follows. First, the disk 11
The data read out from the buffer memory 13 includes 1
An ECC of, for example, 20 bytes is added at the end of each sector, and when the read command is executed, only data (data in the data portion) excluding the ECC is stored in the buffer memory 13. At this time, the ECC circuit 142 in the HDC 14 operates to calculate the ECC from the data stored in the buffer memory 13, and to calculate the ECC following the data (disk 1
Error detection of the data is performed by comparing with ECC (from 1). If an error is detected and correctable, the ECC circuit 142 corrects the corresponding data in the buffer memory 13. As a result, data in the buffer memory 13 after error detection and correction, that is, correct data without ECC, is transferred to the host device by the HDC 14. The data with ECC may be stored in the buffer memory 13 as it is.

【0030】これに対し、リードロングコマンドの実行
時には、ECC回路142の動作が禁止されると共に、
ディスク11から読み出されるデータはECCが付加さ
れた状態でそのままバッファメモリ13に格納される。
そして、このECC付きのデータが、HDC14により
そのままホスト装置に転送される。
On the other hand, when the read long command is executed, the operation of the ECC circuit 142 is prohibited, and
Data read from the disk 11 is stored in the buffer memory 13 as it is with the ECC added.
Then, the data with the ECC is directly transferred to the host device by the HDC 14.

【0031】次に、ホスト装置からのコマンドがライト
コマンドまたはライトロングコマンド(即ちライト系コ
マンド)の場合、HDC14内のバッファ電源制御回路
140は当該ライトコマンドまたはライトロングコマン
ドの受信に応じてバッファメモリ13の電源を自動的に
オンする(ステップS28)。そして、バッファ電源制
御回路140はバッファメモリ13の状態を監視し、使
用可能状態となったことを検知すると、同じHDC14
内の自動転送回路141を起動する。これにより自動転
送回路141は、ライト系コマンドの指定するホスト装
置からのデータをバッファメモリ13に転送し、当該バ
ッファメモリ13から更にディスク11に転送する自動
データ転送処理を開始する。CPU16は、この自動転
送回路141によるデータ転送処理と同時に、制御プロ
グラムに従ってスピンドルモータ12の回転をスタート
させて、バッファメモリ13を介してのディスク11へ
の書き込みを開始させ(ステップS29)、当該コマン
ドが終了すると(ステップS30)、アイドルモードの
コマンド待ち状態(ステップS13)に進む。
Next, when the command from the host device is a write command or a write long command (ie, a write command), the buffer power supply control circuit 140 in the HDC 14 receives the write command or the write long command, and 13 is automatically turned on (step S28). Then, the buffer power supply control circuit 140 monitors the state of the buffer memory 13 and, when detecting that the buffer
Activate the automatic transfer circuit 141 therein. As a result, the automatic transfer circuit 141 starts the automatic data transfer process of transferring data from the host device designated by the write command to the buffer memory 13 and further transferring the data from the buffer memory 13 to the disk 11. At the same time as the data transfer processing by the automatic transfer circuit 141, the CPU 16 starts the rotation of the spindle motor 12 according to the control program, and starts writing to the disk 11 via the buffer memory 13 (step S29). Is completed (step S30), the process proceeds to a command waiting state in the idle mode (step S13).

【0032】ここで、ライト系コマンドがライトロング
コマンドの場合の、ディスク11へのデータ書き込みの
詳細を、ライトロングコマンドの使い方と併せて説明す
る。一般にライトロングコマンドは、磁気ディスク装置
のテストのために、ディスクアドレス及び転送サイズが
同一のリードロングコマンド及びリードコマンドと併用
して用いられる。まずホスト装置は、リードロングコマ
ンドによりディスク11から例えば1セクタ分のECC
付きデータをバッファメモリ13を介して読み込む。ホ
スト装置は、読み込んだECC付きデータを加工してテ
スト用の例えば1セクタ分の書き込みデータを生成す
る。ここで、当該データに付加されるECCは、ディス
ク11に本来書き込まれるECCの長さ(ここでは20
バイト)より短くても構わない。但し、ホスト装置は磁
気ディスク装置に対して、当該磁気ディスク装置に転送
する書き込みデータに1セクタ単位で付されるECCの
長さ(バイト数)を、専用のコマンドで予め指定してお
く必要がある。ホスト装置は、ライトロングコマンド用
の書き込みデータを生成すると、当該コマンドを磁気デ
ィスク装置(内のHDC14)に対して発行し、当該コ
マンドが受け付けられると生成した書き込みデータを上
記磁気ディスク装置に転送する。
Here, the details of writing data to the disk 11 when the write command is a write long command will be described together with how to use the write long command. Generally, a write long command is used in combination with a read long command and a read command having the same disk address and transfer size for testing a magnetic disk device. First, the host device issues an ECC for one sector from the disk 11 by a read long command.
The attached data is read via the buffer memory 13. The host device processes the read data with ECC to generate write data for one sector for testing, for example. Here, the ECC added to the data is the length of the ECC originally written on the disk 11 (here, 20
Bytes). However, it is necessary for the host device to previously specify the length (number of bytes) of the ECC added to the magnetic disk device in units of one sector to the write data to be transferred to the magnetic disk device by a dedicated command. is there. When generating the write data for the write long command, the host device issues the command to the magnetic disk device (the HDC 14 therein), and when the command is accepted, transfers the generated write data to the magnetic disk device. .

【0033】さて、ホスト装置からのライト系コマンド
がライトロングコマンドの場合には、リードロングコマ
ンドの場合と同様に、HDC14内のECC回路142
の動作が禁止される。このような状態でHDC14内の
自動転送回路141は、バッファ電源制御回路140に
より起動されることで、前記したようにホスト装置から
の書き込みデータ(ここでは1セクタ分の書き込みデー
タ)をバッファメモリ13に転送する動作を開始する。
When the write command from the host device is a write long command, similarly to the case of a read long command, the ECC circuit 142 in the HDC 14 is used.
Operation is prohibited. In this state, the automatic transfer circuit 141 in the HDC 14 is activated by the buffer power supply control circuit 140 to transfer write data (here, write data for one sector) from the host device to the buffer memory 13 as described above. Start the operation to transfer to.

【0034】この際、自動転送回路141は、上記書き
込みデータに付されているECCが、実際にディスク1
1に書き込まれるECCの長さより短いか否かを、ホス
ト装置により予め指定されているECC長から判断す
る。もし、ホスト装置からの書き込みデータに付されて
いるECCの方が短い場合には、自動転送回路141
は、先のリードロングコマンドの実行によりバッファメ
モリ13に読み込まれている、今回のライトロングコマ
ンドの指定するセクタと同一セクタのECC部(20バ
イト)の内容を取り出して、ホスト装置からのECC
に、当該ECCでは不足している残りのECC部分を上
記取り出したECC部の中から選択して付加すること
で、正しい長さのECCを生成し、バッファメモリ13
に格納する。自動転送回路141は、このバッファメモ
リ13内の正しい長さのECCを持つ書き込みデータを
先のリードロングコマンドの場合と同一のディスク11
上のセクタ領域に書き込む。その後、ホスト装置は、磁
気ディスク装置に対してリードコマンドを発行し、上記
ライトロングコマンドに従ってディスク11に書き込ま
れたデータ(テスト用のデータ)を読み出して転送させ
ることにより、ECC回路142等が正常に動作してい
たか否かをチェックする。
At this time, the automatic transfer circuit 141 determines whether the ECC attached to the write data actually
It is determined from the ECC length specified in advance by the host device whether or not the length is shorter than the length of the ECC written in 1. If the ECC attached to the write data from the host device is shorter, the automatic transfer circuit 141
Extracts the contents of the ECC portion (20 bytes) of the same sector as the sector specified by the current write long command, which has been read into the buffer memory 13 by executing the previous read long command, and reads the ECC from the host device.
In addition, the remaining ECC part that is insufficient in the ECC is selected from the extracted ECC part and added to generate an ECC of a correct length, and the buffer memory 13
To be stored. The automatic transfer circuit 141 transfers the write data having the correct length ECC in the buffer memory 13 to the same disk 11 as in the case of the previous read long command.
Write to upper sector area. Thereafter, the host device issues a read command to the magnetic disk device, reads and transfers the data (test data) written on the disk 11 in accordance with the write long command, and the ECC circuit 142 and the like operate normally. Check if it was working.

【0035】次に、ホスト装置からのコマンドが(ライ
ト系コマンドの一種である)ライトバッファコマンドの
場合、HDC14内のバッファ電源制御回路140は、
前記したライトコマンドまたはライトロングコマンドの
場合と同様に、バッファメモリ13の電源を自動的にオ
ンし(ステップS31)、バッファメモリ13が使用可
能状態となった段階で自動転送回路141を起動する。
これにより自動転送回路141は、ライトバッファコマ
ンドの指定するホスト装置からのデータ(ここでは1セ
クタ分に一致する512バイトのデータ)をバッファメ
モリ13に転送するデータ転送を開始する(ステップS
32)。
Next, if the command from the host device is a write buffer command (a kind of write command), the buffer power control circuit 140 in the HDC 14
As in the case of the write command or the write long command, the power of the buffer memory 13 is automatically turned on (step S31), and the automatic transfer circuit 141 is activated when the buffer memory 13 becomes available.
Accordingly, the automatic transfer circuit 141 starts data transfer for transferring data (here, 512-byte data corresponding to one sector) from the host device specified by the write buffer command to the buffer memory 13 (step S).
32).

【0036】CPU16は自動転送回路141によるデ
ータ転送が終了してライトバッファコマンドの実行が終
了すると(ステップS33)、タイマ17を起動して所
定時間T、例えば5秒を計測させる(ステップS3
4)。
When the data transfer by the automatic transfer circuit 141 is completed and the execution of the write buffer command is completed (step S33), the CPU 16 activates the timer 17 to measure a predetermined time T, for example, 5 seconds (step S3).
4).

【0037】CPU16は、タイマ17が時間T(T=
5秒)を計測し終えるまでに、即ちタイマ17がタイム
アウトとなるまでに、ホスト装置から何らかのコマンド
が発行されたならば(ステップS35,S36)、タイ
マ17をリセットした後(ステップS37)、そのコマ
ンドの処理に進む。通常、ホスト装置はライトバッファ
コマンドを発行すると、当該コマンドでバッファメモリ
13に書き込まれたデータを読み込むために、当該コマ
ンドに続いてリードバッファコマンドを発行する。した
がって、ライトバッファコマンドの終了後、タイマ17
が時間Tを計測し終えるまでにリードバッファコマンド
が発行されたならば、(スタンバイモードでありなが
ら、バッファメモリ13の電源がオン状態のままで)、
後述するリードバッファコマンドの処理に進む。
The CPU 16 determines that the timer 17 has a time T (T =
(5 seconds), the host device issues some command before the timer 17 times out (steps S35 and S36), and resets the timer 17 (step S37). Proceed to command processing. Normally, when the host device issues a write buffer command, the host device issues a read buffer command following the command in order to read data written in the buffer memory 13 by the command. Therefore, after the end of the write buffer command, the timer 17
If the read buffer command is issued before the measurement of the time T is completed (while the power of the buffer memory 13 is in the ON state while in the standby mode),
The process proceeds to a read buffer command process described later.

【0038】これに対し、タイマ17が時間Tを計測し
終えるまでにホスト装置からコマンドが発行されなかっ
たならば、CPU16はROM15内の制御プログラム
に従ってパワーセーブのためにバッファメモリ13の電
源をオフした後(ステップS38)、スタンバイモード
のコマンド待ち状態(ステップS3)に戻る。
On the other hand, if no command is issued from the host device before the timer 17 finishes measuring the time T, the CPU 16 turns off the power of the buffer memory 13 for power saving according to the control program in the ROM 15. After that (step S38), the process returns to the command waiting state in the standby mode (step S3).

【0039】さて、ホスト装置からのコマンドがリード
バッファコマンドの場合、CPU16はバッファメモリ
13の電源がオンされているか否かを調べる(ステップ
S39)。もし、バッファメモリ13の電源がオフされ
ているならば、CPU16はライトバッファコマンドの
実行終了後時間T以内に発行されたリードバッファコマ
ンドではないものとして、当該リードバッファコマンド
をエラー(アボートエラー)として破棄し(ステップS
40)、その旨をホスト装置に通知する。
When the command from the host device is a read buffer command, the CPU 16 checks whether or not the power of the buffer memory 13 is turned on (step S39). If the power of the buffer memory 13 is turned off, the CPU 16 determines that the read buffer command is not a read buffer command issued within the time T after the execution end of the write buffer command, and sets the read buffer command as an error (abort error). Discard (Step S
40), and notifies the host device of the fact.

【0040】これに対し、バッファメモリ13の電源が
オンされているならば、CPU16はタイマ17が時間
Tを計測し終えるまでにリードバッファコマンドが発行
されたものと判断し、当該コマンドで指定されたバッフ
ァメモリ13のデータを読み出してホスト装置に転送す
る動作をHDC14により実行させる(ステップS4
1)。
On the other hand, if the power of the buffer memory 13 is turned on, the CPU 16 determines that the read buffer command has been issued before the timer 17 finishes measuring the time T, and the CPU 16 determines that the read buffer command has been issued. The HDC 14 performs an operation of reading the data in the buffer memory 13 and transferring the data to the host device (step S4).
1).

【0041】そしてコマンド(リードバッファコマン
ド)の実行が終了すると(ステップS33)、CPU1
6は前記したライトバッファコマンドの実行終了時と同
様にタイマ17を起動して時間Tを計測させ(ステップ
S34)、時間Tを計測し終えるまでにホスト装置から
コマンドが発行されなかったならば(ステップS35,
S36)、消費電力の節約のためにバッファメモリ13
の電源をオフした後(ステップS38)、スタンバイモ
ードのコマンド待ち状態(ステップS3)に戻る。
When the execution of the command (read buffer command) is completed (step S33), the CPU 1
6 starts the timer 17 and measures the time T in the same manner as when the execution of the write buffer command is completed (step S34), and if no command is issued from the host device until the measurement of the time T is completed (step S34). Step S35,
S36) The buffer memory 13 for saving power consumption
After turning off the power (step S38), the process returns to the standby mode command waiting state (step S3).

【0042】以上に述べた第1の実施形態では、スピン
ドルモータ12の回転停止を伴うスタンバイモードにお
いて、ライトバッファコマンドの実行終了から一定時間
Tが経過するまでにホスト装置からコマンドが発行され
ない場合には、バッファメモリ13の電源をオフして消
費電力を節約するようにしている。この場合、バッファ
メモリ13のデータが失われるため、上記第1の実施形
態では、その後に発行されるリードバッファコマンドを
アボートエラーとする必要があった。
In the first embodiment described above, in the standby mode in which the rotation of the spindle motor 12 is stopped, the command is not issued from the host device until a predetermined time T has elapsed from the end of execution of the write buffer command. Is configured to turn off the power of the buffer memory 13 to save power consumption. In this case, since the data in the buffer memory 13 is lost, in the first embodiment, the read buffer command issued thereafter must be an abort error.

【0043】そこで、ライトバッファコマンドの実行終
了から一定時間Tが経過した後にリードバッファコマン
ドが発行されたとしても、消費電力を節約しながら、当
該リードコマンドの動作を保証することができる(した
がって、先に実行されたライトバッファコマンドの動作
も保証できる)ようにした第2の実施形態について、図
面を参照して説明する。 [第2の実施形態]図6は本発明の第1の実施形態に係
る磁気ディスク装置の概略構成を示すブロック図であ
り、図1と同一部分には同一符号を付して説明を省略す
る。
Therefore, even if a read buffer command is issued after a certain time T has elapsed from the end of execution of the write buffer command, the operation of the read command can be guaranteed while saving power consumption (thus, The second embodiment in which the operation of the previously executed write buffer command can be guaranteed will be described with reference to the drawings. [Second Embodiment] FIG. 6 is a block diagram showing a schematic configuration of a magnetic disk drive according to a first embodiment of the present invention. The same parts as those in FIG. .

【0044】図6の磁気ディスク装置が図1の磁気ディ
スク装置と異なる点は、バッファメモリ13のデータ
(512バイト)を保存するためのバッファデータ保存
領域180が確保された書き換え可能な不揮発性メモリ
としてのEEPROM(Electrically Erasable and Pr
ogrammable Read Only Memory )18が設けられている
ことである。なお、EEPROM自体は、磁気ディスク
装置の制御用のパラメータの保存などに用いられること
から、図示はしていないものの、図1の磁気ディスク装
置にも設けられている。
The magnetic disk device of FIG. 6 differs from the magnetic disk device of FIG. 1 in that a rewritable nonvolatile memory in which a buffer data storage area 180 for storing data (512 bytes) in the buffer memory 13 is secured. EEPROM (Electrically Erasable and Pr
(grammable Read Only Memory) 18 is provided. The EEPROM itself is not shown, but is also provided in the magnetic disk device of FIG. 1 because it is used for storing parameters for controlling the magnetic disk device.

【0045】また、図6の磁気ディスク装置が図1の磁
気ディスク装置と異なる他の点は、ライトバッファコマ
ンドの実行終了から一定時間Tが経過するまでにホスト
装置からコマンドが発行されない場合には、前記第1の
実施形態のように直ちにバッファメモリ13の電源をオ
フするのではなく、その前にバッファメモリ13のデー
タをEEPROM18内のバッファデータ保存領域18
0に保存(セーブ)する処理手順と、リードバッファコ
マンドの受信時にバッファメモリ13の電源がオフされ
ている場合に、前記第1の実施形態のように当該コマン
ドをアボートするのではなく、バッファメモリ13の電
源をオンして、当該メモリ13にEEPROM18内の
バッファデータ保存領域180からデータをロードし、
そのデータをホスト装置に転送する処理手順とを含む制
御プログラムがROM15に格納されていることであ
る。
Another difference between the magnetic disk device of FIG. 6 and the magnetic disk device of FIG. 1 is that a command is not issued from the host device until a predetermined time T has elapsed from the end of execution of the write buffer command. Instead of immediately turning off the power of the buffer memory 13 as in the first embodiment, the data in the buffer memory 13 is stored in the buffer data storage area 18 in the EEPROM 18 before that.
0, and when the power of the buffer memory 13 is turned off at the time of receiving the read buffer command, instead of aborting the command as in the first embodiment, the buffer memory 13 is not aborted. 13 is turned on, data is loaded into the memory 13 from the buffer data storage area 180 in the EEPROM 18,
A control program including a procedure for transferring the data to the host device is stored in the ROM 15.

【0046】次に、図6の構成の動作を、前記第1の実
施形態とは異なる、スタンバイモードにおけるライトバ
ッファコマンド受信時の動作とリードバッファコマンド
受信時の動作について、図7のフローチャートを参照し
て説明する。
Next, the operation of the configuration of FIG. 6 will be described with reference to the flowchart of FIG. 7, which is different from the first embodiment, for the operation at the time of receiving the write buffer command and the operation at the time of receiving the read buffer command in the standby mode. I will explain.

【0047】まず、スタンバイモードにおいて、図7の
磁気ディスク装置内のHDC14でホスト装置からライ
トバッファコマンドを受信した場合、HDC14内のバ
ッファ電源制御回路140は、前記第1の実施形態と同
様に、バッファメモリ13の電源を自動的にオンし(ス
テップS51)、バッファメモリ13が使用可能状態と
なった段階で自動転送回路141を起動する。これによ
り自動転送回路141は、ライトバッファコマンドの指
定するホスト装置からのデータをバッファメモリ13に
転送するデータ転送を開始する(ステップS52)。
First, in the standby mode, when the HDC 14 in the magnetic disk device of FIG. 7 receives a write buffer command from the host device, the buffer power supply control circuit 140 in the HDC 14 performs the same operation as in the first embodiment. The power of the buffer memory 13 is automatically turned on (step S51), and the automatic transfer circuit 141 is activated when the buffer memory 13 becomes available. Accordingly, the automatic transfer circuit 141 starts data transfer for transferring data from the host device specified by the write buffer command to the buffer memory 13 (step S52).

【0048】CPU16は自動転送回路141によるデ
ータ転送が終了してライトバッファコマンドの実行が終
了すると(ステップS53)、タイマ17を起動して所
定時間T(=5秒)を計測させる(ステップS54)。
もし、タイマ17が時間Tを計測し終えるまでにホスト
装置から何らかのコマンドが発行されたならば(ステッ
プS55,S56)、CPU16はタイマ17をリセッ
トした後(ステップS57)、そのコマンドの処理に進
む。
When the data transfer by the automatic transfer circuit 141 is completed and the execution of the write buffer command is completed (step S53), the CPU 16 starts the timer 17 and measures a predetermined time T (= 5 seconds) (step S54). .
If any command is issued from the host device before the timer 17 finishes measuring the time T (steps S55 and S56), the CPU 16 resets the timer 17 (step S57) and proceeds to processing of the command. .

【0049】ここまでのステップS51〜S57の処理
は、前記第1の実施形態におけるステップ31〜S37
の処理と同様である。一方、タイマ17が時間Tを計測
し終えるまでにホスト装置からコマンドが発行されなか
ったならば、CPU16はROM15内の制御プログラ
ムに従って、まずバッファメモリ13のデータ(ここで
は、ライトバッファコマンドの実行によりバッファメモ
リ13に書き込まれた512バイトのデータ)をEEP
ROM18内のバッファデータ保存領域180に保存
(セーブ)し(ステップS58)、しかる後に消費電力
の節約のためにバッファメモリ13の電源をオフする
(ステップS59)。そしてCPU16は、スタンバイ
モードのコマンド待ち状態(ステップS3)に戻る。
The processes in steps S51 to S57 are the same as those in steps S31 to S37 in the first embodiment.
The processing is the same as that described above. On the other hand, if the command is not issued from the host device by the time when the timer 17 finishes measuring the time T, the CPU 16 first reads the data in the buffer memory 13 (here, the execution of the write buffer command in accordance with the control program in the ROM 15). 512 bytes of data written to the buffer memory 13)
The data is saved (saved) in the buffer data saving area 180 in the ROM 18 (step S58), and thereafter, the power of the buffer memory 13 is turned off to save power consumption (step S59). Then, the CPU 16 returns to the standby mode command waiting state (step S3).

【0050】次に、ホスト装置からリードバッファコマ
ンドを受信した場合、CPU16は(前記第1の実施形
態におけるステップS39と同様に)バッファメモリ1
3の電源がオンされているか否かを調べる(ステップS
60)。もし、バッファメモリ13の電源がオフされて
いるならば、CPU16はまず当該メモリ13の電源を
オンし(ステップS61)、しかる後にEEPROM1
8内のバッファデータ保存領域180に保存しておいた
512バイトのデータを元のバッファメモリ13にロー
ドする(ステップS62)。次にCPU16は、(リー
ドバッファコマンドの受信時にバッファメモリ13の電
源がオンされている場合と同様に)バッファメモリ13
のデータ(但しここでは、EEPROM18からロード
されたデータ)を読み出してホスト装置に転送する動作
をHDC14により実行させる(ステップS63)。
Next, when a read buffer command is received from the host device, the CPU 16 sets the buffer memory 1 (similar to step S39 in the first embodiment).
3 is turned on (step S).
60). If the power of the buffer memory 13 is off, the CPU 16 first turns on the power of the memory 13 (step S61), and thereafter, the EEPROM 1
8, the 512-byte data stored in the buffer data storage area 180 is loaded into the original buffer memory 13 (step S62). Next, the CPU 16 sets the buffer memory 13 (in the same manner as when the power of the buffer memory 13 is turned on at the time of receiving the read buffer command).
(Here, the data loaded from the EEPROM 18) is read out and transferred to the host device by the HDC 14 (step S63).

【0051】そしてコマンド(リードバッファコマン
ド)の実行が終了すると(ステップS53)、CPU1
6は前記したライトバッファコマンドの実行終了時と同
様にタイマ17を起動して時間Tを計測させ(ステップ
S54)、時間Tを計測し終えるまでにホスト装置から
コマンドが発行されなかったならば(ステップS55,
S56)、バッファメモリ13のデータをEEPROM
18内のバッファデータ保存領域180に保存した後
(ステップS58)、バッファメモリ13の電源をオフ
した上で(ステップS59)、スタンバイモードのコマ
ンド待ち状態(ステップS3)に戻る。
When the execution of the command (read buffer command) is completed (step S53), the CPU 1
6 starts the timer 17 and measures the time T in the same manner as at the end of the execution of the write buffer command (step S54). If no command is issued from the host device until the time T is measured (step S54). Step S55,
S56), the data in the buffer memory 13 is stored in the EEPROM
After the data is stored in the buffer data storage area 180 in the memory 18 (step S58), the power of the buffer memory 13 is turned off (step S59), and the process returns to the standby mode command waiting state (step S3).

【0052】なお、時間Tを計測し終えるまでにホスト
装置からコマンドが発行されなかった場合の処理を、ラ
イトバッファコマンド実行時とリードバッファコマンド
実行時とで分けるならば、リードバッファコマンド実行
時にはステップS58をスキップしてステップS59を
行うようにしてもよい。
If the processing in the case where the command is not issued from the host device until the time T is measured is divided into the execution of the write buffer command and the execution of the read buffer command, if the processing is not executed, the step is executed when the read buffer command is executed. Step S59 may be performed by skipping S58.

【0053】また、以上に述べた第1及び第2の実施形
態では、HDC14内にバッファ電源制御回路140を
設け、スタンバイモードにおいてHDC14でホスト装
置からライト系コマンド(ライトコマンド、ライトロン
グコマンド、またはライトバッファコマンド)を受信し
た際には、上記バッファ電源制御回路140がバッファ
メモリ13の電源を自動的にオンし、当該メモリ13が
使用可能状態となった段階で自動転送回路141を起動
する構成としたが、これに限るものではない。例えば、
スタンバイモードにおいて自動転送回路141の機能を
オフし、この状態でライト系コマンドを受信した際に
は、CPU16が制御プログラムに従ってバッファメモ
リ13の電源をオンし、当該メモリ13が使用可能状態
となった段階で自動転送回路141をオン(起動)する
構成とすることも可能である。
In the first and second embodiments described above, the buffer power supply control circuit 140 is provided in the HDC 14, and in the standby mode, the HDC 14 sends a write command (write command, write long command, or write long command) from the host device. When receiving the write buffer command), the buffer power control circuit 140 automatically turns on the power of the buffer memory 13 and activates the automatic transfer circuit 141 when the memory 13 becomes available. However, the present invention is not limited to this. For example,
In the standby mode, the function of the automatic transfer circuit 141 is turned off, and when a write command is received in this state, the CPU 16 turns on the power of the buffer memory 13 according to the control program, and the memory 13 becomes usable. It is also possible to adopt a configuration in which the automatic transfer circuit 141 is turned on (activated) at a stage.

【0054】また、前記第1及び第2の実施形態では磁
気ディスク装置について説明したが、本発明は、記録再
生用のディスクからの読み出しデータ及びディスクへの
書き込みデータを一時記憶するバッファメモリを備えた
ディスク装置であれば、光磁気ディスク装置など、磁気
ディスク装置以外のディスク装置にも適用可能である。
In the first and second embodiments, the magnetic disk device has been described. However, the present invention includes a buffer memory for temporarily storing data read from a recording / reproducing disk and data written to the disk. Also, the present invention can be applied to disk devices other than magnetic disk devices such as magneto-optical disk devices.

【0055】[0055]

【発明の効果】以上詳述したように本発明によれば、ス
タンバイモードでバッファメモリの電源をオフし、ライ
トバッファコマンドの受信時には、バッファメモリの電
源をオンして当該コマンドを実行し、当該コマンド終了
後、一定時間内にコマンドを受信しなかったならば、バ
ッファメモリの電源をオフ状態に戻す構成としたので、
ライトバッファコマンドの基本動作を損なわずにバッフ
ァメモリの電源をオフでき、消費電力の一層の節約を図
ることができる。
As described above in detail, according to the present invention, the power of the buffer memory is turned off in the standby mode, and when the write buffer command is received, the power of the buffer memory is turned on and the command is executed. If the command is not received within a certain time after the command ends, the power of the buffer memory is returned to the off state.
The power of the buffer memory can be turned off without impairing the basic operation of the write buffer command, and the power consumption can be further reduced.

【0056】また本発明によれば、上記一定時間内にコ
マンドを受信した場合には、バッファメモリの電源がオ
ンされているため、当該コマンドがリードバッファコマ
ンドなどバッファアクセスを伴うものであっても、その
まま当該コマンドを正しく実行できる。
According to the present invention, when a command is received within the above-mentioned fixed time, the power of the buffer memory is turned on. , The command can be correctly executed as it is.

【0057】このように本発明によれば、各種コマン
ド、特にライトバッファコマンド、リードバッファコマ
ンドなど、ディスクアクセスを伴わずにバッファアクセ
スが行われるコマンドの基本動作を損なわずにバッファ
メモリの電源をオフでき、消費電力の一層の節約を図る
ことができる。
As described above, according to the present invention, the power of the buffer memory is turned off without impairing the basic operation of various commands, in particular, commands such as a write buffer command and a read buffer command, which perform buffer access without disk access. Power consumption can be further reduced.

【0058】また本発明によれば、スタンバイモードで
バッファメモリの電源をオフし、ライトバッファコマン
ドの受信時には、バッファメモリの電源をオンして当該
コマンドを実行し、当該コマンド終了後、一定時間内に
コマンドを受信しなかったならば、ライトバッファコマ
ンドの実行によりバッファメモリに転送されたホスト装
置からのデータを書き換え可能な不揮発性メモリに保存
した後にバッファメモリの電源をオフ状態に戻す構成と
したので、上記一定時間経過後にリードバッファコマン
ドを受信したとしても、バッファメモリの電源をオンし
て不揮発性メモリのデータを当該バッファメモリにロー
ドするならば、このデータ(先のライトバッファコマン
ドでバッファメモリに転送された後に不揮発性メモリに
保存され、更に不揮発性メモリからバッファメモリにロ
ードされたデータ)を当該バッファメモリからホスト装
置に転送すること(即ち受信コマンドを実行すること)
ができる。
According to the present invention, the power of the buffer memory is turned off in the standby mode, and when a write buffer command is received, the power of the buffer memory is turned on and the command is executed. If no command is received, the data from the host device transferred to the buffer memory by executing the write buffer command is stored in a rewritable nonvolatile memory, and then the power of the buffer memory is turned off. Therefore, even if the read buffer command is received after the elapse of the predetermined time, if the power of the buffer memory is turned on and the data in the non-volatile memory is loaded into the buffer memory, the data (the buffer memory may be used in the previous write buffer command). After being transferred to the non-volatile memory, Data) loaded from nonvolatile memory into the buffer memory to be transferred from the buffer memory to the host device (i.e., executing the received command)
Can be.

【0059】このように本発明によれば、スタンバイモ
ードでバッファメモリの電源をオフして消費電力を節約
しても、ライトバッファコマンド及びリードバッファコ
マンドの動作を常に保証することができる。
As described above, according to the present invention, even if the power of the buffer memory is turned off in the standby mode to save power consumption, the operation of the write buffer command and the read buffer command can always be guaranteed.

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

【図1】本発明の第1の実施形態に係る磁気ディスク装
置の概略構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of a magnetic disk drive according to a first embodiment of the present invention.

【図2】同実施形態においてスタンバイモードに移行す
る際の処理手順を説明するためのフローチャート。
FIG. 2 is an exemplary flowchart for explaining a processing procedure when shifting to a standby mode in the embodiment.

【図3】同実施形態においてアイドルモードに移行する
際の処理手順を説明するためのフローチャート。
FIG. 3 is an exemplary flowchart for explaining a processing procedure when shifting to an idle mode in the embodiment.

【図4】スタンバイモードでのコマンド受信時の処理手
順を説明するためのフローチャートの一部を示す図。
FIG. 4 is a diagram showing a part of a flowchart for describing a processing procedure when a command is received in a standby mode.

【図5】スタンバイモードでのコマンド受信時の処理手
順を説明するためのフローチャートの残りを示すもの
で、ライトバッファコマンド受信時とリードバッファコ
マンド受信時の処理手順を示す図。
FIG. 5 is a diagram illustrating the rest of the flowchart for describing the processing procedure at the time of receiving a command in the standby mode, and is a diagram illustrating the processing procedure at the time of receiving a write buffer command and receiving a read buffer command.

【図6】本発明の第2の実施形態に係る磁気ディスク装
置の概略構成を示すブロック図。
FIG. 6 is a block diagram showing a schematic configuration of a magnetic disk drive according to a second embodiment of the present invention.

【図7】上記第2の実施形態で適用される、スタンバイ
モードでのライトバッファコマンド受信時とリードバッ
ファコマンド受信時の処理手順を示す図。
FIG. 7 is a diagram showing a processing procedure when a write buffer command and a read buffer command are received in a standby mode, which are applied in the second embodiment.

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

11…ディスク 12…スピンドルモータ 13…バッファメモリ 14…HDC(ディスクコントローラ、データ転送手
段、第1のデータ転送手段、第2のデータ転送手段) 15…ROM 16…CPU(第1のバッファ電源オフ手段、第2のバ
ッファ電源オフ手段、バッファ電源オン手段、アボート
手段、第1のバッファ電源オン手段、データ保存手段、
第2のバッファ電源オン手段、データロード手段) 17…タイマ 18…EEPROM(書き換え可能な不揮発性メモリ) 140…バッファ電源制御回路(バッファ電源オン手
段、第1のバッファ電源オン手段) 141…自動転送回路(データ転送手段、第1のデータ
転送手段) 142…ECC回路 180…バッファデータ保存領域
DESCRIPTION OF SYMBOLS 11 ... Disk 12 ... Spindle motor 13 ... Buffer memory 14 ... HDC (disk controller, data transfer means, 1st data transfer means, 2nd data transfer means) 15 ... ROM 16 ... CPU (1st buffer power-off means) A second buffer power-off means, a buffer power-on means, an abort means, a first buffer power-on means, a data storage means,
Second buffer power-on means, data loading means) 17 Timer 18 EEPROM (rewritable nonvolatile memory) 140 Buffer power control circuit (Buffer power-on means, first buffer power-on means) 141 Automatic transfer Circuit (data transfer means, first data transfer means) 142 ECC circuit 180 buffer data storage area

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ディスクからの読み出しデータ及びディ
スクへの書き込みデータを一時記憶するバッファメモリ
を備えたディスク装置において、 前記ディスクを回転駆動するモータの停止を伴うスタン
バイモードに移行する際には前記バッファメモリの電源
をオフする第1のバッファ電源オフ手段と、 前記バッファメモリへのデータ書き込みを指示するライ
トバッファコマンドを前記スタンバイモードでホスト装
置から受信した場合に、前記バッファメモリの電源をオ
ンするバッファ電源オン手段と、 前記バッファ電源オン手段により電源がオンされた前記
バッファメモリに前記ライトバッファコマンドで指定さ
れたデータを転送するデータ転送手段と、 前記ライトバッファコマンドの終了後、予め定められた
一定時間内に前記ホスト装置からコマンドを受信しなか
った場合には、前記バッファメモリの電源をオフする第
2のバッファ電源オフ手段とを具備することを特徴とす
るディスク装置。
1. A disk drive comprising a buffer memory for temporarily storing read data from a disk and write data to a disk, wherein the buffer is used when shifting to a standby mode in which a motor for rotating the disk is stopped. First buffer power-off means for turning off the power of the memory; and a buffer for turning on the power of the buffer memory when a write buffer command instructing data writing to the buffer memory is received from the host device in the standby mode. Power on means; data transfer means for transferring data specified by the write buffer command to the buffer memory powered on by the buffer power on means; and a predetermined constant after completion of the write buffer command. Said host device in time If it does not receive the Luo command, the disk apparatus characterized by comprising a second buffer power-off means for turning off the power supply of the buffer memory.
【請求項2】 ディスクからの読み出しデータ及びディ
スクへの書き込みデータを一時記憶するバッファメモリ
を備えたディスク装置において、 前記ディスクを回転駆動するモータの停止を伴うスタン
バイモードに移行する際には前記バッファメモリの電源
をオフする第1のバッファ電源オフ手段と、 前記バッファメモリへのデータ書き込みを指示するライ
トバッファコマンドを前記スタンバイモードでホスト装
置から受信した場合に、前記バッファメモリの電源をオ
ンするバッファ電源オン手段と、 バッファ電源オン手段により電源がオンされた前記バッ
ファメモリに前記ライトバッファコマンドで指定された
データを転送する第1のデータ転送手段と、 前記ライトバッファコマンドの終了後、予め定められた
一定時間内に前記ホスト装置からコマンドを受信しなか
った場合には、前記バッファメモリの電源をオフする第
2のバッファ電源オフ手段と、 前記バッファメモリからのデータ読み出しを指示するリ
ードバッファコマンドを前記一定時間内に前記ホスト装
置から受信した場合、前記バッファメモリからデータを
読み出して前記ホスト装置に転送する第2のデータ転送
手段と、 前記リードバッファコマンドを前記一定時間を経過後に
受信した場合、当該リードバッファコマンドをアボート
するアボート手段とを具備することを特徴とするディス
ク装置。
2. A disk device comprising a buffer memory for temporarily storing read data from a disk and write data to a disk, wherein the buffer is used to shift to a standby mode in which a motor for rotating the disk is stopped. First buffer power-off means for turning off the power of the memory; and a buffer for turning on the power of the buffer memory when a write buffer command instructing data writing to the buffer memory is received from the host device in the standby mode. Power-on means; first data transfer means for transferring data specified by the write buffer command to the buffer memory powered on by the buffer power-on means; predetermined after completion of the write buffer command Within a certain period of time A second buffer power-off means for turning off the power of the buffer memory when no command is received from the host device, and a read buffer command for instructing data read from the buffer memory being issued within the predetermined time by the host device. A second data transfer unit that reads data from the buffer memory and transfers the read buffer command to the host device when receiving the read buffer command after a lapse of the predetermined time. And a disk device.
【請求項3】 ディスクからの読み出しデータ及びディ
スクへの書き込みデータを一時記憶するバッファメモリ
を備えたディスク装置において、 前記バッファメモリのデータを保存するための領域を有
する書き換え可能な不揮発性メモリと、 前記ディスクを回転駆動するモータの停止を伴うスタン
バイモードに移行する際には前記バッファメモリの電源
をオフする第1のバッファ電源オフ手段と、 前記バッファメモリへのデータ書き込みを指示するライ
トバッファコマンドを前記スタンバイモードでホスト装
置から受信した場合に、前記バッファメモリの電源をオ
ンする第1のバッファ電源オン手段と、 前記第1のバッファ電源オン手段により電源がオンされ
た前記バッファメモリに前記ライトバッファコマンドで
指定されたデータを転送する第1のデータ転送手段と、 前記ライトバッファコマンドの終了後、予め定められた
一定時間内に前記ホスト装置からコマンドを受信しなか
った場合には、前記バッファメモリのデータを前記不揮
発性メモリに保存するデータ保存手段と、 前記データ保存手段による前記不揮発性メモリへのデー
タ保存後に、前記バッファメモリの電源をオフする第2
のバッファ電源オフ手段と、 前記バッファメモリからのデータ読み出しを指示するリ
ードバッファコマンドを前記一定時間を経過後に受信し
た場合に、前記バッファメモリの電源をオンする第2の
バッファ電源オン手段と、 前記第2のバッファ電源オン手段により電源がオンされ
た前記バッファメモリに前記不揮発性メモリに保存され
ているデータをロードするデータロード手段と、 前記リードバッファコマンドを前記一定時間内に受信し
た場合には直ちに、前記一定時間を経過後に受信した場
合には、前記データロード手段による前記バッファメモ
リへのデータロード後に、前記バッファメモリからデー
タを読み出して前記ホスト装置に転送する第2のデータ
転送手段とを具備することを特徴とするディスク装置。
3. A disk device comprising a buffer memory for temporarily storing read data from a disk and write data to a disk, a rewritable nonvolatile memory having an area for storing data in the buffer memory, A first buffer power-off means for turning off the power of the buffer memory when shifting to a standby mode with a stop of a motor for rotating the disk; and a write buffer command for instructing data writing to the buffer memory. First buffer power-on means for turning on the buffer memory when receiving data from the host device in the standby mode; and the write buffer in the buffer memory powered on by the first buffer power-on means. Transfer data specified by command A first data transfer unit that, when the command is not received from the host device within a predetermined time after the end of the write buffer command, the data in the buffer memory is transferred to the nonvolatile memory. A data storage unit for storing, and a second power supply for turning off the power of the buffer memory after the data storage unit stores the data in the nonvolatile memory.
Buffer power-off means, and a second buffer power-on means for turning on the power of the buffer memory when receiving a read buffer command instructing data reading from the buffer memory after the lapse of the predetermined time, Data loading means for loading data stored in the non-volatile memory into the buffer memory powered on by the second buffer power-on means; if the read buffer command is received within the predetermined time, Immediately, if the data is received after the elapse of the predetermined time, a second data transfer unit that reads data from the buffer memory and transfers the data to the host device after the data load unit loads the data into the buffer memory. A disk device, comprising:
【請求項4】 ディスクからの読み出しデータ及びディ
スクへの書き込みデータを一時記憶するバッファメモリ
を備えたディスク装置に適用されるパワーセーブ制御方
法において、 前記ディスクを回転駆動するモータの停止を伴うスタン
バイモードに移行する際には前記バッファメモリの電源
をオフし、 前記バッファメモリへのデータ書き込みを指示するライ
トバッファコマンドを前記スタンバイモードでホスト装
置から受信した場合には前記バッファメモリの電源をオ
ンした後に、前記バッファメモリに前記ライトバッファ
コマンドで指定されたデータを転送するデータ転送を開
始し、 前記ライトバッファコマンドの終了後に、予め定められ
た一定時間内に前記ホスト装置からコマンドを受信しな
かった場合には、前記バッファメモリの電源をオフし
て、前記スタンバイモードにおけるコマンド待ち状態に
進むようにしたことを特徴とするパワーセーブ制御方
法。
4. A power saving control method applied to a disk device having a buffer memory for temporarily storing read data from a disk and write data to a disk, wherein the standby mode includes stopping a motor for rotating the disk. When transitioning to, the power of the buffer memory is turned off, and when a write buffer command instructing data writing to the buffer memory is received from the host device in the standby mode, the power of the buffer memory is turned on. Starting data transfer for transferring data specified by the write buffer command to the buffer memory, and not receiving a command from the host device within a predetermined time after the end of the write buffer command. The power of the buffer memory A power saving control method characterized by turning off a power source and proceeding to a command waiting state in the standby mode.
【請求項5】 ディスクからの読み出しデータ及びディ
スクへの書き込みデータを一時記憶するバッファメモリ
を備えたディスク装置に適用されるパワーセーブ制御方
法において、 前記ディスクを回転駆動するモータの停止を伴うスタン
バイモードに移行する際には前記バッファメモリの電源
をオフし、 前記バッファメモリへのデータ書き込みを指示するライ
トバッファコマンドを前記スタンバイモードでホスト装
置から受信した場合には前記バッファメモリの電源をオ
ンした後に、前記バッファメモリに前記ライトバッファ
コマンドで指定されたデータを転送するデータ転送を開
始し、 前記ライトバッファコマンドの終了後に、予め定められ
た一定時間内に前記ホスト装置からコマンドを受信しな
かった場合には、前記バッファメモリの電源をオフし
て、前記スタンバイモードにおけるコマンド待ち状態に
進み、 前記バッファメモリからのデータ読み出しを指示するリ
ードバッファコマンドを前記一定時間内に前記ホスト装
置から受信した場合には、前記バッファメモリからデー
タを読み出して前記ホスト装置に転送するデータ転送を
開始し、 前記リードバッファコマンドを前記一定時間を経過後に
受信した場合には、当該リードバッファコマンドをアボ
ートするようにしたことを特徴とするパワーセーブ制御
方法。
5. A power save control method applied to a disk device having a buffer memory for temporarily storing read data from a disk and write data to a disk, wherein the standby mode involves stopping a motor for rotating the disk. When transitioning to, the power of the buffer memory is turned off, and when a write buffer command instructing data writing to the buffer memory is received from the host device in the standby mode, the power of the buffer memory is turned on. Starting data transfer for transferring data specified by the write buffer command to the buffer memory, and not receiving a command from the host device within a predetermined time after the end of the write buffer command. The power of the buffer memory Turn off the power supply, and proceed to a command waiting state in the standby mode. When a read buffer command instructing data reading from the buffer memory is received from the host device within the fixed time, data is read from the buffer memory. Power transfer control for starting data transfer for reading and transferring the read buffer command to the host device, and when the read buffer command is received after the predetermined time has elapsed, the read buffer command is aborted. Method.
【請求項6】 ディスクからの読み出しデータ及びディ
スクへの書き込みデータを一時記憶するバッファメモリ
を備えたディスク装置に適用されるパワーセーブ制御方
法において、 前記ディスクを回転駆動するモータの停止を伴うスタン
バイモードに移行する際には前記バッファメモリの電源
をオフし、 前記バッファメモリへのデータ書き込みを指示するライ
トバッファコマンドを前記スタンバイモードでホスト装
置から受信した場合には前記バッファメモリの電源をオ
ンした後に、前記バッファメモリに前記ライトバッファ
コマンドで指定されたデータを転送するデータ転送を開
始し、 前記ライトバッファコマンドの終了後に、予め定められ
た一定時間内に前記ホスト装置からコマンドを受信しな
かった場合には、前記バッファメモリのデータを不揮発
性メモリに保存し、しかる後に前記バッファメモリの電
源をオフして前記スタンバイモードにおけるコマンド待
ち状態に進み、 前記バッファメモリからのデータ読み出しを指示するリ
ードバッファコマンドを前記一定時間を経過後に受信し
た場合に、前記バッファメモリの電源をオンした後に、
前記不揮発性メモリに保存されているデータを前記バッ
ファメモリにロードし、 前記リードバッファコマンドを前記一定時間内に受信し
た場合には直ちに、前記一定時間を経過後に受信した場
合には、前記バッファメモリへのデータロード後に、前
記バッファメモリからデータを読み出して前記ホスト装
置に転送するデータ転送を開始するようにしたことを特
徴とするパワーセーブ制御方法。
6. A power save control method applied to a disk device having a buffer memory for temporarily storing read data from a disk and write data to a disk, wherein the standby mode involves stopping a motor for rotating the disk. When transitioning to, the power of the buffer memory is turned off, and when a write buffer command instructing data writing to the buffer memory is received from the host device in the standby mode, the power of the buffer memory is turned on. Starting data transfer for transferring data specified by the write buffer command to the buffer memory, and not receiving a command from the host device within a predetermined time after the end of the write buffer command. The data in the buffer memory The data is stored in the non-volatile memory, and thereafter, the power of the buffer memory is turned off to proceed to a command waiting state in the standby mode, and a read buffer command for instructing data reading from the buffer memory is transmitted for a predetermined time. If received later, after turning on the power of the buffer memory,
Loading the data stored in the non-volatile memory into the buffer memory, and immediately when the read buffer command is received within the fixed time, and when the read buffer command is received after the fixed time, the buffer memory A data transfer for reading data from the buffer memory and transferring the data to the host device after loading the data into the host device.
JP15121097A 1997-06-09 1997-06-09 Disk device and power save control method applied to the disk device Pending JPH10340519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15121097A JPH10340519A (en) 1997-06-09 1997-06-09 Disk device and power save control method applied to the disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15121097A JPH10340519A (en) 1997-06-09 1997-06-09 Disk device and power save control method applied to the disk device

Publications (1)

Publication Number Publication Date
JPH10340519A true JPH10340519A (en) 1998-12-22

Family

ID=15513653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15121097A Pending JPH10340519A (en) 1997-06-09 1997-06-09 Disk device and power save control method applied to the disk device

Country Status (1)

Country Link
JP (1) JPH10340519A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005055226A1 (en) * 2003-12-03 2005-06-16 Koninklijke Philips Electronics N.V. Power saving method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005055226A1 (en) * 2003-12-03 2005-06-16 Koninklijke Philips Electronics N.V. Power saving method and system
US7702940B2 (en) * 2003-12-03 2010-04-20 Koninklijke Philips Electronics N.V. Power saving method and system
KR101101383B1 (en) 2003-12-03 2012-01-02 코닌클리케 필립스 일렉트로닉스 엔.브이. Power saving method and system

Similar Documents

Publication Publication Date Title
US7586821B2 (en) Data storage apparatus that either certifies a recording medium in the background or verifies data written in the recording medium
JP2986040B2 (en) Power usage management method and system
JP2812636B2 (en) Optical recording device
US20090003160A1 (en) Information Recording Apparatus and Information Recording Method
JPH09237128A (en) Computer system and resume processing method thereof
US7107364B2 (en) Control chip for optical disk drive and method for updating firmware in the control chip
KR101573330B1 (en) Method and apparatus for booting a video playback apparatus
US7818494B2 (en) Storage device and control method of the storage device
US20050125602A1 (en) HDD with storage of critical data in FLASH
US20080040818A1 (en) Storage apparatus, firmware renewal method, and control device
US7269112B2 (en) Information recording apparatus
US7174421B2 (en) HDD with rapid availability of critical data after critical event
JP2005276255A (en) Magnetic disk apparatus and information processing apparatus
JPH10340519A (en) Disk device and power save control method applied to the disk device
JP2001283503A (en) Control method for head unloading of magnetic storage device and magnetic storage device
US20060007582A1 (en) Disk drive and control method for disk drive
US20050125651A1 (en) Method for providing critical data in an HDD after critical event
JPH1011878A (en) Disk device and monitor value storage control method in the device
JPH06267175A (en) Storage device and method for controlling the same
JPH0744982A (en) Data recording / reproducing apparatus and data writing control method
JPH06309118A (en) Information processing equipment
JP2859205B2 (en) Data recording device and data recording method for flash memory of portable information processing system
JPH09312084A (en) Information recording device
JPH07121974A (en) Information recording / playback device
JP3982806B2 (en) MEMORY, ELECTRONIC DEVICE, MEMORY CONTROL METHOD