Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177467005
D23852.1794493746.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
772 B
Referenced Files
None
Subscribers
None
D23852.1794493746.diff
View Options
Index: sys/cam/scsi/scsi_xpt.c
===================================================================
--- sys/cam/scsi/scsi_xpt.c
+++ sys/cam/scsi/scsi_xpt.c
@@ -2020,7 +2020,21 @@
/* Cache on our stack so we can work asynchronously */
max_target = scan_info->cpi->max_target;
low_target = 0;
- initiator_id = scan_info->cpi->initiator_id;
+
+ /*
+ * SAS does not have a concept of initiator ID, so ignore
+ * the SIM provided value which is traditionally faked for
+ * legacy reasons and use an impossible one that's guaranteed
+ * to be greater than max_target.
+ */
+ switch(scan_info->cpi->transport) {
+ case XPORT_SAS:
+ initiator_id = UINT_MAX;
+ break;
+ default:
+ initiator_id = scan_info->cpi->initiator_id;
+ break;
+ }
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 12, 2:29 PM (46 m, 41 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41677607
Default Alt Text
D23852.1794493746.diff (772 B)
Attached To
Mode
D23852: scsi_scan_bus: ignore Initiator ID for SAS transport in
Attached
Detach File
Event Timeline