[PATCH] drm/i915/active: Use try_cmpxchg64() in __active_lookup()

2025-07-25 Thread Uros Bizjak
the explanation of what the code really does. cmpxchg64() will *succeed* for the winner of the race and try_cmpxchg64() nicely documents this fact. No functional change intended. Signed-off-by: Uros Bizjak Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: David Airlie

Re: [PATCH 03/17] x86: Replace open-coded parity calculation with parity8()

2025-02-24 Thread Uros Bizjak
On Mon, Feb 24, 2025 at 10:56 PM H. Peter Anvin wrote: > > On 2/24/25 07:24, Uros Bizjak wrote: > > > > > > On 23. 02. 25 17:42, Kuan-Wei Chiu wrote: > >> Refactor parity calculations to use the standard parity8() helper. This > >> change eliminates r

Re: [PATCH 03/17] x86: Replace open-coded parity calculation with parity8()

2025-02-24 Thread Uros Bizjak
faster and smaller (-10 bytes) code. Reviewed-by: Uros Bizjak Thanks, Uros. Co-developed-by: Yu-Chun Lin Signed-off-by: Yu-Chun Lin Signed-off-by: Kuan-Wei Chiu --- arch/x86/kernel/bootflag.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/arch/x86

Re: [PATCH 00/17] Introduce and use generic parity32/64 helper

2025-02-24 Thread Uros Bizjak
On 23. 02. 25 17:42, Kuan-Wei Chiu wrote: Several parts of the kernel contain redundant implementations of parity calculations for 32-bit and 64-bit values. Introduces generic parity32() and parity64() helpers in bitops.h, providing a standardized and optimized implementation. Subsequent patc

Re: [git pull] drm for 6.13-rc1

2024-11-21 Thread Uros Bizjak
On 21. 11. 24 01:25, Dave Airlie wrote: This is the main drm pull request for 6.13. I've done a test merge into your tree, there were two conflicts both of which seem easy enough to resolve for you. There's a lot of rework, the panic helper support is being added to more drivers, v3d gets s

[PATCH] dma-buf: Use atomic64_inc_return() in dma_buf_getfile()

2024-10-07 Thread Uros Bizjak
Use atomic64_inc_return(&ref) instead of atomic64_add_return(1, &ref) to use optimized implementation and ease register pressure around the primitive for targets that implement optimized variant. Signed-off-by: Uros Bizjak Cc: Sumit Semwal Cc: "Christian König" --- drivers

[PATCH] drm/i915/active: Use try_cmpxchg() in active_fence_cb()

2024-10-03 Thread Uros Bizjak
Replace this pattern in active_fence_cb(): cmpxchg(*ptr, old, new) == old ... with the simpler and faster: try_cmpxchg(*ptr, &old, new) The x86 CMPXCHG instruction returns success in the ZF flag, so this change saves a compare after the CMPXCHG. Signed-off-by: Uros Bizjak Cc:

[PATCH v3 13/19] lib/rbtree-test: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton --- lib/rbtree_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index 41ae3c7570d3

[PATCH v3 17/19] netem: Include in sch_netem.c

2024-09-30 Thread Uros Bizjak
Include header to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Jiri Pirko Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni --- net/sched/sch_netem.c | 1

[PATCH v3 12/19] random32: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni --- lib/random32.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v3 18/19] random: Do not include in

2024-09-30 Thread Uros Bizjak
Files that use prandom infrastructure are now converted to use header instead of . Remove the legacy inclusion of from . This is the "nice cleanup" part, wished in c0842fbc1b18. Signed-off-by: Uros Bizjak Fixes: c0842fbc1b18 ("random32: move the pseudo-random 32-bit definition

[PATCH v3 19/19] prandom: Include in

2024-09-30 Thread Uros Bizjak
vert of d9f29deb7fe8 ("prandom: Remove unused include"). [1] https://lore.kernel.org/lkml/20240812115945.484051-4-ubiz...@gmail.com/ Signed-off-by: Uros Bizjak Cc: "Theodore Ts'o" Cc: "Jason A. Donenfeld" Cc: Kent Overstreet --- include/linux/prandom.h | 1

[PATCH v3 16/19] lib/test_scanf: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Acked-by: Petr Mladek Cc: Steven Rostedt Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Andrew Morton --- lib/test_scanf.c | 2 +- 1 file changed

[PATCH v3 14/19] bpf/tests: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: Eduard Zingerman Cc: Song Liu Cc: Yonghong Song Cc: John

[PATCH v3 15/19] lib/test_parman: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: Jiri Pirko --- lib/test_parman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_parman.c b/lib/test_parman.c index

[PATCH v3 06/19] mtd: tests: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Acked-by: Miquel Raynal Cc: Richard Weinberger Cc: Vignesh Raghavendra --- drivers/mtd/tests/oobtest.c | 2 +- drivers/mtd/tests/pagetest.c| 2 +- drivers/mtd

[PATCH v3 09/19] bpf: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: John Fastabend Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: Eduard Zingerman Cc: Song Liu Cc: Yonghong Song Cc: KP Singh

[PATCH v3 11/19] kunit: string-stream-test: Include

2024-09-30 Thread Uros Bizjak
Include header to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar --- lib/kunit/string-stream-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kunit/string-stream-test.c b/lib/kunit/string-stream-test.c

[PATCH v3 08/19] scsi: libfcoe: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Reviewed-by: Bart Van Assche Cc: Hannes Reinecke Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" --- include/scsi/libfcoe.h | 2 +- 1 file change

[PATCH v3 10/19] lib/interval_tree_test.c: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton --- lib/interval_tree_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c index

[PATCH v3 05/19] media: vivid: Include in vivid-vid-cap.c

2024-09-30 Thread Uros Bizjak
Include to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Acked-by: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org --- drivers/media/test-drivers/vivid/vivid-vid-cap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/test

[PATCH v3 04/19] drm/lib: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/lib/drm_random.h | 2 +- 1 file changed, 1 insertion

[PATCH v3 07/19] fscrypt: Include in fs/crypto/keyring.c

2024-09-30 Thread Uros Bizjak
Include header to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Acked-by: Eric Biggers Cc: "Theodore Y. Ts'o" Cc: Jaegeuk Kim --- v2: Include instead of --- fs/crypto/keyring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/crypto

[PATCH v3 03/19] drm/i915/selftests: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Acked-by: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/i915/selftests/i915_gem.c| 2

[PATCH v3 02/19] crypto: testmgr: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Herbert Xu Cc: "David S. Miller" --- crypto/testmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testm

[PATCH v3 01/19] x86/kaslr: Include instead of

2024-09-30 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" --- arch/x86/mm/kaslr.c

[PATCH v3 00/19] random: Resolve circular include dependency and include

2024-09-30 Thread Uros Bizjak
dt Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Kent Overstreet --- v2: - Reword commit messages to mention the removal of legacy inclusion of from - Add missing substitution in crypto/testmgr.c

Re: [PATCH RESEND v2 00/19] random: Resolve circular include dependency and include

2024-09-09 Thread Uros Bizjak
On Mon, Sep 9, 2024 at 5:57 PM Jason A. Donenfeld wrote: > On Mon, Sep 09, 2024 at 09:53:43AM +0200, Uros Bizjak wrote: > > a) Substitutes the inclusion of with the > > inclusion of where needed (patches 1 - 17). > > > > b) Removes legacy inclusion of from > >

[PATCH RESEND v2 19/19] prandom: Include in

2024-09-09 Thread Uros Bizjak
vert of d9f29deb7fe8 ("prandom: Remove unused include"). [1] https://lore.kernel.org/lkml/20240812115945.484051-4-ubiz...@gmail.com/ Signed-off-by: Uros Bizjak Cc: "Theodore Ts'o" Cc: "Jason A. Donenfeld" Cc: Kent Overstreet --- include/linux/prandom.h | 1

[PATCH RESEND v2 18/19] random: Do not include in

2024-09-09 Thread Uros Bizjak
Files that use prandom infrastructure are now converted to use header instead of . Remove the legacy inclusion of from . This is the "nice cleanup" part, wished in c0842fbc1b18. Signed-off-by: Uros Bizjak Fixes: c0842fbc1b18 ("random32: move the pseudo-random 32-bit definition

[PATCH RESEND v2 17/19] netem: Include in sch_netem.c

2024-09-09 Thread Uros Bizjak
Include header to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Jiri Pirko Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni --- net/sched/sch_netem.c | 1

[PATCH RESEND v2 12/19] random32: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni --- lib/random32.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH RESEND v2 16/19] lib/test_scanf: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Petr Mladek Cc: Steven Rostedt Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Andrew Morton --- lib/test_scanf.c | 2 +- 1 file changed, 1

[PATCH RESEND v2 15/19] lib/test_parman: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: Jiri Pirko --- lib/test_parman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_parman.c b/lib/test_parman.c index

[PATCH RESEND v2 14/19] bpf/tests: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: Eduard Zingerman Cc: Song Liu Cc: Yonghong Song Cc: John

[PATCH RESEND v2 13/19] lib/rbtree-test: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton --- lib/rbtree_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index 41ae3c7570d3

[PATCH RESEND v2 10/19] lib/interval_tree_test.c: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton --- lib/interval_tree_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c index

