JP2000194654A - Unit and method for scsi bus priority control - Google Patents
Unit and method for scsi bus priority controlInfo
- Publication number
- JP2000194654A JP2000194654A JP10372595A JP37259598A JP2000194654A JP 2000194654 A JP2000194654 A JP 2000194654A JP 10372595 A JP10372595 A JP 10372595A JP 37259598 A JP37259598 A JP 37259598A JP 2000194654 A JP2000194654 A JP 2000194654A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- scsi
- phase
- scsi bus
- arbitration phase
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Bus Control (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、SCSIバスの制
御システムに関し、特にバス使用権獲得の制御システム
の改良に関する。[0001] 1. Field of the Invention [0002] The present invention relates to a control system for a SCSI bus, and more particularly to an improvement in a control system for acquiring a bus use right.
【0002】[0002]
【従来の技術】一般に、SCSIバスは、バスフリーフ
ェーズ、アービトレーションフェーズ、セレクションフ
ェーズ、リセレクションフェーズ、コマンドフェーズ、
データフェーズ、ステータスフェーズ、メッセージフェ
ーズからなる8種類のバスフェーズの推移により動作す
る。このバスフェーズのなかで、SCSIデバイスがバ
スの使用権を獲得するためのフェーズが、アービトレー
ションフェーズである。2. Description of the Related Art Generally, a SCSI bus has a bus free phase, an arbitration phase, a selection phase, a reselection phase, a command phase,
It operates according to transition of eight types of bus phases including a data phase, a status phase, and a message phase. Among the bus phases, an arbitration phase is a phase for the SCSI device to acquire the right to use the bus.
【0003】アービトレーションフェーズでは、バス使
用権を獲得したいSCSIデバイスが、あらかじめ設定
された自分のID番号に対応するデータビットをデータ
バス上に出力し、データを出力したSCSIデバイスの
うち、ID番号が最も大きいSCSIデバイスがバス使
用権を獲得することができる。In the arbitration phase, a SCSI device that wants to acquire a bus use right outputs a data bit corresponding to its own preset ID number on a data bus, and among the SCSI devices that output data, the ID number is changed. The largest SCSI device can get the bus usage right.
【0004】SCSIバスにおけるアービトレーション
動作の一例として、図1に示すSCSIバスシステムに
おいて、ホスト装置4〜7にバス使用権の要求が発生し
た場合の動作タイミングを図6に示す。As an example of an arbitration operation in a SCSI bus, FIG. 6 shows an operation timing when a request for a bus use right is issued to the host devices 4 to 7 in the SCSI bus system shown in FIG.
【0005】図6において、期間301は、バスフリー
フェーズであり、全てのSCSIデバイスがバスを使用
していない状態である。期間302は、アービトレーシ
ョンフェーズであり、SCSIデバイスがバス使用権を
獲得するためのフェーズである。In FIG. 6, a period 301 is a bus free phase, in which all SCSI devices do not use the bus. The period 302 is an arbitration phase in which the SCSI device acquires the right to use the bus.
【0006】バス使用権のアービトレーションに参加す
るホスト装置4〜7は、バスフリー検出後、最小Bus Fr
ee Delay時間だけ待ってから、バス使用権を要求するた
めBSY信号と自己のID番号に対応するデータをデー
タバスに出力する。本例では、ホスト装置5〜7は、ほ
ぼ同時にアービトレーションに参加し、少し遅れてホス
ト装置4がアービトレーションに参加している。[0006] The host devices 4 to 7 participating in the arbitration of the right to use the bus use the minimum Bus Fr after detecting the bus free.
After waiting for the ee Delay time, a BSY signal and data corresponding to its own ID number are output to the data bus to request a bus use right. In this example, the host devices 5 to 7 participate in the arbitration almost at the same time, and the host device 4 participates in the arbitration with a slight delay.
【0007】ホスト装置4〜7はそれぞれ、BSY信号
と自己のID番号に対応するデータをデータバスに出力
してからArbitration Delay時間以上経過後に、データ
バス上の値を比較してバス使用権要求の優先順位を判定
する。本例では、データバス上の値を比較した結果、最
高位の優先度を有するID番号を送出していたホスト装
置7がSEL信号を出力し、バス使用権を獲得する。Each of the host devices 4 to 7 outputs the BSY signal and the data corresponding to its own ID number to the data bus and compares the values on the data bus after the elapse of the Arbitration Delay time or more, and requests the bus use right. Is determined. In this example, as a result of comparing the values on the data bus, the host device 7, which has transmitted the ID number having the highest priority, outputs the SEL signal and acquires the right to use the bus.
【0008】ホスト装置5〜6は自己より高位の優先度
を有するSCSIデバイスがバス使用権を要求している
ことを検出し、Bus Clear Delay時間内にバスへの信号
出力を停止する。また、ホスト装置4はアービトレーシ
ョン中(Arbitration Delay時間経過前)であるが、バ
ス上にSEL信号が出力されていることを検出し、Bus
Clear Delay時間内にバスへの信号出力を停止する。期
間303は、セレクションフェーズであり、バス使用権
を獲得したSCSIデバイスがデータを転送するSCS
Iデバイスを選択するフェーズである。The host devices 5 and 6 detect that a SCSI device having a higher priority than themselves requests the right to use the bus, and stops outputting signals to the bus within the Bus Clear Delay time. Also, the host device 4 detects that the SEL signal is being output on the bus while the arbitration is in progress (before the Arbitration Delay time has elapsed), and
Stop signal output to the bus within the Clear Delay time. A period 303 is a selection phase in which the SCSI device that has acquired the bus usage right transfers data to the SCSI device.
This is a phase for selecting an I device.
【0009】ホスト装置7は、SEL信号を出力した
後、Bus Clear Delay+Bus Settle Delay時間以上経過
してから自己のID番号と、データ転送を行う相手のI
D番号をデータバスの出力する。After outputting the SEL signal, the host device 7 waits for at least Bus Clear Delay + Bus Settle Delay time, and the ID number of the host device 7 and the I of the data transfer partner.
The D number is output from the data bus.
【0010】すなわち、従来のSCSIバスにおけるバ
スアービトレーション動作は、ID番号とバス獲得優先
度を1対1で対応させて各SCSIデバイスのバス使用
権を決定する固定優先制御システムをとっている。この
ため、バスの使用率が高い場合は、バス使用権が平均化
せず、特に、ID番号の大きいSCSIデバイスのバス
使用頻度が高い場合、ID番号の小さいSCSIデバイ
スはバス使用権獲得に時間がかかり、即時性を必要とす
る処理が難しい。In other words, the bus arbitration operation in the conventional SCSI bus employs a fixed priority control system that determines the bus use right of each SCSI device by associating the ID number with the bus acquisition priority on a one-to-one basis. For this reason, when the bus usage rate is high, the bus usage rights are not averaged. In particular, when the bus usage frequency of the SCSI device with the large ID number is high, the SCSI device with the small ID number takes time to acquire the bus usage right. And processing that requires immediacy is difficult.
【0011】この要請に応えるために、例えば、特開平
8−335203号公報に開示されているように、アー
ビトレーションフェーズ毎にID番号の大小判定基準を
巡回させることにより、複数のSCSI装置に公平にバ
ス使用権を与える方式がある。また、他の例として、コ
ントローラが各SCSIデバイスのバス獲得失敗回数を
カウントし、バス獲得失敗回数の多いSCSIデバイス
に優先的にバス使用権を与える方式である。このような
方式は、例えば、特開昭64−12325号公報に開示
されている。In order to respond to this request, for example, as disclosed in Japanese Patent Application Laid-Open No. 8-335203, by circulating the criteria for judging the magnitude of the ID number for each arbitration phase, a plurality of SCSI devices can be fairly distributed. There is a method of giving a bus use right. As another example, there is a method in which a controller counts the number of bus acquisition failures of each SCSI device, and preferentially gives a bus use right to a SCSI device having a large number of bus acquisition failures. Such a method is disclosed, for example, in Japanese Patent Application Laid-Open No. 64-12325.
【0012】[0012]
【発明が解決しようとする課題】ところが、ID番号の
大小判定基準を巡回させることにより、複数のSCSI
デバイスに公平にバス使用権を与える方式は、アービト
レーション毎に優先順位が一定方向に回転するため、S
CSIデバイスのバス使用権要求発生時に優先順位が最
下位の場合は、再度、高優先が巡回してくるまでの順番
待ちが発生する。(優先順位が最上位になるまでアービ
トレーションが7回必要であるため、最大7回順番待ち
が発生する。)However, by circulating the criteria for judging the magnitude of the ID number, a plurality of SCSI
In the method of imparting the right to use the bus fairly to the device, the priority is rotated in a fixed direction for each arbitration.
If the priority is the lowest when the bus use right request of the CSI device is generated, the order waits until the high priority starts again. (Since arbitration needs to be performed seven times until the priority becomes the highest, the queue waits up to seven times.)
【0013】また、コントローラが各SCSIデバイス
のバス獲得失敗回数をカウントし、バス獲得失敗回数の
多いSCSIデバイスに優先的にバス使用権を与える方
式は、バス獲得失敗回数のみでバス優先権を判断してい
るため、ID番号の大きいSCSIデバイスのバス使用
頻度が高い場合は、設定されている回数分のバス獲得を
失敗しなければバス使用権を獲得できない。Further, a method in which the controller counts the number of bus acquisition failures of each SCSI device and preferentially assigns the bus use right to the SCSI device having a large number of bus acquisition failures is to judge the bus priority only by the number of bus acquisition failures Therefore, if the SCSI device with a large ID number has a high bus usage frequency, the bus usage right cannot be obtained unless the bus acquisition for the set number of times fails.
【0014】本発明は以上の点を考慮してなされたもの
で、その主な目的は、複数のSCSIデバイスがSCS
Iバスに接続されているSCSIバスシステムにおい
て、各SCSIデバイスのバス使用権の獲得を平均化さ
せることが可能なSCSIバス制御システムを提供する
ことにある。The present invention has been made in consideration of the above points, and a main object of the present invention is to provide a plurality of SCSI devices with an SCS.
An object of the present invention is to provide a SCSI bus control system capable of averaging acquisition of a bus use right of each SCSI device in a SCSI bus system connected to the I bus.
【0015】[0015]
【課題を解決するための手段】上記目的を達成するた
め、この発明の第1の観点に係るSCSIバス優先制御
装置は、SCSIバスに接続された他のSCSIデバイ
スとの間で前記SCSIバスの使用権優先制御を行う装
置であって、前記SCSIバスを監視するバス監視手段
と、前記バス監視手段によるアービトレーションフェー
ズの検出に応じて、アービトレーションフェーズ時間を
測定するアービトレーションフェーズタイマ手段と、バ
ス使用権の緊急要求が発生した場合に、前記アービトレ
ーションフェーズタイマ手段によるアービトレーション
フェーズ時間の測定中にセレクションフェーズの開始を
指示するバス緊急リクエスト手段と、前記バス緊急リク
エスト手段からの要求によりアービトレーションフェー
ズの動作を省略してセレクションフェーズを開始するS
CSIバス制御手段とを具備したことを特徴とする。In order to achieve the above object, a SCSI bus priority control device according to a first aspect of the present invention includes a SCSI bus priority control device which is connected to another SCSI device connected to the SCSI bus. An apparatus for performing usage right priority control, comprising: bus monitoring means for monitoring the SCSI bus; arbitration phase timer means for measuring an arbitration phase time in response to detection of an arbitration phase by the bus monitoring means; Bus emergency request means for instructing the start of the selection phase during measurement of the arbitration phase time by the arbitration phase timer means, and arbitration phase operation is omitted by a request from the bus emergency request means. do it S to start a record action phase
And CSI bus control means.
【0016】また、この発明の第2の観点に係るSCS
Iバス優先制御装置は、SCSIバスに接続された他の
SCSIデバイスとの間で前記SCSIバスの使用権優
先制御を行う装置であって、前記SCSIバスを監視す
るバス監視手段と、前記バス監視手段によるアービトレ
ーションフェーズの発生から所定時間以上経過していな
いことを検出するアービトレーションフェーズタイマ手
段と、前記アービトレーションフェーズタイマ手段によ
って所定時間以上経過していないことが検出されている
場合に、前記バス監視手段によって前記SCSIバスに
セレクションフェーズを開始したSCSIデバイスの存
在を示す信号が検出された場合に、アービトレーション
フェーズの動作の中止を指示するバス緊急リクエスト手
段と、前記バス緊急リクエスト手段からの要求によりア
ービトレーションフェーズの動作を中止するSCSIバ
ス制御手段とを具備したことを特徴とする。Further, the SCS according to the second aspect of the present invention
The I-bus priority control device is a device that performs priority control of the right to use the SCSI bus with another SCSI device connected to the SCSI bus, the bus monitoring means monitoring the SCSI bus, and the bus monitoring device. Arbitration phase timer means for detecting that a predetermined time has not elapsed since the occurrence of the arbitration phase by the means; and the bus monitoring means when the arbitration phase timer means detects that the predetermined time has not elapsed. When a signal indicating the presence of the SCSI device that has started the selection phase is detected on the SCSI bus, a bus emergency request means for instructing the stop of the operation of the arbitration phase, and arbitration by a request from the bus emergency request means. And characterized by including a SCSI bus control unit to stop the operation of the Phase.
【0017】本発明によるSCSIバス優先制御装置で
は、低優先のSCSIデバイスであっても、自己内部に
緊急度の高いバス使用権要求が発生した場合、SCSI
バスのコントロール信号を監視し、アービトレーション
フェーズを検出するバス監視手段と、アービトレーショ
ンフェーズ中に自己のID番号とターゲットとなるSC
SIデバイスのID番号およびSEL信号をSCSIバ
スへ送出することにより、Bus Free Delay時間内にセレ
クションフェーズを確定させるSCSIバス制御手段と
を有することで、SCSIデバイスの優先順位に関係な
く自己のバス使用権を獲得することができる。In the SCSI bus priority control apparatus according to the present invention, even if the SCSI device has a low priority, if a bus urgency request with high urgency is generated within itself, the
Bus monitoring means for monitoring a bus control signal and detecting an arbitration phase; and a self-ID number and a target SC during the arbitration phase.
SCSI bus control means for determining the selection phase within the Bus Free Delay time by transmitting the ID number of the SI device and the SEL signal to the SCSI bus, thereby using the own bus regardless of the priority of the SCSI device. You can get the right.
【0018】通常のSCSIデバイスは、SCSIバス
の仕様により、アービトレーションフェーズを検出後、
所定の時間、すなわちBus Free Delay時間だけ待ってか
らバス使用権を要求しなければならない。A normal SCSI device detects an arbitration phase according to the specification of the SCSI bus, and
It is necessary to wait for a predetermined time, that is, the Bus Free Delay time, before requesting the right to use the bus.
【0019】本発明では、Bus Free Delay時間の間にセ
レクションフェーズを確定させるため、他のSCSIデ
バイスは、バス使用権のアービトレーションを実行する
ことができずバス使用権を獲得することができない。従
って、SCSIデバイスに緊急のバス使用権要求が発生
した場合は、ID番号(バス使用権獲得の優先度)に関
係なく、現在のSCSIバスの使用が終了しだいバス使
用権を獲得することできる。In the present invention, since the selection phase is determined during the Bus Free Delay time, other SCSI devices cannot execute arbitration of the bus usage right and cannot acquire the bus usage right. Therefore, when an urgent bus use right request is issued to the SCSI device, the bus use right can be acquired as soon as the use of the current SCSI bus ends, regardless of the ID number (priority of acquiring the bus use right).
【0020】また、本発明の第3の観点に係るSCSI
バス優先制御方法は、SCSIバスに接続された他のS
CSIデバイスとの間で前記SCSIバスの使用権の優
先制御を行うSCSIバス優先制御方法であって、前記
SCSIバスを監視して、アービトレーションフェーズ
を検出し、アービトレーションフェーズ時間を測定し、
バス使用権の要求が発生した場合に、前記アービトレー
ションフェーズ時間の測定中にセレクションフェーズの
開始を指示し、要求に応じて、アービトレーションフェ
ーズの動作を省略してセレクションフェーズを開始す
る、ことを特徴とする。Further, a SCSI according to a third aspect of the present invention
The bus priority control method uses another S bus connected to the SCSI bus.
A SCSI bus priority control method for performing priority control of the right to use the SCSI bus with a CSI device, the method comprising monitoring the SCSI bus, detecting an arbitration phase, measuring an arbitration phase time,
When a request for the right to use the bus occurs, instructing the start of the selection phase during the measurement of the arbitration phase time, and omitting the operation of the arbitration phase and starting the selection phase according to the request. I do.
【0021】また、本発明の第4の観点に係るSCSI
バス優先制御方法は、SCSIバスに接続された他のS
CSIデバイスとの間で前記SCSIバスの使用権の優
先制御を行うSCSIバス優先制御方法において、前記
SCSIバスを監視し、アービトレーションフェーズの
発生から所定時間以上経過していないことを検出し、所
定時間以上経過していないことが検出されている場合
に、セレクションフェーズを開始したSCSIデバイス
を検出した場合に、アービトレーションフェーズの動作
の中止を指示し、要求によりアービトレーションフェー
ズの動作を中止する、ことを特徴とする。A SCSI according to a fourth aspect of the present invention
The bus priority control method uses another S bus connected to the SCSI bus.
In the SCSI bus priority control method for performing priority control of the right to use the SCSI bus with a CSI device, the SCSI bus is monitored to detect that a predetermined time has not elapsed after the occurrence of an arbitration phase, When it is detected that the above has not elapsed, when the SCSI device that has started the selection phase is detected, an instruction to stop the operation of the arbitration phase is issued, and the operation of the arbitration phase is stopped upon request. And
【0022】[0022]
【発明の実施の形態】以下、図面を参照しながら、本発
明の実施の形態につき詳細に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0023】図1は、本発明の実施の形態としてのSC
SIバスシステムの構成を示すブロック図である。図1
に示すSCSIバスシステムは、SCSIデバイスとす
る、磁気ディスク装置(以下HDDと呼ぶ)0〜3と、
HDD0〜3との間でデータの入出力制御を行うホスト
装置4〜7とが、SCSIバス8を介して相互に接続さ
れている。ここでは、HDD0〜3には、それぞれID
番号0〜3が設定され、ホスト装置4〜7には、それぞ
れID番号4〜7が設定されているものとする。FIG. 1 shows an SC according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating a configuration of an SI bus system. FIG.
Are SCSI devices, magnetic disk devices (hereinafter referred to as HDDs) 0 to 3;
Host devices 4 to 7 that perform data input / output control with the HDDs 0 to 3 are interconnected via a SCSI bus 8. Here, IDs are assigned to HDDs 0 to 3 respectively.
Numbers 0 to 3 are set, and ID numbers 4 to 7 are set in the host devices 4 to 7, respectively.
【0024】図2は、図1に示すホスト装置4〜7の機
能構成を示すブロック図である。図2に示すように、ホ
スト装置は、CPU20とHDDコントローラ21によ
って構成されている。HDDコントローラ21には、C
PU20との通信を行うCPUインタフェース部22
と、SCSIバスの制御を行うSCSIバス制御部23
と、SCSIバスの電気的インタフェースを収容するS
CSIインタフェース部24と、SCSIバスのコント
ロール信号をもとにして状態を監視するバス監視部30
と、バス監視部30からアービトレーションフェーズ検
出が通知された時にアービトレーションフェーズ経過時
間を測定するアービトレーションフェーズタイマ部31
と、CPU20からの緊急バス要求命令を受けて、SC
SIバス制御部23にセレクションフェーズの開始を指
示するバス緊急リクエスト部32の機能が含まれてい
る。FIG. 2 is a block diagram showing a functional configuration of the host devices 4 to 7 shown in FIG. As shown in FIG. 2, the host device includes a CPU 20 and an HDD controller 21. The HDD controller 21 has C
CPU interface unit 22 that communicates with PU 20
And a SCSI bus control unit 23 for controlling the SCSI bus
And an S that accommodates an electrical interface of the SCSI bus
A CSI interface unit 24 and a bus monitoring unit 30 for monitoring a state based on a SCSI bus control signal
And an arbitration phase timer unit 31 for measuring the arbitration phase elapsed time when the arbitration phase detection is notified from the bus monitoring unit 30
Receives an emergency bus request command from the CPU 20,
The function of the bus emergency request unit 32 for instructing the SI bus control unit 23 to start the selection phase is included.
【0025】次に、本実施の形態におけるSCSIバス
システムのバス使用権獲得の動作について説明する。こ
こでは、バス使用権獲得の優先度が低いホスト装置4が
緊急にバス使用権獲得を要求する場合を例にして説明す
る。Next, the operation of the SCSI bus system of this embodiment for acquiring the right to use the bus will be described. Here, a case will be described as an example where the host apparatus 4 having a low priority of acquiring the bus use right urgently requests the acquisition of the bus use right.
【0026】ホスト装置4のCPU20は、緊急にHD
Dとのデータ転送が必要になった場合、HDDコントロ
ーラ25に対し、ターゲットとなるHDD指定し、緊急
アクセス命令を発行する。The CPU 20 of the host device 4 urgently
When data transfer with D is required, the target HDD is designated to the HDD controller 25 and an emergency access command is issued.
【0027】CPUインタフェース部22は、SCSI
バス制御部23にターゲットとなるHDDを通知し、ま
た、バス緊急リクエスト部32に緊急アクセス命令であ
ることを通知する。The CPU interface unit 22 has a SCSI
The target HDD is notified to the bus control unit 23, and the emergency access command is notified to the bus emergency request unit 32.
【0028】一方、バス監視部30は、常にSCSIバ
スを監視していてアービトレーションフェーズを検出す
ると、アービトレーションフェーズ検出をアービトレー
ションフェーズタイマ部31に通知する。アービトレー
ションフェーズタイマ部31は、アービトレーションフ
ェーズ時間を測定し、Bus Free Delay時間が経過したこ
とをバス緊急リクエスト部32に通知する。On the other hand, when the bus monitoring unit 30 constantly monitors the SCSI bus and detects an arbitration phase, it notifies the arbitration phase timer unit 31 of the detection of the arbitration phase. The arbitration phase timer unit 31 measures the arbitration phase time and notifies the bus emergency request unit 32 that the Bus Free Delay time has elapsed.
【0029】バス緊急リクエスト部32は、CPUイン
タフェース部22からの緊急アクセス命令及びアービト
レーションフェーズタイマ部31からのBus Free Delay
時間経過の通知を受けると、SCSIバス制御部23対
してセレクションフェーズの開始を指示する。The bus emergency request unit 32 is provided with an emergency access command from the CPU interface unit 22 and a Bus Free Delay from the arbitration phase timer unit 31.
Upon receiving the notification of the elapse of time, it instructs the SCSI bus control unit 23 to start the selection phase.
【0030】SCSIバス制御部23は、バス緊急リク
エスト部32からの要求によりアービトレーションフェ
ーズを省略して、自己ID番号とターゲットとなるSC
SIデバイスのID番号、及びSEL信号をSCSIバ
ス8へ送出し、セレクションフェーズを開始する。The SCSI bus control unit 23 omits the arbitration phase in response to a request from the bus urgent request unit 32, and sets its own ID number and the target SC
The ID number of the SI device and the SEL signal are transmitted to the SCSI bus 8, and the selection phase is started.
【0031】一方、ホスト装置7〜5は、Bus Free Del
ay時間経過後にアービトレーション動作を開始するが、
SCSIバス8上にSEL信号が出力されていることを
バス監視部30によって検出する。ホスト装置7〜5の
バス監視部30は、SEL信号の検出をバス緊急リクエ
スト部32に通知する。また、アービトレーションフェ
ーズタイマ部31は、アービトレーションフェーズの経
過時間を測定しており、Bus Free Delay+Arbitration
Delay時間以上経過していないことをバス緊急リクエス
ト部32に通知する。On the other hand, the host devices 7 to 5
Arbitration operation starts after elapse of ay time,
The bus monitor 30 detects that the SEL signal is output on the SCSI bus 8. The bus monitoring unit 30 of each of the host devices 7 to 5 notifies the bus emergency request unit 32 of the detection of the SEL signal. The arbitration phase timer unit 31 measures the elapsed time of the arbitration phase, and determines whether the bus arbitration phase has elapsed.
It notifies the bus emergency request unit 32 that the delay time has not elapsed.
【0032】バス緊急リクエスト部32は、SCSIバ
ス8上にバス緊急リクエストが発生したと判断し、Arbi
tration Delay時間が経過する前に、SCSIバス制御
部23に対してアービトレーション動作の中止を指示す
る。The bus emergency request unit 32 determines that a bus emergency request has occurred on the SCSI bus 8 and
Before the tration delay time has elapsed, the SCSI bus control unit 23 is instructed to stop the arbitration operation.
【0033】この結果、ホスト装置5〜7は、アービト
レーションフェーズの動作を実行せず、SCSIバス8
の使用権を緊急に必要とするホスト装置4が、バス使用
権を獲得することができる。As a result, the host devices 5 to 7 do not execute the operation in the arbitration phase, and
The host device 4 that urgently needs the right to use the bus can acquire the right to use the bus.
【0034】次に、前述したSCSIバス8上でのバス
使用権獲得の動作について、図3のタイミング図を用い
て説明する。Next, the operation of acquiring the right to use the bus on the SCSI bus 8 will be described with reference to the timing chart of FIG.
【0035】図1に示すSCSIバスシステムにおい
て、ホスト装置4内部にて、HDD0に対し緊急にデー
タ転送の要求が発生した場合について以下に示す。In the SCSI bus system shown in FIG. 1, a case where an urgent data transfer request is issued to the HDD 0 inside the host device 4 will be described below.
【0036】期間300は、ホスト装置7がバスを使用
中の状態である。この時、ホスト装置4内部にてバス緊
急リクエストが発生している。期間301は、バスフリ
ーフェーズであり、全てのSCSIデバイスがSCSI
バス8を使用していない状態である。During the period 300, the host device 7 is using the bus. At this time, a bus emergency request has been generated inside the host device 4. The period 301 is a bus free phase, in which all SCSI devices
The bus 8 is not used.
【0037】期間302は、アービトレーションフェー
ズであり、SCSIデバイスがバス使用権を獲得するた
めのフェーズである。バス使用権のアービトレーション
に参加するホスト装置5〜7は、バスフリー検出後、最
小Bus Free Delay時間だけ待ってからバス使用権を要求
するため、BSY信号と自己のID番号に対応するデー
タをデータバスビットに出力する。この後、Arbitratio
n Delay時間経過するまでアービトレーション参加者待
ちの状態となる。The period 302 is an arbitration phase in which the SCSI device acquires the right to use the bus. The host devices 5 to 7 participating in the arbitration of the bus usage right wait for the minimum Bus Free Delay time after detecting the bus free, and request the bus usage right. Output to bus bit. After this, Arbitratio
Arbitration participant waits until n Delay time elapses.
【0038】一方、ホスト装置4は、内部でバス緊急リ
クエストが発生しているため、BusFree Delay時間だけ
待ってから自己のID番号とターゲットのHDD0のI
D番号に対応するデータをデータバスビットに出力し、
セレクションフェーズを開始する。On the other hand, since the bus urgent request is generated internally, the host device 4 waits for the BusFree Delay time and then waits for the own ID number and the I / O of the target HDD0.
Outputting data corresponding to the D number to a data bus bit,
Start the selection phase.
【0039】期間303は、バス緊急リクエスト発生時
のセレクションフェーズであり、バス使用権を獲得した
SCSIデバイス(イニシエータ)がターゲットとして
動作させるSCSIデバイスを選択するフェーズであ
る。ホスト装置4は、自己のID番号とターゲットのH
DD0に対応するデータバスビット出力した後、Deskew
Delay×2時間待ってからSEL信号を出力する。The period 303 is a selection phase when a bus emergency request occurs, and is a phase in which the SCSI device (initiator) that has acquired the bus use right selects a SCSI device to operate as a target. The host device 4 has its own ID number and target H
After outputting the data bus bit corresponding to DD0,
After waiting for Delay × 2 hours, the SEL signal is output.
【0040】バス使用権を要求したホスト装置5〜7
は、Arbitration Delay時間が経過する前にデータバス
上にSEL信号が出力されていることを検出すること
で、緊急バス使用権を要求しているSCSIデバイスが
存在すると判断し、アービトレーションを中止する。こ
の時点で、ホスト装置4のバス使用権獲得が確定する。Host devices 5-7 requesting the right to use the bus
Detects that the SEL signal is output on the data bus before the elapse of the Arbitration Delay time, determines that there is a SCSI device requesting the right to use the emergency bus, and stops arbitration. At this point, the acquisition of the bus use right of the host device 4 is determined.
【0041】このようにして、バス使用権獲得の優先度
が低いホスト装置4であっても、緊急度の高いバス使用
権要求が発生した場合には、バス監視部30によりSC
SIバス8を監視して、バスフリーフェーズを検出する
と、他のホスト装置5〜7がアービトレーションフェー
ズの動作を実行する前に、SCSIバス制御部23によ
りアービトレーションフェーズを省略してセレクション
フェーズを開始させて自己のバス使用権を獲得すること
ができる。従って、優先順位が上位のSCSIデバイス
が必ずしもバス使用権を獲得するとは限らないので、S
CSIデバイスのバス使用権の獲得を平均化することが
できる。As described above, even if the host device 4 has a low priority of acquiring the bus use right, when the bus use right request with high urgency is generated, the bus monitoring unit 30 sets the SC.
When monitoring the SI bus 8 and detecting a bus free phase, the SCSI bus control unit 23 skips the arbitration phase and starts the selection phase before the other host devices 5 to 7 execute the operation of the arbitration phase. You can get your own right to use the bus. Therefore, the SCSI device having the higher priority does not always acquire the bus use right.
The acquisition of the bus use right of the CSI device can be averaged.
【0042】次に、本発明の他の実施の形態について説
明する。前述した図1に示す構成をもとにした説明で
は、1つのホスト装置4でバス使用権の緊急要求があっ
た場合を対象としているが、ここでは複数のホスト装置
からバス使用権の緊急要求がある場合にも対応できる構
成について示す。Next, another embodiment of the present invention will be described. The above description based on the configuration shown in FIG. 1 is directed to a case where one host device 4 issues an urgent request for the right to use the bus, but here, an urgent request for the right to use the bus is issued from a plurality of host devices. The following shows a configuration that can cope with the case where there is.
【0043】図4には他の実施の形態のホスト装置の構
成を示している。基本的な構成は図1と同じであるが、
SCSIバス獲得のタイミングを制御するためのIDレ
ジスタ部42が設けられている。なお、図4において、
図1と同じ動作を実行する部分については、図1と同じ
符号を付している。FIG. 4 shows the configuration of a host device according to another embodiment. The basic configuration is the same as FIG. 1, but
An ID register unit 42 for controlling the timing of acquiring the SCSI bus is provided. In FIG. 4,
Parts that perform the same operations as in FIG. 1 are denoted by the same reference numerals as in FIG.
【0044】図4に示すように、IDレジスタ部42
は、アービトレーションフェーズタイマ部41に接続さ
れている。IDレジスタ部42には、自己のID番号が
格納されている。As shown in FIG. 4, the ID register 42
Are connected to an arbitration phase timer unit 41. The ID register 42 stores its own ID number.
【0045】アービトレーションフェーズタイマ部41
は、バス緊急リクエスト発生時に、Bus Free Delay時間
経過をバス緊急リクエスト部に32通知するが、このと
きIDレジスタ部42からID番号を参照し、このID
番号に応じて通知のタイミングを変える。Arbitration phase timer section 41
Notifies the bus emergency request section 32 of the elapse of the Bus Free Delay time when a bus emergency request occurs. At this time, the ID number is referenced from the ID register section 42,
Change the notification timing according to the number.
【0046】この可変通知タイミングを用いたアービト
レーションフェーズタイマ部41のBus Free Delay時間
経過通知の動作タイミングは図5に示すようになる。FIG. 5 shows the operation timing of the arbitration phase timer 41 using the variable notification timing to notify the elapse of the Bus Free Delay time.
【0047】図5に示す例では、ID番号が小さいホス
ト装置のIDレジスタ部42ほど、バス緊急リクエスト
部32へのBus Free Delay時間経過通知を早く実行する
ようになっている。この結果、ID番号の違いに応じて
各ホスト装置のセレクションフェーズを開始するタイミ
ングが異なるようになっている。In the example shown in FIG. 5, the ID register unit 42 of the host device having the smaller ID number is configured to execute the notification of the elapse of the Bus Free Delay time to the bus urgent request unit 32 earlier. As a result, the timing for starting the selection phase of each host device differs according to the difference in the ID number.
【0048】このため、例えば、2つのホスト装置から
同時にバス緊急リクエストが発生した場合でも、ID番
号に応じて決められたタイミングの違いによる順番、す
なわち固定優先制御によってバスの使用権獲得をさせる
ことが可能となる。For this reason, for example, even when a bus urgent request is generated from two host devices at the same time, the right to use the bus is acquired by the order based on the timing difference determined according to the ID number, that is, the fixed priority control. Becomes possible.
【0049】なお、前述した他の実施の形態の説明で
は、ID番号によりセレクションフェーズを開始するタ
イミングを変えることにより、バス緊急リクエストが複
数のホスト装置から同時に発生した場合でも固定優先制
御を行うことができるようにしているが、IDレジスタ
部42に、例えばID番号をもとに各ホスト装置(SC
SIデバイス)ごとにユニークな数値を発生させる計算
機能を持たせ、この計算機能によって得られた数値に応
じたタイミングでバス緊急リクエスト部に32に通知を
行なうようにすることで、非固定優先制御によるバスの
使用権獲得機能を実現することもできる。In the above description of the other embodiments, the fixed priority control is performed by changing the timing of starting the selection phase based on the ID number even when bus emergency requests are simultaneously generated from a plurality of host devices. However, in the ID register unit 42, each host device (SC
Non-fixed priority control is provided by providing a calculation function for generating a unique numerical value for each SI device) and notifying the bus emergency request unit 32 at a timing corresponding to the numerical value obtained by this calculation function. , A bus use right acquisition function can be realized.
【0050】なお、本発明が上記各実施形態に限定され
ず、本発明の技術思想の範囲内において、各実施形態は
適宜変更され得ることは明らかである。It should be noted that the present invention is not limited to the above embodiments, and it is clear that the embodiments can be appropriately modified within the scope of the technical idea of the present invention.
【0051】[0051]
【発明の効果】以上説明したように、本発明によれば、
複数のSCSIデバイスが接続されているバスにおい
て、低優先SCSIデバイスは自己内部に緊急度の高い
バス使用権要求が発生した場合、SCSIバスのコント
ロール信号を監視し、バスフリーフェーズを検出する
と、自己ID番号とターゲットとなるSCSIデバイス
のID番号およびSEL信号をSCSIバスへ送出する
ことにより、自己のバス使用権を獲得してセレクション
フェーズを確定させるという基本構成に基づき低優先S
CSIデバイスのバス使用権獲得を実現した優先バス使
用権獲得機能が提供される。As described above, according to the present invention,
In a bus to which a plurality of SCSI devices are connected, a low-priority SCSI device monitors a control signal of the SCSI bus when a highly urgent bus use right request is generated within itself, and detects a bus free phase, and By transmitting the ID number, the ID number of the target SCSI device, and the SEL signal to the SCSI bus, it acquires its own right to use the bus and determines the selection phase.
A priority bus use right acquisition function that realizes a bus use right acquisition of a CSI device is provided.
【図1】SCSIバスシステムの一例を示すブロック図
である。FIG. 1 is a block diagram illustrating an example of a SCSI bus system.
【図2】本発明の実施の形態における図1に示すホスト
装置の機能構成を示すブロック図である。FIG. 2 is a block diagram showing a functional configuration of the host device shown in FIG. 1 in the embodiment of the present invention.
【図3】本発明の実施の形態におけるSCSIバス上で
のバス使用権獲得の動作について示すタイミング図であ
る。FIG. 3 is a timing chart showing an operation of acquiring a bus use right on a SCSI bus according to the embodiment of the present invention.
【図4】本発明の他の実施の形態のホスト装置の構成を
示すブロック図である。FIG. 4 is a block diagram illustrating a configuration of a host device according to another embodiment of the present invention.
【図5】本発明の他の実施の形態のアービトレーション
フェーズタイマ部のBus Free Delay時間経過通知の動作
タイミングを示すタイミング図である。FIG. 5 is a timing chart showing an operation timing of a Bus Free Delay time elapse notification of an arbitration phase timer unit according to another embodiment of the present invention.
【図6】通常のSCSIバスアービトレーション動作を
示すSCSIバスタイミング図である。FIG. 6 is a SCSI bus timing chart showing a normal SCSI bus arbitration operation.
0〜3 ハードディスク装置(HDD) 4〜7 ホスト装置 8 SCSIバス 20 CPU 21 HDDコントローラ 22 CPUインタフェース部 23 SCSIバス制御部 24 SCSIインタフェース部 30 バス監視部 31 アービトレーションフェーズタイマ部 32 バス緊急リクエスト部 40 アービトレーションフェーズタイマ部 42 IDレジスタ部 0-3 Hard disk device (HDD) 4-7 Host device 8 SCSI bus 20 CPU 21 HDD controller 22 CPU interface unit 23 SCSI bus control unit 24 SCSI interface unit 30 Bus monitoring unit 31 Arbitration phase timer unit 32 Bus emergency request unit 40 Arbitration Phase timer section 42 ID register section
Claims (5)
バイスとの間で前記SCSIバスの使用権優先制御を行
うSCSIバス優先制御装置において、 前記SCSIバスを監視するバス監視手段と、 前記バス監視手段によるアービトレーションフェーズの
検出に応じて、アービトレーションフェーズ時間を測定
するアービトレーションフェーズタイマ手段と、 バス使用権の緊急要求が発生した場合に、前記アービト
レーションフェーズタイマ手段によるアービトレーショ
ンフェーズ時間の測定中にセレクションフェーズの開始
を指示するバス緊急リクエスト手段と、 前記バス緊急リクエスト手段からの要求によりアービト
レーションフェーズの動作を省略してセレクションフェ
ーズを開始するSCSIバス制御手段とを具備したこと
を特徴とするSCSIバス優先制御装置。1. A SCSI bus priority control device for performing priority control of the right to use the SCSI bus with another SCSI device connected to the SCSI bus, comprising: bus monitoring means for monitoring the SCSI bus; Arbitration phase timer means for measuring an arbitration phase time in response to the detection of the arbitration phase by the means; Bus emergency request means for instructing start, and SCSI bus control means for omitting the operation of the arbitration phase and starting the selection phase in response to a request from the bus emergency request means. SCSI bus priority control device.
バイスとの間で前記SCSIバスの使用権優先制御を行
うSCSIバス優先制御装置において、 前記SCSIバスを監視するバス監視手段と、 前記バス監視手段によるアービトレーションフェーズの
発生から所定時間以上経過していないことを検出するア
ービトレーションフェーズタイマ手段と、 前記アービトレーションフェーズタイマ手段によって所
定時間以上経過していないことが検出されている場合
に、前記バス監視手段によって前記SCSIバスにセレ
クションフェーズを開始したSCSIデバイスの存在を
示す信号が検出された場合に、アービトレーションフェ
ーズの動作の中止を指示するバス緊急リクエスト手段
と、 前記バス緊急リクエスト手段からの要求によりアービト
レーションフェーズの動作を中止するSCSIバス制御
手段とを具備したことを特徴とするSCSIバス優先制
御装置。2. A SCSI bus priority control device for performing priority control of the right to use the SCSI bus with another SCSI device connected to the SCSI bus, comprising: bus monitoring means for monitoring the SCSI bus; Arbitration phase timer means for detecting that a predetermined time has not elapsed since the occurrence of the arbitration phase by the means; and when the arbitration phase timer means has detected that the predetermined time has not elapsed, the bus monitoring means When a signal indicating the presence of the SCSI device that has started the selection phase is detected on the SCSI bus, the bus emergency request means for instructing to stop the operation of the arbitration phase; A SCSI bus control means for stopping the operation of the translation phase.
段による検出結果が前記バス緊急リクエスト手段に伝え
られるタイミングは、SCSIデバイスに固有の情報に
基づいて決定されることを特徴とする請求項1又は2に
記載のSCSIバス優先制御装置。3. The system according to claim 1, wherein the timing at which the detection result of the arbitration phase timer is transmitted to the bus emergency requesting unit is determined based on information unique to a SCSI device. SCSI bus priority controller.
バイスとの間で前記SCSIバスの使用権の優先制御を
行うSCSIバス優先制御方法において、 前記SCSIバスを監視して、アービトレーションフェ
ーズを検出し、 アービトレーションフェーズ時間を測定し、 バス使用権の要求が発生した場合に、前記アービトレー
ションフェーズ時間の測定中にセレクションフェーズの
開始を指示し、 要求に応じて、アービトレーションフェーズの動作を省
略してセレクションフェーズを開始する、ことを特徴と
するSCSIバス優先制御方法。4. A SCSI bus priority control method for performing priority control of the right to use the SCSI bus with another SCSI device connected to the SCSI bus, wherein the SCSI bus is monitored to detect an arbitration phase. The arbitration phase time is measured, and when a request for the right to use the bus occurs, the start of the selection phase is instructed during the measurement of the arbitration phase time, and the operation of the arbitration phase is skipped according to the request. A SCSI bus priority control method.
バイスとの間で前記SCSIバスの使用権の優先制御を
行うSCSIバス優先制御方法において、 前記SCSIバスを監視し、アービトレーションフェー
ズの発生から所定時間以上経過していないことを検出
し、所定時間以上経過していないことが検出されている
場合に、セレクションフェーズを開始したSCSIデバ
イスを検出した場合に、アービトレーションフェーズの
動作の中止を指示し、要求によりアービトレーションフ
ェーズの動作を中止する、ことを特徴とするSCSIバ
ス優先制御方法。5. A SCSI bus priority control method for performing priority control of the right to use the SCSI bus with another SCSI device connected to the SCSI bus, wherein the SCSI bus is monitored and a predetermined time is set when an arbitration phase occurs. It is detected that the time has not elapsed, and when it is detected that the predetermined time has not elapsed, when the SCSI device that has started the selection phase is detected, the operation of the arbitration phase is instructed to be stopped, An SCSI bus priority control method, wherein the operation in the arbitration phase is stopped by a request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10372595A JP2000194654A (en) | 1998-12-28 | 1998-12-28 | Unit and method for scsi bus priority control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10372595A JP2000194654A (en) | 1998-12-28 | 1998-12-28 | Unit and method for scsi bus priority control |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000194654A true JP2000194654A (en) | 2000-07-14 |
Family
ID=18500716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10372595A Pending JP2000194654A (en) | 1998-12-28 | 1998-12-28 | Unit and method for scsi bus priority control |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000194654A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007199815A (en) * | 2006-01-24 | 2007-08-09 | Megachips Lsi Solutions Inc | Memory control device and memory control method |
US7676752B2 (en) | 2000-12-21 | 2010-03-09 | Microsoft Corporation | System and method to specify device specific user interface information in the firmware of a USB device |
CN106251659A (en) * | 2016-10-20 | 2016-12-21 | 南京莱斯信息技术股份有限公司 | A kind of method for controlling bus priority based on the green ripple of main line |
-
1998
- 1998-12-28 JP JP10372595A patent/JP2000194654A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7676752B2 (en) | 2000-12-21 | 2010-03-09 | Microsoft Corporation | System and method to specify device specific user interface information in the firmware of a USB device |
JP2007199815A (en) * | 2006-01-24 | 2007-08-09 | Megachips Lsi Solutions Inc | Memory control device and memory control method |
CN106251659A (en) * | 2016-10-20 | 2016-12-21 | 南京莱斯信息技术股份有限公司 | A kind of method for controlling bus priority based on the green ripple of main line |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0378070B1 (en) | Method and apparatus for limiting the utilization of an asynchronous bus with distributed controlled access | |
JPH1055337A (en) | Device and method for bus recovery of multi-master bus system | |
JP2015530679A (en) | Method and apparatus using high efficiency atomic operations | |
US10558237B2 (en) | Information processing apparatus | |
JP2000194654A (en) | Unit and method for scsi bus priority control | |
CN107678993A (en) | Computer system and bus arbitration method | |
EP1118942B1 (en) | Method of and system for managing reselection on a scsi bus | |
JP2009205347A (en) | Information processing system, control method of information processing system, and control program of information processing system | |
JPH10320349A (en) | Processor and data transfer system using the processor | |
JP4160470B2 (en) | I / O control device and I / O control method | |
JP2004118546A (en) | Bus arbitration system and data transfer device | |
JP4806619B2 (en) | Common bus access arbitration system | |
JP3497478B2 (en) | DMA transfer device and data transfer system | |
JP2002091903A (en) | Bus system | |
JP2000259548A (en) | Dma bus transfer system | |
JP2007087247A (en) | Bus control system | |
JPH07219887A (en) | Dma transfer controller | |
JP2000089971A (en) | Method and device for controlling interruption order | |
JP2003233583A (en) | Distributed mediating system and distributed mediating method | |
JP4204483B2 (en) | Information processing device | |
JPS60118963A (en) | Method and apparatus for selectively taking bus cycle in advance to adapt to higher preferential sequence transfer for direct memory access controller | |
JP2003015888A (en) | Cpu load measuring system | |
JP2001167049A (en) | Bus arbitrating device | |
JP5380409B2 (en) | Information processing device | |
JP4202812B2 (en) | I / O control device and I / O control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20050406 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20051115 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20070130 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20080618 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080822 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080826 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090113 |