Skip to content

Commit

Permalink
xive: Ensure VC informational FIRs are masked
Browse files Browse the repository at this point in the history
Some HostBoot versions leave those as checkstop, they are harmless
and can sometimes occur during normal operations.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
ozbenh authored and stewartsmith committed Dec 12, 2017
1 parent 1e00d54 commit 84febad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hw/xive.c
Expand Up @@ -1770,6 +1770,11 @@ static bool xive_config_init(struct xive *x)
val |= VC_EQC_CONF_ENABLE_END_u_BIT;
xive_regw(x, VC_EQC_CONFIG, val);

/* Disable error reporting in the FIR for info errors
* from the VC.
*/
xive_regw(x, CQ_FIRMASK_OR, 3ull);

return true;
}

Expand Down
6 changes: 6 additions & 0 deletions include/xive.h
Expand Up @@ -70,6 +70,12 @@
#define CQ_AIB_CTL 0x110
#define X_CQ_RST_CTL 0x23
#define CQ_RST_CTL 0x118
#define X_CQ_FIRMASK 0x33
#define CQ_FIRMASK 0x198
#define X_CQ_FIRMASK_AND 0x34
#define CQ_FIRMASK_AND 0x1a0
#define X_CQ_FIRMASK_OR 0x35
#define CQ_FIRMASK_OR 0x1a8

/* PC LBS1 register offsets */
#define X_PC_TCTXT_CFG 0x100
Expand Down

0 comments on commit 84febad

Please sign in to comment.