Linux Documentation
 help / color / mirror / Atom feed
* Regression due to /sys/kernel/dmabuf/buffers removal
@ 2026-05-05 12:25 Julian Orth
  2026-05-05 12:41 ` Christian König
  0 siblings, 1 reply; 6+ messages in thread
From: Julian Orth @ 2026-05-05 12:25 UTC (permalink / raw)
  To: T.J. Mercier
  Cc: Christian König, corbet, dri-devel, linaro-mm-sig, linux-doc,
	linux-kernel, linux-media, Sumit Semwal

In ab4c3dcf9a71582503b4fb25aeab884c696cab25 ("dma-buf: Remove DMA-BUF
sysfs stats") the /sys/kernel/dmabuf/buffer directory was removed.

I've been using this interface, specifically the exporter_name file,
to detect dmabufs created via udmabuf. Such dmabufs show "udmabuf" in
exporter_name. I've been doing this for two reasons: 1) to detect that
mmap on such buffers will be fast and 2) to detect that GPU access to
such buffers will be slow.

With the removal of that file, that detection mechanism no longer works.

I'm not particularly fond of that mechanism but it was the only one
providing that functionality that I could find at the time. If there
is another one, ideally an ioctl on the dmabuf, please let me know.

Shipping an entire BPF compiler in my application, which the original
patch suggests as the replacement, is not an option when the removed
alternative was simply reading a file.

Thanks, Julian

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

end of thread, other threads:[~2026-05-07 11:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 12:25 Regression due to /sys/kernel/dmabuf/buffers removal Julian Orth
2026-05-05 12:41 ` Christian König
2026-05-05 12:59   ` Julian Orth
2026-05-05 14:32     ` T.J. Mercier
2026-05-07 11:35       ` Christian König
2026-05-07 11:52         ` T.J. Mercier

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