[PATCH RESEND v2 11/19] kunit: string-stream-test: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar --- lib/kunit/string-stream-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kunit/string-stream-test.c b/lib

[PATCH RESEND v2 08/19] scsi: libfcoe: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Hannes Reinecke Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" --- include/scsi/libfcoe.h | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH RESEND v2 09/19] bpf: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: John Fastabend Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: Eduard Zingerman Cc: Song Liu Cc: Yonghong Song Cc: KP Singh

[PATCH RESEND v2 07/19] fscrypt: Include in fs/crypto/keyring.c

2024-09-09 Thread Uros Bizjak
Include header to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Eric Biggers Cc: "Theodore Y. Ts'o" Cc: Jaegeuk Kim --- v2: Include instead of --- fs/crypto/keyring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/crypto/keyrin

[PATCH RESEND v2 06/19] mtd: tests: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Miquel Raynal Cc: Richard Weinberger Cc: Vignesh Raghavendra --- drivers/mtd/tests/oobtest.c | 2 +- drivers/mtd/tests/pagetest.c| 2 +- drivers/mtd/tests

[PATCH RESEND v2 05/19] media: vivid: Include in vivid-vid-cap.c

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org --- drivers/media/test-drivers/vivid/vivid-vid-cap.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH RESEND v2 03/19] drm/i915/selftests: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Acked-by: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/i915/selftests/i915_gem.c| 2

[PATCH RESEND v2 04/19] drm/lib: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/lib/drm_random.h | 2 +- 1 file changed, 1 insertion

[PATCH RESEND v2 02/19] crypto: testmgr: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Herbert Xu Cc: "David S. Miller" --- crypto/testmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testm

[PATCH RESEND v2 01/19] x86/kaslr: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" --- arch/x86/mm/kaslr.c

[PATCH RESEND v2 00/19] random: Resolve circular include dependency and include

2024-09-09 Thread Uros Bizjak
akub Kicinski Cc: Paolo Abeni Cc: Jiri Pirko Cc: Petr Mladek Cc: Steven Rostedt Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Kent Overstreet --- v2: - Reword commit messages to mention the removal of legac

[PATCH v2 19/19] prandom: Include in

2024-09-09 Thread Uros Bizjak
vert of d9f29deb7fe8 ("prandom: Remove unused include"). [1] https://lore.kernel.org/lkml/20240812115945.484051-4-ubiz...@gmail.com/ Signed-off-by: Uros Bizjak Cc: "Theodore Ts'o" Cc: "Jason A. Donenfeld" Cc: Kent Overstreet --- include/linux/prandom.h | 1

[PATCH v2 18/19] random: Do not include in

2024-09-09 Thread Uros Bizjak
Files that use prandom infrastructure are now converted to use header instead of . Remove the legacy inclusion of from . This is the "nice cleanup" part, wished in c0842fbc1b18. Signed-off-by: Uros Bizjak Fixes: c0842fbc1b18 ("random32: move the pseudo-random 32-bit definition

[PATCH v2 17/19] netem: Include in sch_netem.c

2024-09-09 Thread Uros Bizjak
Include header to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Jiri Pirko Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni --- net/sched/sch_netem.c | 1

[PATCH v2 16/19] lib/test_scanf: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Petr Mladek Cc: Steven Rostedt Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Andrew Morton --- lib/test_scanf.c | 2 +- 1 file changed, 1

[PATCH v2 13/19] lib/rbtree-test: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton --- lib/rbtree_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index 41ae3c7570d3

[PATCH v2 14/19] bpf/tests: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: Eduard Zingerman Cc: Song Liu Cc: Yonghong Song Cc: John

[PATCH v2 15/19] lib/test_parman: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: Jiri Pirko --- lib/test_parman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_parman.c b/lib/test_parman.c index

[PATCH v2 11/19] kunit: string-stream-test: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar --- lib/kunit/string-stream-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kunit/string-stream-test.c b/lib

[PATCH v2 12/19] random32: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni --- lib/random32.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2 10/19] lib/interval_tree_test.c: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Andrew Morton --- lib/interval_tree_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interval_tree_test.c b/lib/interval_tree_test.c index

[PATCH v2 09/19] bpf: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: John Fastabend Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: Eduard Zingerman Cc: Song Liu Cc: Yonghong Song Cc: KP Singh

[PATCH v2 08/19] scsi: libfcoe: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Hannes Reinecke Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" --- include/scsi/libfcoe.h | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH v2 05/19] media: vivid: Include in vivid-vid-cap.c

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org --- drivers/media/test-drivers/vivid/vivid-vid-cap.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v2 07/19] fscrypt: Include in fs/crypto/keyring.c

2024-09-09 Thread Uros Bizjak
Include header to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Eric Biggers Cc: "Theodore Y. Ts'o" Cc: Jaegeuk Kim --- v2: Include instead of --- fs/crypto/keyring.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/crypto/keyrin

[PATCH v2 06/19] mtd: tests: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Miquel Raynal Cc: Richard Weinberger Cc: Vignesh Raghavendra --- drivers/mtd/tests/oobtest.c | 2 +- drivers/mtd/tests/pagetest.c| 2 +- drivers/mtd/tests

[PATCH v2 04/19] drm/lib: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/lib/drm_random.h | 2 +- 1 file changed, 1 insertion

[PATCH v2 03/19] drm/i915/selftests: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Acked-by: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: David Airlie Cc: Daniel Vetter --- drivers/gpu/drm/i915/selftests/i915_gem.c| 2

[PATCH v2 02/19] crypto: testmgr: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Herbert Xu Cc: "David S. Miller" --- crypto/testmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testm

[PATCH v2 01/19] x86/kaslr: Include instead of

2024-09-09 Thread Uros Bizjak
Substitute the inclusion of header with to allow the removal of legacy inclusion of from . Signed-off-by: Uros Bizjak Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" --- arch/x86/mm/kaslr.c

[PATCH v2 00/19] random: Resolve circular include dependency and include

2024-09-09 Thread Uros Bizjak
Cc: Steven Rostedt Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Kent Overstreet --- v2: - Reword commit messages to mention the removal of legacy inclusion of from - Add missing substitution in cry

Re: [PATCH 00/18] random: Include and resolve circular include dependency

2024-09-05 Thread Uros Bizjak
On Thu, Sep 5, 2024 at 2:41 PM Andy Shevchenko wrote: > > On Thu, Sep 05, 2024 at 02:17:08PM +0200, Uros Bizjak wrote: > > There were several attempts to resolve circular include dependency > > after the addition of percpu.h: 1c9df907da83 ("random: fix circular > >

[PATCH 03/18] drm/lib: Include instead of

2024-09-05 Thread Uros Bizjak
Usage of pseudo-random functions requires inclusion of header instead of . Signed-off-by: Uros Bizjak Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/lib/drm_random.h | 2 +- 1 file

[PATCH 02/18] drm/i915/selftests: Include instead of

2024-09-05 Thread Uros Bizjak
Usage of pseudo-random functions requires inclusion of header instead of . Signed-off-by: Uros Bizjak Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: David Airlie Cc: Daniel Vetter Cc: intel-...@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org

[PATCH 00/18] random: Include and resolve circular include dependency

2024-09-05 Thread Uros Bizjak
Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: Jiri Pirko Cc: Petr Mladek Cc: Steven Rostedt Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Sergey Senozhatsky Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Uros Bizjak Cc: Kent Overstree

Re: [PATCH] drm/i915/pmu: Use local64_try_cmpxchg in i915_pmu_event_read

2023-07-04 Thread Uros Bizjak
On Tue, Jul 4, 2023 at 10:37 AM Jani Nikula wrote: > > On Tue, 04 Jul 2023, Uros Bizjak wrote: > > On Tue, Jul 4, 2023 at 9:28 AM Jani Nikula > > wrote: > >> You could save everyone a lot of time by actually documenting what these > >> func

Re: [PATCH] drm/i915/pmu: Use local64_try_cmpxchg in i915_pmu_event_read

2023-07-04 Thread Uros Bizjak
On Tue, Jul 4, 2023 at 9:28 AM Jani Nikula wrote: > > On Mon, 03 Jul 2023, Uros Bizjak wrote: > > Use local64_try_cmpxchg instead of local64_cmpxchg (*ptr, old, new) == old > > in i915_pmu_event_read. x86 CMPXCHG instruction returns success in ZF flag, > > so this chan

[PATCH] drm/i915/pmu: Use local64_try_cmpxchg in i915_pmu_event_read

2023-07-03 Thread Uros Bizjak
value to "old" when cmpxchg fails. There is no need to re-read the value in the loop. No functional change intended. Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Cc: David Airlie Cc: Daniel Vetter Signed-off-by: Uros Bizjak --- drivers/gpu/drm/i915/i915

[PATCH] drm/amdgpu: Use local64_try_cmpxchg in amdgpu_perf_read

2023-07-03 Thread Uros Bizjak
to "old" when cmpxchg fails. There is no need to re-read the value in the loop. No functional change intended. Cc: Alex Deucher Cc: "Christian König" Cc: "Pan, Xinhui" Cc: David Airlie Cc: Daniel Vetter Signed-off-by: Uros Bizjak --- drivers/gpu/drm/amd/am