* [LTP] [PATCH] kernel/input: increase the number of retries in open_device
@ 2016-01-18 14:49 Stanislav Kholmanskikh
2016-01-18 14:50 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: Stanislav Kholmanskikh @ 2016-01-18 14:49 UTC (permalink / raw)
To: ltp
In some environments the current limit (2) is not enough, and only
3rd or 4th access will succeed. Therefore, let's increase it slightly.
The new limit (10) is the same value we have in open_uinput().
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
---
Without this patch inputXX test cases fail with:
[root@skholman-m7 input]# ./input01
input01 0 TINFO : Trying to load uinput kernel module
input01 0 TINFO : Uinput dev not found, retrying...
input01 0 TINFO : Uinput dev not found, retrying...
input01 0 TINFO : Uinput dev not found, retrying...
input01 0 TINFO : Found uinput dev at /dev/uinput
input01 0 TINFO : Device not found, retrying...
input01 0 TINFO : Device not found, retrying...
input01 1 TPASS : Data received from eventX
input01 0 TINFO : Unloading uinput kernel module
in our environment (an in-house, relatively old kernel).
Can we have this patch before the release?
Thanks!
testcases/kernel/input/input_helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/input/input_helper.c b/testcases/kernel/input/input_helper.c
index 71c5dec..08fa81c 100644
--- a/testcases/kernel/input/input_helper.c
+++ b/testcases/kernel/input/input_helper.c
@@ -72,7 +72,7 @@ static int try_open_device(void)
int open_device(void)
{
int fd;
- int retries = 2;
+ int retries = 10;
while (retries--) {
fd = try_open_device();
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [LTP] [PATCH] kernel/input: increase the number of retries in open_device
2016-01-18 14:49 [LTP] [PATCH] kernel/input: increase the number of retries in open_device Stanislav Kholmanskikh
@ 2016-01-18 14:50 ` Cyril Hrubis
2016-01-18 15:03 ` Stanislav Kholmanskikh
0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2016-01-18 14:50 UTC (permalink / raw)
To: ltp
Hi!
> In some environments the current limit (2) is not enough, and only
> 3rd or 4th access will succeed. Therefore, let's increase it slightly.
> The new limit (10) is the same value we have in open_uinput().
Acked. Thanks for the testing :).
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] [PATCH] kernel/input: increase the number of retries in open_device
2016-01-18 14:50 ` Cyril Hrubis
@ 2016-01-18 15:03 ` Stanislav Kholmanskikh
0 siblings, 0 replies; 3+ messages in thread
From: Stanislav Kholmanskikh @ 2016-01-18 15:03 UTC (permalink / raw)
To: ltp
On 01/18/2016 05:50 PM, Cyril Hrubis wrote:
> Hi!
>> In some environments the current limit (2) is not enough, and only
>> 3rd or 4th access will succeed. Therefore, let's increase it slightly.
>> The new limit (10) is the same value we have in open_uinput().
>
> Acked. Thanks for the testing :).
>
Thanks, and the example output from my message is not correct ( I
mistakenly pasted it there), the correct one is:
input01 0 TINFO : Trying to load uinput kernel module
input01 0 TINFO : Uinput dev not found, retrying...
input01 0 TINFO : Uinput dev not found, retrying...
input01 0 TINFO : Uinput dev not found, retrying...
input01 0 TINFO : Found uinput dev at /dev/uinput
input01 0 TINFO : Device not found, retrying...
input01 0 TINFO : Device not found, retrying...
input01 1 TBROK : input_helper.c:85: Unable to find the input device
input01 2 TBROK : input_helper.c:85: Remaining cases broken
:-[
Committed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-18 15:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-18 14:49 [LTP] [PATCH] kernel/input: increase the number of retries in open_device Stanislav Kholmanskikh
2016-01-18 14:50 ` Cyril Hrubis
2016-01-18 15:03 ` Stanislav Kholmanskikh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox