[ubuntu- 14.10] librtas: fixes for LE support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
librtas (Ubuntu) |
Fix Released
|
Undecided
|
Adam Conrad | ||
Trusty |
Fix Released
|
Undecided
|
Adam Conrad | ||
Utopic |
Fix Released
|
Undecided
|
Adam Conrad |
Bug Description
[Justification]
librtas is an interface to a hardware management system specific to IBM POWER servers. It is built for Ubuntu's powerpc and ppc64el architectures. However, the version in Ubuntu 14.04 lacks full support for running on a little-endian host (ppc64el); and because powerpc is a 32-bit host OS its usage on IBM POWER servers is minimal. This is a hardware-enablement SRU to fix behavior of librtas on ppc64el.
[Test case]
Proper functioning of librtas to be confirmed by IBM.
[Regression potential]
The new upstream version of librtas includes endianness fixes and new APIs. The current package is of minimal utility on powerpc and is known to not work on ppc64el. Risk of regression is negligible.
---Problem Description---
Please include these additional patches to fix support for LE.
Machine Type = POWER8
Userspace tool common name: rtas_errd
Userspace package: librtas
Please pull below patchset from upstream.
upstream repo : git://git.
commit 1d54a4a346f9111
Author: Nathan Fontenot <email address hidden>
Date: Fri Oct 17 10:18:40 2014 -0400
When we pass _hi and _lo 32bits of a 64bit value, we
should convert the host endian value carefully.
i.e,
X_hi = htobe32(
X_lo = htobe32(
and not :
X_hi = BITS32_
NOTE: This patch is untested, but I believe this patch
is good to have than the current faulty conversion.
This patch fixes all such occurrences in librtas.
Signed-off-by: Suzuki K. Poulose <email address hidden>
commit e5541e1a5c83ce4
Author: Nathan Fontenot <email address hidden>
Date: Fri Oct 17 10:17:28 2014 -0400
Use rpm macros for standard paths
Signed-off-by: Suzuki K. Poulose <email address hidden>
commit 8ef7f827e28e3cd
Author: Nathan Fontenot <email address hidden>
Date: Fri Oct 17 10:16:16 2014 -0400
This patch fixes the conversion of args for paltform-dump call.
platform dump passes 64bit values as, a pair of 32bit values.
val_hi and val_lo. So when we convert a value 'X' to 32bit hi and lo
values in BE, we should follow the below approach :
X_hi = htobe32(
X_lo = htobe32(
and NOT
X_tmp = htobe64(X);
X_hi = BITS32_HI(X_tmp), X_lo = BITS32_LO(X_tmp)
This patch has been tested with rtas_errd/
dump from FSP.
Signed-off-by: Suzuki K. Poulose <email address hidden>
commit 52263814c46210b
Author: Nathan Fontenot <email address hidden>
Date: Fri Oct 17 10:12:54 2014 -0400
Fix LE parsing of SRC/FRU events
Signed-off-by: Thomas L Falcon <email address hidden>
Signed-off-by: Suzuki K. Poulose <email address hidden>
commit ac0a91d2730740c
Author: Nathan Fontenot <email address hidden>
Date: Fri Oct 17 10:10:29 2014 -0400
LE Support for SRC/FRU events
Signed-off-by: Nathan Fontenot <email address hidden>
@ Canonical,
We have recently made new upstream release (v1.3.13). If you are fine please pull new version.. -OR- just the patches mentioned here..
-Vasant
tags: | added: architecture-ppc64le bugnameltc-117928 severity-medium targetmilestone-inin1410 |
affects: | ubuntu → librtas (Ubuntu) |
tags: |
added: targetmilestone-inin1504 removed: targetmilestone-inin1410 |
Changed in librtas (Ubuntu): | |
assignee: | nobody → Adam Conrad (adconrad) |
Changed in librtas (Ubuntu Utopic): | |
assignee: | nobody → Adam Conrad (adconrad) |
Changed in librtas (Ubuntu Trusty): | |
assignee: | nobody → Adam Conrad (adconrad) |
tags: |
added: verification-done removed: verification-needed |
tags: | removed: verification-done |
------- Comment From <email address hidden> 2014-11-11 11:11 EDT-------
librtas v 1.3.13
http:// sourceforge. net/projects/ librtas/ files/librtas- 1.3.13. tar.gz/ download
-Vasant