-
Notifications
You must be signed in to change notification settings - Fork 350
userspace: proxy: Add support for llext modules #10643
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
base: main
Are you sure you want to change the base?
Changes from all commits
06a520d
1b4bf74
62fea34
03fb3c8
ee44813
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -150,7 +150,11 @@ const void *fast_get(struct k_heap *heap, const void *dram_ptr, size_t size) | |||||||||
| alloc_align = PLATFORM_DCACHE_ALIGN; | ||||||||||
| } | ||||||||||
|
|
||||||||||
| if (size > FAST_GET_MAX_COPY_SIZE || !IS_ENABLED(CONFIG_USERSPACE)) | ||||||||||
| /* The module driver heap is shared by all instances of a given module. | ||||||||||
| * Instances can share the allocated buffer. | ||||||||||
| */ | ||||||||||
| if (size > FAST_GET_MAX_COPY_SIZE || !IS_ENABLED(CONFIG_USERSPACE) || | ||||||||||
| IS_ENABLED(CONFIG_SOF_USERSPACE_USE_DRIVER_HEAP)) | ||||||||||
| alloc_ptr = dram_ptr; | ||||||||||
| else | ||||||||||
| /* When userspace is enabled only share large buffers */ | ||||||||||
|
|
@@ -188,8 +192,12 @@ const void *fast_get(struct k_heap *heap, const void *dram_ptr, size_t size) | |||||||||
| /* | ||||||||||
| * We only get there for large buffers, since small buffers with | ||||||||||
| * enabled userspace don't create fast-get entries | ||||||||||
| * | ||||||||||
| * We also reach this point when using the module driver heap. | ||||||||||
| * Since the heap is already shared across module instances, | ||||||||||
| * we skip memory domain manipulation. | ||||||||||
| */ | ||||||||||
| if (mdom->num_partitions > 1) { | ||||||||||
| if (k_current_get()->base.user_options & K_USER && size > FAST_GET_MAX_COPY_SIZE) { | ||||||||||
|
||||||||||
| if (k_current_get()->base.user_options & K_USER && size > FAST_GET_MAX_COPY_SIZE) { | |
| if ((k_current_get()->base.user_options & K_USER) && | |
| (size > FAST_GET_MAX_COPY_SIZE || | |
| IS_ENABLED(CONFIG_SOF_USERSPACE_USE_DRIVER_HEAP))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you address this, same problem, how do the comment and code relate?
Uh oh!
There was an error while loading. Please reload this page.