Coder Social home page Coder Social logo

Comments (7)

jwrdegoede avatar jwrdegoede commented on June 21, 2024 2

I actually had sending out an email to discuss doing this with the dma-buf maintainers on my TODO list. I have just send out that email:

https://lore.kernel.org/all/[email protected]/

So lets await the dam-buf maintainers reply and discuss this further in that email thread.

from systemd.

poettering avatar poettering commented on June 21, 2024 1

We can certainly do something like this, but only if the relevant kernel subsystem maintainers sign off on this, that this is a safe thing to do.

@jwrdegoede iirc you are involved in the libcamera work, or did i mix that up? Any chance you can comment on this? Or CC the people who could?

from systemd.

jwrdegoede avatar jwrdegoede commented on June 21, 2024 1

The upstream kernel list discussion has come to the conclusion that opening up DMA heaps is a bad idea. But opening up /dev/udmabuf like this should be acceptable.

I have posted a patch upstream for libcamera to try udmabuf of the DMA heaps are not available:

https://lists.libcamera.org/pipermail/libcamera-devel/2024-May/042085.html

I think we should change the title of this issue to "uaccess tag by default for /dev/udmabuf". @rmader can you update this.

And/or maybe we should just submit a pull-request with this change ?

from systemd.

keszybz avatar keszybz commented on June 21, 2024 1

rules.d/70-uaccess.rules.in

from systemd.

ndufresne avatar ndufresne commented on June 21, 2024

So far, it seems like a bad idea until dmabuf allocated from heaps can be accounted and under user quotas. I've let floating the idea for libcamera softISP to enable memfd + udmabuf (Laurent said memfd out of libcamera is a no-go). (but then you need kernels that enable udmabuf in the first place)

from systemd.

rmader avatar rmader commented on June 21, 2024

I think we should change the title of this issue to "uaccess tag by default for /dev/udmabuf". @rmader can you update this.

Agreed, looks like it will be a while until the accounting issues around dma heaps will have been resolved - done.

And/or maybe we should just submit a pull-request with this change ?

Sounds good! Won't get to it at least in the next two weeks, so please go ahead or I'll pick it up later.

from systemd.

jwrdegoede avatar jwrdegoede commented on June 21, 2024

Sounds good! Won't get to it at least in the next two weeks, so please go ahead or I'll pick it up later.

Any idea/suggestion which existing systemd udev rules file we should add this to ?

from systemd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.