Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3545155ybf; Tue, 3 Mar 2020 07:53:34 -0800 (PST) X-Google-Smtp-Source: ADFU+vthngEd4QsR22mlxtJRRE2GGc+8W8V/t3evJ19CH6rp7okFtImH1+PkL7729e+cTakIBPIu X-Received: by 2002:a9d:73d1:: with SMTP id m17mr3859222otk.19.1583250813987; Tue, 03 Mar 2020 07:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583250813; cv=none; d=google.com; s=arc-20160816; b=LJQKBekdaMsrW8FRilj0hPVJclia9bNQCjBSclYdkQ9TJc77/xcMzco8TSH4Z5fQDS VCJoGTRy0w4owcEW7DS3yS2HdymCGpT62Xfu+oOxfxItVSUJ+AYGHu5MAmzozh+v5v7r Sooc1L5ngCF/XMywmWOnqF0xCnKqAWCcZVCAENpmuqxbr50zmRt7pFmQ1/Q7R1NeE1qX EmTqbpFqO8CdO57SziRDl6KcgJ7ZIW1qevEQizRzeX61EJhAIlHbkHaPrkfJ3LQPEYsA BbdA1QK6DJJTaIoxJ9+sOa156RSZhkDuSsosr4wxXdAx7sOMskGU+YmDkSXwlXSvj8+h H5Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=XytWu3r+dyU0/pBn+bsdKdNhWgIQTzaFhBsjgsKZH6w=; b=Wb4+qbuYTIQDgm0SglMngD9SHaBHYvvyvmeqbsSkD+oJ1jzjbIyQyVuVhzOu7KT3pQ oHzTFrvaN5ENIfdASUJDNoNU0aGr/JSLlVD/9X8kil1CC2PepKataUt97XzPESm5BNFI g8c6qbqf0P2LySuT/E2ly8LEZrubsPFwJw2swOQJRS/MJwr/dfViCepfktcGKiN+NlTc GgloKaaSMgjAlgeEC22I6aBoegrxR4+jmfBthfZja/ICQzv0PMS0KgUs34v9Rmzshq4F I8le0dNVv09tah+a6cUfqolL0HLjVCXYd0igcKScEm6fxi7UHfgecnEWgEBbkooXlzni RU2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OM4XifN+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h203si7940989oif.3.2020.03.03.07.53.22; Tue, 03 Mar 2020 07:53:33 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=OM4XifN+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729959AbgCCPdt (ORCPT + 99 others); Tue, 3 Mar 2020 10:33:49 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:34074 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729589AbgCCPds (ORCPT ); Tue, 3 Mar 2020 10:33:48 -0500 Received: by mail-lf1-f65.google.com with SMTP id w27so3158429lfc.1 for ; Tue, 03 Mar 2020 07:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=XytWu3r+dyU0/pBn+bsdKdNhWgIQTzaFhBsjgsKZH6w=; b=OM4XifN+M6+A2PZ9MzioR4F2cYY82qVtoiwI5RXGtYAs5NkggLnfT1CPA2bm/3wRLM mlMrIdcFk8AWRZHTqqjk7UNTGQtDsEvkn/OP/zeMw6l6qz+dddPOrc+qyI8KE9KkESFP qqGnqXabEjyd1UmBfvDjivPTWTfGshIsxo/8uq0iJY9bWAYW2t1rxUJDuDtXq7HDQ7hb 3ngv5LeBAZyA4pSL+EsIc2qgeoTRXtiFNzyZJXK02trUK52/klNOBWUM1/kFeAsRnWph bpynirb4f009m0s1GWjQMz+d20R1GyxrovTlOtGnUwc9GD5ExCE3KwOGaFnWKqPK0RKQ xEzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=XytWu3r+dyU0/pBn+bsdKdNhWgIQTzaFhBsjgsKZH6w=; b=CfcQ4RF1gIpI/nNzcYJSOyo7Ngen7Qe0SnKYEujUcljfBT0PYB/TOIZyrz0fXoYzTn p/jrTDOy3p4KH1vrQYZBgsw3BMdLvOCgValv3pSogyBRnh18+SKAfGffBPY4mwMUCil+ 4fNuZCoS212mvLKaFoe4Pd7L4eVBydZRdQk7utXPM6pSfbAs7EX7Tdr9WFPwDHpMG+LR 9OW6vqvCiEDS6bDzBjL7Rlr93mS0g6RPET4b8vyufD1vI9xbM5w8YAh1ZrBIwlmf4lu9 /TsieC4l1rpL9nu4FSx9EfiYuMciDtpnUsufyodBtEX7rxWzJXNCdT1fhOHRfOCJ8HjN NwYQ== X-Gm-Message-State: ANhLgQ37SSdyb75zzDkdFLLzBd+ZvdVXI5Fw/005vUeRiN1Fc4pI9pxK +FZDXZgdX3dSI27Xixf6h+c= X-Received: by 2002:ac2:58ee:: with SMTP id v14mr1297311lfo.62.1583249625234; Tue, 03 Mar 2020 07:33:45 -0800 (PST) Received: from eldfell.localdomain ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id 19sm12036899lfp.86.2020.03.03.07.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 07:33:44 -0800 (PST) Date: Tue, 3 Mar 2020 17:33:32 +0200 From: Pekka Paalanen To: Daniel Vetter Cc: Brian Starkey , Neil Armstrong , Linux Kernel Mailing List , dri-devel , linux-amlogic@lists.infradead.org, nd , Linux ARM Subject: Re: [PATCH 1/4] drm/fourcc: Add modifier definitions for describing Amlogic Video Framebuffer Compression Message-ID: <20200303173332.1c6daa09@eldfell.localdomain> In-Reply-To: <20200303152541.68ab6f3d@eldfell.localdomain> References: <20200221090845.7397-1-narmstrong@baylibre.com> <20200221090845.7397-2-narmstrong@baylibre.com> <20200303121029.5532669d@eldfell.localdomain> <20200303105325.bn4sob6yrdf5mwrh@DESKTOP-E1NTVVP.localdomain> <20200303152541.68ab6f3d@eldfell.localdomain> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/20t=Q+C95R6JGDJv5djFJCC"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/20t=Q+C95R6JGDJv5djFJCC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 3 Mar 2020 15:25:41 +0200 Pekka Paalanen wrote: > On Tue, 3 Mar 2020 12:37:16 +0100 > Daniel Vetter wrote: >=20 > > On Tue, Mar 3, 2020 at 11:53 AM Brian Starkey w= rote: =20 > > > > > > Hi, > > > > > > On Tue, Mar 03, 2020 at 12:10:29PM +0200, Pekka Paalanen wrote: =20 > > > > On Fri, 21 Feb 2020 10:08:42 +0100 > > > > Neil Armstrong wrote: > > > > =20 ... > > > > > +/* > > > > > + * Amlogic Video Framebuffer Compression modifiers > > > > > + * > > > > > + * Amlogic uses a proprietary lossless image compression protoco= l and format > > > > > + * for their hardware video codec accelerators, either video dec= oders or > > > > > + * video input encoders. > > > > > + * > > > > > + * It considerably reduces memory bandwidth while writing and re= ading > > > > > + * frames in memory. > > > > > + * Implementation details may be platform and SoC specific, and = shared > > > > > + * between the producer and the decoder on the same platform. = =20 > > > > > > > > Hi, > > > > > > > > after a lengthy IRC discussion on #dri-devel, this "may be platform= and > > > > SoC specific" is a problem. > > > > > > > > It can be an issue in two ways: > > > > > > > > - If something in the data acts like a sub-modifier, then advertisi= ng > > > > support for one modifier does not really tell if the data layout = is > > > > supported or not. > > > > > > > > - If you need to know the platform and/or SoC to be able to interpr= et > > > > the data, it means the modifier is ill-defined and cannot be used= in > > > > inter-machine communication (e.g. Pipewire). > > > > =20 > > > > > > Playing devil's advocate, the comment sounds similar to > > > I915_FORMAT_MOD_{X,Y}_TILED: > > > > > > * This format is highly platforms specific and not useful for cross-= driver > > > * sharing. It exists since on a given platform it does uniquely iden= tify the > > > * layout in a simple way for i915-specific userspace. =20 > >=20 > > Yeah which we regret now. We need to now roll out a new set of > > modifiers for at least some of the differences in these on the > > modern-ish chips (the old crap is pretty much lost cause anyway). > >=20 > > This was kinda a nasty hack to smooth things over since we have epic > > amounts of userspace, but it's really not a great idea (and no one > > else really has epic amounts of existing userspace that uses tiling > > flags everywhere, this is all new code). > > -Daniel > > =20 > > > Isn't the statement that this for sharing between producer and decoder > > > _on the same platform_ a similar clause with the same effect? > > > > > > What advantage is there to exposing the gory details? For Arm AFBC > > > it's necessary because IP on the SoC can be (likely to be) from > > > different vendors with different capabilities. > > > > > > If this is only for talking between Amlogic IP on the same SoC, and > > > those devices support all the same "flavours", I don't see what is > > > gained by making userspace care about internals. =20 > >=20 > > The trouble is if you mix&match IP cores, and one of them supports > > flavours A, B, C and the other C, D, E. But all you have is a single > > magic modifier for "whatever the flavour is that soc prefers". So > > someone gets to stuff this in DT. > >=20 > > Also eventually, maybe, perhaps ARM does grow up into the > > client/server space with add-on pcie graphics, and at least for client > > you very often end up with integrated + add-in pcie gpu. At that point > > you really can't have magic per-soc modifiers anymore. =20 >=20 > Hi, >=20 > I also heard that Pipewire will copy buffers and modifiers verbatim > from one machine to another when streaming across network, assuming > that the same modifier means the same thing on all machines.[Citation nee= ded] >=20 > If that is something that must not be done with DRM modifiers, then > please contact them and document that. Sorry, it's waypipe, not pipewire: https://gitlab.freedesktop.org/mstoeckl/waypipe/ Thanks, pq --Sig_/20t=Q+C95R6JGDJv5djFJCC Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAl5eeMwACgkQI1/ltBGq qqf/Fg//cGf3Jl24cG2786dCZ6HUCq1M9Y8RBH9FF1vf3OKM+cc+1L4WTQSeMyBl mrIx/SCALVu00WoTKDL3raIX50dBnhx5jXp02bEQYpPVSvS4a9YD1DmgoqogGU6R 2mq9M//HkRSUkM6bqSoHPUvyuhGnPSj99mEJ4nl/yaiUMLsgF/HLtwLB4i9lGtMo Ecdjd47ds/uMOFT6kBwwWvDDmSNbSGDtXFLbd5bGGZ4IAwue2BtHcEkZpwEIYB0w 0Ckd0Cbx7Fw8Pz4/trYm8gmRrQRJg0d7uQK073O+gle8oqam/2Sldy4UQv7SuSLC sFW7dZWQ/M1B5s0hlnsXn17Vg/PAfu/iDbVwnIEtjEeCX3N26Kmh7yqeeuJnxaci +ULCDxDjXUVcoWKzP8hj/savLLgPWsHNg6M27CRwp3rcWW2I7hAzYK8cqc7ym5bW fEBdAJ2l81ciF/q7mLcch1zjVtmBtOwGWdVlBxZwsx7P+mwLOIOIa8jByYKvHh5R ObIQlo9fjg+001No3rIXwUHjYqLuXsKMM3qIZ9wNzFPRYf3y6nAaJFFLGMMcIVX7 oeyppX/R7Shaj4x2O3b7ryEc7YKHxWMw1FneHYYP7tuWkz76e2OyLRB+x5XmEDe7 qCcQN8MD/yaWaZDsns6GmmpV1k20V8iLqgKNXTyoSHYv8bNgrlg= =N4Y2 -----END PGP SIGNATURE----- --Sig_/20t=Q+C95R6JGDJv5djFJCC--