aboutsummaryrefslogtreecommitdiff
path: root/hw/phb4.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-01-15 22:41:31 -0600
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-02-23 16:39:25 +1100
commit8e64bbd66280ee39d4c91efc567587f6af53cc85 (patch)
treeb35b60c28b7e19eedfa45b874686e850b2f2fb30 /hw/phb4.c
parent6158d1ce77c225ff295af95438cb5229ca755a12 (diff)
downloadskiboot-8e64bbd66280ee39d4c91efc567587f6af53cc85.zip
skiboot-8e64bbd66280ee39d4c91efc567587f6af53cc85.tar.gz
skiboot-8e64bbd66280ee39d4c91efc567587f6af53cc85.tar.bz2
phb4: Always assign powerbus BARs
HostBoot configure them with weird values that confuse us, instead let's just own the assignment. This is temporary, I will centralize memory map management next but this gets us going. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-By: Michael Neuling <mikey@neuling.org> [stewart@linux.vnet.ibm.com: Fixup commit message r.e. Mikey suggestion] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/phb4.c')
-rw-r--r--hw/phb4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 6bf0d88..f4b5af3 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -3296,8 +3296,12 @@ static void phb4_probe_stack(struct dt_node *stk_node, uint32_t pec_index,
gcid, pec_index, stk_index, path);
free(path);
+#if 0
force_assign = dt_has_node_property(stk_node,
"force-assign-bars", NULL);
+#else
+ force_assign=1;
+#endif
pci_stack = pci_base + 0x40 * (stk_index + 1);
nest_stack = nest_base + 0x40 * (stk_index + 1);