* [PATCH] selftests/bpf: Fix test_lirc test
@ 2026-06-05 15:14 Sean Young
2026-06-05 23:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Sean Young @ 2026-06-05 15:14 UTC (permalink / raw)
To: Bastien Curutchet, Alexei Starovoitov, Daniel Borkmann,
Andrii Nakryiko, Martin KaFai Lau, Eduard Zingerman,
Kumar Kartikeya Dwivedi, Song Liu, Yonghong Song, Jiri Olsa,
Shuah Khan
Cc: Sean Young, bpf, linux-kselftest, linux-kernel
Since commit 68a99f6a0ebf ("media: lirc: report ir receiver overflow"),
the rc-loopback driver does not accept edges over 50ms, as these are
never seen in real life ir protocols. Fix this.
Signed-off-by: Sean Young <sean@mess.org>
---
tools/testing/selftests/bpf/progs/test_lirc_mode2_kern.c | 4 ++--
tools/testing/selftests/bpf/test_lirc_mode2_user.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/testing/selftests/bpf/progs/test_lirc_mode2_kern.c b/tools/testing/selftests/bpf/progs/test_lirc_mode2_kern.c
index 7a6620671a83..cbe4284c032f 100644
--- a/tools/testing/selftests/bpf/progs/test_lirc_mode2_kern.c
+++ b/tools/testing/selftests/bpf/progs/test_lirc_mode2_kern.c
@@ -13,9 +13,9 @@ int bpf_decoder(unsigned int *sample)
if (LIRC_IS_PULSE(*sample)) {
unsigned int duration = LIRC_VALUE(*sample);
- if (duration & 0x10000)
+ if (duration & 0x1000)
bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0);
- if (duration & 0x20000)
+ if (duration & 0x2000)
bpf_rc_pointer_rel(sample, (duration >> 8) & 0xff,
duration & 0xff);
}
diff --git a/tools/testing/selftests/bpf/test_lirc_mode2_user.c b/tools/testing/selftests/bpf/test_lirc_mode2_user.c
index 88e4aeab21b7..cd191da20d14 100644
--- a/tools/testing/selftests/bpf/test_lirc_mode2_user.c
+++ b/tools/testing/selftests/bpf/test_lirc_mode2_user.c
@@ -50,8 +50,8 @@ int main(int argc, char **argv)
{
struct bpf_object *obj;
int ret, lircfd, progfd, inputfd;
- int testir1 = 0x1dead;
- int testir2 = 0x20101;
+ int testir1 = 0x1ead;
+ int testir2 = 0x2101;
u32 prog_ids[10], prog_flags[10], prog_cnt;
if (argc != 3) {
@@ -125,7 +125,7 @@ int main(int argc, char **argv)
}
if (event.type == EV_MSC && event.code == MSC_SCAN &&
- event.value == 0xdead) {
+ event.value == 0x1ead) {
break;
}
}
--
2.54.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests/bpf: Fix test_lirc test
2026-06-05 15:14 [PATCH] selftests/bpf: Fix test_lirc test Sean Young
@ 2026-06-05 23:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-06-05 23:00 UTC (permalink / raw)
To: Sean Young
Cc: bastien.curutchet, ast, daniel, andrii, martin.lau, eddyz87,
memxor, song, yonghong.song, jolsa, shuah, bpf, linux-kselftest,
linux-kernel
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Fri, 5 Jun 2026 16:14:16 +0100 you wrote:
> Since commit 68a99f6a0ebf ("media: lirc: report ir receiver overflow"),
> the rc-loopback driver does not accept edges over 50ms, as these are
> never seen in real life ir protocols. Fix this.
>
> Signed-off-by: Sean Young <sean@mess.org>
> ---
> tools/testing/selftests/bpf/progs/test_lirc_mode2_kern.c | 4 ++--
> tools/testing/selftests/bpf/test_lirc_mode2_user.c | 6 +++---
> 2 files changed, 5 insertions(+), 5 deletions(-)
Here is the summary with links:
- selftests/bpf: Fix test_lirc test
https://git.kernel.org/bpf/bpf-next/c/d5e5745f8a1d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-05 23:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 15:14 [PATCH] selftests/bpf: Fix test_lirc test Sean Young
2026-06-05 23:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®