public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Pinned, non-revocable mappings of VRAM: will bad things happen?
@ 2026-04-15 23:27 Demi Marie Obenour
  2026-04-16  9:57 ` Christian König
  0 siblings, 1 reply; 15+ messages in thread
From: Demi Marie Obenour @ 2026-04-15 23:27 UTC (permalink / raw)
  To: dri-devel, Xen developer discussion, linux-media
  Cc: Val Packett, Christian König, Suwit Semal


[-- Attachment #1.1.1: Type: text/plain, Size: 862 bytes --]

Is it safe to assume that if a dmabuf exporter cannot handle
non-revocable, pinned importers, it will fail the import?  Or is
using dma_buf_pin() unsafe if one does not know the exporter?

For context, Xen grant tables do not support revocation.  One can ask
the guest to unmap the grants, but if the guest doesn't obey the only
recourse is to ungracefully kill it.  They also do not support page
faults, so the pages must be pinned.  Right now, grant tables don't
support PCI BAR mappings, but that's fixable.

How badly is this going to break with dGPU VRAM, if at all?  I know
that AMDGPU has a fallback when the BAR isn't mappable.  What about
other drivers?  Supporting page faults the way KVM does is going to
be extremely hard, so pinned mappings and DMA transfers are vastly
preferable.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2026-04-22  2:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 23:27 Pinned, non-revocable mappings of VRAM: will bad things happen? Demi Marie Obenour
2026-04-16  9:57 ` Christian König
2026-04-16 16:13   ` Demi Marie Obenour
2026-04-17  7:53     ` Christian König
2026-04-17 19:35       ` Demi Marie Obenour
2026-04-20  8:49         ` Christian König
2026-04-20 17:03           ` Demi Marie Obenour
2026-04-20 17:58             ` Christian König
2026-04-20 18:46               ` Demi Marie Obenour
2026-04-20 18:53                 ` Christian König
2026-04-20 19:12                   ` Demi Marie Obenour
2026-04-21 16:55                     ` Val Packett
2026-04-21 17:43                       ` Christian König
2026-04-22  1:27                       ` Demi Marie Obenour
2026-04-22  2:03                         ` Alex Deucher

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