libhugetlbfs tests fail on powerpc/ppc64el

Bug #1328251 reported by Tim Gardner
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Tim Gardner
Utopic
Fix Released
Undecided
Unassigned

Bug Description

The test provided for libhugetlbfs along with ubuntu_beta release fail.

Steps to recreate:
============

1. apt-get install libhugetlb
2. cd /usr/lib/libhugetlbs
3. ./run_tests.py

./run_tests.py
Unable to find available page sizes, are you sure hugetlbfs
is mounted and there are available huge pages?

We see the above message.

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Commit 457c1b27ed56ec472d202731b12417bff023594a fixes the issue.

Changed in linux (Ubuntu Trusty):
assignee: nobody → Tim Gardner (timg-tpi)
status: New → In Progress
Changed in linux (Ubuntu Utopic):
status: New → Fix Released
summary: - libhugetlbfs tests on powerpc/ppc64el
+ libhugetlbfs tests fail on powerpc/ppc64el
Revision history for this message
Nish Aravamudan (nacc-p) wrote :

Hi Tim,

Note that the referenced commit only makes it so that if you don't back a PowerKVM guest with hugepages, hugepages do not (falsely) appear to be supported. In such an environment the message referenced in this bug report will still be displayed as it should -- hugepages aren't supported in such a guest.

To run the libhugetlbfs test suite in a PowerKVM guest, you must back the guest with hugepages in the host and then allocate hugepages in the guest as appropriate.

Thanks,
Nish

Revision history for this message
Brad Figg (brad-figg) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-trusty' to 'verification-done-trusty'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-trusty
Revision history for this message
Anasuya M Shankar (anasuyams) wrote :

Working on Enabling the proposed patch and testing the same.

Revision history for this message
Anasuya M Shankar (anasuyams) wrote :
Download full text (7.0 KiB)

Applied the proposed patch as follows:

1.Added below entry in /etc/apt/source.list
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed restricted main multiverse universe

2. Did apt-get update

3. Check for libhugetlbfs

root@ubuntu:~# apt-cache policy libhugetlbfs*
libhugetlbfs-dev:
  Installed: (none)
  Candidate: 2.17-0ubuntu2
  Version table:
     2.17-0ubuntu2 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe ppc64el Packages
libhugetlbfs0:
  Installed: (none)
  Candidate: 2.17-0ubuntu2
  Version table:
     2.17-0ubuntu2 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe ppc64el Packages
libhugetlbfs-tests:
  Installed: (none)
  Candidate: 2.17-0ubuntu2
  Version table:
     2.17-0ubuntu2 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe ppc64el Packages
root@ubuntu:~#

4. Install libhugetlbfs
root@ubuntu:~# apt-get install libhugetlbfs*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libhugetlbfs-dev' for regex 'libhugetlbfs*'
Note, selecting 'libhugetlbfs0' for regex 'libhugetlbfs*'
Note, selecting 'libhugetlbfs-tests' for regex 'libhugetlbfs*'
The following extra packages will be installed:
  hugepages
Suggested packages:
  oprofile
The following NEW packages will be installed:
  hugepages libhugetlbfs-dev libhugetlbfs-tests libhugetlbfs0
0 upgraded, 4 newly installed, 0 to remove and 56 not upgraded.
Need to get 526 kB of archives.
After this operation, 5,555 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe libhugetlbfs0 ppc64el 2.17-0ubuntu2 [52.1 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe hugepages ppc64el 2.17-0ubuntu2 [45.0 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe libhugetlbfs-dev ppc64el 2.17-0ubuntu2 [48.6 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe libhugetlbfs-tests ppc64el 2.17-0ubuntu2 [381 kB]
Fetched 526 kB in 3s (171 kB/s)
Selecting previously unselected package libhugetlbfs0.
(Reading database ... 45325 files and directories currently installed.)
Preparing to unpack .../libhugetlbfs0_2.17-0ubuntu2_ppc64el.deb ...
Unpacking libhugetlbfs0 (2.17-0ubuntu2) ...
Selecting previously unselected package hugepages.
Preparing to unpack .../hugepages_2.17-0ubuntu2_ppc64el.deb ...
Unpacking hugepages (2.17-0ubuntu2) ...
Selecting previously unselected package libhugetlbfs-dev.
Preparing to unpack .../libhugetlbfs-dev_2.17-0ubuntu2_ppc64el.deb ...
Unpacking libhugetlbfs-dev (2.17-0ubuntu2) ...
Selecting previously unselected package libhugetlbfs-tests.
Preparing to unpack .../libhugetlbfs-tests_2.17-0ubuntu2_ppc64el.deb ...
Unpacking libhugetlbfs-tests (2.17-0ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libhugetlbfs0 (2.17-0ubuntu2) ...
Setting up hugepages (2.17-0ubuntu2) ...
Setting up libhugetlbfs-dev (2.17-0ubuntu2) ...
Setting up libhugetlbfs-tests (2.17-0ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
root@ubuntu:~#
root@ubuntu:~#

5. performed 2 scenrio tests

Tests Performed:
===============
...

Read more...

Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Trusty):
status: In Progress → Fix Committed
Brad Figg (brad-figg)
tags: added: verification-done-trusty
removed: verification-needed-trusty
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (19.3 KiB)

This bug was fixed in the package linux - 3.13.0-30.54

---------------
linux (3.13.0-30.54) trusty; urgency=low

  [ Adam Conrad ]

  * [Config] Enable building the sata-modules udeb on ppc64el.
    - LP: #1323980

  [ Anton Blanchard ]

  * SAUCE: (no-up) powerpc: 64bit sendfile is capped at 2GB
    - LP: #1328230

  [ Ben Widawsky ]

  * SAUCE: i915_bdw: drm/i915: Fix PSR programming
    - LP: #1321729
  * SAUCE: i915_bdw: drm/i915: Correct PPGTT total size
    - LP: #1321729

  [ Chris Wilson ]

  * SAUCE: i915_bdw: drm/i915: Broadwell expands ACTHD to 64bit
    - LP: #1321729

  [ Damien Lespiau ]

  * SAUCE: i915_bdw: drm/i915/bdw: Implement
    Wa4x4STCOptimizationDisable:bdw
    - LP: #1321729

  [ Dave Chiluk ]

  * [Config] Enable CONFIG_IP_VS_IPV6=y
    - LP: #1300739

  [ Kamal Mostafa ]

  * [Config] add debian/gbp.conf
  * Release Tracking Bug
    - LP: #1328286

  [ Mika Kuoppala ]

  * SAUCE: i915_bdw: drm/i915: add render state initialization
    - LP: #1321729

  [ Paulo Zanoni ]

  * SAUCE: i915_bdw: drm/i915: fix assert_cursor on BDW
    - LP: #1321729

  [ Steven Rostedt ]

  * SAUCE: i915_bdw: drm/i915: Do not dereference pointers from ring buffer
    in evict event
    - LP: #1321729

  [ Tim Gardner ]

  * [Config] CONFIG_POWERNV_CPUFREQ=y for ppc64el
    - LP: #1324571
  * [Debian] Treat vdso install as an environment variable
  * [Config] Treat vdso install as an environment variable
  * [Config] CONFIG_MLX4_DEBUG=y
    - LP: #1328256
  * [Config] CONFIG_I40EVF=m, CONFIG_I40E_DCB=y, CONFIG_I40E_VXLAN=y
    - LP: #1328037

  [ Timo Aaltonen ]

  * SAUCE: i915_bdw: Rebase to drm-intel-next-2014-03-07 + fixes
    - LP: #1321729
  * SAUCE: i915_bdw: Add BDW specific power well calls
    - LP: #1317865

  [ Upstream Kernel Changes ]

  * drm: expose subpixel order name routine v3
  * drm: dp helper: Add DP test sink CRC definition.
  * drm: export cmdline and preferred mode functions from fb helper
  * hugetlb: ensure hugepage access is denied if hugepages are not
    supported
    - LP: #1328251
  * powerpc/powernv: Move SG list structure to header file
    - LP: #1326015
  * powerpc/powernv: Read OPAL error log and export it through sysfs
    - LP: #1326015
  * powerpc/powernv Platform dump interface
    - LP: #1326015
  * pci_regs.h: Add PCI bus link speed and width defines
    - LP: #1328037
  * net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP
    - LP: #1328037
  * PCI/MSI: Add pci_enable_msi_range() and pci_enable_msix_range()
    - LP: #1328037
  * net: Change skb_get_rxhash to skb_get_hash
    - LP: #1328037
  * net: Add utility functions to clear rxhash
    - LP: #1328037
  * net: Add function to set the rxhash
    - LP: #1328037
  * i40e: set pf_id based on device and function numbers
    - LP: #1328037
  * i40e: register file updates
    - LP: #1328037
  * i40e: clear AQ head and tail registers
    - LP: #1328037
  * i40e: simplify aq head-tail-len setups
    - LP: #1328037
  * i40e: firmware version fields offsets update
    - LP: #1328037
  * i40e: allow one more vector for VFs
    - LP: #1328037
  * i40e: select reset counters correctly
    - LP: #1328037
  * i40e: retry call on timeout
    - LP: #...

Changed in linux (Ubuntu Trusty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.