All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Unique-id and fixes to some protocols
@ 2018-06-08  6:08 Oleksandr Andrushchenko
  2018-06-08  6:08 ` [PATCH v2 1/4] xen/kbdif: Move multi-touch device parameters to backend nodes Oleksandr Andrushchenko
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Oleksandr Andrushchenko @ 2018-06-08  6:08 UTC (permalink / raw)
  To: xen-devel, konrad.wilk, jgross; +Cc: andr2000, Oleksandr Andrushchenko

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

Hi, all!

This series fixes inconsistency in section used while defining kbdif
XenBus entries and adds string "unique-id" XenBus entry missing in
displif and kbdif. It also changes sndif's "unique-id" field from
integer to string to be aligned with displif/kbdif.

Konrad, I added your r-b tags to *all* the patches, so please
let me know if I have to drop those (if this is not what you meant
on the mailing-list).

Juergen, could you please release ack the rest of the patches as these
are needed to add sound configuration to libxl/xl and extend input
to support multi-touch. These are the changes to header files which are
not involved in Xen build, so it seems to be safe.
This will also unblock ptorocol synchronization with Linux, so I can
push an extension to xen-kbdfront driver (disable feature).

Thank you,
Oleksandr Andrushchenko

Changes since v1:
 - Changed type of "unique-id" from uint32_t to string (Konrad)
 - Added r-b's

Oleksandr Andrushchenko (4):
  xen/kbdif: Move multi-touch device parameters to backend nodes
  xen/kbdif: Add unique input device identifier
  xen/displif: Add unique display connector identifier
  xen/sndif: Change stream's unique-id to string

 xen/include/public/io/displif.h |  8 ++++++
 xen/include/public/io/kbdif.h   | 48 ++++++++++++++++++++-------------
 xen/include/public/io/sndif.h   | 10 +++----
 3 files changed, 41 insertions(+), 25 deletions(-)

-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2 1/4] xen/kbdif: Move multi-touch device parameters to backend nodes
  2018-06-08  6:08 [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
@ 2018-06-08  6:08 ` Oleksandr Andrushchenko
  2018-06-08  6:08 ` [PATCH v2 2/4] xen/kbdif: Add unique input device identifier Oleksandr Andrushchenko
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Oleksandr Andrushchenko @ 2018-06-08  6:08 UTC (permalink / raw)
  To: xen-devel, konrad.wilk, jgross; +Cc: andr2000, Oleksandr Andrushchenko

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

In current kbdif protocol definition multi-touch device parameters
are described as a part of frontend's XenBus configuration nodes while
they belong to backend's configuration. Fix this by moving
the parameters to the proper section.

Fixes: b7a3ce49d528 ("xen/kbdif: add multi-touch support")

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reported-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Reviewed-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
---
 xen/include/public/io/kbdif.h | 38 +++++++++++++++++------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/xen/include/public/io/kbdif.h b/xen/include/public/io/kbdif.h
index 23d1f70d5210..a68da0f1a37f 100644
--- a/xen/include/public/io/kbdif.h
+++ b/xen/include/public/io/kbdif.h
@@ -96,6 +96,25 @@
  *      Maximum Y coordinate (height) to be used by the frontend
  *      while reporting input events, pixels, [0; UINT32_MAX].
  *
+ *----------------------- Multi-touch Device Parameters ----------------------
+ *
+ * multi-touch-num-contacts
+ *      Values:         <uint>
+ *
+ *      Number of simultaneous touches reported.
+ *
+ * multi-touch-width
+ *      Values:         <uint>
+ *
+ *      Width of the touch area to be used by the frontend
+ *      while reporting input events, pixels, [0; UINT32_MAX].
+ *
+ * multi-touch-height
+ *      Values:         <uint>
+ *
+ *      Height of the touch area to be used by the frontend
+ *      while reporting input events, pixels, [0; UINT32_MAX].
+ *
  *****************************************************************************
  *                            Frontend XenBus Nodes
  *****************************************************************************
@@ -143,25 +162,6 @@
  *
  *      OBSOLETE, not recommended for use.
  *      PFN of the shared page.
- *
- *----------------------- Multi-touch Device Parameters -----------------------
- *
- * multi-touch-num-contacts
- *      Values:         <uint>
- *
- *      Number of simultaneous touches reported.
- *
- * multi-touch-width
- *      Values:         <uint>
- *
- *      Width of the touch area to be used by the frontend
- *      while reporting input events, pixels, [0; UINT32_MAX].
- *
- * multi-touch-height
- *      Values:         <uint>
- *
- *      Height of the touch area to be used by the frontend
- *      while reporting input events, pixels, [0; UINT32_MAX].
  */
 
 /*
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 2/4] xen/kbdif: Add unique input device identifier
  2018-06-08  6:08 [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
  2018-06-08  6:08 ` [PATCH v2 1/4] xen/kbdif: Move multi-touch device parameters to backend nodes Oleksandr Andrushchenko
@ 2018-06-08  6:08 ` Oleksandr Andrushchenko
  2018-06-08 12:40   ` Juergen Gross
  2018-06-08  6:08 ` [PATCH v2 3/4] xen/displif: Add unique display connector identifier Oleksandr Andrushchenko
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Oleksandr Andrushchenko @ 2018-06-08  6:08 UTC (permalink / raw)
  To: xen-devel, konrad.wilk, jgross; +Cc: andr2000, Oleksandr Andrushchenko

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

If frontend is configured to expose multiple input device instances
then backend may require a way to uniquely identify concrete input
device within the frontend. This is useful for use-cases where
virtual input device needs to be matched to physical input device.
Add XenBus "unique-id" node parameter, so this sort of use-cases can
be implemented.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 xen/include/public/io/kbdif.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/xen/include/public/io/kbdif.h b/xen/include/public/io/kbdif.h
index a68da0f1a37f..a6b01c52c79f 100644
--- a/xen/include/public/io/kbdif.h
+++ b/xen/include/public/io/kbdif.h
@@ -82,6 +82,15 @@
  *      for pointer devices should set this to 1. Raw (unscaled) values have
  *      a range of [0, 0x7fff].
  *
+ *-----------------------  Device Instance Parameters ------------------------
+ *
+ * unique-id
+ *      Values:         <string>
+ *
+ *      After device instance initialization it is assigned a unique ID,
+ *      so every instance of the frontend can be identified by the backend
+ *      by this ID. This can be UUID or such.
+ *
  *------------------------- Pointer Device Parameters ------------------------
  *
  * width
@@ -204,6 +213,7 @@
 #define XENKBD_FIELD_MT_WIDTH          "multi-touch-width"
 #define XENKBD_FIELD_MT_HEIGHT         "multi-touch-height"
 #define XENKBD_FIELD_MT_NUM_CONTACTS   "multi-touch-num-contacts"
+#define XENKBD_FIELD_UNIQUE_ID         "unique-id"
 
 /* OBSOLETE, not recommended for use */
 #define XENKBD_FIELD_RING_REF          "page-ref"
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 3/4] xen/displif: Add unique display connector identifier
  2018-06-08  6:08 [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
  2018-06-08  6:08 ` [PATCH v2 1/4] xen/kbdif: Move multi-touch device parameters to backend nodes Oleksandr Andrushchenko
  2018-06-08  6:08 ` [PATCH v2 2/4] xen/kbdif: Add unique input device identifier Oleksandr Andrushchenko
@ 2018-06-08  6:08 ` Oleksandr Andrushchenko
  2018-06-08 12:41   ` Juergen Gross
  2018-06-08  6:08 ` [PATCH v2 4/4] xen/sndif: Change stream's unique-id to string Oleksandr Andrushchenko
  2018-06-08 12:52 ` [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
  4 siblings, 1 reply; 10+ messages in thread
From: Oleksandr Andrushchenko @ 2018-06-08  6:08 UTC (permalink / raw)
  To: xen-devel, konrad.wilk, jgross; +Cc: andr2000, Oleksandr Andrushchenko

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

If frontend is configured to expose multiple connectors then backend may
require a way to uniquely identify concrete virtual connector within the
frontend. This is useful for use-cases where connector needs to be
matched to physical display connector.
Add XenBus "unique-id" node parameter, so this sort of use-cases can
be implemented.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 xen/include/public/io/displif.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/xen/include/public/io/displif.h b/xen/include/public/io/displif.h
index 8a94f1f9b9d0..cc5de9cb1f35 100644
--- a/xen/include/public/io/displif.h
+++ b/xen/include/public/io/displif.h
@@ -189,6 +189,13 @@
  *
  *----------------------------- Connector settings ----------------------------
  *
+ * unique-id
+ *      Values:         <string>
+ *
+ *      After device instance initialization each connector is assigned a
+ *      unique ID, so it can be identified by the backend by this ID.
+ *      This can be UUID or such.
+ *
  * resolution
  *      Values:         <width, uint32_t>x<height, uint32_t>
  *
@@ -368,6 +375,7 @@
 #define XENDISPL_FIELD_EVT_CHANNEL    "evt-event-channel"
 #define XENDISPL_FIELD_RESOLUTION     "resolution"
 #define XENDISPL_FIELD_BE_ALLOC       "be-alloc"
+#define XENDISPL_FIELD_UNIQUE_ID      "unique-id"
 
 /*
  ******************************************************************************
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2 4/4] xen/sndif: Change stream's unique-id to string
  2018-06-08  6:08 [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
                   ` (2 preceding siblings ...)
  2018-06-08  6:08 ` [PATCH v2 3/4] xen/displif: Add unique display connector identifier Oleksandr Andrushchenko
@ 2018-06-08  6:08 ` Oleksandr Andrushchenko
  2018-06-08 12:42   ` Juergen Gross
  2018-06-08 12:52 ` [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
  4 siblings, 1 reply; 10+ messages in thread
From: Oleksandr Andrushchenko @ 2018-06-08  6:08 UTC (permalink / raw)
  To: xen-devel, konrad.wilk, jgross; +Cc: andr2000, Oleksandr Andrushchenko

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

Display and input protocols define "unique-id" XenBus field as string
which is much more flexible in defining unique identifiers comparing
to integer used by sound protocol. For example, this allows to provide
UUIDs as unique ID's. Align sound protocol with display and input
and redefine "unique-id" field as string.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 xen/include/public/io/sndif.h | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/xen/include/public/io/sndif.h b/xen/include/public/io/sndif.h
index 417d3ebc7981..402033cf4946 100644
--- a/xen/include/public/io/sndif.h
+++ b/xen/include/public/io/sndif.h
@@ -278,13 +278,11 @@
  *      defined under the same device.
  *
  * unique-id
- *      Values:         <uint32_t>
+ *      Values:         <string>
  *
- *      After stream initialization it is assigned a unique ID (within the front
- *      driver), so every stream of the frontend can be identified by the
- *      backend by this ID. This is not equal to stream-idx as the later is
- *      zero based within the device, but this index is contigous within the
- *      driver.
+ *      After stream initialization it is assigned a unique ID, so every
+ *      stream of the frontend can be identified by the backend by this ID.
+ *      This can be UUID or such.
  *
  *-------------------- Stream Request Transport Parameters --------------------
  *
-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 2/4] xen/kbdif: Add unique input device identifier
  2018-06-08  6:08 ` [PATCH v2 2/4] xen/kbdif: Add unique input device identifier Oleksandr Andrushchenko
@ 2018-06-08 12:40   ` Juergen Gross
  0 siblings, 0 replies; 10+ messages in thread
