linux_old1/drivers/remoteproc
Ohad Ben-Cohen 6db20ea8d8 remoteproc: allocate vrings on demand, free when not needed
Dynamically allocate the vrings' DMA when the remote processor
is about to be powered on (i.e. when ->find_vqs() is invoked),
and release them as soon as it is powered off (i.e. when ->del_vqs()
is invoked).

The obvious and immediate benefit is better memory utilization, since
memory for the vrings is now only allocated when the relevant remote
processor is used.

Additionally, this approach also makes recovery of a (crashing)
remote processor easier: one just needs to remove the relevant
vdevs, and the entire vrings cleanup takes place automagically.

Tested-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
2012-07-04 13:27:04 +03:00
..
Kconfig remoteproc/omap: two Kconfig fixes 2012-02-28 19:09:16 +02:00
Makefile remoteproc: remoteproc_rpmsg -> remoteproc_virtio 2012-03-06 19:13:45 +02:00
omap_remoteproc.c remoteproc/omap: remove the mbox_callback limitation 2012-03-06 19:14:23 +02:00
omap_remoteproc.h remoteproc/omap: add a remoteproc driver for OMAP4 2012-02-08 22:53:47 +02:00
remoteproc_core.c remoteproc: allocate vrings on demand, free when not needed 2012-07-04 13:27:04 +03:00
remoteproc_debugfs.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
remoteproc_internal.h remoteproc: allocate vrings on demand, free when not needed 2012-07-04 13:27:04 +03:00
remoteproc_virtio.c remoteproc: allocate vrings on demand, free when not needed 2012-07-04 13:27:04 +03:00