Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 563599

Summary: [5.6 FEAT] Backport elf/dl-sysdep.c patch for AT_BASE_PLATFORM
Product: Red Hat Enterprise Linux 5 Reporter: IBM Bug Proxy <bugproxy>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: high Docs Contact:
Priority: high    
Version: 5.6CC: cward, ebachalo, fweimer, jjarvis, nobody+PNT0273897, pmuller, sbest
Target Milestone: betaKeywords: FutureFeature, OtherQA
Target Release: 5.6   
Hardware: ppc64   
OS: All   
Whiteboard:
Fixed In Version: glibc-2.5-54 Doc Type: Enhancement
Doc Text:
Support for POWER7 and Power ISA v.2.06 architectures has been added.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-14 00:03:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 652279    
Bug Blocks: 531800, 557597    
Attachments:
Description Flags
Patch to backport bugzilla 60461 to RHEL 5.5 none

Description IBM Bug Proxy 2010-02-10 17:01:02 UTC
1. Feature Overview:
Feature Id: [60461]
a. Name of Feature: [5.6 FEAT] Backport elf/dl-sysdep.c patch for AT_BASE_PLATFORM
b. Feature Description
We'd like to have AT_BASE_PLATFORM support in RHEL 5.6 so that POWER7 systems running in compat mode
can report power7' as AT_BASE_PLATFORM, and 'power6' as AT_PLATFORM. With a newer kernel the
AT_BASE_PLATFORM feature shows up as "AT_???????". Here's the GLIBC Bugzilla that added the support:
http://sourceware.org/bugzilla/show_bug.cgi?id=9948
The following git commit contains the patch which added AT_BASE_PLATFORM support: 

2. Feature Details:
Sponsor: LTC Toolchain
Architectures:
  ppc64

Arch Specificity: purely common code
Affects Kernel Modules: No
Delivery Mechanism: Backport
Category: other
Request Type: Toolchain - Enhancement from Upstream
d. Upstream Acceptance: Accepted
Sponsor Priority P1
f. Severity: high
IBM Confidential: No
Code Contribution: IBM code
g. Component Version Target:
---

3. Business Case
Support P7 platforms

4. Primary contact at Red Hat:
John Jarvis
jjarvis

5. Primary contacts at Partner:
Project Management Contact:
Michael L. Hohnbaum, hbaum.com

Technical contact(s):
Ryan S. Arnold, ryanarn.com

Comment 1 John Jarvis 2010-03-01 17:20:05 UTC
IBM is signed up to test and provide feedback.

Comment 2 IBM Bug Proxy 2010-04-05 15:32:09 UTC
------- Comment From brutman.com 2010-04-05 11:27 EDT-------
The git commit number in the head for this is:

f53713a8e729c441aef2b4ccc7562306fc306fbe

We expect the patch to apply cleanly ..  please give it a shot and let me know if there are any problems.

Comment 3 IBM Bug Proxy 2010-04-07 16:20:50 UTC
------- Comment From brutman.com 2010-04-07 12:20 EDT-------
Forget going to git for the patch - it wasn't clean.  (My bad).  Please use the patch in the attachment referenced in the previous comment - it is a backport of f53713a8e729c441aef2b4ccc7562306fc306fbe to the RHEL 5.5 codebase.

Comment 4 IBM Bug Proxy 2010-04-07 16:20:56 UTC
Created attachment 405018 [details]
Patch to backport bugzilla 60461 to RHEL 5.5


------- Comment (attachment only) From brutman.com 2010-04-07 12:18 EDT-------

Comment 6 John Jarvis 2010-07-07 14:50:15 UTC
This enhancement request was evaluated by the full Red Hat Enterprise Linux 
team for inclusion in a Red Hat Enterprise Linux minor release.   As a 
result of this evaluation, Red Hat has tentatively approved inclusion of 
this feature in the next Red Hat Enterprise Linux Update minor release.   
While it is a goal to include this enhancement in the next minor release 
of Red Hat Enterprise Linux, the enhancement is not yet committed for 
inclusion in the next minor release pending the next phase of actual 
code integration and successful Red Hat and partner testing.

Comment 9 Chris Ward 2010-11-09 13:36:36 UTC
~~ Attention Customers and Partners - RHEL 5.6 Public Beta is now available on RHN ~~

A fix for this 'OtherQA' BZ should be present and testable in the release. 

If this Bugzilla is verified as resolved, please update the Verified field above with an appropriate value and include a summary of the testing executed and the results obtained.

If you encounter any issues or have questions while testing, please describe them and set this bug into NEED_INFO. 

If you encounter new defects or have additional patches to request for inclusion, promptly escalate the new issues through your support representative.

Finally, future Beta kernels can be found here:
 http://people.redhat.com/jwilson/el5/

Note: Bugs with the 'OtherQA' keyword require Third-Party testing to confirm the request has been properly addressed. See: https://bugzilla.redhat.com/describekeywords.cgi#OtherQA ).

Comment 10 IBM Bug Proxy 2010-11-10 20:44:11 UTC
------- Comment From rsa.com 2010-11-10 15:40 EDT-------
Attempting to verify this on a power7 system running RHEL5.6 reveals that the AT_BASE_PLATFORM string is not showing up at all.  If the dynamic linker was missing the patch the output would simply show question marks in place of the the AT_BASE_PLATFORM string, but it is missing entirely.  This indicates that the kernel is missing the fix necessary to export AT_BASE_PLATFORM to user space via the aux vector.

The correct behavior on a power7 with this fix should be that AT_PLATFORM is power6 and AT_BASE_PLATFORM is power7.

Comment 11 IBM Bug Proxy 2010-11-10 21:02:32 UTC
------- Comment From rsa.com 2010-11-10 15:55 EDT-------
Please add the kernel patch in redhat bugzilla 563563 to the kernel in order to get AT_BASE_PLATFORM support to be exported to user space.

Comment 12 John Jarvis 2010-11-10 21:16:36 UTC
No, open a new BZ to request the kernel patch inclusion.  This is exactly why you don't request multiple patches for different components in one Bugzilla request, because things get overlooked just like this.

Comment 13 John Jarvis 2010-11-18 20:49:19 UTC
This enhancement request was evaluated by the full Red Hat Enterprise Linux 
team for inclusion in a Red Hat Enterprise Linux minor release.   As a 
result of this evaluation, Red Hat has tentatively approved inclusion of 
this feature in the next Red Hat Enterprise Linux Update minor release.   
While it is a goal to include this enhancement in the next minor release 
of Red Hat Enterprise Linux, the enhancement is not yet committed for 
inclusion in the next minor release pending the next phase of actual 
code integration and successful Red Hat and partner testing.

Comment 14 IBM Bug Proxy 2010-11-30 15:32:16 UTC
------- Comment From rsa.com 2010-11-30 10:28 EDT-------
The kernel side of this fix was provided in https://bugzilla.linux.ibm.com/show_bug.cgi?id=68245 (Red Hat Bugzilla  	652279)

[root@ltcgranola4p03 ~]# uname -a
Linux ltcgranola4p03.ltc.austin.ibm.com 2.6.18-233.el5 #1 SMP Mon Nov 22
17:46:54 EST 2010 ppc64 ppc64 ppc64 GNU/Linux
[root@ltcgranola4p03 ~]# LD_SHOW_AUXV=1 /bin/true
AT_DCACHEBSIZE:  0x80
AT_ICACHEBSIZE:  0x80
AT_UCACHEBSIZE:  0x0
AT_SYSINFO_EHDR: 0x100000
AT_HWCAP:        dfp arch_2_05 ic_snoop smt mmu fpu altivec ppc64 ppc32
AT_PAGESZ:       65536
AT_CLKTCK:       100
AT_PHDR:         0x10000034
AT_PHENT:        32
AT_PHNUM:        8
AT_BASE:         0xf7fa0000
AT_FLAGS:        0x0
AT_ENTRY:        0x10000970
AT_UID:          0
AT_EUID:         0
AT_GID:          0
AT_EGID:         0
AT_SECURE:       0
AT_PLATFORM:     power6
AT_BASE_PLATFORM:power7

I installed the test kernel provided in Red Hat Bugzilla 652279 on a RHEL5.6 snap2 system and verified that the fix is present on a Power7 system.

Comment 15 Martin Prpič 2010-12-02 11:21:36 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Support for POWER7 and Power ISA v.2.06 architectures has been added.

Comment 17 errata-xmlrpc 2011-01-14 00:03:59 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0109.html