linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cxl: Increase timeout for detection of AFU mmio hang
@ 2016-04-19 16:34 Frederic Barrat
  2016-04-20  1:34 ` Ian Munsie
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Frederic Barrat @ 2016-04-19 16:34 UTC (permalink / raw)
  To: imunsie, mikey, linuxppc-dev

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>
---
Needs to be applied on top of http://patchwork.ozlabs.org/patch/604029/


 drivers/misc/cxl/pci.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index 94fd3f7..0a9c15b 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -375,8 +375,10 @@ static int init_implementation_adapter_regs(struct cxl *adapter, struct pci_dev
 		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 */
-	psl_dsnctl = 0x0000900002000000ULL | (chipid << (63-5));
+	psl_dsnctl |= (chipid << (63-5));
 	psl_dsnctl |= (capp_unit_id << (63-13));
 
 	cxl_p1_write(adapter, CXL_PSL_DSNDCTL, psl_dsnctl);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] cxl: Increase timeout for detection of AFU mmio hang
  2016-04-19 16:34 [PATCH] cxl: Increase timeout for detection of AFU mmio hang Frederic Barrat
@ 2016-04-20  1:34 ` Ian Munsie
  2016-04-20 17:18 ` Frederic Barrat
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Ian Munsie @ 2016-04-20  1:34 UTC (permalink / raw)
  To: Frederic Barrat; +Cc: mikey, linuxppc-dev

Acked-by: Ian Munsie <imunsie@au1.ibm.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] cxl: Increase timeout for detection of AFU mmio hang
  2016-04-19 16:34 [PATCH] cxl: Increase timeout for detection of AFU mmio hang Frederic Barrat
  2016-04-20  1:34 ` Ian Munsie
@ 2016-04-20 17:18 ` Frederic Barrat
  2016-04-20 17:39 ` Manoj Kumar
  2016-04-22 12:12 ` Michael Ellerman
  3 siblings, 0 replies; 5+ messages in thread
From: Frederic Barrat @ 2016-04-20 17:18 UTC (permalink / raw)
  To: imunsie, mikey, linuxppc-dev, Frank Haverkamp


Received privately:
Tested-by: Frank Haverkamp <haver@linux.vnet.ibm.com>


Le 19/04/2016 18:34, Frederic Barrat a écrit :
> 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>
> ---
> Needs to be applied on top of http://patchwork.ozlabs.org/patch/604029/
>
>
>   drivers/misc/cxl/pci.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
> index 94fd3f7..0a9c15b 100644
> --- a/drivers/misc/cxl/pci.c
> +++ b/drivers/misc/cxl/pci.c
> @@ -375,8 +375,10 @@ static int init_implementation_adapter_regs(struct cxl *adapter, struct pci_dev
>   		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 */
> -	psl_dsnctl = 0x0000900002000000ULL | (chipid << (63-5));
> +	psl_dsnctl |= (chipid << (63-5));
>   	psl_dsnctl |= (capp_unit_id << (63-13));
>
>   	cxl_p1_write(adapter, CXL_PSL_DSNDCTL, psl_dsnctl);
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] cxl: Increase timeout for detection of AFU mmio hang
  2016-04-19 16:34 [PATCH] cxl: Increase timeout for detection of AFU mmio hang Frederic Barrat
  2016-04-20  1:34 ` Ian Munsie
  2016-04-20 17:18 ` Frederic Barrat
@ 2016-04-20 17:39 ` Manoj Kumar
  2016-04-22 12:12 ` Michael Ellerman
  3 siblings, 0 replies; 5+ messages in thread
From: Manoj Kumar @ 2016-04-20 17:39 UTC (permalink / raw)
  To: Frederic Barrat, imunsie, mikey, linuxppc-dev

Tested-by: Manoj Kumar <manoj@linux.vnet.ibm.com>

On 4/19/2016 11:34 AM, Frederic Barrat wrote:
> 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>
> ---
> Needs to be applied on top of http://patchwork.ozlabs.org/patch/604029/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cxl: Increase timeout for detection of AFU mmio hang
  2016-04-19 16:34 [PATCH] cxl: Increase timeout for detection of AFU mmio hang Frederic Barrat
                   ` (2 preceding siblings ...)
  2016-04-20 17:39 ` Manoj Kumar
@ 2016-04-22 12:12 ` Michael Ellerman
  3 siblings, 0 replies; 5+ messages in thread
From: Michael Ellerman @ 2016-04-22 12:12 UTC (permalink / raw)
  To: Frederic Barrat, imunsie, mikey, linuxppc-dev

On Tue, 2016-19-04 at 16:34:24 UTC, Frederic Barrat wrote:
> 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>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/4aec6ec0da9c72c0fa1a5b0d11

cheers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-22 12:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 16:34 [PATCH] cxl: Increase timeout for detection of AFU mmio hang Frederic Barrat
2016-04-20  1:34 ` Ian Munsie
2016-04-20 17:18 ` Frederic Barrat
2016-04-20 17:39 ` Manoj Kumar
2016-04-22 12:12 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).