diff options
| author | Sreekanth Reddy <[email protected]> | 2020-10-27 18:38:37 +0530 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-11-04 18:42:23 -0500 |
| commit | e2f0cdf7525353d87ed4f51ea69ca7986070ddd5 (patch) | |
| tree | f500ce431ef40f21fb1915cf3f3823658a871e11 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 78ca700342a5df21d80515a36ba17c4962efb35b (diff) | |
scsi: mpt3sas: Update hba_port's sas_address & phy_mask
Update hba_port's sas_address & phy_mask fields whenever a direct expander
or sas/sata target devices are added or removed.
When any direct attached device is discovered then driver:
- Gets the hba_port object corresponding to device's PhysicalPort
number;
- Updates the hba_port's sas_address field with device's SAS
Address;
- Updates the hba_port's phy_mask filed with device's narrow/wide
port Phy number bits;
- If a sas/sata end device (not only direct-attached devices) is added
then corresponding sas_device object's port variable is assigned with
hba_port object's address whose port_id matches the device's
PhysicalPort number.
- If an expander device is added then corresponding sas_expander object's
port variable is assigned with hba_port object's address whose port_id
matches the expander device's PhysicalPort number.
When any direct attached device is detached then driver will delete the
hba_port object corresponding to device's PhysicalPort number.
Whenever any HBA phy's link (of direct attached device's port) comes up
then update the phy_mask field of corresponding hba_port object.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sreekanth Reddy <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions