aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-02-09 13:40:32 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-02-09 13:40:32 +1100
commit38bb327d1ad3d5971dc7ddab4ad6d2386e5f6036 (patch)
tree14f8f44b6a5b491d4d984e14d7df88abb0721f2a
parent4e60baa269007715c1ff81acf0fc1a94ee19a3f1 (diff)
downloadskiboot-38bb327d1ad3d5971dc7ddab4ad6d2386e5f6036.zip
skiboot-38bb327d1ad3d5971dc7ddab4ad6d2386e5f6036.tar.gz
skiboot-38bb327d1ad3d5971dc7ddab4ad6d2386e5f6036.tar.bz2
occ: Don't do bad XSCOMs on P7
The OCC interrupt register only exists on P8, accessing it on P7 causes not only error logs but also causes PRD to eventually gard chips. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--hw/occ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 99a1b1e..5d0e34d 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -536,8 +536,8 @@ static struct fsp_client fsp_occ_client = {
void occ_send_dummy_interrupt(void)
{
- /* Mambo chip doesn't do this */
- if (is_mambo_chip)
+ /* Mambo chip and P7 don't do this */
+ if (is_mambo_chip || proc_gen != proc_gen_p8)
return;
xscom_writeme(OCB_OCI_OCCMISC_OR,
OCB_OCI_OCIMISC_IRQ |