Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp355463yba; Thu, 18 Apr 2019 02:24:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwARdc5ZbZf8kwLf6hs017u9387NPA9LdghyxPAtdsdhzMFrZhY/BYnqxxKSrqnZMw6xxlB X-Received: by 2002:a63:750c:: with SMTP id q12mr89009995pgc.133.1555579481271; Thu, 18 Apr 2019 02:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555579481; cv=none; d=google.com; s=arc-20160816; b=gslcT54zWQQw6khrN7bexj2BPSRa4O0iw2m1FNxWpaFP4TPm8Su9uiFjtY3A8H7DAp qL75hE1Y9msFcVndCrHK8I5LOhiVsc43lLdjEpsqqkSJX+FaGHrxu+2zn3uhHD2XI1sX n4Q1jlUe03I82sN63bhNc4C/EeKCynhua/k7aEpEvOhRvQAg9WWWWFpj6EbGYlUTp0RM ULfOQm0Us/tXVLWo195722VvHl14oFXTlvwFh5qzgj2sSZzcl6sEeczFcFyyuoj5PE5e hOBcxp8S4bIvyu/UVJX+z6iWhr4Am9e2+JN69/eW576byw3wm1SeEYaPyfY4pYn7naZA HAlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NjrP7AjRE5C57dl3TaDE513g5a5EIIy5UXbhoyecM3Y=; b=iCLZW+Nz5rvYzawWHp5OwN2b+OI/cWuydk03YzrIMaJFCpqxfPm7qiu8VamMmuRP8F KP/q8v1ULpQLywv4E16tKWtzSxfUrI0O37N90jbRFbaZ20LdCj4two0+H/Jc3KUGzJAA fRxQwbY+R+HUwSjzFMFErdV/7vu4jErpYdh2P/qQoE9QmSqeKYMIBDkYtmjL9we5FAko V1AKb6KitYWiFlrwdeZH0lLA/vi65+bTlQAA5epQz8qgK5YpemtMmalb0ekpC7Cnc8W0 9bCELQ8aooUfc7PBZeOu9xY0euNax4hDZIT4KjSX1zwlh/O4FIEQ7Q5q9Y7dS+N6cWKD FERg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Xi1jG/xj"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si1347653pgw.465.2019.04.18.02.24.25; Thu, 18 Apr 2019 02:24:41 -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; dkim=pass header.i=@chromium.org header.s=google header.b="Xi1jG/xj"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388335AbfDRJWI (ORCPT + 99 others); Thu, 18 Apr 2019 05:22:08 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36697 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388052AbfDRJWI (ORCPT ); Thu, 18 Apr 2019 05:22:08 -0400 Received: by mail-oi1-f196.google.com with SMTP id l203so1088143oia.3 for ; Thu, 18 Apr 2019 02:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NjrP7AjRE5C57dl3TaDE513g5a5EIIy5UXbhoyecM3Y=; b=Xi1jG/xj7SfJGUkw9fQezzGTAD2GONRRvICHVCJDcNepxf0hpoRefPue+do1WgwuVI vcv9f1o3menb5Gq8kyRLaMZjHt67Lb0jCaGT/jS5qpjUdhiS/17h05Cg2LO6uz2OXVDq Cs/VBcfDYx6CalY7k09WOWmKHvzR/5G3JFOIw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NjrP7AjRE5C57dl3TaDE513g5a5EIIy5UXbhoyecM3Y=; b=UsHV/SgWCoaLaCwhglsqVi2wBHrjGAwymzrrU1M+0KVbwSl895rU5FafeXFsoN0BZU PpnZ5/5t3o2YM8oe+qZfwJK3vawDpFg2+AbP0nNha2J+Gjy0DVV8wNjhdf7HMxNz50XK M49NCoEf21k7JhMd7Y2UfGFZDYDuoHFK+WQFLg/mTEdrJPtClwmwSpdWCfwaMI99B3bN xy0ba4P9hlcq7HYB33AKkxRPIOei/s6lJBSzbWyIxX1cz8Z+19mwQpTh4Esk5aBJc7hq 8LmkLXRqIIULc3FYIEGKtj6cJzQsPhDOzV/3215a4kVd6k4pHKPF8GAMbpnXVepw5I08 9lNw== X-Gm-Message-State: APjAAAWKM0eSoNPGb2cRKU/6hb1n28ckpSvBJzTOUeGp58pCT9P818ze 9ykVG0dwtjUUg3/0g7Us9P1CkNfyTdc= X-Received: by 2002:aca:c243:: with SMTP id s64mr1201011oif.162.1555579326605; Thu, 18 Apr 2019 02:22:06 -0700 (PDT) Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com. [209.85.167.172]) by smtp.gmail.com with ESMTPSA id q19sm546052otf.81.2019.04.18.02.22.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 02:22:05 -0700 (PDT) Received: by mail-oi1-f172.google.com with SMTP id j132so1097792oib.2 for ; Thu, 18 Apr 2019 02:22:05 -0700 (PDT) X-Received: by 2002:aca:d8d5:: with SMTP id p204mr1345107oig.26.1555579324600; Thu, 18 Apr 2019 02:22:04 -0700 (PDT) MIME-Version: 1.0 References: <0df3d4b5178d8a37b67b275e0771741c6c268de3.camel@bootlin.com> <20190418081816.GO13337@phenom.ffwll.local> <522d6a7734a29df47fe11f5f6311b49e14dabae0.camel@bootlin.com> <03187f79f37fdb45f3a774e200e21a29167776a8.camel@bootlin.com> In-Reply-To: <03187f79f37fdb45f3a774e200e21a29167776a8.camel@bootlin.com> From: Tomasz Figa Date: Thu, 18 Apr 2019 18:21:53 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Support for 2D engines/blitters in V4L2 and DRM To: Paul Kocialkowski 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 6:14 PM Paul Kocialkowski wrote: > > 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 Okay, thanks. I feel like the typical DRM model with a render node and a userspace library would make sense for these specific use cases on these specific hardware platforms then. Hopefully the availability of open drivers for 3D engines continues to improve. Best regards, Tomasz