From: Juergen Gross @ 2018-06-08 12:40 UTC (permalink / raw)
  To: Oleksandr Andrushchenko, xen-devel, konrad.wilk; +Cc: Oleksandr Andrushchenko

On 08/06/18 08:08, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> 
> If frontend is configured to expose multiple input device instances
> then backend may require a way to uniquely identify concrete input
> device within the frontend. This is useful for use-cases where
> virtual input device needs to be matched to physical input device.
> Add XenBus "unique-id" node parameter, so this sort of use-cases can
> be implemented.
> 
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 3/4] xen/displif: Add unique display connector identifier
  2018-06-08  6:08 ` [PATCH v2 3/4] xen/displif: Add unique display connector identifier Oleksandr Andrushchenko
@ 2018-06-08 12:41   ` Juergen Gross
  0 siblings, 0 replies; 10+ messages in thread
From: Juergen Gross @ 2018-06-08 12:41 UTC (permalink / raw)
  To: Oleksandr Andrushchenko, xen-devel, konrad.wilk; +Cc: Oleksandr Andrushchenko

On 08/06/18 08:08, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> 
> If frontend is configured to expose multiple connectors then backend may
> require a way to uniquely identify concrete virtual connector within the
> frontend. This is useful for use-cases where connector needs to be
> matched to physical display connector.
> Add XenBus "unique-id" node parameter, so this sort of use-cases can
> be implemented.
> 
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 4/4] xen/sndif: Change stream's unique-id to string
  2018-06-08  6:08 ` [PATCH v2 4/4] xen/sndif: Change stream's unique-id to string Oleksandr Andrushchenko
@ 2018-06-08 12:42   ` Juergen Gross
  0 siblings, 0 replies; 10+ messages in thread
From: Juergen Gross @ 2018-06-08 12:42 UTC (permalink / raw)
  To: Oleksandr Andrushchenko, xen-devel, konrad.wilk; +Cc: Oleksandr Andrushchenko

