All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kmstest.py: Update to th latest kmsxx Python bindings
@ 2017-12-07 18:33 Laurent Pinchart
  2017-12-13 23:43 ` Kieran Bingham
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Pinchart @ 2017-12-07 18:33 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Kieran Bingham

Commit 706a44abb3aa ("Update to latest pybind11") of kmsxx broke the
test suite by changing the signature of the AtomicRequest::commit
function. Update the test suite accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 tests/kmstest.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

The aforementioned commit also broke the test suite due to two other issues
that need to be fixed in kmsxx. Two patches have been submitted for upstream
inclusion, they can in the meantime be found at

	git://git.ideasonboard.com/renesas/kmsxx.git master

diff --git a/tests/kmstest.py b/tests/kmstest.py
index 45d619c7a9be..7de785edd1e3 100755
--- a/tests/kmstest.py
+++ b/tests/kmstest.py
@@ -238,7 +238,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync(True)
         else:
-            return req.commit(self, True)
+            return req.commit(0, True)
 
     def atomic_crtc_mode_set(self, crtc, connector, mode, fb=None, sync=False):
         """Perform a mode set on the given connector and CRTC. The framebuffer,
@@ -268,7 +268,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync(True)
         else:
-            return req.commit(self, True)
+            return req.commit(0, True)
 
     def atomic_plane_set(self, plane, crtc, source, destination, fb, sync=False):
         req = pykms.AtomicReq(self.card)
@@ -287,7 +287,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync()
         else:
-            return req.commit(self)
+            return req.commit(0)
 
     def atomic_planes_disable(self, sync=True):
         req = pykms.AtomicReq(self.card)
@@ -297,7 +297,7 @@ class KMSTest(object):
         if sync:
             return req.commit_sync()
         else:
-            return req.commit(self)
+            return req.commit(0)
 
     def __handle_page_flip(self, frame, time):
         self.flips += 1
-- 
Regards,

Laurent Pinchart

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

* Re: [PATCH] kmstest.py: Update to th latest kmsxx Python bindings
  2017-12-07 18:33 [PATCH] kmstest.py: Update to th latest kmsxx Python bindings Laurent Pinchart
@ 2017-12-13 23:43 ` Kieran Bingham
  0 siblings, 0 replies; 2+ messages in thread
From: Kieran Bingham @ 2017-12-13 23:43 UTC (permalink / raw)
  To: Laurent Pinchart, linux-renesas-soc

Hi Laurent,

Thankyou for this patch. It successfully allows me to use the latest kmsxx,
rather than a much older base that I had been sat on.

Your commit title could do with an 'e' after 'th', but otherwise this patch is
good :D

On 07/12/17 18:33, Laurent Pinchart wrote:
> Commit 706a44abb3aa ("Update to latest pybind11") of kmsxx broke the
> test suite by changing the signature of the AtomicRequest::commit
> function. Update the test suite accordingly.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

> ---
>  tests/kmstest.py | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> The aforementioned commit also broke the test suite due to two other issues
> that need to be fixed in kmsxx. Two patches have been submitted for upstream
> inclusion, they can in the meantime be found at
> 
> 	git://git.ideasonboard.com/renesas/kmsxx.git master
> 
> diff --git a/tests/kmstest.py b/tests/kmstest.py
> index 45d619c7a9be..7de785edd1e3 100755
> --- a/tests/kmstest.py
> +++ b/tests/kmstest.py
> @@ -238,7 +238,7 @@ class KMSTest(object):
>          if sync:
>              return req.commit_sync(True)
>          else:
> -            return req.commit(self, True)
> +            return req.commit(0, True)
>  
>      def atomic_crtc_mode_set(self, crtc, connector, mode, fb=None, sync=False):
>          """Perform a mode set on the given connector and CRTC. The framebuffer,
> @@ -268,7 +268,7 @@ class KMSTest(object):
>          if sync:
>              return req.commit_sync(True)
>          else:
> -            return req.commit(self, True)
> +            return req.commit(0, True)
>  
>      def atomic_plane_set(self, plane, crtc, source, destination, fb, sync=False):
>          req = pykms.AtomicReq(self.card)
> @@ -287,7 +287,7 @@ class KMSTest(object):
>          if sync:
>              return req.commit_sync()
>          else:
> -            return req.commit(self)
> +            return req.commit(0)
>  
>      def atomic_planes_disable(self, sync=True):
>          req = pykms.AtomicReq(self.card)
> @@ -297,7 +297,7 @@ class KMSTest(object):
>          if sync:
>              return req.commit_sync()
>          else:
> -            return req.commit(self)
> +            return req.commit(0)
>  
>      def __handle_page_flip(self, frame, time):
>          self.flips += 1
> 

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

end of thread, other threads:[~2017-12-13 23:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07 18:33 [PATCH] kmstest.py: Update to th latest kmsxx Python bindings Laurent Pinchart
2017-12-13 23:43 ` Kieran Bingham

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.