← Back to team overview

kernel-packages team mailing list archive

[Bug 1547153] Re: /sys/class/scsi_host/hostN/partition_number and .../mad_version showing up BE on LE Ubuntu. (ibmvscsi)

 

** Tags removed: targetmilestone-inin---
** Tags added: targetmilestone-inin1504

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1547153

Title:
  /sys/class/scsi_host/hostN/partition_number and .../mad_version
  showing up BE on LE Ubuntu. (ibmvscsi)

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Xenial:
  Fix Committed

Bug description:
  == Comment: #0 - ERIC P. FRIED <efried@xxxxxxxxxx> - 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/efried@xxxxxxxxxx  Brian King/bjking1@xxxxxxxxxx: 
  -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 <tyreld@xxxxxxxxxx> - 2016-02-17 17:46:17 ==
  Fix has been submitted upstream:

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

  == Comment: #2 - TYREL N. DATWYLER <tyreld@xxxxxxxxxx> - 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1547153/+subscriptions