From 31615f402551eaa9d77b94d2c79ed5110e825e85 Mon Sep 17 00:00:00 2001 From: Dean Sanner Date: Thu, 17 Jul 2014 07:52:24 -0500 Subject: Populate actual PVR value instead of architected version Change-Id: I5d19166fe949394fae536f5165ce6138be7f820b Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12277 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/usr/devtree/bld_devtree.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usr/devtree') diff --git a/src/usr/devtree/bld_devtree.C b/src/usr/devtree/bld_devtree.C index 9bb36f7ca..c77e713bc 100644 --- a/src/usr/devtree/bld_devtree.C +++ b/src/usr/devtree/bld_devtree.C @@ -337,9 +337,9 @@ uint32_t bld_cpu_node(devTree * i_dt, dtOffset_t & i_parentNode, i_dt->addPropertyCells32(cpuNode, "ibm,ppc-interrupt-server#s", interruptServerNum, numThreads); - /* This is the "architected processor version" as defined in PAPR. Just - * stick to 0x0f000004 for P8 and things will be fine */ - i_dt->addPropertyCell32(cpuNode, "cpu-version", 0x0f000004); + /* Fill in the actual PVR of chip -- it is only a 32 bit reg*/ + uint32_t l_pvr = mmio_pvr_read() & 0xFFFFFFFF; + i_dt->addPropertyCell32(cpuNode, "cpu-version", l_pvr); i_dt->addPropertyCells32(cpuNode, "ibm,processor-segment-sizes", segmentSizes, -- cgit v1.2.3