On 08/06/18 08:08, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> 
> Display and input protocols define "unique-id" XenBus field as string
> which is much more flexible in defining unique identifiers comparing
> to integer used by sound protocol. For example, this allows to provide
> UUIDs as unique ID's. Align sound protocol with display and input
> and redefine "unique-id" field as string.
> 
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 0/4] Unique-id and fixes to some protocols
  2018-06-08  6:08 [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
                   ` (3 preceding siblings ...)
  2018-06-08  6:08 ` [PATCH v2 4/4] xen/sndif: Change stream's unique-id to string Oleksandr Andrushchenko
@ 2018-06-08 12:52 ` Oleksandr Andrushchenko
  2018-06-08 14:58   ` Konrad Rzeszutek Wilk
  4 siblings, 1 reply; 10+ messages in thread
From: Oleksandr Andrushchenko @ 2018-06-08 12:52 UTC (permalink / raw)
  To: Oleksandr_Andrushchenko, xen-devel, konrad.wilk, jgross

On 06/08/2018 09:08 AM, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
>
> Hi, all!
>
> This series fixes inconsistency in section used while defining kbdif
> XenBus entries and adds string "unique-id" XenBus entry missing in
> displif and kbdif. It also changes sndif's "unique-id" field from
> integer to string to be aligned with displif/kbdif.
>
> Konrad, I added your r-b tags to *all* the patches, so please
> let me know if I have to drop those (if this is not what you meant
> on the mailing-list).
>
> Juergen, could you please release ack the rest of the patches as these
> are needed to add sound configuration to libxl/xl and extend input
> to support multi-touch. These are the changes to header files which are
> not involved in Xen build, so it seems to be safe.
> This will also unblock ptorocol synchronization with Linux, so I can
> push an extension to xen-kbdfront driver (disable feature).
>
> Thank you,
> Oleksandr Andrushchenko
>
> Changes since v1:
>   - Changed type of "unique-id" from uint32_t to string (Konrad)
>   - Added r-b's
>
> Oleksandr Andrushchenko (4):
>    xen/kbdif: Move multi-touch device parameters to backend nodes
>    xen/kbdif: Add unique input device identifier
>    xen/displif: Add unique display connector identifier
>    xen/sndif: Change stream's unique-id to string
>
>   xen/include/public/io/displif.h |  8 ++++++
>   xen/include/public/io/kbdif.h   | 48 ++++++++++++++++++++-------------
>   xen/include/public/io/sndif.h   | 10 +++----
>   3 files changed, 41 insertions(+), 25 deletions(-)
>
Konrad, if the patches seem to be ok, could you please
commit those?

Thank you,
Oleksandr

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v2 0/4] Unique-id and fixes to some protocols
  2018-06-08 12:52 ` [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
@ 2018-06-08 14:58   ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 10+ messages in thread
From: Konrad Rzeszutek Wilk @ 2018-06-08 14:58 UTC (permalink / raw)
  To: Oleksandr Andrushchenko; +Cc: jgross, xen-devel, Oleksandr_Andrushchenko

> > Oleksandr Andrushchenko (4):
> >    xen/kbdif: Move multi-touch device parameters to backend nodes
> >    xen/kbdif: Add unique input device identifier
> >    xen/displif: Add unique display connector identifier
> >    xen/sndif: Change stream's unique-id to string
> > 
> >   xen/include/public/io/displif.h |  8 ++++++
> >   xen/include/public/io/kbdif.h   | 48 ++++++++++++++++++++-------------
> >   xen/include/public/io/sndif.h   | 10 +++----
> >   3 files changed, 41 insertions(+), 25 deletions(-)
> > 
> Konrad, if the patches seem to be ok, could you please
> commit those?

Applied.
> 
> Thank you,
> Oleksandr

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-08 14:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-08  6:08 [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
2018-06-08  6:08 ` [PATCH v2 1/4] xen/kbdif: Move multi-touch device parameters to backend nodes Oleksandr Andrushchenko
2018-06-08  6:08 ` [PATCH v2 2/4] xen/kbdif: Add unique input device identifier Oleksandr Andrushchenko
2018-06-08 12:40   ` Juergen Gross
2018-06-08  6:08 ` [PATCH v2 3/4] xen/displif: Add unique display connector identifier Oleksandr Andrushchenko
2018-06-08 12:41   ` Juergen Gross
2018-06-08  6:08 ` [PATCH v2 4/4] xen/sndif: Change stream's unique-id to string Oleksandr Andrushchenko
2018-06-08 12:42   ` Juergen Gross
2018-06-08 12:52 ` [PATCH v2 0/4] Unique-id and fixes to some protocols Oleksandr Andrushchenko
2018-06-08 14:58   ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.