Skip to content
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

[nrf fromtree] ipc: Drain pending work items before deregistering endpoint #1486

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

jori-nordic
Copy link
Contributor

…point

The work item will attempt to dereference pointers that have been nulled by the backend.

To avoid that, wait until all items currently on the queue have been processed.

The symptom is a busfault on ARM, and is "fixed" by adding a k_msleep(1) right before ipc_service_deregister_endpoint(). This will in effect do the same thing as this patch, and allow the scheduler to run the work item on the ipc workqueue.

Signed-off-by: Jonathan Rico jonathan.rico@nordicsemi.no
(cherry picked from commit f24a01e)

@jori-nordic jori-nordic added this to the ncs-2.6.0 milestone Feb 9, 2024
@jori-nordic jori-nordic added the bug Something isn't working label Feb 9, 2024
@jori-nordic jori-nordic changed the title [nrf fromlist] ipc: Drain pending work items before deregistering endpoint [nrf fromtree] ipc: Drain pending work items before deregistering endpoint Feb 9, 2024
@jori-nordic
Copy link
Contributor Author

This has been observed by one of our customers: NCSIDB-1192

…point

The work item will attempt to dereference pointers that have been nulled
by the backend.

To avoid that, wait until all items currently on the queue have been
processed.

The symptom is a busfault on ARM, and is "fixed" by adding a
`k_msleep(1)` right before `ipc_service_deregister_endpoint()`. This
will in effect do the same thing as this patch, and allow the scheduler
to run the work item on the ipc workqueue.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
(cherry picked from commit f24a01e)
@nordicjm nordicjm merged commit 321387b into nrfconnect:main Feb 19, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: IPC bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants