[Skiboot] [PATCHv 2] hdat/vpd: Add chip-id property to processor chip node under vpd

Stewart Smith stewart at linux.vnet.ibm.com
Tue Jul 12 16:56:31 AEST 2016


Vasant Hegde <hegdevasant at linux.vnet.ibm.com> writes:
> On 07/05/2016 01:27 PM, Stewart Smith wrote:
>> Vasant Hegde <hegdevasant at linux.vnet.ibm.com> writes:
>>> We have core information under /cpus node and processor chip VPD data
>>> (like SN, LN, etc) under /vpd directory. Presently we don't have any
>>> property to relate cores and chip information. This patch adds chip-id
>>> information for processor chip nodes under vpd.
>>>
>>> Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
>>> ---
>>>   hdata/spira.c               |   15 +++++++++++----
>>>   hdata/test/p8-840-spira.dt  |    2 ++
>>>   hdata/test/p81-811.spira.dt |    4 ++++
>>>   3 files changed, 17 insertions(+), 4 deletions(-)
>>
>> What about openpower platforms? We still have /vpd on them.
>
> At present we don't have /vpd dir on Open Power system. If we endup using HDAT 
> on p9 Open Power system (instead of FDT passed from hostboot) then we can 
> populate /vpd dir.

On current skiboot master we do at least.. I've seen it on Firestone and
Garrison:

        vpd {
                phandle = <0x1000014a>;
                linux,phandle = <0x1000014a>;

                processor at 0 {
                        ibm,vpd = <0x8c005254 0x456494e 0x49445210 0x50524f43 0x4553534f 0x52204d4f 0x44554c45 0x464e0731 0x32333435 0x3637504e 0x7202020 0x20202020 0x534e0c20 0x20202020 0x20202020 0x20202043 0x43043232 0x32334845 0x4303030 0x31435404 0x0 0x48570200 0x1423306 0x0 0x4234 0x1004237 0xc000000 0x0 0x0 0x505208 0x35008001 0x11008000 0x565a0220 0x20434501 0x31504602>;
                        phandle = <0x1000014b>;
                        linux,phandle = <0x1000014b>;

                        cpu at 8 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x1000014c>;
                                linux,phandle = <0x1000014c>;
                        };

                        cpu at 10 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x1000014d>;
                                linux,phandle = <0x1000014d>;
                        };

                        cpu at 20 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x1000014e>;
                                linux,phandle = <0x1000014e>;
                        };

                        cpu at 28 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x1000014f>;
                                linux,phandle = <0x1000014f>;
                        };

                        cpu at 30 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x10000150>;
                                linux,phandle = <0x10000150>;
                        };

                        cpu at 50 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x10000151>;
                                linux,phandle = <0x10000151>;
                        };

                        cpu at 58 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x10000152>;
                                linux,phandle = <0x10000152>;
                        };

                        cpu at 60 {
                                frequency,voltage = <0x1000cbb 0xbc010e 0xd00024 0x7ed00a0 0x9400be 0x1a0f11 0xce0168 0xe2002e 0xfb800cf 0x17600ed 0x360000 0x0 0x0>;
                                phandle = <0x10000153>;
                                linux,phandle = <0x10000153>;
                        };
                };
                processor at 1 {
                        ibm,vpd = <0x8c005254 0x456494e 0x49445210 0x50524f43 0x4553534f 0x52204d4f 0x44554c45 0x464e0731 0x32333435 0x3637504e 0x7202020 0x20202020 0x534e0c20 0x20202020 0x20202020 0x20202043 0x43043232 0x32334845 0x4303030 0x31435404 0x0 0x48570200 0x1423306 0x0 0
x4234 0x1004237 0xc000000 0x0 0x0 0x505208 0x35008001 0x11008000 0x565a0220 0x20434501 0x31504602>;
                        phandle = <0x10000154>;
                        linux,phandle = <0x10000154>;

                        cpu at 88 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x10000155>;
                                linux,phandle = <0x10000155>;
                        };

                        cpu at 98 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x10000156>;
                                linux,phandle = <0x10000156>;
                        };

                        cpu at a8 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x10000157>;
                                linux,phandle = <0x10000157>;
                        };

                        cpu at b0 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x10000158>;
                                linux,phandle = <0x10000158>;
                        };

                        cpu at c8 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x10000159>;
                                linux,phandle = <0x10000159>;
                        };

                        cpu at d0 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x1000015a>;
                                linux,phandle = <0x1000015a>;
                        };

                        cpu at e0 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x1000015b>;
                                linux,phandle = <0x1000015b>;
                        };

                        cpu at e8 {
                                frequency,voltage = <0x1000cbb 0xc2010e 0xd60022 0x7ed00a4 0x9200c2 0x180f11 0xd80178 0xec002c 0xfb800d9 0x18600f7 0x340000 0x0 0x0>;
                                phandle = <0x1000015c>;
                                linux,phandle = <0x1000015c>;
                        };
                };
        };


-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list