Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1714524ybt; Thu, 2 Jul 2020 11:58:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNsHTsA0IvpG7W+lldmdhB9Zo99iUejEzl8iFIpY+JLZhicK38vQhDamuWGiBn8BuSgd6I X-Received: by 2002:a17:906:7212:: with SMTP id m18mr28654977ejk.29.1593716327469; Thu, 02 Jul 2020 11:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593716327; cv=none; d=google.com; s=arc-20160816; b=jk2zyTIxUkS0xQhX7LjEHvqHeZcEbsTQeLQUrajWAXTR7uF+5kV6my+03qlLpearXy ZM9pxmKXb/bsdYOzKB5wVkKDrP/pIX/EGxI0Dek4FsfSJYyvrPEoWPWTFshSaDoS5hWy NCHpaBaMPx0HS/mHYLltBybZpa/3md+lik/XJGCK6urwLaFNWuTu+/Sd/P7Fz2GAO58N 7a7v1mO1V1Jg7MI6gm67LW275dCrXeQTPj/6ba1AOWX7tbJfwigMU6DH1q6bAfh/HmnI QJIBzdj/nQd2IWUmSLyMsA2DUfBbclCnP9xh/UEUPrFvHj1e9b8fBwS4vdh2Pp7uh2Y3 dZBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=hz4Mj/iQWQ1Gm0J6ofti89mpz3pTQ7LpeTX5svYgVDU=; b=pRxX2jKjLit9LSNszxEplbbtnPf9PIi6e/HupPLNKXpdelWgmE2ItuVcvuldE3dCsc 7MdBMGO2H+cWi8CantO3aemlB/N/TnqjDJ0ClC60EKLqgp/9/3eShnehR4jNYfPdtMQw vgU3HjVqKSAjcujNXrgDdQvjy8Ca0JNP2sYJyFiPutyjBTqR3vr1SmDRU9hL+KdU3C1G lEI+ecnxDMudd7Dr5xQXES3h98tdDnLxR7R+/SwsUaL7KfND8l+ZXsM/YGdtx0FskR+0 7Mi1AKBbjN2ntuIzK7ftBT+i3VMFkMprw8tOoaFXHwDCouZnXJB4/JvOhCF0hI3EWt/G Mqzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=vIYTYR0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si6460577edr.496.2020.07.02.11.58.25; Thu, 02 Jul 2020 11:58:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=vIYTYR0m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726455AbgGBS5m (ORCPT + 99 others); Thu, 2 Jul 2020 14:57:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgGBS5k (ORCPT ); Thu, 2 Jul 2020 14:57:40 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9F8BC08C5C1 for ; Thu, 2 Jul 2020 11:57:40 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id f2so11654051plr.8 for ; Thu, 02 Jul 2020 11:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=hz4Mj/iQWQ1Gm0J6ofti89mpz3pTQ7LpeTX5svYgVDU=; b=vIYTYR0m8trV9lrGh8PSvAGnzTxA5G6rFm/vi7ItU7DM4fvPTm/3Rl6ME1n7it2B1M T30gPbuZtIE6zll34iGAqLPSdG6bmMkAT7qZrHG23Iy2IrCRlFaNzAsYQxUBUtDS7maR lsMpgjIPLbqvPDQlAxBB7JqNjvFBayTSyW6uH39IJTaZMduCtQ7pwgshj2ZogHfR0AYK rC+JXeUG8Ftfy0mqFWAjEeGKNCPSA+bU+DULdd9p41k1p8IbO6nixuAiWR3klbBC35vM ims47ez4t1jO7VNTh6Q4ji0M92+FQztMbbM3vX5S4RlQYC9J2EyktcqMDI2JKUeROJQS ApcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=hz4Mj/iQWQ1Gm0J6ofti89mpz3pTQ7LpeTX5svYgVDU=; b=cexo+GpSiqeoefb3kboLb2hb20nillkRQrDCwpfCme27gNEkDgj3VeLFkWKXG/iuWs /7fqPlagKYu2F4//OCd2MWfbjEO0y/I/iWqWWCeTEKldnBW9kpt3Hj2oR5eK4OnYid0e SqJnKw+dA33EPWrog6ynabSKJa/nvhBEAOVrxO3A57kvAaXpu2/xpF2sI6iWtk0zmnPA J9dtBJEg0FGAj6GRXGT/ovoejewXWqNvV4G9gT8bGCQaPzrOpU52MDgg4IdcxhgsbjBX 1maY5a50h3See+hC5KF8sgXST4uwSSXcxPoNKolIGjqUW3VBqqSAVSkO3ehqWjPt+oEl a9YQ== X-Gm-Message-State: AOAM533zJyd4JHBi1N6XfTYdnHMKHcT2Ko1cfzi3EDwaKjBb2QSFORVD N8HYA4YyXpbtG8mmVtE62beo5Q== X-Received: by 2002:a17:90a:f695:: with SMTP id cl21mr35145208pjb.86.1593716260173; Thu, 02 Jul 2020 11:57:40 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id c71sm7396890pje.32.2020.07.02.11.57.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 11:57:39 -0700 (PDT) From: Kevin Hilman To: Neil Armstrong , daniel@ffwll.ch, dri-devel@lists.freedesktop.org Cc: jianxin.pan@amlogic.com, Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 0/6] drm/meson: add support for Amlogic Video FBC In-Reply-To: <20200702074759.32356-1-narmstrong@baylibre.com> References: <20200702074759.32356-1-narmstrong@baylibre.com> Date: Thu, 02 Jul 2020 11:57:38 -0700 Message-ID: <7himf5iw2l.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Neil Armstrong writes: > Amlogic uses a proprietary lossless image compression protocol and format > for their hardware video codec accelerators, either video decoders or > video input encoders. > > It considerably reduces memory bandwidth while writing and reading > frames in memory. > > The underlying storage is considered to be 3 components, 8bit or 10-bit > per component, YCbCr 420, single plane : > - DRM_FORMAT_YUV420_8BIT > - DRM_FORMAT_YUV420_10BIT > > This modifier will be notably added to DMA-BUF frames imported from the V4L2 > Amlogic VDEC decoder. > > At least two layout are supported : > - Basic: composed of a body and a header > - Scatter: the buffer is filled with a IOMMU scatter table referring > to the encoder current memory layout. This mode if more efficient in terms > of memory allocation but frames are not dumpable and only valid during until > the buffer is freed and back in control of the encoder > > At least two options are supported : > - Memory saving: when the pixel bpp is 8b, the size of the superblock can > be reduced, thus saving memory. > > This serie adds the missing register, updated the FBC decoder registers > content to be committed by the crtc code. > > The Amlogic FBC has been tested with compressed content from the Amlogic > HW VP9 decoder on S905X (GXL), S905D2 (G12A) and S905X3 (SM1) in 8bit > (Scatter+Mem Saving on G12A/SM1, Mem Saving on GXL) and 10bit > (Scatter on G12A/SM1, default on GXL). > > It's expected to work as-is on GXM and G12B SoCs. Reviewed-by: Kevin Hilman Kevin