You have been subscribed to a public bug:

== Comment: #0 - ERIC P. FRIED <[email protected]> - 2015-06-15 18:29:28 ==
---Problem Description---
/sys/class/scsi_host/host0/partition_number and .../mad_version showing up BE 
on LE Ubuntu.
 
---uname output---
Linux neo34 3.19.0-10-generic #10-Ubuntu SMP Mon Mar 23 16:18:35 UTC 2015 
ppc64le ppc64le ppc64le GNU/Linux
 
---Additional Hardware Info---
Dual VIOS, Ubuntu partition is full virtual. 

 
---Patches Installed---
VMC device driver for Neo project.  Ask Steve Royer (seroyer@us) if it matters.
 
Machine Type = type_model=8247-22L 
 
---Debugger---
A debugger is not configured
 
---Steps to Reproduce---
 neo@neo34:/sys/class/scsi_disk$ cat 
/sys/module/ibmvscsi/drivers/vio\:ibmvscsi/30000006/host1/scsi_host/host1/partition_number
 
50331648
neo@neo34:/sys/class/scsi_disk$ cat 
/sys/module/ibmvscsi/drivers/vio\:ibmvscsi/30000006/host1/scsi_host/host1/mad_version
 
16777216

Turns out these numbers are really big-endian versions of their real values.
In [60]: print("0x%x" % 50331648)
0x3000000

The actual partition ID of host1 is 3.
neo@neo34:/sys/class/scsi_disk$ lssyscfg -r lpar -F lpar_id --filter 
lpar_names=vios2
3

 
Userspace tool common name: Not sure what this means.  Use 'cat' to reproduce 
the bug. 
 
The userspace tool has the following bit modes: ? 

Userspace rpm: Not sure what this means either.  And I'm on Ubuntu, no
RPMs.

Userspace tool obtained from project website:  na 
 
*Additional Instructions for Eric Fried/[email protected]  Brian 
King/[email protected]: 
-Post a private note with access information to the machine that the bug is 
occuring on.
-Attach ltrace and strace of userspace application.

== Comment: #1 - TYREL N. DATWYLER <[email protected]> - 2016-02-17 17:46:17 ==
Fix has been submitted upstream:

https://lkml.org/lkml/2016/2/10/792

== Comment: #2 - TYREL N. DATWYLER <[email protected]> - 2016-02-18 12:19:18 ==
Fix has been accepted upstream into Martin Petersen's 4.6/scsi-queue branch.

http://git.kernel.org/cgit/linux/kernel/git/mkp/scsi.git/commit/?h=4.6
/scsi-queue&id=f9e3de0d6053ae89828188291a405c64d8d95a0e

** Affects: linux (Ubuntu)
     Importance: Medium
     Assignee: Canonical Kernel Team (canonical-kernel-team)
         Status: Triaged


** Tags: architecture-ppc64le bot-comment bugnameltc-126380 severity-medium 
targetmilestone-inin---
-- 
/sys/class/scsi_host/hostN/partition_number and .../mad_version showing up BE 
on LE Ubuntu. (ibmvscsi)
https://bugs.launchpad.net/bugs/1547153
You received this bug notification because you are a member of Kernel Packages, 
which is subscribed to linux in Ubuntu.

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to