[PATCHv2 01/10] remoteproc: Bugfix: Deallocate firmware image on shutdown

2013-02-21 Thread sjur . brandeland
From: Dmitry Tarnyagin Fixes coherent memory leakage, caused by non-deallocated firmware image chunk. Signed-off-by: Dmitry Tarnyagin --- drivers/remoteproc/ste_modem_rproc.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/remoteproc/ste_modem_rproc.c b/

[PATCHv2 10/10] remoteproc: Set vring addresses in resource table

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Set the vring addresses in the resource table so that the remote device can read the actual addresses used. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 19 +-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/

[PATCHv2 08/10] remoteproc: Always perserve resource table data

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Copy resource table from first to second firmware loading. After firmware is loaded to memory, update the vdevs resource pointer to the resource table kept in device memory. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/Kconfig |1 + drivers/remotepr

[PATCHv2 09/10] remoteproc: Support virtio config space.

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Support virtio configuration space and device status. The virtio device can now access the resource table in shared memory. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c |3 -- drivers/remoteproc/remoteproc_virtio.c | 61 +

[PATCHv2 05/10] remoteproc: Parse STE-firmware and find resource table address

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Parse the STE firmware and scan the TOC-table to find the address of the resource table. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c |2 +- drivers/remoteproc/remoteproc_internal.h |6 ++-- drivers/remoteproc/ste_modem_rproc.c

[PATCHv2 07/10] remoteproc: Calculate max_notifyid by counting vrings

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Simplify handling of max_notifyid by simply counting the number of vrings. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 33 ++--- drivers/remoteproc/ste_modem_rproc.c |2 +- 2 files changed, 19 insertions(+),

[PATCHv2 06/10] remoteproc: Code cleanup of resource parsing

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Combine the almost identical functions rproc_handle_virtio_rsc and rproc_handle_boot_rsc. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 51 -- 1 files changed, 12 insertions(+), 39 deletions(-) diff --git a/dr

[PATCHv2 04/10] remoteproc: Parse ELF file to find resource table address

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Add function find_rsc_table_va to firmware ops. This function returns the location of the resource table in shared memory after loading. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c | 17 - drivers/remoteproc/remoteproc_i

[PATCHv2 03/10] remoteproc: Refactor function rproc_elf_find_rsc_table

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Refactor rproc_elf_find_rsc_table and split out the scanning for the section header named resource table. This is done to prepare for loading firmware once. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c | 75 +---

[PATCHv2 02/10] remoteproc: Bugfix remove entry from list before freeing it

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland Remove the vdev entry from the list before freeing it, otherwise the rproc->vdevs list get corrupted. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/remoteproc/rem

[PATCHv2 00/10] remoteproc: Support bi-directional vdev config space

2013-02-21 Thread sjur . brandeland
From: Sjur Brændeland This patch-set adds support for shared resource table between Linux kernel and remote devices. - dynamically-allocated address of the vrings can be communicated - vdev statuses can be communicated - virtio config space becomes bi-directional - virtio feature negotiation is

[PATCHv2 vringh 3/3] caif_virtio: Introduce caif over virtio

2013-02-12 Thread sjur . brandeland
From: Vikram ARV Add the the Virtio shared memory driver for STE Modems. caif_virtio is implemented utilizing the virtio framework for data transport and is managed with the remoteproc frameworks. The Virtio queue is used for transmitting data to the modem, and the new vringh implementation is r

[PATCHv2 vringh 2/3] virtio: Add module driver macro for virtio drivers.

2013-02-12 Thread sjur . brandeland
From: Sjur Brændeland Add helper macro for drivers that don't do anything special in module init/exit. Signed-off-by: Sjur Brændeland --- include/linux/virtio.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h inde

[PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings)

2013-02-12 Thread sjur . brandeland
From: Sjur Brændeland Add functions for creating, deleting and kicking host-side virtio rings. The host ring is not integrated with virtiqueues and cannot be managed through virtio-config. Remoteproc must export functions for handling the host-side virtio rings. The functions rproc_virtio_get_v

[PATCHv2 vringh 0/3] Introduce CAIF Virtio driver

2013-02-12 Thread sjur . brandeland
From: Sjur Brændeland This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. Changes since V1: - Use the new iov helper functions, and simplify iov handling. However this triggers compile warnings, as it takes struct

[PATCH 4/9] remoteproc: Parse STE-firmware and find resource table address

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Parse the STE firmware and scan the TOC-table to find the address of the resource table. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/ste_modem_rproc.c | 43 +++--- 1 files changed, 29 insertions(+), 14 deletions(-) diff --git a/dri

[PATCH 2/9] remoteproc: Refactor function rproc_elf_find_rsc_table

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Refactor rproc_elf_find_rsc_table and split out the scanning for the section header named resource table. This is done to prepare for loading firmware once. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c | 79 ++--

[PATCH 1/9] remoteproc: Bugfix: Deallocate firmware image on shutdown

2013-02-10 Thread sjur . brandeland
From: Dmitry Tarnyagin Fixes coherent memory leakage, caused by non-deallocated firmware image chunk. Signed-off-by: Dmitry Tarnyagin --- drivers/remoteproc/ste_modem_rproc.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/remoteproc/ste_modem_rproc.c b/

[PATCH 8/9] remoteproc: Calculate max_notifyid by counting vrings

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Simplify handling of max_notifyid by simply counting the number of vrings. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 34 +++--- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/drivers/remotepro

[PATCH 6/9] remoteproc: Support virtio config space.

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Support virtio configuration space and device status and feature negotiation with remote device. This virtio device can now access the resource table in shared memory. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c |3 -- drivers/remoteproc/

[PATCH 7/9] remoteproc: Code cleanup of resource parsing

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Combine the almost identical functions rproc_handle_virtio_rsc and rproc_handle_boot_rsc. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 51 -- 1 files changed, 12 insertions(+), 39 deletions(-) diff --git a/dr

[PATCH 5/9] remoteproc: Set vring addresses in resource table

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Set the vring addresses in the resource table so that the remote device can read the actual addresses used. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 13 +++-- include/linux/remoteproc.h |2 ++ 2 files changed, 13 in

[PATCH 9/9] remoteproc: Always perserve resource table data

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Copy resource table from first to second firmware loading. After firmware is loaded to memory, update the vdevs resource pointer to the resource table kept in device memory. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 61 +++

[PATCH 0/9] remoteproc: Support bi-directional vdev config space

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland This patch-set adds support for shared resource table between Linux kernel and remote devices. - dynamically-allocated address of the vrings can be communicated - vdev statuses can be communicated - virtio config space becomes bi-directional - virtio feature negotiation is t

[PATCH 3/9] remoteproc: Parse ELF file to find resource table address

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Add function find_rsc_table_va to firmware ops. This function returns the location of the resource table in shared memory after loading. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c | 17 - drivers/remoteproc/remoteproc_i

[PATCH vringh 1/2] remoteproc: Add support for vringh (Host vrings)

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland Add functions for creating, deleting and kicking host-side virtio rings. The host ring is not integrated with virtiqueues and cannot be managed through virtio-config. Remoteproc must export functions for handling the host-side virtio rings. The functions rproc_virtio_get_v

[PATCH vringh 2/2] caif_virtio: Introduce caif over virtio

2013-02-10 Thread sjur . brandeland
From: Vikram ARV Add the the Virtio shared memory driver for STE Modems. caif_virtio is implemented utilizing the virtio framework for data transport and is managed with the remoteproc frameworks. The Virtio queue is used for transmitting data to the modem, and the new vringh implementation is r

[PATCH vringh 0/2] Introduce CAIF Virtio driver

2013-02-10 Thread sjur . brandeland
From: Sjur Brændeland This patch-set introduces the CAIF Virtio Link layer driver. This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. Regards, Sjur cc: Rusty Russell cc: Ohad Ben-Cohen cc: David S. Miller cc: I

[RFC] remoteproc: Add support for host-side (reversed) vrings

2013-01-18 Thread sjur . brandeland
From: Sjur Brændeland Hi Ohad, Ido and Rusty. Rusty has implemented host-side virtio ring. I will be using vringh for the caif_virtio driver. But we need to figure out how to integrate the vringh into remoteproc. Below is my initial stab on this. This code is completely untested, but I'd love t

[PATCH] remoteproc: Deallocate firmware image on shutdown

2013-01-17 Thread sjur . brandeland
From: Dmitry Tarnyagin Fixes coherent memory leakage, caused by non-deallocated firmware image chunk. Signed-off-by: Dmitry Tarnyagin --- This fix is intended for v3.8. Thanks, Sjur drivers/remoteproc/ste_modem_rproc.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff -

[RFCv3 04/11] remoteproc: Refactor function rproc_elf_find_rsc_table

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Refactor rproc_elf_find_rsc_table and split out the scanning for the section header named resource table. This is done to prepare for loading firmware once. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c | 79 ++--

[RFCv3 06/11] remoteproc: Parse STE-firmware and find resource table address

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Parse the STE firmware and scan the TOC-table to find the address of the resource table. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/ste_modem_rproc.c | 43 +++--- 1 files changed, 29 insertions(+), 14 deletions(-) diff --git a/dri

[RFCv3 00/11] remoteproc: Support bi-directional vdev config space

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Changes since v2: - Addressed review comments - Reworked patch "Load firmware once". This patch-set is not yet thoroughly tested, but works in my simulated environment. This patch-set adds support for shared resource table between Linux kernel and remote devices. - dynam

[RFCv3 02/11] remoteproc: Code cleanup of resource parsing

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Combine the almost identical functions rproc_handle_virtio_rsc and rproc_handle_boot_rsc. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 51 -- 1 files changed, 12 insertions(+), 39 deletions(-) diff --git a/dr

[RFCv3 07/11] remoteproc: Add state RPROC_LOADED

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Add state RPROC_LOADED as firmware loading and startup will be different states. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_debugfs.c |1 + include/linux/remoteproc.h |3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diff

[RFCv3 08/11] remoteproc: Set vring addresses in resource table

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Set the vring addresses in the resource table so that the remote device can read the actual addresses used. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 13 +++-- include/linux/remoteproc.h |2 ++ 2 files changed, 13 in

[RFCv3 03/11] remoteproc: Move check on firmware name to rproc_add

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Verify that firmware name is defined in rproc_add. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remot

[RFCv3 09/11] remoteproc: Load firmware once.

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Add support for two-way virtio configuration space and status. Ring-addresses and negotiated feature-bits are readable from device. Allocation of larger Carveouts are also supported. And when adding a new rproc device, the firmware is now loaded once not twice. But there is

[RFCv3 10/11] remoteproc: Support virtio config space.

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Support virtio configuration space and device status and feature negotiation with remote device. This virtio device can now access the resource table in shared memory. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c |3 -- drivers/remoteproc/

[RFCv3 11/11] remoteproc: Calculate max_notifyid by counting vrings

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Simplify hanling of max_notifyid by simply counting the number of vrings. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 20 +--- 1 files changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/remoteproc/remoteproc_cor

[RFCv3 01/11] remoteproc: Move enable_iommu to rproc_boot

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Call enable_iommu from rproc_boot and disable_iommu from rproc_shutdown. This make it simpler to keep enable/disable in balance. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c | 22 -- 1 files changed, 12 insertions(+), 10 de

[RFCv3 05/11] remoteproc: Parse ELF file to find resource table address

2013-01-16 Thread sjur . brandeland
From: Sjur Brændeland Add function find_rsc_table_va to firmware ops. This function returns the location of the resource table in shared memory after loading. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_elf_loader.c | 17 - drivers/remoteproc/remoteproc_i

[PATCH resend] virtio_console: Free buffers from out-queue upon close

2012-11-07 Thread sjur . brandeland
From: Sjur Brændeland Free pending output buffers from the virtio out-queue when host has acknowledged port_close. Also removed WARN_ON() in remove_port_data(). Signed-off-by: Sjur Brændeland --- Resending, this time including a proper "Subject"... -- Hi Amit, Note: This patch is compile tes

[no subject]

2012-11-07 Thread sjur . brandeland
>From 0ce16d6a0270daebd9972e94a834034a093228b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sjur=20Br=C3=A6ndeland?= Date: Wed, 7 Nov 2012 12:20:07 +0100 Subject: [PATCH] virtio_console:Free buffers from out-queue upon close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-En

[PATCHv7 1/4] virtio_console: Free buffer if splice fails

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland Free the allocated scatter list if send_pages fails in function port_splice_write. Signed-off-by: Sjur Brændeland --- drivers/char/virtio_console.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virti

[PATCHv7 4/4] virtio_console: Add support for remoteproc serial

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds support for DMA allocation of

[PATCHv7 3/4] virtio_console: Merge struct buffer_token into struct port_buffer

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland Refactoring the splice functionality by unifying the approach for sending scatter-lists and regular buffers. This simplifies buffer handling and reduces code size. Splice will now allocate a port_buffer and send_buf() and free_buf() can always be used for any buffer. Signed

[PATCHv7 2/4] virtio_console: Use kmalloc instead of kzalloc

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland Avoid the more cpu expensive kzalloc when allocating buffers. Originally kzalloc was intended for isolating the guest from the host by not sending random guest data to the host. But device isolation is not yet in place so kzalloc is not really needed. Signed-off-by: Sjur Br

[PATCHv7 0/4] virtio_console: Add rproc_serial driver

