JPH0435781B2 - - Google Patents

Info

Publication number
JPH0435781B2
JPH0435781B2 JP61100333A JP10033386A JPH0435781B2 JP H0435781 B2 JPH0435781 B2 JP H0435781B2 JP 61100333 A JP61100333 A JP 61100333A JP 10033386 A JP10033386 A JP 10033386A JP H0435781 B2 JPH0435781 B2 JP H0435781B2
Authority
JP
Japan
Prior art keywords
input
subchannel
unit
error
processing unit
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.)
Expired - Lifetime
Application number
JP61100333A
Other languages
Japanese (ja)
Other versions
JPS62256150A (en
Inventor
Yoshifumi Ojiro
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61100333A priority Critical patent/JPS62256150A/en
Publication of JPS62256150A publication Critical patent/JPS62256150A/en
Publication of JPH0435781B2 publication Critical patent/JPH0435781B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔概要〕 中央処理装置などの入出力デバイスを直接リセ
ツトする機能を持たないユニツトが、入出力デバ
イスに関してエラーを検出すると、当該入出力デ
バイスに対応するサブチヤネルに所定のフラグを
立て、チヤネル処理装置がこれを認識すると、当
該入出力デバイスのリセツト及びエラー処理を行
うものである。
[Detailed Description of the Invention] [Summary] When a unit such as a central processing unit that does not have a function to directly reset an input/output device detects an error regarding the input/output device, a predetermined flag is set in the subchannel corresponding to the input/output device. When the channel processing device recognizes this, it resets the input/output device and performs error processing.

〔産業上の利用分野〕[Industrial application field]

本発明は、コンピユータ・システム、特に中央
処理装置とは別に設けられたチヤネル処理装置と
中央処理装置が協力して入出力処理を行う様な大
型計算機システム等に於いて、中央処理装置が検
出した入出力関連のエラー処理方式に関する。
The present invention is applicable to computer systems, particularly large-scale computer systems in which a channel processing unit provided separately from the central processing unit and the central processing unit cooperate to perform input/output processing. Concerning input/output related error handling methods.

〔従来の技術〕[Conventional technology]

現在、中央処理装置上で走行するプログラムが
発行する入出力要求は即時実行されるのではな
く、一度キユーに投入され、しかるべき条件が整
つた時点でチヤネル処理装置がこれをデキユー
し、実行に移されると言う技術が主流となつてい
る。この入出力要求のエンキユー及びデキユーを
どのユニツトが行うかには様々の実現方法がある
が、もし中央処理装置がこれを行うとすると、中
央処理装置には入出力デバイスに対し直接リセツ
ト指示を行うパスがない為、エラー発生時にはこ
の処理をチヤネル処理装置に依頼する必要がどう
しても出てくる。
Currently, input/output requests issued by programs running on the central processing unit are not executed immediately, but are queued once, and when the appropriate conditions are met, the channel processing unit dequeues them and executes them. Transfer technology has become mainstream. There are various implementation methods as to which unit enqueues and dequeues this input/output request, but if the central processing unit performs this, the central processing unit must directly instruct the input/output device to reset. Since there is no path, it becomes necessary to request this processing to the channel processing device when an error occurs.

〔解決しようとする問題点〕[Problem to be solved]

旧来の技術では、これらの処理は特別に設けら
れたハードウエア・インタフエースを通し、中央
処理装置がチヤネル処理装置に直接依頼すること
により行なわれた。所が、このインタフエースを
介する処理中は本来ならば非同期的に動作可能な
はずの中央処理装置とチヤネル処理装置が同期し
て動作を行う必要があり、オーバ・ヘツド
(Overhead)が大きい。
In conventional technology, these processes were performed by the central processing unit directly requesting the channel processing unit through a specially provided hardware interface. However, during processing via this interface, the central processing unit and the channel processing unit, which should normally be able to operate asynchronously, must operate synchronously, resulting in a large overhead.

本発明は、このような点に鑑みて創作されたも
のであつて、中央処理装置が検出した入出力デバ
イスのエラーを少ないオーバ・ヘツドで以てチヤ
ネル処理装置に通知出来るようにした入出力装置
方式を提供することを目的としている。
The present invention was created in view of the above points, and provides an input/output device that is capable of notifying a channel processing device of an error in an input/output device detected by a central processing unit with little overhead. The purpose is to provide a method.

〔問題点を解決するための手段〕[Means for solving problems]

要約すると、本発明は次のようなものである。 In summary, the invention is as follows.

本発明は、ソフトウエアからは見えない部分で
処理されるべき中央処理装置→チヤネル処理装置
の処置依頼を個々の入出力デバイスに対応して設
けられたサブチヤネルの中に、該入出力デバイス
に於いてエラー条件が発生したことを示すフラグ
を設け、このフラグを中央処理装置がセツトする
ことによつてチヤネル処理装置にこれを知らしめ
ることにより行うものである。エラー条件を検出
した中央処理装置はこのサブチヤネルを上記入出
力要求のキユーに接続する。この時、前述のエラ
ー発生フラグもまたセツトされる。チヤネル処理
装置は上記キユーをデキユーするときにこのエラ
ー発生フラグをチエツクし、もしこのエラー発生
フラグがセツトされていたならば、該入出力デバ
イスを選択的にリセツトする。このリセツトが成
功したならば、チヤネル処理装置はこの入出力デ
バイスに関してチヤネル・コントロール・チエツ
クCCC等を生成し、該サブチヤネルをIDLE状態
にする。また、もしこのサブチヤネルをデキユー
する前であつても、チヤネル処理装置はこのサブ
チヤネルに対する割込みが発生すると、エラー発
生フラグを検出し、やはりチヤネル・コントロー
ル・チエツクCCCを生成し、このサブチヤネル
をIDLE状態にする。エラーの1例としてはMS
ACCESS ERROR等によるサブチヤネルの内容
の矛盾が考えられるが、もし中央処理装置がサブ
チヤネルのみをチヤネル・コントロール・チエツ
クとし、該入出力デバイスを実際にクリアするこ
となくサブチヤネルをIDLE状態にしたとすると、
本来ならば入出力デバイスの状態を正確に反映し
ているべきサブチヤネルと実際の入出力デバイス
の状態が食い違う可能性が生ずるわけで、中央処
理装置がチヤネル処理装置にリセツトを依頼する
動作は不可欠である。
According to the present invention, processing requests from a central processing unit to a channel processing unit, which should be processed in a part invisible to software, are placed in subchannels provided corresponding to individual input/output devices. This is accomplished by providing a flag indicating that an error condition has occurred, and setting this flag by the central processing unit to notify the channel processing unit of this. The central processing unit detecting the error condition connects this subchannel to the I/O request queue. At this time, the aforementioned error occurrence flag is also set. The channel processor checks this error flag when dequeuing the queue, and if the error flag is set, selectively resets the input/output device. If the reset is successful, the channel processing unit generates a channel control check, CCC, etc. for this I/O device and places the subchannel in the IDLE state. Also, if an interrupt occurs for this subchannel even before dequeuing this subchannel, the channel processing unit detects an error occurrence flag, also generates a channel control check CCC, and places this subchannel in the IDLE state. do. An example of an error is MS
There may be a discrepancy in the contents of the subchannel due to ACCESS ERROR, etc., but if the central processing unit performs a channel control check on only the subchannel and puts the subchannel in the IDLE state without actually clearing the input/output device, then
There is a possibility that the subchannel, which should normally accurately reflect the status of the input/output device, and the actual status of the input/output device may be inconsistent, so it is essential for the central processing unit to request the channel processing unit to reset. be.

第1図は本発明の1実施例構成を示す図であ
る。第1図において、1は中央処理装置、2は記
憶制御装置、3はチヤネル処理装置、4と5はチ
ヤネル、6は入出力制御装置、7は入出力デバイ
ス、9は主記憶装置、10はOS等が使用可能な
ユーザ空間、11はハードウエア・システム領域
をそれぞれ示している。第1図では、入出力デバ
イス7は1個しか図示されていないが、実際には
複数個の入出力デバイス7が存在することは当然
である。各入出力デバイス7に対応するサブチヤ
ネルはハードウエア・システム領域11の中に存
在している。
FIG. 1 is a diagram showing the configuration of one embodiment of the present invention. In FIG. 1, 1 is a central processing unit, 2 is a storage control unit, 3 is a channel processing unit, 4 and 5 are channels, 6 is an input/output control unit, 7 is an input/output device, 9 is a main storage unit, and 10 is a 11 indicates a user space that can be used by an OS, etc., and a hardware/system area. Although only one input/output device 7 is shown in FIG. 1, it goes without saying that a plurality of input/output devices 7 actually exist. A subchannel corresponding to each input/output device 7 exists in the hardware system area 11.

第2図は本発明におけるサブチヤネルの構成例
を示す図である。第2図において、12はサブチ
ヤネル、13はロツク・バイト、14はサブチヤ
ネル・ステータス・バイト(SCSB)、15はパ
ス管理情報、16はソフトから見たこの入出力デ
バイスの状態を示すワード、17は補助情報、1
8はポインタをそれぞれ示している。ロツク・バ
イト13は、排他制御のためのものである。サブ
チヤネル・ステータス・バイト14は、サブチヤ
ネルの状態、即ち対応する入出力デバイスの状態
を示すものである。パス管理情報15は、この入
出力デバイスを使用すべきチヤネル・パスを選択
する際に使用されものである。補助情報17は、
CCWADDRESSやチヤネル動的変換機構が使用
する情報を含んでいる。ポインタ18は、各種の
キユーにこのサブチヤネル12がエンキユーされ
ている状態て、このサブチヤネル12の次に位置
するサブチヤネルを指すものである。
FIG. 2 is a diagram showing an example of the configuration of a subchannel in the present invention. In FIG. 2, 12 is a subchannel, 13 is a lock byte, 14 is a subchannel status byte (SCSB), 15 is path management information, 16 is a word that indicates the status of this input/output device as seen from the software, and 17 is a Supplementary information, 1
8 each indicate a pointer. Lock byte 13 is for exclusive control. Subchannel status byte 14 indicates the status of the subchannel, ie, the status of the corresponding input/output device. The path management information 15 is used when selecting a channel path for which this input/output device should be used. Auxiliary information 17 is
Contains information used by CCWADDRESS and the channel dynamic conversion mechanism. The pointer 18 points to the subchannel located next to this subchannel 12 when this subchannel 12 is enqueued in various queues.

入出力要求のキユーは、サブチヤネル12をエ
ントリ(キユー・エレメント)とし、その最初の
サブチヤネル12のポインタをハドウエア・シス
テム領域11内の決められたアドレスに置き、順
番に次のサブチヤネルを上記ポインタで指し示す
ことにより構成されるとする。
The input/output request queue uses the subchannel 12 as an entry (queue element), places the pointer of the first subchannel 12 at a predetermined address in the hardware system area 11, and points to the next subchannel in order with the above pointer. It is assumed that it is composed of

いま、何れかのユニツトの間欠障害によつて、
サブチヤネル12のロツク・バイト13がクリア
されずに残つた場合を考える。中央処理装置1が
次にこのサブチヤネル12を参照しようとする
と、ロツク待ちになり、いずれタイムアウトを検
出する。このとき中央処理装置1は、このロツ
ク・バイト13を強制的にクリアし、その内容を
しかるべく変更したのち、更にサブチヤネル・ス
テータス・バイト14の第0ビツト(エラー発生
ビツト)、即ち異常がこのサブチヤネル12上で
検出されたことを示すビツトをセツトして置く。
更に、中央処理装置1は、このサブチヤネルを通
常の入出力要求が発生した場合と同様に、上記キ
ユーにエンキユーして置く。
Currently, due to an intermittent failure in one of the units,
Consider the case where lock byte 13 of subchannel 12 remains uncleared. When the central processing unit 1 next attempts to refer to this subchannel 12, it will wait for a lock and will eventually detect a timeout. At this time, the central processing unit 1 forcibly clears this lock byte 13, changes its contents appropriately, and then clears the 0th bit (error occurrence bit) of the subchannel status byte 14, that is, the error has occurred. A bit is set to indicate that it is detected on subchannel 12.
Furthermore, the central processing unit 1 enqueues this subchannel in the queue in the same way as when a normal input/output request occurs.

チヤネル処理装置3は、このキユーをデキユー
して処理を開始する。しかし、もしデキユーした
サブチヤネル12のサブチヤネル・ステータス・
バイト14の第0ビツトがオンでないならば、通
常の入出力処理が開始される。しかし、もしこの
時点でサブチヤネル・ステータス・バイト14の
第0ビツトがオンであれば、チヤネル処理装置3
はこのサブチヤネル12に関してエラー条件を認
識し、このサブチヤネル12に対応する入出力デ
バイス7を選択的にリセツトし、このサブチヤネ
ル12の内容をチヤネル・コントロール・チエツ
クCCC条件が入出力デバイス7側から報告され
た場合に準じて変更し、ソフトウエア或いはOS
に報告する。
The channel processing device 3 dequeues this queue and starts processing. However, if the subchannel status of dequeued subchannel 12
If the 0th bit of byte 14 is not on, normal I/O processing begins. However, if the 0th bit of subchannel status byte 14 is on at this point, channel processing unit 3
recognizes an error condition regarding this subchannel 12, selectively resets the input/output device 7 corresponding to this subchannel 12, and checks the contents of this subchannel 12 when a channel control check CCC condition is reported from the input/output device 7 side. If the software or OS
Report to.

また、このサブチヤネルが入出力要求キユーの
トツプに来ておらず、チヤネル処理装置3がこの
サブチヤネル12をデキユーしていなくとも、入
出力デバイス7がI/O割込みを発生し、これを
検出したチヤネル処理装置3がこの条件をサブチ
ヤネル12に記入し、OSに報告するためにこの
サブチヤネル12をロツクし、フエツチした際に
もこのエラー発生ビツトはチエツクされ、もしこ
のエラー発生ビツトがオンならば、チヤネル処理
装置3はチヤネル・コントロール・チエツク
CCC条件が入出力デバイス7から報告されたか
のように処理を行い、該入出力デバイスをリセツ
トする。
In addition, even if this subchannel is not at the top of the input/output request queue and the channel processing device 3 has not dequeued this subchannel 12, the input/output device 7 generates an I/O interrupt and the channel that detected this When the processing unit 3 writes this condition into the subchannel 12, locks this subchannel 12 to report it to the OS, and fetches it, this error occurrence bit is also checked, and if this error occurrence bit is on, the channel is Processing device 3 is a channel control check
Processing is performed as if a CCC condition had been reported from the input/output device 7, and the input/output device is reset.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれ
ば、中央処理装置が検出した入出力デバイスに関
するエラー条件をチヤネル処理装置に通知する処
理を、従来方式に比して少ないオーバヘツドで行
うことが出来る。
As is clear from the above description, according to the present invention, the process of notifying the channel processing device of an error condition related to an input/output device detected by the central processing unit can be performed with less overhead than the conventional method. .

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

第1図は本発明の1実施例構成を示す図、第2
図はサブチヤネルの構成例を示す図である。 1……中央処理装置、2……記憶制御装置、3
……チヤネル処理装置、4と5……チヤネル、6
……入出力制御装置、7……入出力デバイス、9
……主記憶装置、10……ユーザ空間、11……
ハードウエア・システム領域、12……サブチヤ
ネル、13……ロツク・バイト、14……サブチ
ヤネル・ステータス・バイト、15……パス管理
情報、16……入出力デバイスの状態を示すワー
ド、17……補助情報、18……ポインタ。
FIG. 1 is a diagram showing the configuration of one embodiment of the present invention, and FIG.
The figure is a diagram showing an example of the configuration of a subchannel. 1...Central processing unit, 2...Storage control device, 3
... Channel processing device, 4 and 5 ... Channel, 6
...Input/output control device, 7...Input/output device, 9
... Main storage device, 10 ... User space, 11 ...
Hardware system area, 12...Subchannel, 13...Lock byte, 14...Subchannel status byte, 15...Path management information, 16...Word indicating input/output device status, 17...Auxiliary Information, 18...pointer.

Claims (1)

【特許請求の範囲】[Claims] 1 入出力デバイス7に対しこれを直接リセツト
する機能を持つユニツト3とその機能を持たない
ユニツト1が協力して入出力処理を行う様なコン
ピユータ・システムに於いて、上記リセツト機能
を持たないユニツト1が或るデバイス7に関連す
るエラー条件を検出した場合、該デバイス7に対
応して設けられた上記両ユニツト1,3からアク
セス可能であつて上記リセツト機能を有するユニ
ツト3が該デバイス7の制御の為に参照する制御
情報テーブル12に上記リセツト機能を有しない
ユニツト1がエラーが検出された旨を記入し、こ
の情報を上記リセツト機能を有するユニツト3が
この後に参照した時、上記リセツト機能を有する
ユニツト3が該デバイス7をリセツトし、同時に
該デバイス7が入出力処理中にエラーを発生した
場合に準じたエラー報告やエラー回復処理を行う
ことを特徴とする入出力処理方式。
1 In a computer system in which the unit 3 which has the function of directly resetting the input/output device 7 and the unit 1 which does not have that function cooperate to perform input/output processing, the unit without the above-mentioned reset function 1 detects an error condition related to a certain device 7, the unit 3 which is accessible from the above-mentioned both units 1 and 3 provided corresponding to the device 7 and has the above-mentioned reset function resets the error condition of the device 7. When the unit 1 that does not have the reset function records that an error has been detected in the control information table 12 that is referred to for control, and when the unit 3 that has the reset function refers to this information later, the reset function An input/output processing method characterized in that a unit 3 having a device 7 resets the device 7, and at the same time performs error reporting and error recovery processing in accordance with the case where the device 7 generates an error during input/output processing.
JP61100333A 1986-04-30 1986-04-30 Input and output processing system Granted JPS62256150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61100333A JPS62256150A (en) 1986-04-30 1986-04-30 Input and output processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61100333A JPS62256150A (en) 1986-04-30 1986-04-30 Input and output processing system

Publications (2)

Publication Number Publication Date
JPS62256150A JPS62256150A (en) 1987-11-07
JPH0435781B2 true JPH0435781B2 (en) 1992-06-12

Family

ID=14271216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61100333A Granted JPS62256150A (en) 1986-04-30 1986-04-30 Input and output processing system

Country Status (1)

Country Link
JP (1) JPS62256150A (en)

Also Published As

Publication number Publication date
JPS62256150A (en) 1987-11-07

Similar Documents

Publication Publication Date Title
US6279046B1 (en) Event-driven communications interface for logically-partitioned computer
US4972368A (en) Intelligent serial I/O subsystem
US5363503A (en) Fault tolerant computer system with provision for handling external events
US6920516B2 (en) Anti-starvation interrupt protocol
EP0397471B1 (en) Initialization system amd methods for input/output processing units
US6012121A (en) Apparatus for flexible control of interrupts in multiprocessor systems
US6256660B1 (en) Method and program product for allowing application programs to avoid unnecessary packet arrival interrupts
US5909574A (en) Computing system with exception handler and method of handling exceptions in a computing system
US6338151B1 (en) Input/output recovery which is based an error rate and a current state of the computer environment
EP0725345A1 (en) Apparatus and method for efficient transfer of data and events between processes and between processes and drivers in a parallel, fault tolerant message based operating system
US6336193B1 (en) Input/output recovery method which is based upon an error rate and a current state of the computer environment
US7089457B2 (en) Efficient I/O retry over QDIO
JPH0435781B2 (en)
EP0117930B1 (en) Interactive work station with auxiliary microprocessor for storage protection
US6338145B1 (en) Input/output recovery system which is based upon an error rate and a current state of the computer environment
JP2845616B2 (en) Multiprocessor system
JP4205843B2 (en) Control method of network connection device
JPH076113A (en) Data processing system having event reporting word processing function
JPH09282291A (en) System and method for canceling lock flag of common storage device
JPH0533414B2 (en)
JPS62256154A (en) Channel path control system
JPS63826B2 (en)
JPH02302849A (en) Asynchronous memory setting control system
JPS63131256A (en) Information processing system
JPS6134654A (en) Bus master control device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees