[PATCH V4 5/5] virtio: Bind virtio device to device-tree node

2021-07-26 Thread Viresh Kumar
Bind the virtio devices with their of_node. This will help users of the virtio devices to mention their dependencies on the device in the DT itself. Like GPIO pin users can use the phandle of the device node, or the node may contain more subnodes to add i2c or spi eeproms and other users.

[PATCH V4 4/5] uapi: virtio_ids: Sync ids with specification

2021-07-26 Thread Viresh Kumar
This synchronizes the virtio ids with the latest list from virtio specification. Signed-off-by: Viresh Kumar --- include/uapi/linux/virtio_ids.h | 12 1 file changed, 12 insertions(+) diff --git a/include/uapi/linux/virtio_ids.h b/include/uapi/linux/virtio_ids.h index

[PATCH V4 3/5] dt-bindings: gpio: Add bindings for gpio-virtio

2021-07-26 Thread Viresh Kumar
This patch adds binding for virtio GPIO controller, it is based on virtio-device bindings. Reviewed-by: Arnd Bergmann Signed-off-by: Viresh Kumar --- .../devicetree/bindings/gpio/gpio-virtio.yaml | 59 +++ 1 file changed, 59 insertions(+) create mode 100644

[PATCH V4 2/5] dt-bindings: i2c: Add bindings for i2c-virtio

2021-07-26 Thread Viresh Kumar
This patch adds binding for virtio I2C device, it is based on virtio-device bindings. Acked-by: Wolfram Sang Reviewed-by: Arnd Bergmann Signed-off-by: Viresh Kumar --- .../devicetree/bindings/i2c/i2c-virtio.yaml | 51 +++ 1 file changed, 51 insertions(+) create mode 100644

[PATCH V4 1/5] dt-bindings: virtio: Add binding for virtio devices

2021-07-26 Thread Viresh Kumar
Allow virtio device sub-nodes to be added to the virtio mmio or pci nodes. The compatible property for virtio device must be of the format "virtio,device", where ID is virtio device ID in hexadecimal format. Signed-off-by: Viresh Kumar --- .../devicetree/bindings/virtio/mmio.yaml | 3 +-

[PATCH V4 0/5] virtio: Add virtio-device bindings

2021-07-26 Thread Viresh Kumar
Hi, Currently the DT only provides support for following node types for virtio-mmio nodes: virtio_mmio@a00 { dma-coherent; interrupts = <0x00 0x10 0x01>; reg = <0x00 0xa00 0x00 0x200>; compatible = "virtio,mmio";

Re: [PATCH V3 1/5] dt-bindings: virtio: Add binding for virtio devices

2021-07-26 Thread Viresh Kumar
On 26-07-21, 08:57, Rob Herring wrote: > On Sun, Jul 25, 2021 at 10:52 PM Viresh Kumar wrote: > > +description: | > > + Exactly one node describing the virtio device. The name of the node > > isn't > > + significant but its phandle can be used to by a user of the virtio > >

Re: [PATCH v15] i2c: virtio: add a virtio i2c frontend driver

2021-07-26 Thread Viresh Kumar
On 27-07-21, 10:15, Jie Deng wrote: > > On 2021/7/23 17:03, Arnd Bergmann wrote: > > On Fri, Jul 23, 2021 at 7:44 AM Jie Deng wrote: > > > > > + > > > + ret = virtio_i2c_setup_vqs(vi); > > > + if (ret) > > > + return ret; > > > + > > > + vi->adap.owner =

Re: [PATCH v15] i2c: virtio: add a virtio i2c frontend driver

2021-07-26 Thread Jie Deng
On 2021/7/23 17:03, Arnd Bergmann wrote: On Fri, Jul 23, 2021 at 7:44 AM Jie Deng wrote: + + ret = virtio_i2c_setup_vqs(vi); + if (ret) + return ret; + + vi->adap.owner = THIS_MODULE; + snprintf(vi->adap.name, sizeof(vi->adap.name), +

Re: [RFC 0/3] cpuidle: add poll_source API and virtio vq polling

2021-07-26 Thread Rafael J. Wysocki
On Mon, Jul 26, 2021 at 6:04 PM Stefan Hajnoczi wrote: > > On Mon, Jul 26, 2021 at 05:47:19PM +0200, Rafael J. Wysocki wrote: > > On Mon, Jul 26, 2021 at 5:17 PM Stefan Hajnoczi wrote: > > > > > > On Thu, Jul 22, 2021 at 05:04:57PM +0800, Jason Wang wrote: > > > > > > > > 在 2021/7/21 下午5:41,

Re: [RFC 0/3] cpuidle: add poll_source API and virtio vq polling

2021-07-26 Thread Stefan Hajnoczi
On Mon, Jul 26, 2021 at 05:47:19PM +0200, Rafael J. Wysocki wrote: > On Mon, Jul 26, 2021 at 5:17 PM Stefan Hajnoczi wrote: > > > > On Thu, Jul 22, 2021 at 05:04:57PM +0800, Jason Wang wrote: > > > > > > 在 2021/7/21 下午5:41, Stefan Hajnoczi 写道: > > > > On Wed, Jul 21, 2021 at 11:29:55AM +0800,

Re: [RFC 0/3] cpuidle: add poll_source API and virtio vq polling

2021-07-26 Thread Rafael J. Wysocki
On Mon, Jul 26, 2021 at 5:17 PM Stefan Hajnoczi wrote: > > On Thu, Jul 22, 2021 at 05:04:57PM +0800, Jason Wang wrote: > > > > 在 2021/7/21 下午5:41, Stefan Hajnoczi 写道: > > > On Wed, Jul 21, 2021 at 11:29:55AM +0800, Jason Wang wrote: > > > > 在 2021/7/14 上午12:19, Stefan Hajnoczi 写道: > > > > > These

Re: [RFC 0/3] cpuidle: add poll_source API and virtio vq polling

2021-07-26 Thread Stefan Hajnoczi
On Thu, Jul 22, 2021 at 05:04:57PM +0800, Jason Wang wrote: > > 在 2021/7/21 下午5:41, Stefan Hajnoczi 写道: > > On Wed, Jul 21, 2021 at 11:29:55AM +0800, Jason Wang wrote: > > > 在 2021/7/14 上午12:19, Stefan Hajnoczi 写道: > > > > These patches are not polished yet but I would like request feedback on >

ICITS'22 - The 2022 International Conference on Information Technology & Systems | Costa Rica

2021-07-26 Thread ML
ICITS'22 - The 2022 International Conference on Information Technology & Systems San Carlos, Costa Rica, 9 - 11 February 2022 http://icits.me

Re: [PATCH 4/4] vdpa: Add documentation for vdpa_alloc_device() macro

2021-07-26 Thread Stefano Garzarella
On Thu, Jul 15, 2021 at 04:00:26PM +0800, Xie Yongji wrote: The return value of vdpa_alloc_device() macro is not very clear, so that most of callers did the wrong check. Let's add some comments to better document it. Signed-off-by: Xie Yongji --- include/linux/vdpa.h | 11 +++ 1 file

Re: [PATCH 3/4] vDPA/ifcvf: Fix return value check for vdpa_alloc_device()

2021-07-26 Thread Stefano Garzarella
On Thu, Jul 15, 2021 at 04:00:25PM +0800, Xie Yongji wrote: The vdpa_alloc_device() returns an error pointer upon failure, not NULL. To handle the failure correctly, this replaces NULL check with IS_ERR() check and propagate the error upwards. Fixes: 5a2414bc454e ("virtio: Intel IFC VF driver

Re: [PATCH 2/4] vp_vdpa: Fix return value check for vdpa_alloc_device()

2021-07-26 Thread Stefano Garzarella
On Thu, Jul 15, 2021 at 04:00:24PM +0800, Xie Yongji wrote: The vdpa_alloc_device() returns an error pointer upon failure, not NULL. To handle the failure correctly, this replaces NULL check with IS_ERR() check and propagate the error upwards. Fixes: 64b9f64f80a6 ("vdpa: introduce virtio pci

Re: [PATCH 1/4] vdpa_sim: Fix return value check for vdpa_alloc_device()

2021-07-26 Thread Stefano Garzarella
On Thu, Jul 15, 2021 at 04:00:23PM +0800, Xie Yongji wrote: The vdpa_alloc_device() returns an error pointer upon failure, not NULL. To handle the failure correctly, this replaces NULL check with IS_ERR() check and propagate the error upwards. Fixes: 2c53d0f64c06 ("vdpasim: vDPA device

Re: [PATCH V3 2/5] dt-bindings: i2c: Add bindings for i2c-virtio

2021-07-26 Thread Viresh Kumar
On 26-07-21, 10:11, Arnd Bergmann wrote: > On Mon, Jul 26, 2021 at 10:06 AM Arnd Bergmann wrote: > > > > On Mon, Jul 26, 2021 at 6:52 AM Viresh Kumar > > wrote: > > > > > > This patch adds binding for virtio I2C device, it is based on > > > virtio-device bindings. > > > > > > Acked-by: Wolfram

Re: [PATCH v2 2/9] mm/memory_hotplug: introduce "auto-movable" online policy

2021-07-26 Thread David Hildenbrand
+struct auto_movable_stats { + unsigned long kernel_early_pages; + unsigned long movable_pages; +}; + +static void auto_movable_stats_account_zone(struct auto_movable_stats *stats, + struct zone *zone) +{ + if (zone_idx(zone) ==