aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mpt/mpt_pci.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-04-27 18:41:16 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-04-27 18:41:16 +0000
commit8ba5efbd6fa32d1ca0ca6cfcc6cde9201b3c5c73 (patch)
treea3ecc08804e75344742bf013975640a81bf86500 /sys/dev/mpt/mpt_pci.c
parenta8217f5c2e29f3e676d274ac99a7982f0dc5c90c (diff)
downloadsrc-8ba5efbd6fa32d1ca0ca6cfcc6cde9201b3c5c73.tar.gz
src-8ba5efbd6fa32d1ca0ca6cfcc6cde9201b3c5c73.zip
On sparc64 obtain the initiator ID to be used for SPI HBAs from the
Open Firmware device tree in order to match what the PROM built-in driver uses. This is especially important when netbooting Fujitsu Siemens PRIMEPOWER250 as in that case the built-in driver isn't used and the port facts PortSCSIID defaults to 0, conflicting with the disk at the same address.
Notes
Notes: svn path=/head/; revision=207287
Diffstat (limited to 'sys/dev/mpt/mpt_pci.c')
-rw-r--r--sys/dev/mpt/mpt_pci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c
index 1e9dc921c097..e3b0ea359945 100644
--- a/sys/dev/mpt/mpt_pci.c
+++ b/sys/dev/mpt/mpt_pci.c
@@ -460,6 +460,11 @@ mpt_pci_attach(device_t dev)
mpt->raid_queue_depth = MPT_RAID_QUEUE_DEPTH_DEFAULT;
mpt->verbose = MPT_PRT_NONE;
mpt->role = MPT_ROLE_NONE;
+ mpt->mpt_ini_id = MPT_INI_ID_NONE;
+#ifdef __sparc64__
+ if (mpt->is_spi)
+ mpt->mpt_ini_id = OF_getscsinitid(dev);
+#endif
mpt_set_options(mpt);
if (mpt->verbose == MPT_PRT_NONE) {
mpt->verbose = MPT_PRT_WARN;