All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
@ 2019-06-13 12:16 ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2019-06-13 12:16 UTC (permalink / raw)
  To: Matt Wagantall, Mitchel Humpherys, Will Deacon, Arnd Bergmann
  Cc: Linux ARM, LKML, Thierry Reding, Andrew Morton, Bjorn Andersson,
	Thomas Gleixner, Bjorn Helgaas, Douglas Anderson

Chopping max delay in 4 seems excessive. Let's just cut it in half.

Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
---
When max_us=100, old_min was 26 us; new_min would be 50 us
Was there a good reason for the 1/4th?
Is new_min=0 a problem? (for max=1)
---
 include/linux/iopoll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 3908353deec6..24a00d923c15 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -47,7 +47,7 @@
 			break; \
 		} \
 		if (__sleep_us) \
-			usleep_range((__sleep_us >> 2) + 1, __sleep_us); \
+			usleep_range(__sleep_us / 2, __sleep_us); \
 	} \
 	(cond) ? 0 : -ETIMEDOUT; \
 })
-- 
2.17.1

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

* [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
@ 2019-06-13 12:16 ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2019-06-13 12:16 UTC (permalink / raw)
  To: Matt Wagantall, Mitchel Humpherys, Will Deacon, Arnd Bergmann
  Cc: Douglas Anderson, LKML, Bjorn Andersson, Thierry Reding,
	Bjorn Helgaas, Andrew Morton, Thomas Gleixner, Linux ARM

Chopping max delay in 4 seems excessive. Let's just cut it in half.

Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
---
When max_us=100, old_min was 26 us; new_min would be 50 us
Was there a good reason for the 1/4th?
Is new_min=0 a problem? (for max=1)
---
 include/linux/iopoll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 3908353deec6..24a00d923c15 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -47,7 +47,7 @@
 			break; \
 		} \
 		if (__sleep_us) \
-			usleep_range((__sleep_us >> 2) + 1, __sleep_us); \
+			usleep_range(__sleep_us / 2, __sleep_us); \
 	} \
 	(cond) ? 0 : -ETIMEDOUT; \
 })
-- 
2.17.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
  2019-06-13 12:16 ` Marc Gonzalez
@ 2019-06-13 12:42   ` Arnd Bergmann
  -1 siblings, 0 replies; 12+ messages in thread
From: Arnd Bergmann @ 2019-06-13 12:42 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Matt Wagantall, Mitchel Humpherys, Will Deacon, Linux ARM, LKML,
	Thierry Reding, Andrew Morton, Bjorn Andersson, Thomas Gleixner,
	Bjorn Helgaas, Douglas Anderson

On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez <marc.w.gonzalez@free.fr> wrote:
>
> Chopping max delay in 4 seems excessive. Let's just cut it in half.
>
> Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
> ---
> When max_us=100, old_min was 26 us; new_min would be 50 us
> Was there a good reason for the 1/4th?
> Is new_min=0 a problem? (for max=1)

You normally want a large enough range between min and max. I don't
see anything wrong with a factor of four.

> @@ -47,7 +47,7 @@
>                         break; \
>                 } \
>                 if (__sleep_us) \
> -                       usleep_range((__sleep_us >> 2) + 1, __sleep_us); \
> +                       usleep_range(__sleep_us / 2, __sleep_us); \
>         } \

You are also missing the '+1' now, so this breaks with __sleep_us=1.

        Arnd

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
@ 2019-06-13 12:42   ` Arnd Bergmann
  0 siblings, 0 replies; 12+ messages in thread
From: Arnd Bergmann @ 2019-06-13 12:42 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Douglas Anderson, Will Deacon, LKML, Bjorn Andersson,
	Thierry Reding, Matt Wagantall, Bjorn Helgaas, Andrew Morton,
	Mitchel Humpherys, Thomas Gleixner, Linux ARM

On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez <marc.w.gonzalez@free.fr> wrote:
>
> Chopping max delay in 4 seems excessive. Let's just cut it in half.
>
> Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
> ---
> When max_us=100, old_min was 26 us; new_min would be 50 us
> Was there a good reason for the 1/4th?
> Is new_min=0 a problem? (for max=1)

You normally want a large enough range between min and max. I don't
see anything wrong with a factor of four.

> @@ -47,7 +47,7 @@
>                         break; \
>                 } \
>                 if (__sleep_us) \
> -                       usleep_range((__sleep_us >> 2) + 1, __sleep_us); \
> +                       usleep_range(__sleep_us / 2, __sleep_us); \
>         } \

You are also missing the '+1' now, so this breaks with __sleep_us=1.

        Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
  2019-06-13 12:42   ` Arnd Bergmann
@ 2019-06-13 16:04     ` Marc Gonzalez
  -1 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2019-06-13 16:04 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Will Deacon, Linux ARM, LKML, Thierry Reding, Andrew Morton,
	Bjorn Andersson, Thomas Gleixner, Bjorn Helgaas,
	Douglas Anderson

On 13/06/2019 14:42, Arnd Bergmann wrote:

> On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez wrote:
>
>> Chopping max delay in 4 seems excessive. Let's just cut it in half.
>>
>> Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
>> ---
>> When max_us=100, old_min was 26 us; new_min would be 50 us
>> Was there a good reason for the 1/4th?
>> Is new_min=0 a problem? (for max=1)
> 
> You normally want a large enough range between min and max. I don't
> see anything wrong with a factor of four.

Hmmm, I expect the typical use-case to be:
"HW manual states operation X completes in 100 µs.
Let's call usleep_range(100, foo); before hitting the reg."

And foo needs to be a "reasonable" value: big enough to be able
to merge several requests, low enough not to wait too long after
the HW is ready.

In this case, I'd say usleep_range(100, 200); makes sense.

Come to think of it, I'm not sure min=26 (or min=50) makes sense...
Why wait *less* than what the user specified?

>> @@ -47,7 +47,7 @@
>>                         break; \
>>                 } \
>>                 if (__sleep_us) \
>> -                       usleep_range((__sleep_us >> 2) + 1, __sleep_us); \
>> +                       usleep_range(__sleep_us / 2, __sleep_us); \
>>         } \
> 
> You are also missing the '+1' now, so this breaks with __sleep_us=1.

It was on purpose.

usleep_range(0, 1); is not well-defined?
(I tried looking at the source, got lost down the rabbit hole.)

Regards.

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
@ 2019-06-13 16:04     ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2019-06-13 16:04 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Douglas Anderson, Will Deacon, LKML, Bjorn Andersson,
	Thierry Reding, Bjorn Helgaas, Andrew Morton, Thomas Gleixner,
	Linux ARM

On 13/06/2019 14:42, Arnd Bergmann wrote:

> On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez wrote:
>
>> Chopping max delay in 4 seems excessive. Let's just cut it in half.
>>
>> Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
>> ---
>> When max_us=100, old_min was 26 us; new_min would be 50 us
>> Was there a good reason for the 1/4th?
>> Is new_min=0 a problem? (for max=1)
> 
> You normally want a large enough range between min and max. I don't
> see anything wrong with a factor of four.

Hmmm, I expect the typical use-case to be:
"HW manual states operation X completes in 100 µs.
Let's call usleep_range(100, foo); before hitting the reg."

And foo needs to be a "reasonable" value: big enough to be able
to merge several requests, low enough not to wait too long after
the HW is ready.

In this case, I'd say usleep_range(100, 200); makes sense.

Come to think of it, I'm not sure min=26 (or min=50) makes sense...
Why wait *less* than what the user specified?

>> @@ -47,7 +47,7 @@
>>                         break; \
>>                 } \
>>                 if (__sleep_us) \
>> -                       usleep_range((__sleep_us >> 2) + 1, __sleep_us); \
>> +                       usleep_range(__sleep_us / 2, __sleep_us); \
>>         } \
> 
> You are also missing the '+1' now, so this breaks with __sleep_us=1.

It was on purpose.

usleep_range(0, 1); is not well-defined?
(I tried looking at the source, got lost down the rabbit hole.)

Regards.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
  2019-06-13 16:04     ` Marc Gonzalez
@ 2019-06-13 16:11       ` Doug Anderson
  -1 siblings, 0 replies; 12+ messages in thread
From: Doug Anderson @ 2019-06-13 16:11 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Arnd Bergmann, Will Deacon, Linux ARM, LKML, Thierry Reding,
	Andrew Morton, Bjorn Andersson, Thomas Gleixner, Bjorn Helgaas

Hi,

On Thu, Jun 13, 2019 at 9:04 AM Marc Gonzalez <marc.w.gonzalez@free.fr> wrote:
>
> On 13/06/2019 14:42, Arnd Bergmann wrote:
>
> > On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez wrote:
> >
> >> Chopping max delay in 4 seems excessive. Let's just cut it in half.
> >>
> >> Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
> >> ---
> >> When max_us=100, old_min was 26 us; new_min would be 50 us
> >> Was there a good reason for the 1/4th?
> >> Is new_min=0 a problem? (for max=1)
> >
> > You normally want a large enough range between min and max. I don't
> > see anything wrong with a factor of four.
>
> Hmmm, I expect the typical use-case to be:
> "HW manual states operation X completes in 100 µs.
> Let's call usleep_range(100, foo); before hitting the reg."
>
> And foo needs to be a "reasonable" value: big enough to be able
> to merge several requests, low enough not to wait too long after
> the HW is ready.
>
> In this case, I'd say usleep_range(100, 200); makes sense.
>
> Come to think of it, I'm not sure min=26 (or min=50) makes sense...
> Why wait *less* than what the user specified?

IIRC usleep_range() nearly always tries to sleep for the max.  My
recollection of the design is that you only end up with something less
than the max if the system was going to wake up anyway.  In such a
case it seems like it wouldn't be insane to go and check if the
condition is already true if 25% of the time has passed.  Maybe you'll
get lucky and you can return early.

Are you actually seeing problems with the / 4, or is this patch just a
result of code inspection?

-Doug

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
@ 2019-06-13 16:11       ` Doug Anderson
  0 siblings, 0 replies; 12+ messages in thread
From: Doug Anderson @ 2019-06-13 16:11 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Arnd Bergmann, Will Deacon, LKML, Bjorn Andersson,
	Thierry Reding, Bjorn Helgaas, Andrew Morton, Thomas Gleixner,
	Linux ARM

Hi,

On Thu, Jun 13, 2019 at 9:04 AM Marc Gonzalez <marc.w.gonzalez@free.fr> wrote:
>
> On 13/06/2019 14:42, Arnd Bergmann wrote:
>
> > On Thu, Jun 13, 2019 at 2:16 PM Marc Gonzalez wrote:
> >
> >> Chopping max delay in 4 seems excessive. Let's just cut it in half.
> >>
> >> Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
> >> ---
> >> When max_us=100, old_min was 26 us; new_min would be 50 us
> >> Was there a good reason for the 1/4th?
> >> Is new_min=0 a problem? (for max=1)
> >
> > You normally want a large enough range between min and max. I don't
> > see anything wrong with a factor of four.
>
> Hmmm, I expect the typical use-case to be:
> "HW manual states operation X completes in 100 µs.
> Let's call usleep_range(100, foo); before hitting the reg."
>
> And foo needs to be a "reasonable" value: big enough to be able
> to merge several requests, low enough not to wait too long after
> the HW is ready.
>
> In this case, I'd say usleep_range(100, 200); makes sense.
>
> Come to think of it, I'm not sure min=26 (or min=50) makes sense...
> Why wait *less* than what the user specified?

IIRC usleep_range() nearly always tries to sleep for the max.  My
recollection of the design is that you only end up with something less
than the max if the system was going to wake up anyway.  In such a
case it seems like it wouldn't be insane to go and check if the
condition is already true if 25% of the time has passed.  Maybe you'll
get lucky and you can return early.

Are you actually seeing problems with the / 4, or is this patch just a
result of code inspection?

-Doug

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
  2019-06-13 16:11       ` Doug Anderson
@ 2019-06-13 16:36         ` Marc Gonzalez
  -1 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2019-06-13 16:36 UTC (permalink / raw)
  To: Doug Anderson
  Cc: Arnd Bergmann, Will Deacon, Linux ARM, LKML, Thierry Reding,
	Andrew Morton, Bjorn Andersson, Thomas Gleixner, Bjorn Helgaas

On 13/06/2019 18:11, Doug Anderson wrote:

> On Thu, Jun 13, 2019 at 9:04 AM Marc Gonzalez wrote:
>
>> Hmmm, I expect the typical use-case to be:
>> "HW manual states operation X completes in 100 µs.
>> Let's call usleep_range(100, foo); before hitting the reg."
>>
>> And foo needs to be a "reasonable" value: big enough to be able
>> to merge several requests, low enough not to wait too long after
>> the HW is ready.
>>
>> In this case, I'd say usleep_range(100, 200); makes sense.
>>
>> Come to think of it, I'm not sure min=26 (or min=50) makes sense...
>> Why wait *less* than what the user specified?
> 
> IIRC usleep_range() nearly always tries to sleep for the max.  My
> recollection of the design is that you only end up with something less
> than the max if the system was going to wake up anyway.  In such a
> case it seems like it wouldn't be insane to go and check if the
> condition is already true if 25% of the time has passed.  Maybe you'll
> get lucky and you can return early.
> 
> Are you actually seeing problems with the / 4, or is this patch just a
> result of code inspection?

No actual issue. I just ran into a driver calling:

	readl_poll_timeout(status, val, val & mask, 1, 1000);

and it seemed... unwise(?) to call usleep_range(1, 1);

But if, as you say, usleep_range() aims for the max, then I guess it's
not a big deal to issue an early read or 3... Meh

Regards.

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
@ 2019-06-13 16:36         ` Marc Gonzalez
  0 siblings, 0 replies; 12+ messages in thread
From: Marc Gonzalez @ 2019-06-13 16:36 UTC (permalink / raw)
  To: Doug Anderson
  Cc: Arnd Bergmann, Will Deacon, LKML, Bjorn Andersson,
	Thierry Reding, Bjorn Helgaas, Andrew Morton, Thomas Gleixner,
	Linux ARM

On 13/06/2019 18:11, Doug Anderson wrote:

> On Thu, Jun 13, 2019 at 9:04 AM Marc Gonzalez wrote:
>
>> Hmmm, I expect the typical use-case to be:
>> "HW manual states operation X completes in 100 µs.
>> Let's call usleep_range(100, foo); before hitting the reg."
>>
>> And foo needs to be a "reasonable" value: big enough to be able
>> to merge several requests, low enough not to wait too long after
>> the HW is ready.
>>
>> In this case, I'd say usleep_range(100, 200); makes sense.
>>
>> Come to think of it, I'm not sure min=26 (or min=50) makes sense...
>> Why wait *less* than what the user specified?
> 
> IIRC usleep_range() nearly always tries to sleep for the max.  My
> recollection of the design is that you only end up with something less
> than the max if the system was going to wake up anyway.  In such a
> case it seems like it wouldn't be insane to go and check if the
> condition is already true if 25% of the time has passed.  Maybe you'll
> get lucky and you can return early.
> 
> Are you actually seeing problems with the / 4, or is this patch just a
> result of code inspection?

No actual issue. I just ran into a driver calling:

	readl_poll_timeout(status, val, val & mask, 1, 1000);

and it seemed... unwise(?) to call usleep_range(1, 1);

But if, as you say, usleep_range() aims for the max, then I guess it's
not a big deal to issue an early read or 3... Meh

Regards.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
  2019-06-13 16:36         ` Marc Gonzalez
@ 2019-06-13 17:10           ` Doug Anderson
  -1 siblings, 0 replies; 12+ messages in thread
From: Doug Anderson @ 2019-06-13 17:10 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Arnd Bergmann, Will Deacon, Linux ARM, LKML, Thierry Reding,
	Andrew Morton, Bjorn Andersson, Thomas Gleixner, Bjorn Helgaas

Hi,


On Thu, Jun 13, 2019 at 9:37 AM Marc Gonzalez <marc.w.gonzalez@free.fr> wrote:
>
> On 13/06/2019 18:11, Doug Anderson wrote:
>
> > On Thu, Jun 13, 2019 at 9:04 AM Marc Gonzalez wrote:
> >
> >> Hmmm, I expect the typical use-case to be:
> >> "HW manual states operation X completes in 100 µs.
> >> Let's call usleep_range(100, foo); before hitting the reg."
> >>
> >> And foo needs to be a "reasonable" value: big enough to be able
> >> to merge several requests, low enough not to wait too long after
> >> the HW is ready.
> >>
> >> In this case, I'd say usleep_range(100, 200); makes sense.
> >>
> >> Come to think of it, I'm not sure min=26 (or min=50) makes sense...
> >> Why wait *less* than what the user specified?
> >
> > IIRC usleep_range() nearly always tries to sleep for the max.  My
> > recollection of the design is that you only end up with something less
> > than the max if the system was going to wake up anyway.  In such a
> > case it seems like it wouldn't be insane to go and check if the
> > condition is already true if 25% of the time has passed.  Maybe you'll
> > get lucky and you can return early.
> >
> > Are you actually seeing problems with the / 4, or is this patch just a
> > result of code inspection?
>
> No actual issue. I just ran into a driver calling:
>
>         readl_poll_timeout(status, val, val & mask, 1, 1000);
>
> and it seemed... unwise(?) to call usleep_range(1, 1);
>
> But if, as you say, usleep_range() aims for the max

It was certainly what we found in:

https://lkml.kernel.org/r/1444265321-16768-6-git-send-email-dianders@chromium.org

...in fact, at one point in time I had a patch cooked up that would
change the behavior during boot where (presumably) we'd rather boot
faster.  ...but after fixing dwc2 it didn't actually have much of an
impact elsewhere.


> then I guess it's
> not a big deal to issue an early read or 3... Meh

IMO it seems like the driver should be fixed.  It should either specify:

a) the (well defined) 0 for the delay, which means no delay.

b) a more sane delay


-Doug

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

* Re: [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range
@ 2019-06-13 17:10           ` Doug Anderson
  0 siblings, 0 replies; 12+ messages in thread
