Message ID | 1517651153-13463-1-git-send-email-clombard@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | capi: Fix the max tlbi divider and the directory size. | expand |
Christophe Lombard <clombard@linux.vnet.ibm.com> writes: > Switch to 512KB mode (directory size) as we don’t use bit 48 of the tag > in addressing the array. This mode is controlled by the Snoop CAPI > Configuration Register. > Set the maximum of the number of data polls received before signaling > TLBI hang detect timer expired. The value of '0000' is equal to 16. > > Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Reviewed-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Christophe Lombard <clombard@linux.vnet.ibm.com> writes: > Switch to 512KB mode (directory size) as we don’t use bit 48 of the tag > in addressing the array. This mode is controlled by the Snoop CAPI > Configuration Register. > Set the maximum of the number of data polls received before signaling > TLBI hang detect timer expired. The value of '0000' is equal to 16. > > Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> > --- > hw/phb4.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Merged to master as of e88bb694d32e909960b1ae6f717265cc0aba8e4d
diff --git a/hw/phb4.c b/hw/phb4.c index 93ed1e0..b3badec 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -3597,8 +3597,8 @@ static void phb4_init_capp_regs(struct phb4 *p, uint32_t capp_eng) 0x1772000000000000); PHBINF(p, "CAPP: port attached\n"); - /* Set snoop ttype decoding , dir size to 256k */ - xscom_write(p->chip_id, SNOOP_CAPI_CONFIG + offset, 0xA000000000000000); + /* Set snoop ttype decoding , dir size to 512K */ + xscom_write(p->chip_id, SNOOP_CAPI_CONFIG + offset, 0x9000000000000000); /* Use Read Epsilon Tier2 for all scopes. * Set Tier2 Read Epsilon. @@ -3638,6 +3638,7 @@ static void phb4_init_capp_regs(struct phb4 *p, uint32_t capp_eng) reg &= ~PPC_BIT(12); /* Set CI Store Buffer Threshold=5 */ reg |= PPC_BIT(13); /* Set CI Store Buffer Threshold=5 */ reg &= ~PPC_BITMASK(14, 17); /* Set Max LPC CI store buffer to zeros */ + reg &= ~PPC_BITMASK(18, 21); /* Set Max tlbi divider */ if (capp_eng & CAPP_MIN_STQ_ENGINES) { /* 2 CAPP msg engines */ reg |= PPC_BIT(59);
Switch to 512KB mode (directory size) as we don’t use bit 48 of the tag in addressing the array. This mode is controlled by the Snoop CAPI Configuration Register. Set the maximum of the number of data polls received before signaling TLBI hang detect timer expired. The value of '0000' is equal to 16. Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> --- hw/phb4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)