Tennimlltion Due to Equipment Malfunction
When channel equipment malfunctioning is detected
or invalid signals are received over theI/O interface,
the recovery procedure and the subsequent states of
the subehannels and devices on the channel depend
on the type of error and on the model. Normally, the
program is alerted to the termination by anI/O in
terruption, and the associatedCSW indicates the
channel-control-check or interface-control-check
condition. In channels sharing common equipment
with theCPU, malfunctioning detected by the chan
nel may be indicated by a machine-check interrup
tion, in which case noCSW is stored. Equipment
malfunctioning may cause the channel to perform
theI/O·-selective-reset or I/O-system-reset function
or to generate the halt signal.
Input/Output Interruptions
Input/ output interruptions provide a means for theCPU to change its state in response to conditions
that occur inI/O devices or channels. These condi
tions can be caused by the program or by an external
event at the device.
Interruption Conditions
The conditions causing requests forI/O interrup
tions to be initiated are calledI/O interruption con
ditions. AnI/O interruption condition can be
brought to the attention of the program only once
and is cleared when it causes an interruption. Alter
natively, anI/O interruption condition can be
cleared byTEST I/O or CLEAR I/O, and condi
tions gellerated by theI/O device following the ter
mination of the operation at the subchannel can be
cleared byST ART I/O or START I/O FAST RE
LEASE. The latter include the attention, device
end, and control-unit-end conditions, andthe channel-end condition when provided by a device
after concluding of the operation.
The device attempts to initiate a request to the
channel for an interruption whenever it detects any
of the folllowing conditions:
Channel end
Control-unit end
Device end
Attention
The channel may also, at command chaining, cre
ate an interruption condition at the device, which
can be due to the following conditions:Unit check
Unit exception
Busy indication from deviceProgram check
Protection check
226 System/370 Principles of Operation
When an operation initiated by command chain
ing is terminated because of an unusual condition
detected during the command initiation sequence,
the interruption condition may remain pending with
in the channel, or the channel may create an inter
ruption condition at the device. An interruption
condition is created at the device in response to
presentation of status by the device and causes the
device subsequently to present the same status for
interruption purposes. The interruption condition at
the device mayor may not be associated with unit
status. If the unusual condition is detected by the
device (unit check or unit exception) the unit-status
field of the associatedCSW identifies the condition.
In the case of program and protection check, the
identification of the error condition is preserved in
the subchannel, and appears in the channel-status
field of the associatedCSW. If the associated inter
ruption condition has been queued at the device, the
device provides zero status for interruption purposes.
When command chaining takes place, channel end
and device end do not cause an interruption, and are
not made available.
An interruption condition caused by the device
may be accompanied by channel and other unit sta
tus conditions. Furthermore, more than one inter
ruption condition associated with the same device
can be cleared at the same time. As an example,
when the channel-end condition is not cleared at the
device by the time device end is generated, both
conditions may be indicated in theCSW and cleared
at the device concurrently.
However, at the time the channel assigns highest
priority for interruptions to a condition associated
with an operation at the subchannel, the channel
accepts the status from the device and clears the
condition at the device. The interruption condition
and the associated status indication are subsequently
preserved in the subchannel. Any subsequent status
generated by the device is not included with the con
dition at the sub channel, even if the status is gener
ated before theCPU accepts the condition.
The method of processing a request for interrup
tion due to equipment malfunctioning depends on
the model. In channels sharing common equipment
with theCPU, malfunctioning detected by the chan
nel may be indicated by causing a machine-check
interruption.
When the channel detects any of the following
conditions, it initiates a request for anI/O interrup
tion without necessarily communicating with or hav
ing received the status byte from the device:• PCI flag in a CCW • Execution of HALT I/O or HALT DEVICE on
a selector channel
When channel equipment malfunctioning is detected
or invalid signals are received over the
the recovery procedure and the subsequent states of
the subehannels and devices on the channel depend
on the type of error and on the model. Normally, the
program is alerted to the termination by an
terruption, and the associated
channel-control-check or interface-control-check
condition. In channels sharing common equipment
with the
nel may be indicated by a machine-check interrup
tion, in which case no
malfunctioning may cause the channel to perform
the
or to generate the halt signal.
Input/Output Interruptions
Input/ output interruptions provide a means for the
that occur in
tions can be caused by the program or by an external
event at the device.
Interruption Conditions
The conditions causing requests for
tions to be initiated are called
ditions. An
brought to the attention of the program only once
and is cleared when it causes an interruption. Alter
natively, an
cleared by
tions gellerated by the
mination of the operation at the subchannel can be
cleared by
LEASE. The latter include the attention, device
end, and control-unit-end conditions, and
after concluding of the operation.
The device attempts to initiate a request to the
channel for an interruption whenever it detects any
of the folllowing conditions:
Channel end
Control-unit end
Device end
Attention
The channel may also, at command chaining, cre
ate an interruption condition at the device, which
can be due to the following conditions:
Unit exception
Busy indication from device
Protection check
226 System/370 Principles of Operation
When an operation initiated by command chain
ing is terminated because of an unusual condition
detected during the command initiation sequence,
the interruption condition may remain pending with
in the channel, or the channel may create an inter
ruption condition at the device. An interruption
condition is created at the device in response to
presentation of status by the device and causes the
device subsequently to present the same status for
interruption purposes. The interruption condition at
the device mayor may not be associated with unit
status. If the unusual condition is detected by the
device (unit check or unit exception) the unit-status
field of the associated
In the case of program and protection check, the
identification of the error condition is preserved in
the subchannel, and appears in the channel-status
field of the associated
ruption condition has been queued at the device, the
device provides zero status for interruption purposes.
When command chaining takes place, channel end
and device end do not cause an interruption, and are
not made available.
An interruption condition caused by the device
may be accompanied by channel and other unit sta
tus conditions. Furthermore, more than one inter
ruption condition associated with the same device
can be cleared at the same time. As an example,
when the channel-end condition is not cleared at the
device by the time device end is generated, both
conditions may be indicated in the
at the device concurrently.
However, at the time the channel assigns highest
priority for interruptions to a condition associated
with an operation at the subchannel, the channel
accepts the status from the device and clears the
condition at the device. The interruption condition
and the associated status indication are subsequently
preserved in the subchannel. Any subsequent status
generated by the device is not included with the con
dition at the sub channel, even if the status is gener
ated before the
The method of processing a request for interrup
tion due to equipment malfunctioning depends on
the model. In channels sharing common equipment
with the
nel may be indicated by causing a machine-check
interruption.
When the channel detects any of the following
conditions, it initiates a request for an
tion without necessarily communicating with or hav
ing received the status byte from the device:
a selector channel