From: Doug Anderson @ 2019-06-13 17:10 UTC (permalink / raw)
  To: Marc Gonzalez
  Cc: Arnd Bergmann, Will Deacon, LKML, Bjorn Andersson,
	Thierry Reding, Bjorn Helgaas, Andrew Morton, Thomas Gleixner,
	Linux ARM

Hi,


On Thu, Jun 13, 2019 at 9:37 AM Marc Gonzalez <marc.w.gonzalez@free.fr> wrote:
>
> On 13/06/2019 18:11, Doug Anderson wrote:
>
> > On Thu, Jun 13, 2019 at 9:04 AM Marc Gonzalez wrote:
> >
> >> Hmmm, I expect the typical use-case to be:
> >> "HW manual states operation X completes in 100 µs.
> >> Let's call usleep_range(100, foo); before hitting the reg."
> >>
> >> And foo needs to be a "reasonable" value: big enough to be able
> >> to merge several requests, low enough not to wait too long after
> >> the HW is ready.
> >>
> >> In this case, I'd say usleep_range(100, 200); makes sense.
> >>
> >> Come to think of it, I'm not sure min=26 (or min=50) makes sense...
> >> Why wait *less* than what the user specified?
> >
> > IIRC usleep_range() nearly always tries to sleep for the max.  My
> > recollection of the design is that you only end up with something less
> > than the max if the system was going to wake up anyway.  In such a
> > case it seems like it wouldn't be insane to go and check if the
> > condition is already true if 25% of the time has passed.  Maybe you'll
> > get lucky and you can return early.
> >
> > Are you actually seeing problems with the / 4, or is this patch just a
> > result of code inspection?
>
> No actual issue. I just ran into a driver calling:
>
>         readl_poll_timeout(status, val, val & mask, 1, 1000);
>
> and it seemed... unwise(?) to call usleep_range(1, 1);
>
> But if, as you say, usleep_range() aims for the max

It was certainly what we found in:

https://lkml.kernel.org/r/1444265321-16768-6-git-send-email-dianders@chromium.org

...in fact, at one point in time I had a patch cooked up that would
change the behavior during boot where (presumably) we'd rather boot
faster.  ...but after fixing dwc2 it didn't actually have much of an
impact elsewhere.


> then I guess it's
> not a big deal to issue an early read or 3... Meh

IMO it seems like the driver should be fixed.  It should either specify:

a) the (well defined) 0 for the delay, which means no delay.

b) a more sane delay


-Doug

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-06-13 17:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13 12:16 [PATCH v1] iopoll: Tweak readx_poll_timeout sleep range Marc Gonzalez
2019-06-13 12:16 ` Marc Gonzalez
2019-06-13 12:42 ` Arnd Bergmann
2019-06-13 12:42   ` Arnd Bergmann
2019-06-13 16:04   ` Marc Gonzalez
2019-06-13 16:04     ` Marc Gonzalez
2019-06-13 16:11     ` Doug Anderson
2019-06-13 16:11       ` Doug Anderson
2019-06-13 16:36       ` Marc Gonzalez
2019-06-13 16:36         ` Marc Gonzalez
2019-06-13 17:10         ` Doug Anderson
2019-06-13 17:10           ` Doug Anderson

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.