Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5940137rwr; Mon, 1 May 2023 13:22:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CaLEvRwRnjl05V8xrN6mHzajx6uFhMTafOZSAz/GoXG4hyZXA/uDTKdYsmricKJRaErSW X-Received: by 2002:a17:903:2283:b0:1a9:a032:3844 with SMTP id b3-20020a170903228300b001a9a0323844mr19391810plh.16.1682972571410; Mon, 01 May 2023 13:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682972571; cv=none; d=google.com; s=arc-20160816; b=i9SeW9GqVhE8AibS23c31ohNHZ/jTx5SMNivwbt45hWK9kh1jGq+BwG2+T31K8rZoF HCmbjVPDJqTCPThU4ZeMIloSXn0PT/Swcy7/H3dyxcvQdsYR45x+QoAzhSOHbUcNxWjH YZXsO6aY0DpJiMukYgbkNq4BzpPTyH0OANkTIVmxBBTJpD9MGDQ8cb49mhg43H73YP5B EJv+9564JkulgxrMu7M/jTunqcGVvg6vkz1t0lZ3T2VW1NZLhGlwml0q/tyYb2L9VKaB giXJSXy3NQ+WcjTRF2IXo0P/6P1y8QovrjUGpaFCBwbDOQIeuNZ1S9ljTYCbEyc0ulPp 6rsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=E9+JAVIKOHUI/bC6kIDQQn55ysbLwtpFNYyDx0fneP8=; b=VYHJKehKUY3UTtgBu/XEkMyF/r5sML+UWXv1WJX9wp7DcMPnzS1y0HUtKA03pQ/Qir sEFhcoHFetL93jqP8ovmj4KELfzQs+0o0kqwKjz1tbUwQeiZ+gb3A1Zx2eJEUG3gRsbV e5wv4EfBTOjgiRrAxYkIE48PikaTiPeUq7kfo05usaVJ3svIogQxn2fnjB4M0pKHX59P 1Tf2E4I9yOxmb9xPZfHJ0ZfmPMbLsKjEyPTMLNkMXi5uH+idzuTlqr72MzybFTJyhuba 7wItvORkNrnnCh6+JR+osWtm8lF7RkQTTV7eDrqXG6eRtompoItZ1rq/SHHbsH8w/tRe R2Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BhHXgX3o; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u23-20020a1709026e1700b001a97daf438esi17302562plk.607.2023.05.01.13.22.37; Mon, 01 May 2023 13:22:51 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=BhHXgX3o; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232184AbjEAUMw (ORCPT + 99 others); Mon, 1 May 2023 16:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232967AbjEAULM (ORCPT ); Mon, 1 May 2023 16:11:12 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86E742122; Mon, 1 May 2023 13:11:10 -0700 (PDT) Received: from nicolas-tpx395.localdomain (unknown [IPv6:2606:6d00:15:199e::7a9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id E938366031D1; Mon, 1 May 2023 21:11:07 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682971869; bh=E9+JAVIKOHUI/bC6kIDQQn55ysbLwtpFNYyDx0fneP8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=BhHXgX3o5ZSyzRWSJ5h07HbeIb+zUisczD5d39AM5bW85PBAIY9nd/57+HxVKCfYp c6dDkozSKoYu6YWaxk/I2/CZLTL8Ktbo0215IDromeXgp1qNXXJD+u+ldVwb8F4ItD MQUS9e3FaW92dhhqwWxb6hKToSDeadtGsq4fAuEIBSEBOE99cH5UlnR2Iz1PwIBqhu 44UYzqvt4x8c3kTbiEHbdH7ZAu9PhRptO+EuRgK0LkfWEb2P1hgjQnCur0kBRqhshc TMdTVhdBGT9e6kMNl/CGpU1xDeSNFpv4ITUaGvGn6sWP40zpRD6LhSgMiwtgG7HoZm 193YfHz8tvmMQ== Message-ID: <9cf10a4d7a9eec237f5d18f79f6ae4bd031489bb.camel@collabora.com> Subject: Re: [PATCH 0/6] Initial Rust V4L2 support From: Nicolas Dufresne To: Laurent Pinchart , Daniel Almeida Cc: Miguel Ojeda , Hans Verkuil , wedsonaf@gmail.com, ojeda@kernel.org, mchehab@kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, kernel@collabora.com, Sakari Ailus Date: Mon, 01 May 2023 16:10:58 -0400 In-Reply-To: <20230426172539.GD2326@pendragon.ideasonboard.com> References: <20230406215615.122099-1-daniel.almeida@collabora.com> <136035a4-26df-1c14-e51e-406b4ee5fe33@xs4all.nl> <20230426003210.GA31260@pendragon.ideasonboard.com> <20230426163512.GE18120@pendragon.ideasonboard.com> <7b4ea4fc-7d73-d229-4645-366b1ea574fb@collabora.com> <20230426172539.GD2326@pendragon.ideasonboard.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 (3.48.1-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Le mercredi 26 avril 2023 =C3=A0 20:25 +0300, Laurent Pinchart a =C3=A9crit= =C2=A0: > Hi Daniel, >=20 > On Wed, Apr 26, 2023 at 06:14:33PM +0100, Daniel Almeida wrote: > > Hi, > >=20 > > As I said higher up on this thread, I can maintain the Rust bits and= =20 > > help out with the issues around it. > >=20 > > IMHO, we should at least try this. Who knows, it might work out :) > >=20 > > Laurent, maybe we can take a piecemeal approach? Right now there are no= =20 > > bindings for MC, but I wouldn't complain about fixing some of the C cod= e=20 > > when the time comes. >=20 > The lifetime issues affect plain V4L2 video nodes too I'm afraid :-) Everything under the bindings is unsafe code, so it does not prevent doing = upper implementation and have other things be memory safe. It just make Rust less helpful in some cases (I guess everything across ops). There is low hanging fruit if some folks are interested. I see legitimate benefit in rewriting in rust the JPEG parser, the H.264 reference list generator, and maybe VP9 probability update lib. AV1 driver will need a lib= to reduce duplicates, this could be done straight in Rust (offering a C interf= ace of course, so it does not matter if the users are written in rust or C). Nicolas >=20 > > Just FYI, I am writing some more bindings, just enough to write a=20 > > stateless decoder driver. I hope to finish it in time for the media=20 > > summit. It will give us a more in-depth idea of the pros and cons here. >=20 > --=20 > Regards, >=20 > Laurent Pinchart >=20