* [PATCH] platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds
@ 2021-02-10 19:20 Casey Bowman
2021-02-11 10:02 ` Andy Shevchenko
2021-02-11 15:50 ` Hans de Goede
0 siblings, 2 replies; 3+ messages in thread
From: Casey Bowman @ 2021-02-10 19:20 UTC (permalink / raw)
To: mika.westerberg
Cc: dvhart, andy, azhar.shaikh, casey.g.bowman, lee.jones,
platform-driver-x86, linux-kernel, heikki.krogerus
Increasing the virtual timeout time to account for scenarios
that may require more time, like DisplayPort Multi-Stream Transport
(DP MST), where the disconnect time can be extended longer than
usual.
The recommended timeout range is 5-10 seconds, of which
we will take the lower bound.
Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
drivers/platform/x86/intel_scu_ipc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
index d9cf7f7602b0..9171a46a9e3f 100644
--- a/drivers/platform/x86/intel_scu_ipc.c
+++ b/drivers/platform/x86/intel_scu_ipc.c
@@ -75,7 +75,7 @@ struct intel_scu_ipc_dev {
#define IPC_READ_BUFFER 0x90
/* Timeout in jiffies */
-#define IPC_TIMEOUT (3 * HZ)
+#define IPC_TIMEOUT (5 * HZ)
static struct intel_scu_ipc_dev *ipcdev; /* Only one for now */
static DEFINE_MUTEX(ipclock); /* lock used to prevent multiple call to SCU */
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds
2021-02-10 19:20 [PATCH] platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds Casey Bowman
@ 2021-02-11 10:02 ` Andy Shevchenko
2021-02-11 15:50 ` Hans de Goede
1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2021-02-11 10:02 UTC (permalink / raw)
To: Casey Bowman
Cc: Mika Westerberg, Darren Hart, Andy Shevchenko, azhar.shaikh,
Lee Jones, Platform Driver, Linux Kernel Mailing List,
Krogerus, Heikki
On Wed, Feb 10, 2021 at 9:20 PM Casey Bowman <casey.g.bowman@intel.com> wrote:
>
> Increasing the virtual timeout time to account for scenarios
> that may require more time, like DisplayPort Multi-Stream Transport
> (DP MST), where the disconnect time can be extended longer than
> usual.
>
> The recommended timeout range is 5-10 seconds, of which
> we will take the lower bound.
Since the driver is used across several platforms, can we somehow be
more flexible with it on a per platform basis or so (per command?)?
In general I'm not against the patch and I usually don't see the long
timeouts on other platforms, so if Hans thinks it's okay to take,
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> ---
> drivers/platform/x86/intel_scu_ipc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
> index d9cf7f7602b0..9171a46a9e3f 100644
> --- a/drivers/platform/x86/intel_scu_ipc.c
> +++ b/drivers/platform/x86/intel_scu_ipc.c
> @@ -75,7 +75,7 @@ struct intel_scu_ipc_dev {
> #define IPC_READ_BUFFER 0x90
>
> /* Timeout in jiffies */
> -#define IPC_TIMEOUT (3 * HZ)
> +#define IPC_TIMEOUT (5 * HZ)
>
> static struct intel_scu_ipc_dev *ipcdev; /* Only one for now */
> static DEFINE_MUTEX(ipclock); /* lock used to prevent multiple call to SCU */
> --
> 2.17.1
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds
2021-02-10 19:20 [PATCH] platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds Casey Bowman
2021-02-11 10:02 ` Andy Shevchenko
@ 2021-02-11 15:50 ` Hans de Goede
1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2021-02-11 15:50 UTC (permalink / raw)
To: Casey Bowman, mika.westerberg
Cc: dvhart, andy, azhar.shaikh, lee.jones, platform-driver-x86,
linux-kernel, heikki.krogerus
Hi,
On 2/10/21 8:20 PM, Casey Bowman wrote:
> Increasing the virtual timeout time to account for scenarios
> that may require more time, like DisplayPort Multi-Stream Transport
> (DP MST), where the disconnect time can be extended longer than
> usual.
>
> The recommended timeout range is 5-10 seconds, of which
> we will take the lower bound.
>
> Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
> ---
> drivers/platform/x86/intel_scu_ipc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
> index d9cf7f7602b0..9171a46a9e3f 100644
> --- a/drivers/platform/x86/intel_scu_ipc.c
> +++ b/drivers/platform/x86/intel_scu_ipc.c
> @@ -75,7 +75,7 @@ struct intel_scu_ipc_dev {
> #define IPC_READ_BUFFER 0x90
>
> /* Timeout in jiffies */
> -#define IPC_TIMEOUT (3 * HZ)
> +#define IPC_TIMEOUT (5 * HZ)
>
> static struct intel_scu_ipc_dev *ipcdev; /* Only one for now */
> static DEFINE_MUTEX(ipclock); /* lock used to prevent multiple call to SCU */
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-11 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-10 19:20 [PATCH] platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds Casey Bowman
2021-02-11 10:02 ` Andy Shevchenko
2021-02-11 15:50 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox