public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 00/13] media: renesas: vsp1: Fix v4l2-compliance failures
@ 2026-03-18 23:58 Laurent Pinchart
  2026-03-18 23:58 ` [PATCH v4 01/13] media: renesas: vsp1: Store supported media bus codes in vsp1_entity Laurent Pinchart
                   ` (13 more replies)
  0 siblings, 14 replies; 19+ messages in thread
From: Laurent Pinchart @ 2026-03-18 23:58 UTC (permalink / raw)
  To: linux-media; +Cc: linux-renesas-soc, Jacopo Mondi

Hello,

This series fixes most of the v4l2-compliance failures in the VSP1
driver. The v4l2-compliance log is very long, so I've only included the
executive summary, if anyone wants the full log, please let me know.

----------------------------------------
root@buildroot ~ # v4l2-compliance -m /dev/media2
v4l2-compliance 1.33.0-5460, 64 bits, 64-bit time_t
v4l2-compliance SHA: 91a4a7a9a5b3 2026-03-18 21:55:59
                                              
Compliance test for vsp1 device /dev/media2:
                                    
Media Driver Info:
        Driver name      : vsp1
        Model            : VSP2-I                 
        Serial           :
        Bus info         : platform:fe9a0000.vsp
        Media version    : 7.0.0                                 
        Hardware revision: 0x01011404 (16847876)     
        Driver version   : 7.0.0

[...]

Compliance test for vsp1 device /dev/v4l-subdev14:
                                           
Driver Info:                                         
        Driver version   : 7.0.0                                          
        Capabilities     : 0x00000000                                                                        
        Client Capabilities: 0x0000000000000002                                                                         
interval-uses-which Media Driver Info:                                                                                  
        Driver name      : vsp1                                                                              
        Model            : VSP2-I                                                                                
        Serial           :                                                                            
        Bus info         : platform:fe9a0000.vsp                                                             
        Media version    : 7.0.0                                                                                        
        Hardware revision: 0x01011404 (16847876)                                                                          
        Driver version   : 7.0.0                                                                             
Interface Info:                                                                                                  
        ID               : 0x030000ab                                                                 
        Type             : V4L Sub-Device                                                               
Entity Info:                                                               
        ID               : 0x00000014 (20)                                                                                
        Name             : fe9a0000.vsp hgo           
        Function         : Video Statistics                         
        Pad 0x01000015   : 0: Sink                                            
          Link 0x0200003b: from remote pad 0x1000013 of entity 'fe9a0000.vsp clu' (Video Look-Up Table): Data
          Link 0x0200003d: from remote pad 0x100001c of entity 'fe9a0000.vsp hsi' (Video Pixel Encoding Converter): Data
          Link 0x0200003f: from remote pad 0x100001f of entity 'fe9a0000.vsp hst' (Video Pixel Encoding Converter): Data
          Link 0x02000041: from remote pad 0x1000022 of entity 'fe9a0000.vsp lut' (Video Look-Up Table): Data
          Link 0x02000043: from remote pad 0x1000025 of entity 'fe9a0000.vsp rpf.0' (Video Pixel Formatter): Data
          Link 0x02000045: from remote pad 0x1000028 of entity 'fe9a0000.vsp sru' (Video Scaler): Data
          Link 0x02000047: from remote pad 0x100002b of entity 'fe9a0000.vsp uds.0' (Video Scaler): Data
        Pad 0x01000016   : 1: Source                                                 
          Link 0x020000a1: to remote pad 0x1000002 of entity 'fe9a0000.vsp hgo histo' (V4L2 I/O): Data, Enabled, Immutable

[...]

Sub-Device ioctls (Source Pad 1):                                       
        Try Stream 0                                                    
        test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK   
                fail: v4l2-test-subdevs.cpp(369): fmt.width == 0 || fmt.width > 65536
                fail: v4l2-test-subdevs.cpp(418): checkMBusFrameFmt(node, fmt.format)                        
        test Try VIDIOC_SUBDEV_G/S_FMT: FAIL                                                                            
        test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)                                                   
        Active Stream 0                                                                                      
        test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK                                   
                fail: v4l2-test-subdevs.cpp(369): fmt.width == 0 || fmt.width > 65536                 
                fail: v4l2-test-subdevs.cpp(418): checkMBusFrameFmt(node, fmt.format)                        
        test Active VIDIOC_SUBDEV_G/S_FMT: FAIL                                                                         
        test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported)                                                  
        test Active VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported) 

[...]

Grand Total for vsp1 device /dev/media2: 812, Succeeded: 808, Failed: 4, Warnings: 0
----------------------------------------

The remaining failures are, I believe, bugs in v4l2-compliance. They are
caused by the histogram source pad, which uses the
MEDIA_BUS_FMT_METADATA_FIXED format, hardcoding the width and height to
0. I believe this is a correct behaviour, as documented in [1]. I will
try to send fixes for v4l2-compliance.

The series has also been tested with the vsp-tests suite, which reported
no regression.

Compared to v3, this version addresses issues in the HSI, HST, HGO and
HGT modules that did not appear with the VSP-BD but get reported with
the VSP-I.

[1] https://docs.kernel.org/userspace-api/media/v4l/subdev-formats.html#metadata-formats

Laurent Pinchart (13):
  media: renesas: vsp1: Store supported media bus codes in vsp1_entity
  media: renesas: vsp1: Store size limits in vsp1_entity
  media: renesas: vsp1: Fix code checks in frame size enumeration
  media: renesas: vsp1: rpf: Fix crop left and top clamping
  media: renesas: vsp1: rpf: Fix crop width and height clamping
  media: renesas: vsp1: rwpf: Fix media bus code and frame size
    enumeration
  media: renesas: vsp1: brx: Fix format propagation
  media: renesas: vsp1: hsit: Fix size enumeration
  media: renesas: vsp1: histo: Fix code enumeration
  media: renesas: vsp1: histo: Fix size enumeration
  media: renesas: vsp1: histo: Fix format setting
  media: renesas: vsp1: Implement control events
  media: renesas: vsp1: Initialize format on all pads

 .../media/platform/renesas/vsp1/vsp1_brx.c    |  37 ++---
 .../media/platform/renesas/vsp1/vsp1_clu.c    |  47 ++-----
 .../media/platform/renesas/vsp1/vsp1_entity.c | 112 +++++++--------
 .../media/platform/renesas/vsp1/vsp1_entity.h |  21 +--
 .../media/platform/renesas/vsp1/vsp1_histo.c  |  97 +++++++++----
 .../media/platform/renesas/vsp1/vsp1_histo.h  |   2 -
 .../media/platform/renesas/vsp1/vsp1_hsit.c   |  61 ++++++++-
 .../media/platform/renesas/vsp1/vsp1_iif.c    |  39 ++----
 .../media/platform/renesas/vsp1/vsp1_lif.c    |  40 ++----
 .../media/platform/renesas/vsp1/vsp1_lut.c    |  47 ++-----
 .../media/platform/renesas/vsp1/vsp1_rpf.c    |   7 +-
 .../media/platform/renesas/vsp1/vsp1_rwpf.c   | 127 ++++++++++++++----
 .../media/platform/renesas/vsp1/vsp1_rwpf.h   |   6 +-
 .../media/platform/renesas/vsp1/vsp1_sru.c    |  63 ++++-----
 .../media/platform/renesas/vsp1/vsp1_uds.c    |  62 ++++-----
 .../media/platform/renesas/vsp1/vsp1_uif.c    |  40 ++----
 .../media/platform/renesas/vsp1/vsp1_wpf.c    |  13 +-
 17 files changed, 442 insertions(+), 379 deletions(-)


base-commit: a93a51f42ac354425a252210183c4151d991f75d
-- 
Regards,

Laurent Pinchart


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

end of thread, other threads:[~2026-04-21  9:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18 23:58 [PATCH v4 00/13] media: renesas: vsp1: Fix v4l2-compliance failures Laurent Pinchart
2026-03-18 23:58 ` [PATCH v4 01/13] media: renesas: vsp1: Store supported media bus codes in vsp1_entity Laurent Pinchart
2026-03-18 23:58 ` [PATCH v4 02/13] media: renesas: vsp1: Store size limits " Laurent Pinchart
2026-03-18 23:58 ` [PATCH v4 03/13] media: renesas: vsp1: Fix code checks in frame size enumeration Laurent Pinchart
2026-03-18 23:58 ` [PATCH v4 04/13] media: renesas: vsp1: rpf: Fix crop left and top clamping Laurent Pinchart
2026-03-18 23:58 ` [PATCH v4 05/13] media: renesas: vsp1: rpf: Fix crop width and height clamping Laurent Pinchart
2026-03-18 23:59 ` [PATCH v4 06/13] media: renesas: vsp1: rwpf: Fix media bus code and frame size enumeration Laurent Pinchart
2026-03-18 23:59 ` [PATCH v4 07/13] media: renesas: vsp1: brx: Fix format propagation Laurent Pinchart
2026-04-16 17:49   ` Lad, Prabhakar
2026-04-16 21:11     ` Laurent Pinchart
2026-04-20 23:57       ` Laurent Pinchart
2026-04-21  9:55         ` Lad, Prabhakar
2026-03-18 23:59 ` [PATCH v4 08/13] media: renesas: vsp1: hsit: Fix size enumeration Laurent Pinchart
2026-03-18 23:59 ` [PATCH v4 09/13] media: renesas: vsp1: histo: Fix code enumeration Laurent Pinchart
2026-03-18 23:59 ` [PATCH v4 10/13] media: renesas: vsp1: histo: Fix size enumeration Laurent Pinchart
2026-03-18 23:59 ` [PATCH v4 11/13] media: renesas: vsp1: histo: Fix format setting Laurent Pinchart
2026-03-18 23:59 ` [PATCH v4 12/13] media: renesas: vsp1: Implement control events Laurent Pinchart
2026-03-18 23:59 ` [PATCH v4 13/13] media: renesas: vsp1: Initialize format on all pads Laurent Pinchart
2026-03-20 12:55 ` [PATCH v4 00/13] media: renesas: vsp1: Fix v4l2-compliance failures Lad, Prabhakar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox