All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christopher Bostic <cbostic@linux.vnet.ibm.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	openbmc@lists.ozlabs.org
Subject: Re: [PATCH linux dev-4.13 6/6] fsi/fsi-master-gpio: Reduce dpoll clocks
Date: Tue, 8 May 2018 15:00:04 -0500	[thread overview]
Message-ID: <f2a71866-7ab5-8017-0865-14f4e9b57b91@linux.vnet.ibm.com> (raw)
In-Reply-To: <05e89ea8549634e750d783360590f2802954437d.camel@kernel.crashing.org>

Reviewed-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>


On 5/7/18 8:46 PM, Benjamin Herrenschmidt wrote:
> FSI_GPIO_DPOLL_CLOCKS is the number of clocks before sending
> a DPOLL command after receiving a BUSY status. It should be
> at least tSendDelay (16 clocks).
>
> According to comments in the code, it needs to also be at least
> 21 clocks due to HW issues.
>
> It's currently 100 clocks which impacts performances negatively
> in some cases. Reduces it in half to 50 clocks which seems to
> still be solid.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>   drivers/fsi/fsi-master-gpio.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/fsi/fsi-master-gpio.c b/drivers/fsi/fsi-master-gpio.c
> index 029b0a5b6d89..bd2b2cbd5eb5 100644
> --- a/drivers/fsi/fsi-master-gpio.c
> +++ b/drivers/fsi/fsi-master-gpio.c
> @@ -29,7 +29,8 @@
>   #define	FSI_GPIO_CMD_TERM	0x3f
>   #define FSI_GPIO_CMD_ABS_AR	0x4
>
> -#define	FSI_GPIO_DPOLL_CLOCKS	100      /* < 21 will cause slave to hang */
> +
> +#define	FSI_GPIO_DPOLL_CLOCKS	50      /* < 21 will cause slave to hang */
>
>   /* Bus errors */
>   #define	FSI_GPIO_ERR_BUSY	1	/* Slave stuck in busy state */
> @@ -43,7 +44,7 @@
>   #define	FSI_GPIO_RESP_ACK	0
>   #define	FSI_GPIO_RESP_ACKD	4
>
> -#define	FSI_GPIO_MAX_BUSY	100
> +#define	FSI_GPIO_MAX_BUSY	200
>   #define	FSI_GPIO_MTOE_COUNT	1000
>   #define	FSI_GPIO_DRAIN_BITS	20
>   #define	FSI_GPIO_CRC_SIZE	4
>

  reply	other threads:[~2018-05-08 20:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-08  1:06 [PATCH linux dev-4.13 1/6] gpio/aspeed: Set output latch before changing direction Benjamin Herrenschmidt
2018-05-08  1:06 ` [PATCH linux dev-4.13 2/6] gpio/aspeed: Use a cache of output data registers Benjamin Herrenschmidt
2018-05-08 16:17   ` Christopher Bostic
2018-05-10  2:56     ` Andrew Jeffery
2018-05-08  1:06 ` [PATCH linux dev-4.13 3/6] fsi/fsi-master-gpio: Sample input data on different clock phase Benjamin Herrenschmidt
2018-05-08 16:42   ` Christopher Bostic
2018-05-08  1:06 ` [PATCH linux dev-4.13 4/6] fsi/fsi-master-gpio: Add "no-gpio-delays" option Benjamin Herrenschmidt
2018-05-08 19:54   ` Christopher Bostic
2018-05-10  3:03     ` Andrew Jeffery
2018-05-10  3:10       ` Benjamin Herrenschmidt
2018-05-08  1:06 ` [PATCH linux dev-4.13 5/6] fsi/fsi-master-gpio: Reduce turnaround clocks Benjamin Herrenschmidt
2018-05-08 19:55   ` Christopher Bostic
2018-05-08  1:06 ` [PATCH linux dev-4.13 6/6] fsi/fsi-master-gpio: Reduce dpoll clocks Benjamin Herrenschmidt
2018-05-08  1:46 ` Benjamin Herrenschmidt
2018-05-08 20:00   ` Christopher Bostic [this message]
2018-05-10  3:06     ` Andrew Jeffery
2018-05-10  3:12       ` Benjamin Herrenschmidt
2018-05-08 16:13 ` [PATCH linux dev-4.13 1/6] gpio/aspeed: Set output latch before changing direction Christopher Bostic
2018-05-10  2:50   ` Andrew Jeffery
2018-05-10  3:48     ` Joel Stanley
2018-05-11 10:51     ` Joel Stanley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f2a71866-7ab5-8017-0865-14f4e9b57b91@linux.vnet.ibm.com \
    --to=cbostic@linux.vnet.ibm.com \
    --cc=benh@kernel.crashing.org \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.