Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2429029ybf; Mon, 2 Mar 2020 08:26:45 -0800 (PST) X-Google-Smtp-Source: ADFU+vtGlbLIfSpNRjN2TwYmNjda79YWISE7R45vJlk/2/V7rIfWqQjZWk3Tma6BTAfoTCgdjnBB X-Received: by 2002:a05:6808:4cc:: with SMTP id a12mr204078oie.115.1583166404974; Mon, 02 Mar 2020 08:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583166404; cv=none; d=google.com; s=arc-20160816; b=DTw/UQLAdhAE9TMS0wsydQ4SD/+Ii7D6uJvUc3u1ShGw2Jg7dhO8k6pRavlH25FSZp 7/8eZ0xYk3XUr336F0+PI2b0msiYToobeGrHAc4Mo4CgmL6MDCWqm0BNnNmfTwmVy9lD eZ+IN0mTFkdAHTwsu7AaBFezQ3q9IDMHmLhahegkRDyE2xPqDpRGpjPqHo3WoAUz617w PuniAxJIrWPYSm3jz6FHIqfP4KwPHydHFKvXZZI5qDMl0FImiLrun5+isZOmqaLEIHnl BDcxQN60x1MMXHW6NU+gbE7q1SzHwY6lTEND1mUm/S5zt6ty5y8chxPUbLCXAMJeep2E oDcQ== 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=DQCMbgMMKN4eMeJGo0Sh2/wZnBo8vQSRKLHwF2vzE7s=; b=U3B/OOA0OcykjqblQGW7SRZN3VopKPGyInUGUq8Yi+XifXCK1E0ED4ym/PnFrEem/v Fyjv7Dory3zrBxxjI1fj1U4Q2SZVc/cweu40zjspTVbb6pdDGWD0Ee1OwmiFt7QER6Ig fSLLktBF9G3QRIxKptNA2KX15XhHRK0duVVjPPEOK4+Bu7MRvRub8wPvVwwFqsBMzxa1 obcfwwdI+H1IZQ20YFrteBLrDCPQcbKzVEPDQeCIDnN/iwU9a6C8nVs8CSPb1DRc3Ffx nZE/ieqEe3kwhkbqWNWhW7m1nXIZmXbHDOOZO2YD0Msh1s2kEZ1zhePaL9B7uHgPts3D UIQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=B3X4puU1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si1845754otp.214.2020.03.02.08.26.32; Mon, 02 Mar 2020 08:26:44 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=B3X4puU1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727101AbgCBQZL (ORCPT + 99 others); Mon, 2 Mar 2020 11:25:11 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44310 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727060AbgCBQZL (ORCPT ); Mon, 2 Mar 2020 11:25:11 -0500 Received: by mail-wr1-f65.google.com with SMTP id n7so418193wrt.11 for ; Mon, 02 Mar 2020 08:25:09 -0800 (PST) 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=DQCMbgMMKN4eMeJGo0Sh2/wZnBo8vQSRKLHwF2vzE7s=; b=B3X4puU1y9SmFMshbChsRmChUOK2azMe71Z6UNk1N9NDl6tMQa4PSHNF+osdrbJXHY wLD5KwG64BeOrgSRYxi/KRY7U9Nl6yD/Zqy1LV1yjLeKSQ+bQwT1O3spYrzbqA14zOpC WAI4GQmlEl4Wc5tpIjvpyTrGtZPFv/wxLch4Pr4Iq9Y5B2m+40bqPAz/0xfJyeRemzj7 0GxWPqrZ0yjWODLO4bwgMiDbhJVSzI1HoZ1lMeY9rrvi2XBUarq7sSV0loFlK0iPK3c3 dnIpKxLpNYJ2D99tIj2D/1HpIPR1RFvDWajdRmPOKU0UpLGNxs+OwFbatGARS0xCNo/O SA7Q== 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=DQCMbgMMKN4eMeJGo0Sh2/wZnBo8vQSRKLHwF2vzE7s=; b=e9ouYt5ghnWgUWmSnsmpUnZJR7LRsYAxCxyttxEcFk58LSBuV3RzDryHlQTv61j6Eg OJ37lF2vwbF9o2S81AR5lT8ZzceFoybchs+4qs1idE4KQsGD1rnjU6HUsWTnTIveTCfV YvJ8KxBf3v8TC67kpIsBD2aRLcYESylZSBXE1gt3tZ+8st81CVBvTn0lLd75ZLdw0ne5 qQ1kOpcQwLNllpskigFdfi6kPiyHwxvfc091KspUVqM1tIQUZ6J9u8k5SzSFK+B6oe6/ YbFFNcs7omdZnywKqllO4Tc8qPry6AJi4aGXLBPQ1RmK7tONKLTm3W93fHQ6lV+TsmUh btDw== X-Gm-Message-State: ANhLgQ2Ni36n1wNJGCct8LflF9MmAG3ylaTeuvk6MQMwNiR0AwWExZdA mBhPaYdJr3DMcSBYYwN+sFbJGw== X-Received: by 2002:a05:6000:149:: with SMTP id r9mr335199wrx.147.1583166308694; Mon, 02 Mar 2020 08:25:08 -0800 (PST) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id k7sm15851605wmi.19.2020.03.02.08.25.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Mar 2020 08:25:08 -0800 (PST) From: Kevin Hilman To: Neil Armstrong , daniel@ffwll.ch, dri-devel@lists.freedesktop.org Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] drm/meson: add support for Amlogic Video FBC In-Reply-To: <20200220162758.13524-1-narmstrong@baylibre.com> References: <20200220162758.13524-1-narmstrong@baylibre.com> Date: Mon, 02 Mar 2020 17:25:06 +0100 Message-ID: <7hy2sirafx.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 options are supported : > - Scatter mode: 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 > - 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. Tested on meson-sm1-sei610 with 4k@60p (VP9) streams. Tested-by: Kevin Hilman Kevin