From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80818C433EF for ; Thu, 17 Feb 2022 21:38:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242126AbiBQViW (ORCPT ); Thu, 17 Feb 2022 16:38:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiBQViV (ORCPT ); Thu, 17 Feb 2022 16:38:21 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D306CC1165 for ; Thu, 17 Feb 2022 13:38:04 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id c15so1390576ljf.11 for ; Thu, 17 Feb 2022 13:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7GVM4Imaflj4JIe8CRzxVHc58Ab/xWCMTV8z5JInLLY=; b=V6A3E7siPvJSxNL4Zw1sa/9jV7UvEiLulVjANFUwEz8UL/RE3kv6tjbKRIwRCsuksU axGQOKBP/ixHQhKjvMw09I92EXDIn2oudQ5SooxthoXhvncdDWfSDss7JVpAo6I/dzAB CQOw5vQBgNav1GrpqcSmp/qj8FO9/4KBZitKKvIpdCAvEu1FvpQDvrUp+CK0HpEV3hnC q2aVxAQeKAXCRmNCJV6VcWJhyM79+F11RxLErs2n3195DkxlCzVidk2Yv5tO3hECN6o0 A3pI0rDpMRKEBarg4bv2Je5GUj4KQ6HPxKQFOi9mDMkp5It+c8TWM6GxDi+a3fCp1gY5 vxZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7GVM4Imaflj4JIe8CRzxVHc58Ab/xWCMTV8z5JInLLY=; b=7IxDtFYt9bgW9pn3PLd047cU6UCcyto4DCXX+90slGMuh0Z3VYXksbYiAvsOYBx5bz pJy06FGmnjG4j5FBOf8IE0AwitSL1TmcVW5Na1mQomBTeWaAJ0x6GTBrV4PI21pzU83x 9Q4QsqKQkaNBJ77tMhx3ZI5ovq/Rp906qDi0FAp4R/9u3w7bv/RLNfgGYC1csmIacjyP xHNiwKc/IzxKMesgYMVrpcpwehdFtxFhzotYt53ppdX2JkPlnddmb99G8mrqtldKyaND tv/Vao72YFetk7FwW8jx5VZBggFivc4M5o3YNBjPW12ZIxZ6yKUO5kyjCrDeq5uvdAMV 7U2A== X-Gm-Message-State: AOAM530WaoR0apqugSh7qXKap/SZFtTtd4me1p8J9aoVVjy04HEtIRwJ TbkYRdTcib5138wz6gHe30r467RUPnk= X-Google-Smtp-Source: ABdhPJzaJgT2M4QR68WHPwUssS6ksK1ClTpavhjLm192RraKOqYf+favGGfVt7pfUeNRS6ST3qUlTA== X-Received: by 2002:a2e:a886:0:b0:244:de6f:1bf6 with SMTP id m6-20020a2ea886000000b00244de6f1bf6mr3609835ljq.375.1645133882866; Thu, 17 Feb 2022 13:38:02 -0800 (PST) Received: from orome (p200300e41f0a6900000000000000043a.dip0.t-ipconnect.de. [2003:e4:1f0a:6900::43a]) by smtp.gmail.com with ESMTPSA id k14sm94762ljh.82.2022.02.17.13.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 13:38:01 -0800 (PST) Date: Thu, 17 Feb 2022 22:37:57 +0100 From: Thierry Reding To: Dmitry Osipenko Cc: =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH libdrm v2 00/25] Update Tegra support Message-ID: References: <20220217191625.2534521-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Wh3BVJzbBMulczrm" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2 (7160e05a) (2022-02-12) Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org --Wh3BVJzbBMulczrm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 17, 2022 at 11:02:53PM +0300, Dmitry Osipenko wrote: > 17.02.2022 22:16, Thierry Reding =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > From: Thierry Reding > >=20 > > Hi all, > >=20 > > this is the userspace part of the kernel patches that were recently > > merged into drm-next: > >=20 > > https://patchwork.freedesktop.org/series/92378/ > >=20 > > The goal is to provide a userspace implementation of the UAPI exposed by > > the kernel and show its usage in some test programs that can also be > > used for basic sanity testing. More complete userspace implementations > > are available here: > >=20 > > * https://github.com/cyndis/vaapi-tegra-driver > > * https://github.com/grate-driver/xf86-video-opentegra > > * https://github.com/grate-driver/grate > >=20 > > Changes in v2: > > - implement vic_clear() as a helper using ->fill() (Micha=C5=82 Miros= =C5=82aw) > > - rebase and fix a couple of Meson errors/warnings > >=20 > > Thierry > >=20 > > Thierry Reding (25): > > tegra: Indent according to .editorconfig > > tegra: Remove unused IOCTL implementations > > tegra: Extract common buffer object allocation code > > tegra: Fix mmap() of GEM buffer objects > > tegra: Add flink helpers > > tegra: Add PRIME support helpers > > tegra: Make API more consistent > > tegra: Install tegra-openclose test > > tegra: Update for new UABI > > tegra: Include private.h in list of source files > > tegra: Add channel APIs > > tegra: Add job and push buffer APIs > > tegra: Add syncpoint APIs > > tests: tegra: Add helper library for tests > > tests: tegra: Add gr2d-fill test > > tests: tegra: Add syncpt-wait test > > tests: tegra: Add syncpoint timeout test > > tests: tegra: Add VIC support > > tests: tegra: Add VIC 3.0 support > > tests: tegra: Add VIC 4.0 support > > tests: tegra: Add VIC 4.1 support > > tests: tegra: Add VIC 4.2 support > > tests: tegra: Add VIC clear test > > tests: tegra: Add VIC blit test > > tests: tegra: Add VIC flip test > >=20 > > include/drm/tegra_drm.h | 429 +++++++++++++++++++++++-- > > tegra/channel.c | 195 ++++++++++++ > > tegra/job.c | 187 +++++++++++ > > tegra/meson.build | 7 +- > > tegra/private.h | 85 ++++- > > tegra/pushbuf.c | 184 +++++++++++ > > tegra/syncpt.c | 101 ++++++ > > tegra/tegra-symbols.txt | 27 +- > > tegra/tegra.c | 386 +++++++++++----------- > > tegra/tegra.h | 95 +++++- > > tests/tegra/.gitignore | 3 +- > > tests/tegra/drm-test-tegra.c | 147 +++++++++ > > tests/tegra/drm-test-tegra.h | 55 ++++ > > tests/tegra/drm-test.c | 248 +++++++++++++++ > > tests/tegra/drm-test.h | 72 +++++ > > tests/tegra/gr2d-fill.c | 146 +++++++++ > > tests/tegra/host1x.h | 34 ++ > > tests/tegra/meson.build | 88 +++++- > > tests/tegra/openclose.c | 52 +-- > > tests/tegra/syncpt-timeout.c | 163 ++++++++++ > > tests/tegra/syncpt-wait.c | 151 +++++++++ > > tests/tegra/vic-blit.c | 333 +++++++++++++++++++ > > tests/tegra/vic-clear.c | 173 ++++++++++ > > tests/tegra/vic-flip.c | 333 +++++++++++++++++++ > > tests/tegra/vic.c | 184 +++++++++++ > > tests/tegra/vic.h | 181 +++++++++++ > > tests/tegra/vic30.c | 458 +++++++++++++++++++++++++++ > > tests/tegra/vic30.h | 439 ++++++++++++++++++++++++++ > > tests/tegra/vic40.c | 370 ++++++++++++++++++++++ > > tests/tegra/vic40.h | 285 +++++++++++++++++ > > tests/tegra/vic41.c | 374 ++++++++++++++++++++++ > > tests/tegra/vic41.h | 372 ++++++++++++++++++++++ > > tests/tegra/vic42.c | 374 ++++++++++++++++++++++ > > tests/tegra/vic42.h | 597 +++++++++++++++++++++++++++++++++++ > > 34 files changed, 7068 insertions(+), 260 deletions(-) >=20 >=20 > Why do we need these tests in libdrm? Why not IGT? Oops, sorry. I had meant to reply to your question in the previous version. The idea was to have this minimal set of tests in libdrm as a way to demonstrate how to use the various APIs. At the same time, this is meant to serve as an easy way to validate that everything works from the comparatively simple libdrm package. But yes, adding more tests on top of this to IGT is something that I've been pondering and I certainly wouldn't object if anyone else was going to attempt to do so. I don't think IGT and libdrm need to be mutually exclusive, though. Thierry --Wh3BVJzbBMulczrm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmIOwDQACgkQ3SOs138+ s6Fl5A/+PXZCaNobNnhmYfw5bctJSqyvzggoj9MaW3Jn9VE85IFwOimWKjRlbWlm OLf5xyFtWmPAOJY521k/db7CD5wvlUHH7zF13XsZAgeL9jDxEJZXWYr6BfIX06JQ ztTGWZZh2EC3tIhgf0bFMHvyogn32Hs3sWwsFeGaNVNcSWwPiDD80BTOLkPPL4Jj OejvUUVd0moSbghddx3KoP1OTpXynI2r3QXU6WgCkUarjtP3Mr/gwtsm0sOAM/LJ QtlxdqomgOv4JJSg9NSBp7UbztRG+2QvOMDNFuDPx4b+FQogrYMSa42OqOcxczjr dBV5102Z2d7zLMPWEgBBFZdFIUVnPL2ac4TuWPRGwL6h1CbMW5coSi4ZgciADKqJ Vn5XwZ5PB8PFqwYOi7J4dAMlJo78njHOk71hdY/g5PRjRk5R/KlDt3be8z6dh/3g YnjaDdwd45kuQSBXJux+UlWzjjwDAE4EdwJZUv2oQAHtODsHQyRy6sTdVrlKNIUB FHXAUW/ItLQVInywIEVISnYbIk6Se+Ay48hVJJ0THoZE9e4PVD9zHEp2zEblG0+m YFOhqZdIxIwAZjyou74WcydfdRN5quYvdJvF54M1SuBLyWx2CtXNc8zmticJvCZk +07G84jHLEp/lgpXkFXGiLsFVxznude00zbi7PLtO5OoNRD5rKo= =1Msg -----END PGP SIGNATURE----- --Wh3BVJzbBMulczrm--