Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp348242yba; Thu, 18 Apr 2019 02:15:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVjTvmXTpmqeyZFBFL2gjjVbnIu+qgpt9PCVdAUfzvus/81ysnDLiWETemCNgx06a1AaRD X-Received: by 2002:aa7:92d5:: with SMTP id k21mr94656344pfa.223.1555578932914; Thu, 18 Apr 2019 02:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555578932; cv=none; d=google.com; s=arc-20160816; b=mxxsh8I0PWlJwJaK8zjymUl54r5C40gjOYbBsTqFX6P5SkJoRjLNCT1pLkXF8xhiIW DgIDVzzCKxZjtSmAuHr9KWnNv5yXYB5KHnJPhDKc6ZSTapZ3Jmoeta/+nKb4+rlWP484 AHr9m6xrafBzRNaggCX0kYfTZO/thG6b7uGq9JiOHf9NjkNIfIyx1lT0hxWtpz60ympw BnjTzi9UJViWL+9m5leLKs1O8oD2f13Qi4blDfbBzLOKjqS4UeczW92Ct6TAcS5hZiWy EFIhgZwfe8i2+1RCGT7biWX2hB6bqthgwGKqZFV9ce8B0Dw5q6VVTgsUo1xrnANYwPNo WbaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=bjiwfFyZfEfFs6CBPRQAxsRo7ISC6SG1TZR1u7gR9Kk=; b=DR0sfKLAggHU351U3X1vsKFswtCi6MykwIFIlEiIX6G7f7aTCLb1Sa+NiMRUCJcaTM hRNYiQDg3s++m979gXyMd6i3Qkyj9qitRY5waDZMLo4Vo/0rxACukVOxRhg3mfbv//61 ItaIZeaBJ1BE25xq5Z+TgRIwyeyS6+DZ71Dv04h8JCH33DXeKst8rePMMOHg+5ux1zd3 B7401GSimmEY06qVF4ciXoaN3KVGuVXCqaR25intrD1q2Lh/dfesVDPtsz3Oj1PgCTz9 bbbGRFfOaM6hf9t+Rj2l7S6tDuHZjigb0xWrOv5cDTejA8ANupcWSF2QymVib2/vtqJr CX1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si1702873pfr.189.2019.04.18.02.15.17; Thu, 18 Apr 2019 02:15:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388395AbfDRJOF (ORCPT + 99 others); Thu, 18 Apr 2019 05:14:05 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:43915 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388346AbfDRJOE (ORCPT ); Thu, 18 Apr 2019 05:14:04 -0400 X-Originating-IP: 90.88.160.238 Received: from aptenodytes (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 2ADDEFF813; Thu, 18 Apr 2019 09:13:58 +0000 (UTC) Message-ID: <03187f79f37fdb45f3a774e200e21a29167776a8.camel@bootlin.com> Subject: Re: Support for 2D engines/blitters in V4L2 and DRM From: Paul Kocialkowski To: Tomasz Figa Cc: Daniel Vetter , Nicolas Dufresne , Linux Kernel Mailing List , Alexandre Courbot , Maxime Ripard , Hans Verkuil , Mauro Carvalho Chehab , Linux Media Mailing List , dri-devel , Thomas Petazzoni , Eric Anholt , Rob Clark , Dave Airlie , Maarten Lankhorst Date: Thu, 18 Apr 2019 11:13:57 +0200 In-Reply-To: References: <0df3d4b5178d8a37b67b275e0771741c6c268de3.camel@bootlin.com> <20190418081816.GO13337@phenom.ffwll.local> <522d6a7734a29df47fe11f5f6311b49e14dabae0.camel@bootlin.com> Organization: Bootlin Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, 2019-04-18 at 18:09 +0900, Tomasz Figa wrote: > On Thu, Apr 18, 2019 at 5:55 PM Paul Kocialkowski > wrote: > > Hi Daniel, > > > > On Thu, 2019-04-18 at 10:18 +0200, Daniel Vetter wrote: > > > On Wed, Apr 17, 2019 at 08:10:15PM +0200, Paul Kocialkowski wrote: > > > > Hi Nicolas, > > > > > > > > I'm detaching this thread from our V4L2 stateless decoding spec since > > > > it has drifted off and would certainly be interesting to DRM folks as > > > > well! > > > > > > > > For context: I was initially talking about writing up support for the > > > > Allwinner 2D engine as a DRM render driver, where I'd like to be able > > > > to batch jobs that affect the same destination buffer to only signal > > > > the out fence once when the batch is done. We have a similar issue in > > > > v4l2 where we'd like the destination buffer for a set of requests (each > > > > covering one H264 slice) to be marked as done once the set was decoded. > > > > > > Out of curiosity, what area did you find a 2D blitter useful for? The initial motivation is to bring up a DDX with that for platforms that have 2D engines but no free software GPU drivers yet. I also have a personal project in the works where I'd like to implement accelerated UI rendering in 2D. The idea is to avoid using GL entirely. That last point is in part because I have a GPU-less device that I want to get going with mainline: http://linux-sunxi.org/F60_Action_Camera Cheers, Paul -- Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com