Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp499792lqh; Fri, 31 May 2024 07:49:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9eVs2C0cPIBVbuh1gFg3t+Tfh2I2dvgDwGYxYQ4Fp3AEY0ghDFE9Rhodr4/XnJH7jDUZnJ6nGXwxBW9KVa9yOs6PuDx1wp0QdbkvTvA== X-Google-Smtp-Source: AGHT+IH6zu1g8wvG6a0joFEK9DlRwrXGBmQpZNxR2aIbXOJB/Tum4Yk9miaoEfB0kCe39aURsctd X-Received: by 2002:a17:902:dad0:b0:1f6:a1c:e5b5 with SMTP id d9443c01a7336-1f6370062a1mr19289145ad.24.1717166994347; Fri, 31 May 2024 07:49:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717166994; cv=pass; d=google.com; s=arc-20160816; b=bT2HrhxKlO1e6HcF874gnKXjp/rGWKN/I2V6SPn/wJbzBA+hnwfZZwpvbQkC9/d3Vn za+C2w48lkgIZp9ElF31w3uYouKbpXdlJNQe6IzKZ/8ASQCTN/ArozPBL/HBx7oP+/Kx ZVhwYsd+PJko8jeYAYVz91SyXxKIdIGS0lM/xstZfFU/frBR3nazdPjzNkpwM0Di8c63 52T2A72ED03qfMPmJBaa4Q0Knpl2hfUEaaOr5JAkqU8BJuphXbF9E0eYRUwIWaSnYq57 8hxovgLIJ7a+Xq7B5nhdPgpeQ1t+S9i0Y1NJzsv4im4ZuTj0TQUyygWF/rZ6Ektr9msg S20g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=eJzsvWKWFQLSGyR+bt1zC07Uz7bgGXPrkziooCS53Qs=; fh=NcJMVFNaR8bzRgLN6H4coLXdbR1fdwxxAYxDB/lPPz0=; b=fwbt3RHeG9syrGojdvUB+SLvHSn/wmUfZaD5ZdqbGFP6lQ8Uv0yODTA9+1JQstTEWQ z24zBe5VoVj5ucvCqGPgwaJv4nOMyzfdlFBLRjzZlIUzcQjwdKPpKrm1UJ9whPzDAaYZ E2/hdBNfTgfaPFgjyRjE3u8c7DsAD7duNCtp5q/WtDhq724tKDp0eYxygGFRKESUH8Vw gA30ONMJnl5PDX+NQRRgLrEm8yqR+k0REpQY3z25v4WyAzvNpML9NcovAk/YzFIbGFjy wZpGVg9r8v6ZaKGbORvE5/bWMVkb043lS4Xy8qRT9EBwnlVJ1rEJutH8Rtai7iT8/hJZ ie9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-197003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197003-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6324183a7si13699225ad.595.2024.05.31.07.49.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 07:49:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-197003-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197003-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EC29F28A91D for ; Fri, 31 May 2024 14:49:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E90C6F2EB; Fri, 31 May 2024 14:49:37 +0000 (UTC) Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10C18626CB; Fri, 31 May 2024 14:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.205.14.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717166977; cv=none; b=btv2HT9ZknzRZhmM8H2nw/M9Bkff6BrIKhi0G9pbNeIoiNvrJeepPGmk4beyMYlSDbReQrGicvjQL0eDo5zlXSSNwfaFHYa/9JUKcivQ5Qj+WY7sYbQoBJ72gL6HrrHAb1NNHqitE733ensof38ihuMEh1toqTwCubolorsfNj8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717166977; c=relaxed/simple; bh=c7HXXvBTV5PGlRRhVIlLpfYS5XM04ZPwGWusUMtWg+w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Xe9uM25SaIB5iZ+dyVnMit+FdFOnJ2vvKxO1JG7HVhJZi1ur+47w/Tld15vTbs6Z/gF2WJIRSfLRV7TQ0RffuE5EnPmaP66waoHvdm9YZliMUO2fQ3gGYzrGLKlA4ULeiUbbt0NDiJ7XYLeFzXRVbsM6bKQycHvC8lgCL21HHF8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gpxsee.org; spf=pass smtp.mailfrom=gpxsee.org; arc=none smtp.client-ip=37.205.14.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gpxsee.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gpxsee.org Received: from mgb4.. (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id D0F5B4B2D0; Fri, 31 May 2024 16:49:26 +0200 (CEST) From: tumic@gpxsee.org To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Martin=20T=C5=AFma?= Subject: [PATCH v6 0/4] media: mgb4: YUV and variable framerate support Date: Fri, 31 May 2024 16:49:17 +0200 Message-ID: <20240531144921.2104-1-tumic@gpxsee.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Martin Tůma Recent mgb4 FW update added support for the YUV image format and variable framerates independent of the signal framerate. The following patches extend the mgb4 driver with support for both features. Changes in V6: - Properly handle the timings when no signal is present. Changes in V5: - Removed surplus v4l2_format.type checks. - Improved the patch descriptions. - Splitted the frame rate limit patch into separate code/documentation parts. Changes in V4: - Splitted the output frame_rate handling fix from the variable frame rate addition patch. Changes in V3: - Use div_u64() for 64b division (fixes build error on ARM32) Changes in V2: - Added missing stride limit Martin Tůma (4): media: mgb4: Add support for YUV image formats media: mgb4: Add support for V4L2_CAP_TIMEPERFRAME media: mgb4: Fixed signal frame rate limit handling media: admin-guide: mgb4: Outputs DV timings documentation update Documentation/admin-guide/media/mgb4.rst | 23 +- drivers/media/pci/mgb4/mgb4_core.c | 2 +- drivers/media/pci/mgb4/mgb4_core.h | 2 + drivers/media/pci/mgb4/mgb4_io.h | 29 ++- drivers/media/pci/mgb4/mgb4_sysfs_out.c | 9 +- drivers/media/pci/mgb4/mgb4_vin.c | 193 +++++++++++--- drivers/media/pci/mgb4/mgb4_vin.h | 3 +- drivers/media/pci/mgb4/mgb4_vout.c | 309 ++++++++++++++++++++--- drivers/media/pci/mgb4/mgb4_vout.h | 5 +- 9 files changed, 482 insertions(+), 93 deletions(-) base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 -- 2.45.1