search for: virtio_console_f_multiport

Displaying 20 results from an estimated 153 matches for "virtio_console_f_multiport".

2011 Mar 09
1
[PATCH] virtio console: don't manually set or finalize VIRTIO_CONSOLE_F_MULTIPORT.
...tcorp.com.au> diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -1680,17 +1680,12 @@ static int __devinit virtcons_probe(stru portdev->config.max_nr_ports = 1; if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT)) { multiport = true; - vdev->features[0] |= 1 << VIRTIO_CONSOLE_F_MULTIPORT; - vdev->config->get(vdev, offsetof(struct virtio_console_config, max_nr_ports), &portdev->config.max_nr_ports, sizeof(portdev->config.max_nr_ports)); } - /* Let th...
2011 Mar 09
1
[PATCH] virtio console: don't manually set or finalize VIRTIO_CONSOLE_F_MULTIPORT.
...tcorp.com.au> diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -1680,17 +1680,12 @@ static int __devinit virtcons_probe(stru portdev->config.max_nr_ports = 1; if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT)) { multiport = true; - vdev->features[0] |= 1 << VIRTIO_CONSOLE_F_MULTIPORT; - vdev->config->get(vdev, offsetof(struct virtio_console_config, max_nr_ports), &portdev->config.max_nr_ports, sizeof(portdev->config.max_nr_ports)); } - /* Let th...
2010 Mar 30
3
[PATCH 4/4] virtio: disable multiport console support.
...return false; } +/* This is incomplete. */ static inline bool use_multiport(struct ports_device *portdev) { - /* - * This condition can be true when put_chars is called from - * early_init - */ - if (!portdev->vdev) - return 0; - return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); + return false; } static void free_buf(struct port_buffer *buf) @@ -373,31 +368,8 @@ out: return ret; } -static ssize_t send_control_msg(struct port *port, unsigned int event, - unsigned int value) -{ - struct scatterlist sg[1]; - struct virtio_console_control cpkt; - struct virtqueue...
2010 Mar 30
3
[PATCH 4/4] virtio: disable multiport console support.
...return false; } +/* This is incomplete. */ static inline bool use_multiport(struct ports_device *portdev) { - /* - * This condition can be true when put_chars is called from - * early_init - */ - if (!portdev->vdev) - return 0; - return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); + return false; } static void free_buf(struct port_buffer *buf) @@ -373,31 +368,8 @@ out: return ret; } -static ssize_t send_control_msg(struct port *port, unsigned int event, - unsigned int value) -{ - struct scatterlist sg[1]; - struct virtio_console_control cpkt; - struct virtqueue...
2012 Nov 22
2
[PATCHv4] virtio-spec: virtio network device RFS support
...e_deleted 1986246365 1353593873 . + +\change_unchanged \end_layout @@ -6152,13 +6385,7 @@ Virtqueues 0:receiveq(port0). status open \begin_layout Plain Layout -Ports -\change_inserted 1986246365 1347188327 -1 -\change_deleted 1986246365 1347188327 -2 -\change_unchanged - onwards only if VIRTIO_CONSOLE_F_MULTIPORT is set +Ports 12 onwards only if VIRTIO_CONSOLE_F_MULTIPORT is set \end_layout \end_inset @@ -6185,13 +6412,8 @@ VIRTIO_CONSOLE_F_SIZE \begin_layout Description VIRTIO_CONSOLE_F_MULTIPORT(1) Device has support for multiple ports; configurati -on fields nr_ports and max_nr_ports are valid -\...
2012 Nov 22
2
[PATCHv4] virtio-spec: virtio network device RFS support
...e_deleted 1986246365 1353593873 . + +\change_unchanged \end_layout @@ -6152,13 +6385,7 @@ Virtqueues 0:receiveq(port0). status open \begin_layout Plain Layout -Ports -\change_inserted 1986246365 1347188327 -1 -\change_deleted 1986246365 1347188327 -2 -\change_unchanged - onwards only if VIRTIO_CONSOLE_F_MULTIPORT is set +Ports 12 onwards only if VIRTIO_CONSOLE_F_MULTIPORT is set \end_layout \end_inset @@ -6185,13 +6412,8 @@ VIRTIO_CONSOLE_F_SIZE \begin_layout Description VIRTIO_CONSOLE_F_MULTIPORT(1) Device has support for multiple ports; configurati -on fields nr_ports and max_nr_ports are valid -\...
2012 Sep 19
2
[PATCHv2] virtio_console: Add support for remoteproc serial
..._coherent(dev, size, cpu_addr, dma_handle); + return; + } + kfree(cpu_addr); +} + static inline bool use_multiport(struct ports_device *portdev) { /* @@ -334,20 +382,22 @@ static inline bool use_multiport(struct ports_device *portdev) return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); } -static void free_buf(struct port_buffer *buf) +static void +free_buf(struct virtqueue *vq, struct port_buffer *buf, size_t buf_size) { - kfree(buf->buf); + free_databuf(vq->vdev, buf_size, buf->buf); kfree(buf); } -static struct port_buffer *alloc_buf(size_t buf_size) +static...
2012 Sep 19
2
[PATCHv2] virtio_console: Add support for remoteproc serial
..._coherent(dev, size, cpu_addr, dma_handle); + return; + } + kfree(cpu_addr); +} + static inline bool use_multiport(struct ports_device *portdev) { /* @@ -334,20 +382,22 @@ static inline bool use_multiport(struct ports_device *portdev) return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); } -static void free_buf(struct port_buffer *buf) +static void +free_buf(struct virtqueue *vq, struct port_buffer *buf, size_t buf_size) { - kfree(buf->buf); + free_databuf(vq->vdev, buf_size, buf->buf); kfree(buf); } -static struct port_buffer *alloc_buf(size_t buf_size) +static...
2010 Apr 08
3
[PATCH 00/11] (v6) virtio: console: Fixes, new way of discovering ports
Hello, This series reworks the ABI to allow port discovery (only) via the control queue and enable multiport again. In addition, it adds support for non-blocking write() support, which means no spinning. This works fine with the recent patches that are on qemu-devel. Also included is removal of hvc_remove() as removing one such console port causes other console ports (registered with hvc) to
2010 Apr 08
3
[PATCH 00/11] (v6) virtio: console: Fixes, new way of discovering ports
Hello, This series reworks the ABI to allow port discovery (only) via the control queue and enable multiport again. In addition, it adds support for non-blocking write() support, which means no spinning. This works fine with the recent patches that are on qemu-devel. Also included is removal of hvc_remove() as removing one such console port causes other console ports (registered with hvc) to
2012 Sep 03
3
[RFC 1/2] virtio_console: Add support for DMA memory allocation
...lude <linux/workqueue.h> #include <linux/module.h> +#include <linux/dma-mapping.h> #include "../tty/hvc/hvc_console.h" /* @@ -334,20 +335,60 @@ static inline bool use_multiport(struct ports_device *portdev) return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); } -static void free_buf(struct port_buffer *buf) +/* Allcoate data buffer from DMA memory if requested */ +static inline void * +alloc_databuf(struct virtio_device *vdev, size_t size, dma_addr_t *dma_handle, + gfp_t flag) { - kfree(buf->buf); +#ifdef CONFIG_HAS_DMA + if (virtio_has_fea...
2012 Sep 03
3
[RFC 1/2] virtio_console: Add support for DMA memory allocation
...lude <linux/workqueue.h> #include <linux/module.h> +#include <linux/dma-mapping.h> #include "../tty/hvc/hvc_console.h" /* @@ -334,20 +335,60 @@ static inline bool use_multiport(struct ports_device *portdev) return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); } -static void free_buf(struct port_buffer *buf) +/* Allcoate data buffer from DMA memory if requested */ +static inline void * +alloc_databuf(struct virtio_device *vdev, size_t size, dma_addr_t *dma_handle, + gfp_t flag) { - kfree(buf->buf); +#ifdef CONFIG_HAS_DMA + if (virtio_has_fea...
2010 Apr 16
0
Update virtio spec with new virtio console ABI information
...empty buffers are placed in the receive queue for incoming data and outgoing characters are placed in the transmit queue. \end_layout @@ -4739,8 +4752,11 @@ layout The size of the console is supplied in the configuration space if the VIRTIO_CONSOLE_F_SIZE feature is set. Furthermore, if the VIRTIO_CONSOLE_F_MULTIPORT feature is set, the maximum - number of ports supported by the device and the number of ports currently - active can be fetched. + number of ports supported by the device +\change_deleted 0 1271400029 + and the number of ports currently active +\change_unchanged + can be fetched. \begin_inset list...
2010 Apr 16
0
Update virtio spec with new virtio console ABI information
...empty buffers are placed in the receive queue for incoming data and outgoing characters are placed in the transmit queue. \end_layout @@ -4739,8 +4752,11 @@ layout The size of the console is supplied in the configuration space if the VIRTIO_CONSOLE_F_SIZE feature is set. Furthermore, if the VIRTIO_CONSOLE_F_MULTIPORT feature is set, the maximum - number of ports supported by the device and the number of ports currently - active can be fetched. + number of ports supported by the device +\change_deleted 0 1271400029 + and the number of ports currently active +\change_unchanged + can be fetched. \begin_inset list...
2010 Mar 30
0
[PATCH] virtio: console: Disable multiport support
.../char/virtio_console.c @@ -1418,6 +1418,8 @@ static int __devinit virtcons_probe(struct virtio_device *vdev) multiport = false; portdev->config.nr_ports = 1; portdev->config.max_nr_ports = 1; +#if 0 + /* Multiport will be enabled after some design fixes */ if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT)) { multiport = true; vdev->features[0] |= 1 << VIRTIO_CONSOLE_F_MULTIPORT; @@ -1443,6 +1445,7 @@ static int __devinit virtcons_probe(struct virtio_device *vdev) /* Let the Host know we support multiple ports.*/ vdev->config->finalize_features(vdev); +#endif err = ini...
2010 Mar 30
0
[PATCH] virtio: console: Disable multiport support
.../char/virtio_console.c @@ -1418,6 +1418,8 @@ static int __devinit virtcons_probe(struct virtio_device *vdev) multiport = false; portdev->config.nr_ports = 1; portdev->config.max_nr_ports = 1; +#if 0 + /* Multiport will be enabled after some design fixes */ if (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT)) { multiport = true; vdev->features[0] |= 1 << VIRTIO_CONSOLE_F_MULTIPORT; @@ -1443,6 +1445,7 @@ static int __devinit virtcons_probe(struct virtio_device *vdev) /* Let the Host know we support multiple ports.*/ vdev->config->finalize_features(vdev); +#endif err = ini...
2010 Jan 20
0
[PATCH] virtio-spec: Update the spec for recent virtio-console changes
...), ... +\change_deleted 0 1263965580 +. +\change_unchanged + \end_layout \begin_layout Description @@ -4412,6 +4447,18 @@ \end_inset (0) Configuration cols and rows fields are valid. +\change_inserted 0 1263965646 + +\end_layout + +\begin_layout Description + +\change_inserted 0 1263990941 +VIRTIO_CONSOLE_F_MULTIPORT(1) Device has support for multiple ports; configurati +on fields nr_ports and max_nr_ports are valid and control virtqueues will + be used. +\change_unchanged + \end_layout \end_deeper @@ -4425,7 +4472,16 @@ \end_inset layout The size of the console is supplied in the configuration space if...
2010 Jan 20
0
[PATCH] virtio-spec: Update the spec for recent virtio-console changes
...), ... +\change_deleted 0 1263965580 +. +\change_unchanged + \end_layout \begin_layout Description @@ -4412,6 +4447,18 @@ \end_inset (0) Configuration cols and rows fields are valid. +\change_inserted 0 1263965646 + +\end_layout + +\begin_layout Description + +\change_inserted 0 1263990941 +VIRTIO_CONSOLE_F_MULTIPORT(1) Device has support for multiple ports; configurati +on fields nr_ports and max_nr_ports are valid and control virtqueues will + be used. +\change_unchanged + \end_layout \end_deeper @@ -4425,7 +4472,16 @@ \end_inset layout The size of the console is supplied in the configuration space if...
2012 Sep 07
4
[RFCv2 1/2] virtio_console: Add support for DMA memory allocation
...+#else +#define VIRTIO_CONSOLE_HAS_DMA (0) +#endif + /* * This is a global struct for storing common data for all the devices * this driver handles. @@ -334,20 +341,56 @@ static inline bool use_multiport(struct ports_device *portdev) return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); } -static void free_buf(struct port_buffer *buf) +/* Allocate data buffer from DMA memory if requested */ +static inline void * +alloc_databuf(struct virtio_device *vdev, size_t size, gfp_t flag) +{ + if (VIRTIO_CONSOLE_HAS_DMA && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_DMA_MEM...
2012 Sep 07
4
[RFCv2 1/2] virtio_console: Add support for DMA memory allocation
...+#else +#define VIRTIO_CONSOLE_HAS_DMA (0) +#endif + /* * This is a global struct for storing common data for all the devices * this driver handles. @@ -334,20 +341,56 @@ static inline bool use_multiport(struct ports_device *portdev) return portdev->vdev->features[0] & (1 << VIRTIO_CONSOLE_F_MULTIPORT); } -static void free_buf(struct port_buffer *buf) +/* Allocate data buffer from DMA memory if requested */ +static inline void * +alloc_databuf(struct virtio_device *vdev, size_t size, gfp_t flag) +{ + if (VIRTIO_CONSOLE_HAS_DMA && + virtio_has_feature(vdev, VIRTIO_CONSOLE_F_DMA_MEM...