Skip to content

Commit

Permalink
phb4: Update some init registers
Browse files Browse the repository at this point in the history
New inits based on next PHB4 workbook. Increases some timeouts to
avoid some spurious error conditions.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
mikey authored and stewartsmith committed Oct 23, 2017
1 parent 0c2f39e commit 5ee73db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hw/phb4.c
Original file line number Diff line number Diff line change
Expand Up @@ -3621,7 +3621,7 @@ static void phb4_init_capp_regs(struct phb4 *p)
static void phb4_init_capp_errors(struct phb4 *p)
{
/* Init_77: TXE Error AIB Fence Enable Register */
out_be64(p->regs + 0x0d30, 0xdff7ff0bf7ddfff0ull);
out_be64(p->regs + 0x0d30, 0xdff7bf0bf7ddfff0ull);

/* Init_86: RXE_ARB Error AIB Fence Enable Register */
out_be64(p->regs + 0x0db0, 0xfbffd7bbfb7fbfefull);
Expand Down Expand Up @@ -4194,7 +4194,7 @@ static void phb4_init_errors(struct phb4 *p)
out_be64(p->regs + 0x0d08, 0x0000000000000000ull);
out_be64(p->regs + 0x0d18, 0xffffff0fffffffffull);
out_be64(p->regs + 0x0d28, 0x0000400a00000000ull);
out_be64(p->regs + 0x0d30, 0xdff7fd01f7ddfff0ull); /* XXX CAPI has diff. value */
out_be64(p->regs + 0x0d30, 0xdff7fb01f7ddfff0ull); /* XXX CAPI has diff. value */
out_be64(p->regs + 0x0d40, 0x0000000000000000ull);
out_be64(p->regs + 0x0d48, 0x0000000000000000ull);
out_be64(p->regs + 0x0d50, 0x0000000000000000ull);
Expand Down Expand Up @@ -4442,7 +4442,7 @@ static void phb4_init_hw(struct phb4 *p, bool first_init)
out_be64(p->regs + PHB_TCE_SPEC_CTL, 0x0000000000000000ull);

/* Init_133 - Timeout Control Register 1 */
out_be64(p->regs + PHB_TIMEOUT_CTRL1, 0x0018150000200000ull);
out_be64(p->regs + PHB_TIMEOUT_CTRL1, 0x0018150000160000ull);

/* Init_134 - Timeout Control Register 2 */
out_be64(p->regs + PHB_TIMEOUT_CTRL2, 0x0000181700000000ull);
Expand Down

0 comments on commit 5ee73db

Please sign in to comment.