Commit 11d1c09a authored by Frederic Barrat's avatar Frederic Barrat Committed by Kamal Mostafa

cxl: Increase timeout for detection of AFU mmio hang

BugLink: http://bugs.launchpad.net/bugs/1584066

PSL designers recommend a larger value for the mmio hang pulse, 256 us
instead of 1 us. The CAIA architecture states that it needs to be
smaller than 1/2 of the RTOS timeout set in the PHB for outbound
non-posted transactions, which is still (easily) the case here.
Signed-off-by: default avatarFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Acked-by: default avatarIan Munsie <imunsie@au1.ibm.com>
Tested-by: default avatarFrank Haverkamp <haver@linux.vnet.ibm.com>
Tested-by: default avatarManoj Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 4aec6ec0)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 3ec18465
...@@ -394,8 +394,10 @@ static int init_implementation_adapter_regs(struct cxl *adapter, struct pci_dev ...@@ -394,8 +394,10 @@ static int init_implementation_adapter_regs(struct cxl *adapter, struct pci_dev
return -ENODEV; return -ENODEV;
} }
psl_dsnctl = 0x0000900000000000ULL; /* pteupd ttype, scdone */
psl_dsnctl |= (0x2ULL << (63-38)); /* MMIO hang pulse: 256 us */
/* Tell PSL where to route data to */ /* Tell PSL where to route data to */
psl_dsnctl = 0x0000900002000000ULL | (chipid << (63-5)); psl_dsnctl |= (chipid << (63-5));
psl_dsnctl |= (capp_unit_id << (63-13)); psl_dsnctl |= (capp_unit_id << (63-13));
cxl_p1_write(adapter, CXL_PSL_DSNDCTL, psl_dsnctl); cxl_p1_write(adapter, CXL_PSL_DSNDCTL, psl_dsnctl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment