Re: [kms-tests] [PATCH] tests: Extend BRU/BRS allocation test to cover M3-N

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Laurent,

On 17/06/2019 01:35, Laurent Pinchart wrote:
> The BRU/BRS allocation test only covers the H3 ES2.0 SoC as that was the
> only hardware platform supported by the DU driver that offered the
> required features at the time the test was written. Now that M3-N is
> supported in the DU driver, support it in the test script.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
> ---
>  tests/kms-test-brxalloc.py | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/kms-test-brxalloc.py b/tests/kms-test-brxalloc.py
> index 2e3f6cb8b39e..f1902f3baf1d 100755
> --- a/tests/kms-test-brxalloc.py
> +++ b/tests/kms-test-brxalloc.py
> @@ -17,11 +17,10 @@ class BRxAllocTest(kmstest.KMSTest):
>      def main(self):
>          # This test requires usage of two CRTCs connected to the same VSPDL
>          # instance to test dynamic assignment of the BRU and BRS to pipelines.
> -        # This is only occurs on H3 ES2.0 (and M3N which we don't support yet).
> -        # Check the SoC model through sysfs as we can't detected it through the
> -        # DRM/KMS API.
> +        # This is only occurs on H3 ES2.0 and M3N. Check the SoC model through
> +        # sysfs as we can't detected it through the DRM/KMS API.
>          soc = open("/sys/devices/soc0/soc_id", "rb").read().strip().decode()
> -        if soc != "r8a7795":
> +        if soc != "r8a7795" and soc != "r8a77965":

To be a bit more pythonic, you could write;
           if soc not in ["r8a7795", "r8a77965"]:

But I don't think this list is going to be extended any time soon so it
doesn't really matter.

Up to you either way,

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


>              self.skip("VSPDL (BRU+BRS) not available")
>              return
>  
> 

-- 
Regards
--
Kieran



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux