Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp759728rwl; Fri, 4 Nov 2022 06:09:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4g/vlXfGSNcnIrzWPN12+slSZFYUhmfEezDbLQl1y4G9OB1oL1uYRPlgrQIteFO5oKSyWf X-Received: by 2002:a17:90a:8d15:b0:216:df8f:3de with SMTP id c21-20020a17090a8d1500b00216df8f03demr4616441pjo.80.1667567396874; Fri, 04 Nov 2022 06:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667567396; cv=none; d=google.com; s=arc-20160816; b=bBWiHYEN/BtAdQGwEyqPRat3NgcVz2jnyu9ztrVP0JPR4slij3L0tZ4s7f9QzZNzQy sh/FlvkEIN8b6qF2UCypdcsjLTZRRIlPZSvxh+XvgDl2JE8fdlWxHI+EfyBarPDaDdmK Drv5GhgvKPT8Rwh6TvEomStHMQUWuOi4DAeELBw7y9KESBQc+L4IR2Y1v9Kc0iQW46Me oYDt6KYm5RTKRGCXB7NlZruD7643uJYh4eEXtUKp7hfJf/SIDNa1vF/lwVLVLNHD9a43 /+rYOMALNzXbx51zImTrwx5faA8W+7S6HI/JWi0jqZKrJ6ZTW+AUxJZht8UqRdtPWXOp 8uKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=yCHWYZ9c1ss1fSI6eFGsSOFAilbzjn414/9L54CUvhw=; b=HaKtss0ZuPZ0mkM7h11m9dLrVeLdaWqY2Aq5/WDdL6CGqEnEDe/xhXraQGPlh9RZa2 65Oqe17TnaXakgkgoFZoOAZr/YHe+foGkBt1jSW34uxPOrYYI6EaO7p4CU/XpRRihqf9 FmKk8RTj+0oYaF2q2agpFVVvuesdbL/hTNjk9g6usT4zfsCUzwUc6EYViDAolUYMkR/q HZZ3MYs5iwE9rGqcx9eHHGpxwWhSqUChWG3b4Zugz9t3uSmlBoQLpY1UAnzFH88wqW+6 muLVsqLoa5JAptsQVhd7/LYVcQXJpeDYI1TnFgSudHeMpax0qW0ngdG3DJm6m+1eDm46 iNGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi3-20020a17090b4b4300b0020db7d975ecsi215900pjb.176.2022.11.04.06.09.37; Fri, 04 Nov 2022 06:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231697AbiKDNGD (ORCPT + 96 others); Fri, 4 Nov 2022 09:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbiKDNFv (ORCPT ); Fri, 4 Nov 2022 09:05:51 -0400 Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58FB72E9FF; Fri, 4 Nov 2022 06:05:45 -0700 (PDT) Received: from [192.168.4.25] (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id 200092AB1C; Fri, 4 Nov 2022 14:05:43 +0100 (CET) Message-ID: <2af0e2a2-8f19-3c7b-4b5f-53ddf014bbf2@gpxsee.org> Date: Fri, 4 Nov 2022 14:05:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v3 0/2] Digiteq Automotive MGB4 driver Content-Language: en-US To: Hans Verkuil , Mauro Carvalho Chehab , Michal Simek Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Lizhi Hou , =?UTF-8?Q?Martin_T=c5=afma?= References: <20221018140338.7080-1-tumic@gpxsee.org> <52532fda-6863-6658-4ad5-a4dbc2607a1c@xs4all.nl> From: =?UTF-8?Q?Martin_T=c5=afma?= In-Reply-To: <52532fda-6863-6658-4ad5-a4dbc2607a1c@xs4all.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04. 11. 22 11:45, Hans Verkuil wrote: > On 18/10/2022 16:03, tumic@gpxsee.org wrote: >> From: Martin Tůma >> >> Hi, >> This series of patches adds a driver for the Digiteq Automotive MGB4 grabber >> card. MGB4 is a modular frame grabber PCIe card for automotive video interfaces >> (FPD-Link and GMSL for now). It is based on a Xilinx FPGA and uses their >> XDMA IP core for DMA transfers. Additionally, Xilinx I2C and SPI IP cores >> which already have drivers in linux are used in the design. >> >> The driver is a quite standard v4l2 driver, with one exception - there are >> a lot of sysfs options that may/must be set before opening the v4l2 device >> to adapt the card on a specific signal (see mgb4.rst for details) >> as the card must be able to work with various signal sources (or displays) >> that can not be auto-detected. >> >> I have run the driver through the v4l2-compliance test suite for both the >> input and the output and the results look fine to me (I can provide the >> output if required). > > Please do! Did you use the latest v4l2-compliance code from the v4l-utils > git repo? Distros tend to have a too-old version. > > Regards, > > Hans > Hi, Here they are: --- INPUT --- v4l2-compliance 1.22.1, 64 bits, 64-bit time_t Compliance test for mgb4 device /dev/video4: Driver Info: Driver name : mgb4 Card type : MGB4 PCIe Card Bus info : PCI:0000:06:00.0 Driver version : 6.0.0 Capabilities : 0x85200001 Video Capture Read/Write Streaming Extended Pix Format Device Capabilities Device Caps : 0x05200001 Video Capture Read/Write Streaming Extended Pix Format Required ioctls: test VIDIOC_QUERYCAP: OK test invalid ioctls: OK Allow for multiple opens: test second /dev/video4 open: OK test VIDIOC_QUERYCAP: OK test VIDIOC_G/S_PRIORITY: OK test for unlimited opens: OK Debug ioctls: test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported) Input ioctls: test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported) test VIDIOC_G/S/ENUMINPUT: OK test VIDIOC_G/S_AUDIO: OK (Not Supported) Inputs: 1 Audio Inputs: 0 Tuners: 0 Output ioctls: test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported) Outputs: 0 Audio Outputs: 0 Modulators: 0 Input/Output configuration ioctls: test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported) Control ioctls (Input 0): test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK test VIDIOC_G/S_CTRL: OK (Not Supported) test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0 Format ioctls (Input 0): test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK test VIDIOC_TRY_FMT: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported) test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls (Input 0): test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls (Input 0): test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK test Requests: OK (Not Supported) Total for mgb4 device /dev/video4: 45, Succeeded: 45, Failed: 0, Warnings: 0 --- OUTPUT --- v4l2-compliance 1.22.1, 64 bits, 64-bit time_t Compliance test for mgb4 device /dev/video6: Driver Info: Driver name : mgb4 Card type : MGB4 PCIe Card Bus info : PCI:0000:06:00.0 Driver version : 6.0.0 Capabilities : 0x85200002 Video Output Read/Write Streaming Extended Pix Format Device Capabilities Device Caps : 0x05200002 Video Output Read/Write Streaming Extended Pix Format Required ioctls: test VIDIOC_QUERYCAP: OK test invalid ioctls: OK Allow for multiple opens: test second /dev/video6 open: OK test VIDIOC_QUERYCAP: OK test VIDIOC_G/S_PRIORITY: OK test for unlimited opens: OK Debug ioctls: test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported) Input ioctls: test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported) test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported) Inputs: 0 Audio Inputs: 0 Tuners: 0 Output ioctls: test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK test VIDIOC_G/S_AUDOUT: OK (Not Supported) Outputs: 1 Audio Outputs: 0 Modulators: 0 Input/Output configuration ioctls: test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported) Control ioctls (Output 0): test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) test VIDIOC_QUERYCTRL: OK test VIDIOC_G/S_CTRL: OK (Not Supported) test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0 Format ioctls (Output 0): test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK test VIDIOC_TRY_FMT: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported) test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls (Output 0): test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls (Output 0): test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK test Requests: OK (Not Supported) Total for mgb4 device /dev/video6: 45, Succeeded: 45, Failed: 0, Warnings: 0 M.