diff options
author | Michael Neuling <mikey@neuling.org> | 2017-10-23 21:22:22 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-10-23 12:37:52 -0500 |
commit | 70eaa3dce5e14d311d93d474b3190509bee4a765 (patch) | |
tree | d954ee69b4c5dfe0b762b6156261449913080a3c /include/phb4-regs.h | |
parent | dc4cdffafee76a19a577276dadd9bf35fe4cbf66 (diff) | |
download | skiboot-70eaa3dce5e14d311d93d474b3190509bee4a765.zip skiboot-70eaa3dce5e14d311d93d474b3190509bee4a765.tar.gz skiboot-70eaa3dce5e14d311d93d474b3190509bee4a765.tar.bz2 |
phb4: Escalate freeze to fence to avoid checkstop
Freeze events such as MMIO loads can cause the PHB to lose it's
limited powerbus credits. If all credits are used and a further MMIO
will cause a checkstop.
To work around this, we escalate the troublesome freeze events to a
fence. The fence will cause a full PHB reset which resets the powerbus
credits and avoids the checkstop.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/phb4-regs.h')
-rw-r--r-- | include/phb4-regs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/phb4-regs.h b/include/phb4-regs.h index e83c8c3..0d8aa48 100644 --- a/include/phb4-regs.h +++ b/include/phb4-regs.h @@ -435,6 +435,10 @@ /* PESTA */ #define IODA3_PESTA_MMIO_FROZEN PPC_BIT(0) +#define IODA3_PESTA_TRANS_TYPE PPC_BITMASK(5,7) +#define IODA3_PESTA_TRANS_TYPE_MMIOLOAD 0x4 +#define IODA3_PESTA_CA_CMPLT_TMT PPC_BIT(8) +#define IODA3_PESTA_UR PPC_BIT(9) /* PESTB */ #define IODA3_PESTB_DMA_STOPPED PPC_BIT(0) |