2012-10-15 Thread sjur . brandeland
From: Sjur Brændeland This patch-set introduces a new virtio type "rproc_serial" for communicating with remote processors over shared memory. The driver depends on the the remoteproc framework. As preparation for introducing "rproc_serial" I've done a refactoring of the transmit buffer handling.

[PATCH 3/3] virtio_console: Don't initialize buffers to zero

2012-09-25 Thread sjur . brandeland
From: Sjur Brændeland Skip initializing the receive buffers. Signed-off-by: Sjur Brændeland --- drivers/char/virtio_console.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index faedd2c..e7d8787 100644 ---

[PATCHv5 2/3] virtio_console: Add support for remoteproc serial

2012-09-25 Thread sjur . brandeland
From: Sjur Brændeland Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds support for DMA allocation of

[PATCH 1/3] virtio_console:Merge struct buffer_token into struct port_buffer

2012-09-25 Thread sjur . brandeland
From: Sjur Brændeland This merge reduces code size by unifying the approach for sending scatter-lists and regular buffers. Any type of write operation (splice, write, put_chars) will now allocate a port_buffer and send_buf() and free_buf() can always be used. Signed-off-by: Sjur Brændeland cc:

[PATCHv6 0/3] virtio_console: Add rproc_serial device

2012-09-25 Thread sjur . brandeland
From: Sjur Brændeland I thought rebasing rproc_serial to linux-next was going to be trivial. But when starting the merge I realized that I had to refactor the the patches from Masami Hiramatsu. The splice support has the same issue as I faced, with different type of buffers in the out_vq. So I e

[PATCHv4] virtio_console: Add support for remoteproc serial

2012-09-24 Thread sjur . brandeland
From: Sjur Brændeland Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds support for DMA allocation of

[PATCHv3] virtio_console: Add support for remoteproc serial

2012-09-20 Thread sjur . brandeland
From: Sjur Brændeland Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (11) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds support for DMA allocation of

[PATCHv4] remoteproc: Add STE modem driver for remoteproc

2012-09-20 Thread sjur . brandeland
From: Sjur Brændeland Add support for the STE modem shared memory driver. This driver hooks into the remoteproc framework in order to manage configuration and the virtio devices. This driver adds custom firmware handlers, because STE modem uses a custom firmware layout. Signed-off-by: Sjur Bræn

[PATCHv2] virtio_console: Add support for remoteproc serial

2012-09-19 Thread sjur . brandeland
From: Sjur Brændeland Add a simple serial connection driver called VIRTIO_ID_RPROC_SERIAL (0xB) for communicating with a remote processor in an asymmetric multi-processing configuration. This implementation reuses the existing virtio_console implementation, and adds support for DMA allocation of

[PATCHv3] remoteproc: Add STE modem driver for remoteproc

2012-09-19 Thread sjur . brandeland
From: Sjur Brændeland Add support for the STE modem shared memory driver. This driver hooks into the remoteproc framework in order to manage configuration and the virtio devices. This driver adds custom firmware handlers, because STE modem uses a custom firmware layout. Signed-off-by: Sjur Bræn

[PATCHv3] remtoteproc: Export notification id range

2012-09-18 Thread sjur . brandeland
From: Sjur Brændeland Some of the rproc drivers needs to know the range of the notification IDs used for notifying the device. Export a variable in struct rproc holding the largest allocated notification id. Signed-off-by: Sjur Brændeland --- Changes since v2: Use idr_for_each() instead of nes

[RFCv2] remoteproc: Add STE modem driver for remoteproc

2012-09-18 Thread sjur . brandeland
From: Sjur Brændeland Add support for the STE modem shared memory driver. This driver hooks into the remoteproc framework in order to manage configuration and the virtio devices. This driver adds custom firmware handlers, because STE modem uses a custom firmware layout. Signed-off-by: Sjur Bræn

[PATCHv2] remoteproc: Export notification id range

2012-09-13 Thread sjur . brandeland
From: Sjur Brændeland Some of the rproc drivers needs to know the range of the notification IDs used for notifying the device. Export a variable in struct rproc holding the largest allocated notification id. Signed-off-by: Sjur Brændeland --- cc: Linus Walleij cc: linux-kernel@vger.kernel.org

[PATCH] virtio_console: Add support for remoteproc serial

2012-09-13 Thread sjur . brandeland
From: Sjur Brændeland Add a virtio remoteproc serial driver: VIRTIO_ID_RPROC_SERIAL (0xB) for communicating with a remote processor in an asymmetric multi-processing configuration. The virtio remoteproc serial driver reuses the existing virtio_console implementation, and adds support for DMA all

[PATCH] remoteproc: Add dependency to HAS_DMA

