Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp925738lqa; Sun, 28 Apr 2024 10:02:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+Ii/QfVy9j8Sj/38wKjVDNV682H3ot0lu9wv+4WDDIH+2U7UNBPZAF0jhjgcS8ogKnEM454wgX6n+hC2yNt4lT+tS5qubHuA1Zaojzg== X-Google-Smtp-Source: AGHT+IE2a/AAMdPLq9aUyiJk4PtYCd+XKSN7JfKORwud+3yufi+ysR7gqXyBJUFDVctYqVsBpb5f X-Received: by 2002:a50:a6dc:0:b0:572:1c21:1937 with SMTP id f28-20020a50a6dc000000b005721c211937mr4488711edc.11.1714323728365; Sun, 28 Apr 2024 10:02:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714323728; cv=pass; d=google.com; s=arc-20160816; b=0l15W052Uvev2zmG651Q5vLWG6Fui1fhyXFpb59TOdluaTw2CactxVPEZEAZX1zJOd tVVpOq1dE9tF9NegngSJl5HAkNvzN/JWBIcZhwgz9Hv6guZRdgOFTWwS4aSnHRB2hER5 ygnv/TTO6JrAXGkW70rJW34EYZsizhTTdsLq218O5bixoZBBec/nj4640HxJCz+aWp/M g+z/DDe0XRQbQXXYFMuIGuAFnVnz5VGcmZAL5z6GIS+pqr2FiyVLE48jG/zFY5qgn9M2 ZYZdA1O2fjeeQAaSU6S8ijAtpKkgt9i2i0Q+BCpCe4jFpOVvIpFeFY3yyqU/Tt7g2EWC KhXw== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=wtrfMvoNXLaLKSU5m6kPCEF0z/VdEf5oLEC5/8M3OHE=; fh=RO1OQ2mqBHrLrFBnpVrFOe+ODasfesq7vLLeFA12LhU=; b=AlqC3oigMXWGGd0omFcAVQAjTXzXluQ6/kZvQKgCh+4t+5Tdg9jZxn4JbjYBQ3AXr2 7eL0y2nF+zVp92Mqw7x0LXi4zqkZwT+Pkbpu7rSGl/MAD1H1SAd6gR8fQnS27y3sZHK4 ioTgvxljDXAc2Kj8Qcb3AhjxEB0gIkn29Yae2dBkCN3KUnBcY4/1bzNixiOxGswo7B9h hV/CBWp62L4C5zHVeMI7IxMc0JWsvj5oRoue0dU5fll0EcCMty35az+oo5IS2ztvZs9y Nsy3deE2m3fzRXNFGSs+C0WNFX6fSgu6YcyW7rQ2cF5/rYUV3gtKWHXZo/6VmudR7I3g yBCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-161509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r6-20020a056402234600b005726fb3e1absi1783921eda.23.2024.04.28.10.02.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 10:02:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-161509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1B7F71F21300 for ; Sun, 28 Apr 2024 17:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F5E77317E; Sun, 28 Apr 2024 17:01:59 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (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 564E873163; Sun, 28 Apr 2024 17:01:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714323718; cv=none; b=nWKhRIiyVG5MFC0doSmG+bRHyO1wB85N4H88Xh9MRNVB12HUqxEe5A6idJ9r0pftRJBH15WTwQhDTrOSJWZXU/81EsGXiK2mTCrj9SJVXNFf2NkA0t7KJxyu2OyevR1VN5ZgrPVV40JPf1axppVr1wu2iv/xx/T98ukIMPA+Wu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714323718; c=relaxed/simple; bh=Po1NSWnLvUFuIzM7E7i739862Xt2hBqwStVAwBSv2So=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NL/GiMHEVmeKuymKRvu1ssqQX099v/8rhDJmxFBsTjYeuBQtQ0R5Ud4oOMN2ErtkinqHfSDvNz1WtDbrfNZrLOWwo32KdLRhKAEzxAKiUBBJ8aV0Vk2nyLV0iQiOP82BWE9Y45Wg/9zrSq6YjB90ztk1AN4niHw1as5CBUk3BYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875b01.versanet.de ([83.135.91.1] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s17uF-0006wg-Pn; Sun, 28 Apr 2024 19:01:39 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linkmauve@linkmauve.fr, Jianfeng Liu Cc: andy.yan@rock-chips.com, conor+dt@kernel.org, cristian.ciocaltea@collabora.com, devicetree@vger.kernel.org, dsimic@manjaro.org, ezequiel@vanguardiasur.com.ar, frattaroli.nicolas@gmail.com, iommu@lists.linux.dev, joro@8bytes.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, macromorgan@hotmail.com, mchehab@kernel.org, p.zabel@pengutronix.de, robh@kernel.org, robin.murphy@arm.com, sebastian.reichel@collabora.com, shreeya.patel@collabora.com, will@kernel.org, sigmaris@gmail.com, nicolas@ndufresne.ca Subject: Re: [PATCH v4 0/2] Enable JPEG encoding on rk3588 Date: Sun, 28 Apr 2024 19:01:38 +0200 Message-ID: <3784322.QJadu78ljV@diego> In-Reply-To: <20240427071638.79915-1-liujianfeng1994@gmail.com> References: <20240418141509.2485053-1-linkmauve@linkmauve.fr> <20240427071638.79915-1-liujianfeng1994@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Hi Jianfeng, Am Samstag, 27. April 2024, 09:16:38 CEST schrieb Jianfeng Liu: > Hi Emmanuel, >=20 > On Thu, 18 Apr 2024 16:15:04 +0200, Emmanuel Gil Peyrot wrote: > >- Only expose a single VEPU121, since the driver doesn=E2=80=99t yet sup= port > > exposing them all as a single video node to userspace. > I'm also doing work with the hantro node on rk3588 which has both vdpu > and vepu. Discussions can be found here[1]. If I enable the jpeg encoder > at feb50000, would it cause any side effects if other jpeg encoders in > your patch are enabled? And what's the disadvantage of enabling multi > jpeg endoers in devicetree? the basic problem is that exposing multiple jpeg encoders would require userspace to do the scheduling. Which is bad. I.e. all userspace programms would need to know the existence of all jpeg encoders and then somehow negotiate how to use all of them most efficiently. Think multiple different programs that would need to negotiate to spread across all of them in the best way. Doing this in the kernel, we just expose one encoder (and queue) all programs would just pile onto that one encoder and the kernel then would be on the hook to do the scheduling - which the kernel can do better (with relevant code implemented)