Skip to content

Commit 1f8b55f

Browse files
tmlemankv2019i
authored andcommitted
fast-get: add error logging for access grant failures
Add LOG_ERR messages when memory partition grants fail to improve debuggability of userspace access issues. Signed-off-by: Tomasz Leman <[email protected]>
1 parent 532fdc3 commit 1f8b55f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

zephyr/lib/fast-get.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ const void *fast_get(struct k_heap *heap, const void *dram_ptr, size_t size)
194194
int err = fast_get_access_grant(k_current_get(), ret, size);
195195

196196
if (err < 0) {
197+
LOG_ERR("failed to grant additional access err=%d", err);
197198
ret = NULL;
198199
goto out;
199200
}
@@ -233,6 +234,7 @@ const void *fast_get(struct k_heap *heap, const void *dram_ptr, size_t size)
233234
int err = fast_get_access_grant(entry->thread, ret, size);
234235

235236
if (err < 0) {
237+
LOG_ERR("failed to grant access err=%d", err);
236238
sof_heap_free(NULL, ret);
237239
ret = NULL;
238240
goto out;

0 commit comments

Comments
 (0)