diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2020-08-27 13:45:25 +1000 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2020-09-09 20:01:50 +0530 |
commit | c81ff7d17b0d1746529468816b34cd6a011420b7 (patch) | |
tree | 1c117a7344f50e9659ebb6f83d0ad07f60e9d853 | |
parent | e112555adf22dba48a58e0a695c8417a36c5fa9b (diff) | |
download | skiboot-c81ff7d17b0d1746529468816b34cd6a011420b7.zip skiboot-c81ff7d17b0d1746529468816b34cd6a011420b7.tar.gz skiboot-c81ff7d17b0d1746529468816b34cd6a011420b7.tar.bz2 |
hw/phb4: Actually enable error reporting
[ Upstream commit 9b594262eeec7699836ff50c8762241d1f2570a3 ]
PHB3 had an errata about correctable errors and when Ben was doing the
initial PHB4 port he deleted the corresponding config write to DEVCTL.
Whoops.
Cc: skiboot-stable@lists.ozlabs.org
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
-rw-r--r-- | hw/phb4.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -785,6 +785,7 @@ static void phb4_endpoint_init(struct phb *phb, val16 |= (PCICAP_EXP_DEVCTL_NFE_REPORT | PCICAP_EXP_DEVCTL_FE_REPORT | PCICAP_EXP_DEVCTL_UR_REPORT); + pci_cfg_write16(phb, bdfn, ecap + PCICAP_EXP_DEVCTL, val16); /* Enable ECRC generation and check */ pci_cfg_read32(phb, bdfn, aercap + PCIECAP_AER_CAPCTL, &val32); |