hw/ppc/spapr: Encode the SCSI channel (bus) in the SRP LUNs
commit1ac24c91bbfada5303a3d7ac1d50a05c489053a1
authorThomas Huth <thuth@redhat.com>
Wed, 9 Jan 2019 14:03:23 +0000 (9 15:03 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 4 Feb 2019 07:44:18 +0000 (4 18:44 +1100)
treea7ceeb955c84bdfad8712060bb6302f7cac02403
parent4882206430532af27aa2ffd30df2818e4661e981
hw/ppc/spapr: Encode the SCSI channel (bus) in the SRP LUNs

In hw/scsi/spapr_vio.c we declare that the controller supports multiple
buses by specifying "max_channel = 7" there. So in the code that fixes
up the device tree nodes, we must encode the channel number (a.k.a. bus
number in the "Logical unit addressing format" table of SAM5) into the
64-bit LUN, too.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1663160
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c