@@ -294,7 +294,7 @@ static int userspace_proxy_memory_init(struct userspace_context *user_ctx,
294294 POINTER_TO_UINT (heap -> init_mem ),
295295 heap -> init_bytes , CONFIG_MM_DRV_PAGE_SIZE );
296296
297- tr_dbg (& userspace_proxy_tr , "Heap partition %#lx + %zx, attr = %u" ,
297+ tr_err (& userspace_proxy_tr , "Heap partition %#lx + %zx, attr = %u" ,
298298 heap_part .start , heap_part .size , heap_part .attr );
299299
300300#if !defined(CONFIG_XTENSA_MMU_DOUBLE_MAP ) && defined(CONFIG_SOF_ZEPHYR_HEAP_CACHED )
@@ -308,7 +308,7 @@ static int userspace_proxy_memory_init(struct userspace_context *user_ctx,
308308 POINTER_TO_UINT (sys_cache_cached_ptr_get (heap -> init_mem )),
309309 heap -> init_bytes , CONFIG_MM_DRV_PAGE_SIZE );
310310
311- tr_dbg (& userspace_proxy_tr , "Cached heap partition %#lx + %zx, attr = %u" ,
311+ tr_err (& userspace_proxy_tr , "Cached heap partition %#lx + %zx, attr = %u" ,
312312 heap_cached_part .start , heap_cached_part .size , heap_cached_part .attr );
313313#endif
314314
@@ -323,7 +323,7 @@ static int userspace_proxy_memory_init(struct userspace_context *user_ctx,
323323 & heap_part
324324 };
325325
326- tr_dbg (& userspace_proxy_tr , "Common partition %#lx + %zx, attr = %u" ,
326+ tr_err (& userspace_proxy_tr , "Common partition %#lx + %zx, attr = %u" ,
327327 common_partition .start , common_partition .size , common_partition .attr );
328328
329329 return k_mem_domain_init (user_ctx -> comp_dom , ARRAY_SIZE (parts_ptr ), parts_ptr );
@@ -413,7 +413,7 @@ int userspace_proxy_create(struct userspace_context **user_ctx, const struct com
413413 struct k_mem_domain * domain ;
414414 int ret ;
415415
416- tr_err (& userspace_proxy_tr , "userspace create" );
416+ tr_err (& userspace_proxy_tr , "userspace create, user heap %p, init_mem %p" , ( void * ) drv -> user_heap , drv -> user_heap -> heap . init_mem );
417417
418418 context = k_heap_alloc (drv -> user_heap , sizeof (struct userspace_context ), K_FOREVER );
419419 if (!context )
@@ -487,6 +487,7 @@ void userspace_proxy_destroy(const struct comp_driver *drv, struct userspace_con
487487 rfree (user_ctx -> comp_dom );
488488 k_heap_free (drv -> user_heap , user_ctx );
489489}
490+ struct processing_module * debug_mod ;
490491
491492/**
492493 * Copy parameters to user worker accessible space.
@@ -498,9 +499,14 @@ void userspace_proxy_destroy(const struct comp_driver *drv, struct userspace_con
498499 */
499500static int userspace_proxy_init (struct processing_module * mod )
500501{
502+ debug_mod = mod ;
501503 struct module_params * params = user_work_get_params (mod -> user_ctx );
502504 DEBUG (mod );
503505 int ret ;
506+ tr_err (& userspace_proxy_tr , "resource k_heap %p, z_heap %p, init %p" ,
507+ (void * )mod -> priv .resources .heap ,
508+ (void * )mod -> priv .resources .heap -> heap .heap ,
509+ (void * )mod -> priv .resources .heap -> heap .init_mem );
504510
505511 comp_dbg (mod -> dev , "start" );
506512 DEBUG (mod );
0 commit comments