Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cxl: Increase timeout for detection of AFU mmio hang

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: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Tested-by: Frank Haverkamp <haver@linux.vnet.ibm.com>
Tested-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Frederic Barrat and committed by
Michael Ellerman
4aec6ec0 e009a7e8

+3 -1
+3 -1
drivers/misc/cxl/pci.c
··· 375 375 return -ENODEV; 376 376 } 377 377 378 + psl_dsnctl = 0x0000900000000000ULL; /* pteupd ttype, scdone */ 379 + psl_dsnctl |= (0x2ULL << (63-38)); /* MMIO hang pulse: 256 us */ 378 380 /* Tell PSL where to route data to */ 379 - psl_dsnctl = 0x0000900002000000ULL | (chipid << (63-5)); 381 + psl_dsnctl |= (chipid << (63-5)); 380 382 psl_dsnctl |= (capp_unit_id << (63-13)); 381 383 382 384 cxl_p1_write(adapter, CXL_PSL_DSNDCTL, psl_dsnctl);