Skip to content

apps_mem: fallback to legacy mmap/unmap when internal API fails (Talos)#319

Open
Jianping-Li wants to merge 1 commit intoqualcomm:developmentfrom
Jianping-Li:dsp_err_check
Open

apps_mem: fallback to legacy mmap/unmap when internal API fails (Talos)#319
Jianping-Li wants to merge 1 commit intoqualcomm:developmentfrom
Jianping-Li:dsp_err_check

Conversation

@Jianping-Li
Copy link
Copy Markdown
Contributor

On Talos, fastrpc_mmap_internal/munmap_internal can fail or be unsupported. Fallback to fastrpc_mmap and then remote_mmap64_internal, and use remote_munmap64 when internal munmap fails.

Comment on lines -173 to -175
pbuf = (uint64_t)buf;
*vapps = pbuf;
minfo->vapps = *vapps;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t we be storing these addresses?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the reminder. I accidentally deleted these three lines because they did not affect the Talos test results, but considering compatibility, they should be added back.

On Talos, fastrpc_mmap_internal/munmap_internal can fail or be unsupported.
Fallback to fastrpc_mmap and then remote_mmap64_internal,
and use remote_munmap64 when internal munmap fails.

Signed-off-by: Jianping Li <jianping.li@oss.qualcomm.com>
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

Successfully merging this pull request may close these issues.

2 participants