From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796561393; b=4YLWyU2JIMCFbNwh/MjNvs25ymvmyZ900iICwVGL6s3WU4Szq6efavu2AW8QLU+VC76F zey2k29LjOYpzNJD70LuJ1eT92vteBJ0PJhd86sd7/IleLoXa8o6LqX+EDlNwrkFuopdn lplo28kIRqwaO62qbjl4WnjUSQc+he/TdrOl/w2CLJf0irK3QC5oE2MLZ70rlWXHci7br Vi7rfcN6Xa7FAgbkTPo86mdiSOjFvVo9wmhXH64mVQv4HlhkIUL26pKSBwI+E2kgqF8/q 1dSUNl+sKEtmTXXMdPyhONAdR+RmRStP9glP1Q/AeqoCa/YcVmzCfJzE6prF7ZnQ5Sw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796561393; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=YNtgfeRNFEFz0Xq2b4qfe4WPWNpQm18zHpeiVBiwKP4=; b=KWK6TecnRs8lUiDIAY6oMfpPBv4tVT+0AFpb9fmzbb0Dv+WR4kcPTvqgVsQI49w6ZlmS +cIPl8K885hVLC+6H4BnmAEXrl0IzcenMZ1ZD94jpiiwQ81FqwUBZ51RLtvg/seKaPNPx mqd20Z6auLmKDnfpXT5wIYfDrM5F3h+68Mvt4/40T+DbSLejxONAnpGAv7kV9I0n7AK6Q i0GnLQtxpRE2XH8QVicZhmhuP0Ilo0ZVXQECkY0yju634pXZICj9rWYzr775J85p5UCec CXLrZVJ7qJc1XOH50Zoo3DWXFj1HdQvyjYEVRpTgO/kgV9AjZ4YegVp6WQU5vWmzRzA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ee9Ezn1M; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF934606A321 for ; Sun, 6 Dec 2026 12:49:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ee9Ezn1M Received: by smtp.kernel.org (Postfix) with ESMTPSA id 452281F0092B; Sun, 6 Dec 2026 12:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796561393; bh=YNtgfeRNFEFz0Xq2b4qfe4WPWNpQm18zHpeiVBiwKP4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ee9Ezn1Mw0VQiziXz4yGfpvrE1M98O1m4MaaS9KxsX57iX347KemqENeMkg0hmvBo I+Dr+1NKWwcSDd7U526NJWNE3/WQJ/mNsxgsLo4+xqBlrdeBvj+Lxp8wm3FHcb+CzU 1ALPTGD0ga42utYM85VfLIUUOvMW6S0biuFjMmF7yjdo4GL47To+cfs3rBqDC6H12/ sD3aVYvTjSc23MM1rCFpBpkgemCUhlpgbOsraNsVq7ltLMPQbm13jVK5YlC3+XA2PW Gz6xyTuC+glZ+77uZu4Rp5bG+tVN3Ts5VB4JCD8knqEqqRTzLFZNZT07K72dUG4mT+ VsWsC7Ka3Qysg== Date: Sun, 6 Dec 2026 13:49:49 +0100 From: Mauro Carvalho Chehab To: Ryuki Maruyama Cc: "linux-media@vger.kernel.org" , Mauro Carvalho Chehab , "tskd08@gmail.com" , Hans Verkuil Subject: Re: [RFC] media: dvb: add SYS_ISDBS3 delivery system Message-ID: <20261206134949.1f8a6d49@foz.lan> In-Reply-To: <20261206-isdbs3-rfc-reply1-8d41b7c2e9f3@doany.io> References: <20261206105104.58f73ce5@foz.lan> <20261206-isdbs3-rfc-reply1-8d41b7c2e9f3@doany.io> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-redhat-linux-gnu) X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 6 Dec 2026 10:03:53 +0000 Ryuki Maruyama wrote: > Hi Mauro, > > Thanks for the review. Answers inline; I trimmed the parts without > questions. > > On Sun, 6 Dec 2026 10:51:04 +0100 > Mauro Carvalho Chehab wrote: > > Makes sense, but v4l-utils (libdvbv5) also need updates. > > Yes, the RFC series would include the libdvbv5 changes. > > >> - DTV_SYMBOL_RATE: ISDB-S3 does not fix the symbol rate; the cache > >> default would be the example rate of ARIB STD-B44 (33756100), > >> just as SYS_ISDBS defaults to 28860000 > > > > How is it controlled? via bandwidth? > > The application sets DTV_SYMBOL_RATE, as for DVB-S2. The bandwidth > is derived from it. The carriers in Japan use the example rate, which > is why I proposed it as the default. Ok, makes sense, if DTV_SYMBOL_RATE is zero, to use default, although the best would be for programs (and libdvbv5) to always set it, as this is something that can be changed anytime by the carrier. > > > We likely need DTV_ROLLOFF to associate bandwidth and symbol rate. > > Agreed. ISDB-S3 always uses a roll-off of 0.03, and there is no > ROLLOFF_* value for it. I would add ROLLOFF_3, use it in the > bandwidth calculation and report it through DTV_ROLLOFF. Ok. > > > Hmm... we need to double-check how expanding layer[] can be done > > without breaking backward-compatibility. > > The proposal does not expand layer[]. DTV_MODULATION and > DTV_INNER_FEC would report only the mode that carries most of the > selected stream, and layer[] would not be used for SYS_ISDBS3. In principle, sounds ok, but only if all hardware can autodetect and autodetect is mandatory at ARIB docs. > > We need a DTV property for stream type (MPEG-TS, TLV or ALP - when > > we add ATSC/3 support). > > Agreed. A read-only property, set by the driver once it is locked, > with values for MPEG-TS and TLV, and later ALP. > > > I prefer to keep the dvb stream filtering in kernel, as it reduces the > > amount of data copied to userspace. > > Some background on TLV for this. The demodulator selects one stream > of the carrier by DTV_STREAM_ID, so only one TS or TLV stream > reaches the host. A TLV stream (ITU-R BT.1869) is a sequence of > variable-length packets. Each packet starts with the sync byte 0x7F, > a packet type (IPv4, IPv6, header-compressed IP, transmission control > signal or null) and a 16-bit length. The services in it are IP flows > (MMT over UDP). A filter inside the stream would select packets by > packet type, and then by the context ID for header-compressed IP or > by the IP and UDP fields for plain IPv4 and IPv6 packets, not by > PID. > > So, to keep filtering in the kernel, would a new demux filter type > that splits the stream into TLV packets and selects them by packet > type, and then by context ID or IP/UDP fields, be the direction you > have in mind? Yes, something like that. The DVB subsystem has already support for a network adapter. It could make sense to have the stream arriving via such adapter. > > Can you ask its authors to extend its license to GPL-2.0? > > > > On a quick search, it sounds that there is a driver for such hardware > > under GPLv2: > > https://github.com/otya128/tbs6812_drv/blob/master/LICENSE > > The LICENSE file there is GPL-2.0, but the per-file notices differ: > > - the tbsecp3 bridge files say "version 3 of the License, or (at > your option) any later version", except tbsecp3-asi.c, which has > no notice Ok. If the author of the bridge acks and the major contributors, this can be changed. > - cxd2857er.c is GPL-2.0-or-later (its SPDX line is misspelled as > "SPX-License-Identifier" and would need fixing) OK. > - cxd2857.h and cxd2857_priv.h have no notice Without an specific license, IMHO the project license applies. Also, as cxd2857er.c is GPL-2.0 compatible, the original intent were probably to release it at the same license. > The bridge code comes from TBS's own out-of-tree tbsecp3 driver, > which has the same GPLv3 notices. Its MODULE_AUTHOR is Luis Alves, > so a relicense would need the repository author, Luis Alves and > TBS, after checking who else holds copyright. I will ask them and > report back. That sounds the right way to do. Funny enough, https://github.com/otya128/tbs6812_drv/blob/master/tbsecp3-core.c shows: MODULE_LICENSE("GPL"); Which is GPLv2: https://docs.kernel.org/process/license-rules.html#id1 At minimum, there is a licensing issue there, as there is a conflict between the license header and MODULE_LICENSE(). GPLv3 would require "Proprietary", as license is not compatible with GPLv2. > > We can discuss using a RFC patch series for the API, but merging > > without a driver doesn't sound a good idea. > > Understood. I will hold the uAPI until there is a driver to go with > it, and send the RFC series once the license question is settled. Ok, thanks! Thanks, Mauro