Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp406445ybb; Wed, 25 Mar 2020 02:06:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtOyziJO9LHVYgRdLWxkOJXcgVwHA2z1FDF/qu4WXJl/NHLkNWrwFzaTyRcSTYGRoXg6l6/ X-Received: by 2002:a05:6830:146:: with SMTP id j6mr1670232otp.352.1585127171085; Wed, 25 Mar 2020 02:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585127171; cv=none; d=google.com; s=arc-20160816; b=nYrzTohIAoYcL95kFpzI5vOBlSyRcPGfhmzKzqTNnOgOrHebWFhcaH20SMyzazEK6O QVnCKxgG6Wr6zQqH5aucZuo98Sb3t31f8amnvMAYoJOhtr+xlPZZteYTqqVUxiNCNp8W t4zztE1aMFHATQPxULBHL5VlAdrD2Vg59QAw5LF6xejm4x6TvbhCJ3M12JYuF49f0ZmA rbAVcus0vYKCYiGo37bOJM/KtVmGThQnT61gobzfaVEn3g/EoQ7ieDFle4qpfGQOVYPB o0mprjqP+aTcpEtWdkrMg9iJQ6Wqy6Lk/fznnoGWLnV8C77SMVs6I0wJ7dy/QPBmk91I RwDA== 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 :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=Guy2vOhTyBfZhuCrDbubTIeu//kaLb6ip8d00QcbKFc=; b=xmrCCDaeIXbsES9eZJij2m9nc0NpgF2WT1RUUTHyLhpWJ9nVCOArG32qQqWUgpK7Oq yJTtEv6k3aDR9zoF9DLG9J3fcl/jIEU+TZ7fMX2DlPc0i2vmwlaTHlAv3wcC71aNwRnB zAJlsaFA0O4WpqamQ6rij+27s8FAnvEoM51StP/vG6lZQ342R2C7QSVolo1XsAOgbbGM 5m84K4fZYVcM0fjfF1NIDtUW4X+Q76t3NujAcE9NwmNpFaW+9lfK8oSbtErqtMD2a0nu j2OHDrMR7v9oOeGsreBXqVKs5tMNs14FWQHCxyJe6RLVvSNVrFiNtdxC7MyT8LlaUNwR 4Eqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail header.b=UQwj5mzF; 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=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 127si10116991oig.130.2020.03.25.02.05.56; Wed, 25 Mar 2020 02:06:11 -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=@emersion.fr header.s=protonmail header.b=UQwj5mzF; 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=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727319AbgCYJES (ORCPT + 99 others); Wed, 25 Mar 2020 05:04:18 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:51117 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgCYJES (ORCPT ); Wed, 25 Mar 2020 05:04:18 -0400 Date: Wed, 25 Mar 2020 09:04:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1585127056; bh=Guy2vOhTyBfZhuCrDbubTIeu//kaLb6ip8d00QcbKFc=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=UQwj5mzFaHihXW13WpxBcrPWmbIGaA8H7Qj+3IufGWtq8INdISQG6sVlJn+S4In/9 PNcaW1d2j3KDPhCsoCgbgouJj2J1wgZimNSJCD73RXSstTyFiXvNANX31Fd+bqxpU2 zh9IMKKqAuoKSdZ9hI2GOhyoKL+jj1bU9/CxHvGE= To: Neil Armstrong From: Simon Ser Cc: "daniel@ffwll.ch" , "dri-devel@lists.freedesktop.org" , "mjourdan@baylibre.com" , Kevin Hilman , "linux-kernel@vger.kernel.org" , "linux-amlogic@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Reply-To: Simon Ser Subject: Re: [PATCH v4 7/8] drm/fourcc: amlogic: Add modifier definitions for the Scatter layout Message-ID: In-Reply-To: <20200325085025.30631-8-narmstrong@baylibre.com> References: <20200325085025.30631-1-narmstrong@baylibre.com> <20200325085025.30631-8-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, March 25, 2020 9:50 AM, Neil Armstrong wrote: > Amlogic uses a proprietary lossless image compression protocol and format > for their hardware video codec accelerators, either video decoders or > video input encoders. > > This introduces the Scatter Memory layout, means the header contains IOMM= U > references to the compressed frames content to optimize memory access > and layout. > > In this mode, only the header memory address is needed, thus the content > memory organization is tied to the current producer execution and cannot > be saved/dumped neither transferrable between Amlogic SoCs supporting thi= s > modifier. I don't think this is suitable for modifiers. User-space relies on being able to copy a buffer from one machine to another over the network. It would be pretty annoying for user-space to have a blacklist of modifiers that don't work this way. Example of such user-space: https://gitlab.freedesktop.org/mstoeckl/waypipe/