aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2011-09-16 15:53:13 +0200
committerThomas Huth <thuth@linux.vnet.ibm.com>2011-09-16 15:53:13 +0200
commitb94bde008b0d49ec4bfe933e110d0952d032ac28 (patch)
tree12e0f33b6590159c76ba372f4c567137c88dc20a
parent3a3f3280e6d08c21ba83ab15a7558c0747497189 (diff)
downloadSLOF-b94bde008b0d49ec4bfe933e110d0952d032ac28.zip
SLOF-b94bde008b0d49ec4bfe933e110d0952d032ac28.tar.gz
SLOF-b94bde008b0d49ec4bfe933e110d0952d032ac28.tar.bz2
Fix vSCSI device addressing methodqemu-slof-20110930
According to the "SCSI Architecture Model", there are multiple ways to specify the 64-bit LUNs in the SRP_CMD structure. SLOF was using the "Peripheral device addressing method" (00b) which did not match the rest of the source code that is trying to scan for target IDs, not bus/channel numbers. Now the method has been switched to "Logical unit addressing method" (10b) which matches the rest of the code and which is also used by the Linux kernel in the same way. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
-rw-r--r--board-qemu/slof/vio-vscsi.fs5
1 files changed, 3 insertions, 2 deletions
diff --git a/board-qemu/slof/vio-vscsi.fs b/board-qemu/slof/vio-vscsi.fs
index 4333b21..4ea8598 100644
--- a/board-qemu/slof/vio-vscsi.fs
+++ b/board-qemu/slof/vio-vscsi.fs
@@ -260,8 +260,9 @@ CREATE srp 100 allot
srp /srp-cmd erase
SRP_CMD srp >srp-cmd-opcode c!
1 srp >srp-cmd-tag x!
- srp >srp-cmd-lun 1 + c! \ lun
- srp >srp-cmd-lun c! \ id
+ srp >srp-cmd-lun 1 + c! \ lun
+ 80 or \ select logical unit addressing method
+ srp >srp-cmd-lun c! \ id
/srp-cmd to srp-len
;