aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-06-26 09:48:33 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-06-27 11:35:22 +1000
commit4a3ce90df510768171bfdd4bfca524510c86963e (patch)
treed785ad8ab617fba9c7e095df244e8f6243911ebf /hw
parent4025c84b4582d7194ffa93cbcd27bf84140d3337 (diff)
downloadskiboot-4a3ce90df510768171bfdd4bfca524510c86963e.zip
skiboot-4a3ce90df510768171bfdd4bfca524510c86963e.tar.gz
skiboot-4a3ce90df510768171bfdd4bfca524510c86963e.tar.bz2
pci: Make the pci-eeh-verbose nvram option generic
We currently have the "pci-eeh-verbose" NVRAM flag that causes phb4 to print a register dump when it detects the PHB has been fenced. This is useful for debugging most EEH issues since the kernel may not be ready to handle EEH events when the problem is first detected. There's no real reason this needs to be specific to PHB4 so this patch moves the nvram flag handling into the generic init path (along with the pcie_max_link_speed flag) so we can add a similar function for PHB3. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/phb4.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 94726ef..13d3f7a 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -151,7 +151,6 @@ static void phb4_init_hw(struct phb4 *p);
#define PHB4_CAN_STORE_EOI(p) XIVE_STORE_EOI_ENABLED
-static bool verbose_eeh;
static bool pci_tracing;
static bool pci_eeh_mmio;
static bool pci_retry_all;
@@ -5935,6 +5934,9 @@ static void phb4_probe_pbcq(struct dt_node *pbcq)
uint32_t nest_base, pci_base, pec_index;
struct dt_node *stk;
+ /* REMOVEME: force this for now until we stabalise PCIe */
+ verbose_eeh = 1;
+
nest_base = dt_get_address(pbcq, 0, NULL);
pci_base = dt_get_address(pbcq, 1, NULL);
pec_index = dt_prop_get_u32(pbcq, "ibm,pec-index");
@@ -5950,12 +5952,6 @@ void probe_phb4(void)
struct dt_node *np;
const char *s;
- verbose_eeh = nvram_query_eq_safe("pci-eeh-verbose", "true");
- /* REMOVEME: force this for now until we stabalise PCIe */
- verbose_eeh = 1;
- if (verbose_eeh)
- prlog(PR_INFO, "PHB4: Verbose EEH enabled\n");
-
pci_tracing = nvram_query_eq_safe("pci-tracing", "true");
pci_eeh_mmio = !nvram_query_eq_dangerous("pci-eeh-mmio", "disabled");
pci_retry_all = nvram_query_eq_dangerous("pci-retry-all", "true");