first CCV{ associated with an operation the PCI flag, either initially or upon command chaining,
the interruption may occur as early as immediately
upon the initiation of the operation. ThePCI flag in
aCCW on data chaining causes the inter
ruption to occur after all data designated by the pre
cedingCCW has been transferred. The time of the
interruption, however, depends on the model and the
current a(:tivity in the system and may be delayed
even ifthe channel is not masked. No predictable
relationexists between the time the interruption due
to thePCI flag occurs and the progress of data
transfer to or from the area designated by theCCW, but the fields within the CSW pertain to the same
instant of time.
If chaining occurs before the interruption due to
thePCI flag has taken place, the PCI condition is
carried over to the newCCW. This carryover occurs
both on data and command chaining and, in either
case, thecondition is propagated through the trans
fer in channel command. ThePCI conditions are not
stacked; that is, if anotherCCW is fetched with a PCI flag before the interruption due to the PCI flag
of the previousCCW has occurred, only one inter
ruption takes place.
ACS\V containing the PCI bit may be stored by
an interruption while the operation is still proceeding
or by an interruption,TEST I/O, or CLEAR I/O upon the termination of the operation. It cannot be
stored byTEST I/O while lthe subchannel is in the
working state.
When theCSW is stored by an interruption be
fore the operation or chain of operations has been
concluded , the command address is eight higher
than the address of the currentCCW, and the count
isunpredietable. All unit-status bits in the CSW are
zero. Ifthe channel has detected any unusual condi
tions, such as channel data check, program check, or
protection check by the time the interruption occurs,
the corresponding channel-status bit is on, although
thecondition in the subchannel is not reset and is
indicated again upon the termination of the opera
tion.
The presence of any unit-status bit in theCSW indicates that the operation or chain of operations
has been concluded. TheCSW in this case has its
regular format with thePCI bit added.
However, when the interruption condition due to
thePCI flag has been delayed until the operation at
the subchamnel has been concluded, two interrup
tions from the subchannel may still take place, with
the first interruption indicating and clearingthe PCI condition alone, and the second providing the CSW associated with the ending status. Whether one or
two interruptions occur depends on the model and
216 System/370 Principles of Operation
on whether thePCI condition has been assigned the
highest priority for interruption at the time of con
cluding.TEST I/O or CLEAR I/O addressed to the
device associated with an interruption condition in
the sub channel clears thePCI condition as well as
the one associated with the concluding.
The setting of thePCI flag is inspected in every CCW except those specifying transfer in channel,
where it is ignored. ThePCI flag is also ignored
during initial program loading.
Programming Note
Since no unit-status bits are placed in theCSW asso
ciated with the concluding of an operation of the
selector channel by HALTI/O or HALT DEVICE, the presence of a unit-status bit with the PCI bit is
not a necessary condition for the operation to be
concluded. When the selector channel contains thePCI bit at the time the operation is concluded by
HALTI/O or HALT DEVICE, the CSW associated
with the concluded operation is indistinguishable
from theCSW provided by an interruption during
execution of the operation.
Program-controlled interruption provides a means
of alerting the program of the progress of chaining
during anI/O operation. It permits programmed
dynamic main-storage allocation.
Channel Indirect Data AddressingChannel indirect data addressing (CIDA), a compan
ion facility to dynamic address translation, provides
assistance in translating data addresses forI/O oper
ations. It permits a single channel command word to
control the transmission of data that spans noncontig
uous pages in real main storage.Channel indirect data addressing is specified by a
flag bit in theCCW which, when one, indicates that
the data address in theCCW is not used to directly
address data. Instead, the address points to a list of
words, called indirect-data-address words (IDAWs),
each of which contains an absolute address designat
ing a data area within a2,048-byte block of main
storage.
When the indirect data addressing bit in theCCW is one, bits 8-31 of the CCW specify the location of
the first indirect data address word (IDA W) to be
used for data transfer for the command. Additional
IDAWs, if needed for completing the data transfer
for theCCW, are in successive locations in storage.
The number of IDAWs required for aCCW is deter
mined by the count field of theCCW and by the
data address in the initial IDAW. When, for exam
ple, theCCW count field specifies 4,000 bytes and
the first IDA W specifies a location in the middle of a2,048-byte block, three IDA Ws are required.
the interruption may occur as early as immediately
upon the initiation of the operation. The
a
ruption to occur after all data designated by the pre
ceding
interruption, however, depends on the model and the
current a(:tivity in the system and may be delayed
even if
relation
to the
transfer to or from the area designated by the
instant of time.
If chaining occurs before the interruption due to
the
carried over to the new
both on data and command chaining and, in either
case, the
fer in channel command. The
stacked; that is, if another
of the previous
ruption takes place.
A
an interruption while the operation is still proceeding
or by an interruption,
stored by
working state.
When the
fore the operation or chain of operations has been
concluded , the command address is eight higher
than the address of the current
is
zero. If
tions, such as channel data check, program check, or
protection check by the time the interruption occurs,
the corresponding channel-status bit is on, although
the
indicated again upon the termination of the opera
tion.
The presence of any unit-status bit in the
has been concluded. The
regular format with the
However, when the interruption condition due to
the
the subchamnel has been concluded, two interrup
tions from the subchannel may still take place, with
the first interruption indicating and clearing
two interruptions occur depends on the model and
216 System/370 Principles of Operation
on whether the
highest priority for interruption at the time of con
cluding.
device associated with an interruption condition in
the sub channel clears the
the one associated with the concluding.
The setting of the
where it is ignored. The
during initial program loading.
Programming Note
Since no unit-status bits are placed in the
ciated with the concluding of an operation of the
selector channel by HALT
not a necessary condition for the operation to be
concluded. When the selector channel contains the
HALT
with the concluded operation is indistinguishable
from the
execution of the operation.
Program-controlled interruption provides a means
of alerting the program of the progress of chaining
during an
dynamic main-storage allocation.
Channel Indirect Data Addressing
ion facility to dynamic address translation, provides
assistance in translating data addresses for
ations. It permits a single channel command word to
control the transmission of data that spans noncontig
uous pages in real main storage.
flag bit in the
the data address in the
address data. Instead, the address points to a list of
words, called indirect-data-address words (IDAWs),
each of which contains an absolute address designat
ing a data area within a
storage.
When the indirect data addressing bit in the
the first indirect data address word (IDA W) to be
used for data transfer for the command. Additional
IDAWs, if needed for completing the data transfer
for the
The number of IDAWs required for a
mined by the count field of the
data address in the initial IDAW. When, for exam
ple, the
the first IDA W specifies a location in the middle of a