diff mbox series

[kms-test,03/10] tests: allplanes: Log the plane IDs

Message ID 20220609234031.14803-4-laurent.pinchart@ideasonboard.com (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series Test plane alpha and zpos control | expand

Commit Message

Laurent Pinchart June 9, 2022, 11:40 p.m. UTC
Plane IDs are useful for debugging, log them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 tests/kms-test-allplanes.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Kieran Bingham June 29, 2022, 3:30 p.m. UTC | #1
Quoting Laurent Pinchart (2022-06-10 00:40:24)
> Plane IDs are useful for debugging, log them.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  tests/kms-test-allplanes.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms-test-allplanes.py b/tests/kms-test-allplanes.py
> index 0fe6cfab0a2d..96ac4f19f538 100755
> --- a/tests/kms-test-allplanes.py
> +++ b/tests/kms-test-allplanes.py
> @@ -46,7 +46,8 @@ class AllPlanesTest(kmstest.KMSTest):
>                  continue
>  
>              self.logger.log(f'Testing connector {connector.fullname}, CRTC {crtc.id}, '
> -                            f'mode {mode.name} with {len(planes)} planes')
> +                            f'mode {mode.name} with {len(planes)} planes '
> +                            f'(P: {crtc.primary_plane.id}, O: {[plane.id for plane in planes]})')

Is P plane / Primary ? And O ... Other ?

either way, it's debug info that's helpful (and I hope more obvious) to
the reader at runtime.


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

>  
>              # Create a frame buffer
>              fb = pykms.DumbFramebuffer(self.card, mode.hdisplay, mode.vdisplay, 'XR24')
> -- 
> Regards,
> 
> Laurent Pinchart
>
Laurent Pinchart June 29, 2022, 6:06 p.m. UTC | #2
On Wed, Jun 29, 2022 at 04:30:26PM +0100, Kieran Bingham wrote:
> Quoting Laurent Pinchart (2022-06-10 00:40:24)
> > Plane IDs are useful for debugging, log them.
> > 
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> >  tests/kms-test-allplanes.py | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/tests/kms-test-allplanes.py b/tests/kms-test-allplanes.py
> > index 0fe6cfab0a2d..96ac4f19f538 100755
> > --- a/tests/kms-test-allplanes.py
> > +++ b/tests/kms-test-allplanes.py
> > @@ -46,7 +46,8 @@ class AllPlanesTest(kmstest.KMSTest):
> >                  continue
> >  
> >              self.logger.log(f'Testing connector {connector.fullname}, CRTC {crtc.id}, '
> > -                            f'mode {mode.name} with {len(planes)} planes')
> > +                            f'mode {mode.name} with {len(planes)} planes '
> > +                            f'(P: {crtc.primary_plane.id}, O: {[plane.id for plane in planes]})')
> 
> Is P plane / Primary ? And O ... Other ?

It's Primary and Overlay.

> either way, it's debug info that's helpful (and I hope more obvious) to
> the reader at runtime.
> 
> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> 
> >  
> >              # Create a frame buffer
> >              fb = pykms.DumbFramebuffer(self.card, mode.hdisplay, mode.vdisplay, 'XR24')
diff mbox series

Patch

diff --git a/tests/kms-test-allplanes.py b/tests/kms-test-allplanes.py
index 0fe6cfab0a2d..96ac4f19f538 100755
--- a/tests/kms-test-allplanes.py
+++ b/tests/kms-test-allplanes.py
@@ -46,7 +46,8 @@  class AllPlanesTest(kmstest.KMSTest):
                 continue
 
             self.logger.log(f'Testing connector {connector.fullname}, CRTC {crtc.id}, '
-                            f'mode {mode.name} with {len(planes)} planes')
+                            f'mode {mode.name} with {len(planes)} planes '
+                            f'(P: {crtc.primary_plane.id}, O: {[plane.id for plane in planes]})')
 
             # Create a frame buffer
             fb = pykms.DumbFramebuffer(self.card, mode.hdisplay, mode.vdisplay, 'XR24')