Loading drivers/char/adsprpc.c +9 −2 Original line number Diff line number Diff line Loading @@ -169,6 +169,7 @@ struct fastrpc_channel_ctx { int sesscount; int ssrcount; void *handle; int prevssrcount; int ramdumpenabled; void *remoteheap_ramdump_dev; }; Loading Loading @@ -1685,8 +1686,13 @@ static int fastrpc_device_open(struct inode *inode, struct file *filp) kref_init(&me->channel[cid].kref); pr_info("'opened /dev/%s c %d %d'\n", gcinfo[cid].name, MAJOR(me->dev_no), cid); if (me->channel[cid].ssrcount != me->channel[cid].prevssrcount) { if (fastrpc_mmap_remove_ssr(fl)) pr_err("ADSPRPC: SSR: Failed to unmap remote heap\n"); me->channel[cid].prevssrcount = me->channel[cid].ssrcount; } } spin_lock(&me->hlock); hlist_add_head(&fl->hn, &me->drivers); Loading Loading @@ -2084,6 +2090,7 @@ static int __init fastrpc_device_init(void) if (err) goto device_create_bail; me->channel[i].ssrcount = 0; me->channel[i].prevssrcount = 0; me->channel[i].ramdumpenabled = 0; me->channel[i].remoteheap_ramdump_dev = 0; me->channel[i].nb.notifier_call = fastrpc_restart_notifier_cb; Loading Loading
drivers/char/adsprpc.c +9 −2 Original line number Diff line number Diff line Loading @@ -169,6 +169,7 @@ struct fastrpc_channel_ctx { int sesscount; int ssrcount; void *handle; int prevssrcount; int ramdumpenabled; void *remoteheap_ramdump_dev; }; Loading Loading @@ -1685,8 +1686,13 @@ static int fastrpc_device_open(struct inode *inode, struct file *filp) kref_init(&me->channel[cid].kref); pr_info("'opened /dev/%s c %d %d'\n", gcinfo[cid].name, MAJOR(me->dev_no), cid); if (me->channel[cid].ssrcount != me->channel[cid].prevssrcount) { if (fastrpc_mmap_remove_ssr(fl)) pr_err("ADSPRPC: SSR: Failed to unmap remote heap\n"); me->channel[cid].prevssrcount = me->channel[cid].ssrcount; } } spin_lock(&me->hlock); hlist_add_head(&fl->hn, &me->drivers); Loading Loading @@ -2084,6 +2090,7 @@ static int __init fastrpc_device_init(void) if (err) goto device_create_bail; me->channel[i].ssrcount = 0; me->channel[i].prevssrcount = 0; me->channel[i].ramdumpenabled = 0; me->channel[i].remoteheap_ramdump_dev = 0; me->channel[i].nb.notifier_call = fastrpc_restart_notifier_cb; Loading