Skip to content

[RFC]VCHIQ: Convert vchiq from a platform driver to an on-demand library #1843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Electron752 opened this issue Feb 12, 2017 · 0 comments
Closed

Comments

@Electron752
Copy link
Contributor

Electron752 commented Feb 12, 2017

VCHIQ is very ulgy and getting the device tree documentation upstream is going to be a mess. I'm wondering if it would make sense to convert vchiq/vchi into a loadable library rather then a platform driver.

Here is what I'm thinking:

  1. Make a separate #ifdef for the userland ioctl interface in the build configuration. It would default to no.
  2. The vchiq core stays inactive until either the userland ioctl interface file is opened, or one of the internal drivers use it. At that point, the driver actually activates.
  3. I don't think the firmware supports unloading vchiq but maybe it could in the future.

The only really tricky part would be to get the reference to the raspberrypi firmware driver. So maybe short term, the driver could stay a platform driver just stay dormant until it is actually used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant