Finding the physical channel associated with a CHPID
Use the mapping of physical channel IDs (PCHID) to CHPIDs to find the hardware from the CHPID number or the CHPID numbers from the PCHID.
About this task

Knowing the PCHID number can be useful in the following situations:
- When Linux® indicates that a CHPID is in an error state, you can use the PCHID number to identify the associated hardware.
- When a hardware interface requires service action, the PCHID mapping can be used to determine which CHPIDs and I/O devices will be affected.
Procedure
To find the physical channel ID corresponding to a CHPID, either:
Example
# lschp
CHPID Vary Cfg. Type Cmg Shared PCHID
============================================
0.30 1 1 1b 2 1 0390
0.31 1 1 1b 2 1 0392
0.32 1 1 1b 2 1 0510
0.33 1 1 1b 2 1 0512
0.34 1 0 1b - - 0580
0.fc 1 1 24 3 1 (0702)
0.fd 1 1 24 3 1 (0703)
0.fe 1 1 24 3 1 (0704)
This example
shows that CHPID 30
is associated with PCHID 0390
,
while CHPID fe
is associated with internal channel
ID 0704
.Alternatively, check the channel ID
sysfs files, for example for CHPID
30
: # cat /sys/devices/css0/chp0.30/chid
0390
# cat /sys/devices/css0/chp0.30/chid_external
1