2012-09-13 Thread sjur . brandeland
From: Sjur Brændeland Remoteproc relies on HAS_DMA, add this dependency in Kconfig. Signed-off-by: Sjur Brændeland --- cc: linux-kernel@vger.kernel.org cc: Rusty Russell drivers/remoteproc/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/Kconfig b/drivers/rem

[RFCv3] virtio_console: Add support for virtio remoteproc serial

2012-09-10 Thread sjur . brandeland
From: Sjur Brændeland Add a virtio remoteproc serial driver: VIRTIO_ID_RPROC_SERIAL (0xB) for communicating with a remote processor in an asymmetric multi-processing configuration. The virtio remoteproc serial driver reuses the existing virtio_console implementation, and adds support for DMA all

[RFCv2 2/2] virtio_console: Add feature to disable console port

2012-09-06 Thread sjur . brandeland
From: Sjur Brændeland Add the feature VIRTIO_CONSOLE_F_NO_HVC. With this bit set only port-devices are created. The console port and port control virtio-queues are not created. The console port is not suited for communicating to a remote processor because of it's blocking behavior. But the port-

[RFCv2 1/2] virtio_console: Add support for DMA memory allocation

2012-09-06 Thread sjur . brandeland
From: Sjur Brændeland Add feature VIRTIO_CONSOLE_F_DMA_MEM. If the architecture has DMA support and this feature bit is set, the virtio data buffers will be allocated from DMA memory. If the device requests the feature VIRTIO_CONSOLE_F_DMA_MEM, but the architecture don't support DMA the driver's

[PATCHv2] virtio: Don't access device data after unregistration.

2012-09-06 Thread sjur . brandeland
From: Sjur Brændeland Fix panic in virtio.c when CONFIG_DEBUG_SLAB is set. device_unregister() drops reference to device so put_device() could invoke release callback. In this case the release callback will free the device. Make sure we don't access device after unregister by fetching the device

[RFC 2/2] virtio_console: Add feature to disable console port

2012-09-03 Thread sjur . brandeland
From: Sjur Brændeland Add the feature VIRTIO_CONSOLE_F_NO_HVC. With this bit set only port-devices are created. The console port and port control virtio-queues are not created. The console port is not suited for communicating to a remote processor because of it's blocking behavior. But the port-

[RFC 1/2] virtio_console: Add support for DMA memory allocation

2012-09-03 Thread sjur . brandeland
From: Sjur Brændeland Add feature VIRTIO_CONSOLE_F_DMA_MEM. If the architecture has DMA support and this feature bit is set, the virtio data buffers will be allocated from DMA memory. This is needed for using virtio_console from the remoteproc framework. Signed-off-by: Sjur Brændeland cc: Rust

[PATCH] virtio: Don't access device data after unregistration.

2012-09-03 Thread sjur . brandeland
From: Sjur Brændeland Fix panic in virtio.c when CONFIG_DEBUG_SLAB is set. Use device_del() and put_device() instead of device_unregister(), and access device data before calling put_device(). Signed-off-by: Sjur Brændeland cc: Guzman Lugo, Fernadndo cc: Michael S. Tsirkin cc: virtualizat...

[RFC 3/3] remoteproc: Add STE modem driver for remoteproc

2012-09-03 Thread sjur . brandeland
From: Sjur Brændeland Add support for the STE modem shared memory driver. This driver hooks into the remoteproc framework in order to manage configuration and the virtio devices. When this platform device driver is probed, a character device is added. This character device is used to start and s

[RFC 1/3] include/linux: Add API for kicking modem

2012-09-03 Thread sjur . brandeland
From: Sjur Brændeland Add an API for subscribing to and generating kicks (interrupts) to the modem. Signed-off-by: Sjur Brændeland cc: Linus Walleij cc: Arun Murthy --- include/linux/modem_kick.h | 126 1 files changed, 126 insertions(+), 0 delet

[RFC 2/3] include/linux: Add header file for modem power control.

2012-09-03 Thread sjur . brandeland
From: Sjur Brændeland Add a API for modem power control. Signed-off-by: Sjur Brændeland cc: Linus Walleij cc: Arun Murthy --- include/linux/modem_ctrl.h | 61 1 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 include/linux/mo

[PATCH] remtoteproc: Export notification id range

2012-09-03 Thread sjur . brandeland
From: Sjur Brændeland Some of the rproc drivers needs to know the range of the notification IDs used for notifying the device. Export a variable in struct rproc holding the largest allocated notification id. Signed-off-by: Sjur Brændeland --- drivers/remoteproc/remoteproc_core.c |3 +++ in