[Linuxppc-users] dmidecode package for ppc64le ?

Steve Munroe sjmunroe at us.ibm.com
Wed Nov 1 00:31:43 AEDT 2017


dmidecode is x86 specific. Most of which does not apply to POWER or
PowerISA,

 What are you trying to defined out?

A lot of information is in the Aux Vector:

$ LD_SHOW_AUXV=1 /bin/true
AT_DCACHEBSIZE:  0x80
AT_ICACHEBSIZE:  0x80
AT_UCACHEBSIZE:  0x0
AT_SYSINFO_EHDR: 0x3fff97e30000
AT_HWCAP:        true_le archpmu vsx arch_2_06 dfp ic_snoop smt mmu fpu
altivec ppc64 ppc32
AT_PAGESZ:       65536
AT_CLKTCK:       100
AT_PHDR:         0x37a50040
AT_PHENT:        56
AT_PHNUM:        8
AT_BASE:         0x3fff97e50000
AT_FLAGS:        0x0
AT_ENTRY:        0x37a51a5c
AT_UID:          1007
AT_EUID:         1007
AT_GID:          1007
AT_EGID:         1007
AT_SECURE:       0
AT_RANDOM:       0x3fffd1231912
AT_HWCAP2:       htm-nosc vcrypto tar isel ebb dscr htm arch_2_07
AT_EXECFN:       /bin/true
AT_PLATFORM:     power8
AT_BASE_PLATFORM:power8

This documented in the 64-Bit ELF V2 ABI Specification

http://openpowerfoundation.org/wp-content/uploads/resources/leabi/content/ch_preface.html

With newer GLIBC you can access the AUXV at runtime via getauxval:

https://www.gnu.org/software/libc/manual/html_mono/libc.html#Definition-of-getauxval

With newer GCC you can access AT_PLATFORM and AT_HWCAP/AT_HWCAP2 info via
__builtin_cpu_is / __builtin_cpu_supports

https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/PowerPC-Built-in-Functions.html#PowerPC-Built-in-Functions

Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center




From:	<Tommi.Sihvo at tieto.com>
To:	<linuxppc-users at lists.ozlabs.org>
Date:	10/31/2017 08:08 AM
Subject:	[Linuxppc-users] dmidecode package for ppc64le ?
Sent by:	"Linuxppc-users" <linuxppc-users-bounces
            +sjmunroe=us.ibm.com at lists.ozlabs.org>



Hi all,

Is there any dmidecode package available for ppc64le ?  Or is it x86 only ?

Br,
tommi_______________________________________________
Linuxppc-users mailing list
Linuxppc-users at lists.ozlabs.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.ozlabs.org_listinfo_linuxppc-2Dusers&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=T7r-LXDLinWJNLr1nUUPaUUYEahDQNyKidvdz_Y3ljY&m=w7IGL6y_PqPUzuYQzDcRAJ5a3pODZGTYZqgk1lJ66hw&s=zIcy_crwEe0kdnrvS66o8E49MP-wvGT__7DOb7tprdM&e=



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-users/attachments/20171031/d5f43b32/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-users/attachments/20171031/d5f43b32/attachment.gif>


More information about the Linuxppc-users mailing list