blob: efa81c351784065849425b2c7c731c351c872302 [file] [log] [blame]
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -06001From 9d1ec4127e24aeb3c57895731acf71a160b3b193 Mon Sep 17 00:00:00 2001
2From: Bill Hoffa <wghoffa@us.ibm.com>
3Date: Wed, 28 Jan 2015 11:20:18 -0600
4Subject: [PATCH 1/2] New PCIE Patch
Andrew Geisslerf14815a2014-12-14 18:54:10 -06005
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -06006Change-Id: Ib601d7a92935670582b9cc1fd8fcd61b68159542
Andrew Geisslerf14815a2014-12-14 18:54:10 -06007---
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -06008 src/usr/targeting/common/genHwsvMrwXml.pl | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/src/usr/targeting/common/genHwsvMrwXml.pl b/src/usr/targeting/common/genHwsvMrwXml.pl
12index 9c93205..f5c33e0 100755
13--- a/src/usr/targeting/common/genHwsvMrwXml.pl
14+++ b/src/usr/targeting/common/genHwsvMrwXml.pl
15@@ -3049,7 +3049,7 @@ sub generate_proc
16 $pcie_list{$ipath}{0}{0}{'lane-mask'},
17 $pcie_list{$ipath}{0}{1}{'lane-mask'},
18 $pcie_list{$ipath}{1}{0}{'lane-mask'},
19- $pcie_list{$ipath}{1}{1}{'lane-mask'}
20+ 0x0FF
21 </default>
22 </attribute>
23 <attribute>
24--
251.8.2.2
26
27
28From 25148d8c9f85273ee851df99d00782ef8ad7e3de Mon Sep 17 00:00:00 2001
29From: Bill Hoffa <wghoffa@us.ibm.com>
30Date: Thu, 29 Jan 2015 16:28:55 -0600
31Subject: [PATCH 2/2] Temporary Patch to fix Opal Devtree Issue
32
33Change-Id: Ie6aecc4a9b957dfd665f5bda1bb4a72728fba40b
34---
35 src/usr/devtree/bld_devtree.C | 64 +++----------------------------------------
36 1 file changed, 4 insertions(+), 60 deletions(-)
Andrew Geisslerf14815a2014-12-14 18:54:10 -060037
38diff --git a/src/usr/devtree/bld_devtree.C b/src/usr/devtree/bld_devtree.C
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -060039index 07ec253..abe8496 100644
Andrew Geisslerf14815a2014-12-14 18:54:10 -060040--- a/src/usr/devtree/bld_devtree.C
41+++ b/src/usr/devtree/bld_devtree.C
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -060042@@ -585,6 +585,7 @@ void load_hbrt_image(uint64_t& io_address)
43 }
44 }
Andrew Geisslerf14815a2014-12-14 18:54:10 -060045
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -060046+
47 errlHndl_t bld_fdt_system(devTree * i_dt, bool i_smallTree)
48 {
49 errlHndl_t errhdl = NULL;
50@@ -601,75 +602,18 @@ errlHndl_t bld_fdt_system(devTree * i_dt, bool i_smallTree)
51 // Nothing to do for small trees currently.
52 if (!i_smallTree)
53 {
54- /* Fetch the MRW-defined compatible model from attributes */
55- ATTR_OPAL_MODEL_type l_model = {0};
56- TARGETING::Target* sys = NULL;
57- TARGETING::targetService().getTopLevelTarget(sys);
58- sys->tryGetAttr<TARGETING::ATTR_OPAL_MODEL>(l_model);
59
60 /* Add compatibility node */
61- const char* l_compats[] = { "ibm,powernv", l_model, NULL };
62- i_dt->addPropertyStrings(rootNode, "compatible", l_compats);
63+ i_dt->addPropertyString(rootNode, "compatible", "ibm,powernv");
Andrew Geisslerf14815a2014-12-14 18:54:10 -060064
65 /* Add system model node */
66- // Based off of the DR field in the OPFR
67- // TODO RTC 118373 -- update to account for firestone/memory riser
68- TARGETING::TargetHandleList l_membTargetList;
69- getAllChips(l_membTargetList, TYPE_MEMBUF);
70-
71- //if can't find a centaur for the CVPD, default to unknown
72- if (l_membTargetList.size())
73- {
74- TARGETING::Target * l_pMem = l_membTargetList[0];
75- size_t vpdSize = 0x0;
76-
77- // Note: First read with NULL for o_buffer sets vpdSize to the
78- // correct length
79- errhdl = deviceRead( l_pMem,
80- NULL,
81- vpdSize,
82- DEVICE_CVPD_ADDRESS( CVPD::OPFR,
83- CVPD::DR ));
84-
85- if(errhdl)
86- {
87- TRACFCOMP(g_trac_devtree,ERR_MRK" Couldn't get DR size for HUID=0x%.8X",
88- TARGETING::get_huid(l_pMem));
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -060089- i_dt->addPropertyString(rootNode, "model", "unknown");
90- errlCommit(errhdl, DEVTREE_COMP_ID);
Andrew Geisslerf14815a2014-12-14 18:54:10 -060091- }
92- else
93- {
94- char drBuf[vpdSize+1];
95- memset(&drBuf, 0x0, (vpdSize+1)); //ensure null terminated str
96- errhdl = deviceRead( l_pMem,
97- reinterpret_cast<void*>( &drBuf ),
98- vpdSize,
99- DEVICE_CVPD_ADDRESS( CVPD::OPFR,
100- CVPD::DR ));
101-
102- if(errhdl)
103- {
104- TRACFCOMP(g_trac_devtree,ERR_MRK" Couldn't read DR for HUID=0x%.8X",
105- TARGETING::get_huid(l_pMem));
106- }
107- else
108- {
109- i_dt->addPropertyString(rootNode, "model", drBuf);
110- }
111- }
112- }
113- else //chassis info not found, default to unknown
114- {
115- TRACFCOMP(g_trac_devtree,ERR_MRK" VPD not found, model defaulted to unknown");
116- i_dt->addPropertyString(rootNode, "model", "unknown");
117- }
118+ //TODO RTC:88056 - store model type in attributes?
119+ i_dt->addPropertyString(rootNode, "model", "palmetto");
120 }
121
122 return errhdl;
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -0600123 }
124
125-
126 errlHndl_t bld_fdt_cpu(devTree * i_dt,
127 std::vector<uint64_t>& o_homerRegions,
128 bool i_smallTree)
Andrew Geisslerf14815a2014-12-14 18:54:10 -0600129--
1301.8.2.2
131