public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] drm, bpf: User drm_mm in bpf
@ 2024-11-01 23:54 Alexei Starovoitov
  2024-11-01 23:54 ` [PATCH bpf-next 1/2] drm, bpf: Move drm_mm.c to lib to be used by bpf arena Alexei Starovoitov
  2024-11-01 23:54 ` [PATCH bpf-next 2/2] bpf: Switch bpf arena to use drm_mm instead of maple_tree Alexei Starovoitov
  0 siblings, 2 replies; 7+ messages in thread
From: Alexei Starovoitov @ 2024-11-01 23:54 UTC (permalink / raw)
  To: bpf
  Cc: daniel, andrii, memxor, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, kernel-team

From: Alexei Starovoitov <ast@kernel.org>

Hi DRM folks,

we'd like to start using drm_mm in bpf arena.
The drm_mm logic fits particularly well to bpf use case.
See individual patches.

objdump -h lib/drm_mm.o 
.text         000012c7

So no vmlinux size concerns.

Alexei Starovoitov (2):
  drm, bpf: Move drm_mm.c to lib to be used by bpf arena
  bpf: Switch bpf arena to use drm_mm instead of maple_tree

 MAINTAINERS                       |  1 +
 drivers/gpu/drm/Makefile          |  1 -
 drivers/gpu/drm/drm_print.c       | 39 ++++++++++++++++++
 kernel/bpf/arena.c                | 67 ++++++++++++++++++++++++-------
 lib/Makefile                      |  2 +
 {drivers/gpu/drm => lib}/drm_mm.c | 40 +-----------------
 6 files changed, 95 insertions(+), 55 deletions(-)
 rename {drivers/gpu/drm => lib}/drm_mm.c (96%)

-- 
2.43.5


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

end of thread, other threads:[~2024-11-05 15:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 23:54 [PATCH bpf-next 0/2] drm, bpf: User drm_mm in bpf Alexei Starovoitov
2024-11-01 23:54 ` [PATCH bpf-next 1/2] drm, bpf: Move drm_mm.c to lib to be used by bpf arena Alexei Starovoitov
2024-11-03 20:03   ` Kumar Kartikeya Dwivedi
2024-11-01 23:54 ` [PATCH bpf-next 2/2] bpf: Switch bpf arena to use drm_mm instead of maple_tree Alexei Starovoitov
2024-11-03 20:04   ` Kumar Kartikeya Dwivedi
2024-11-05  5:32   ` kernel test robot
2024-11-05 15:58   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox