Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3215822imu; Sat, 24 Nov 2018 00:18:19 -0800 (PST) X-Google-Smtp-Source: AJdET5ed4eJiAewqwJFlPU/pIT88sUyQmtZOtB3QNDsgDsm81pw3oUuoDxzfvHlb9ViUil9d0NlG X-Received: by 2002:a62:3241:: with SMTP id y62-v6mr19619842pfy.218.1543047499922; Sat, 24 Nov 2018 00:18:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047499; cv=none; d=google.com; s=arc-20160816; b=I4d89EIpk/xFFCcoTObUdlj4AuGVqpNNocZtUvaggIpWybh/Q8kb2lAI6PY5uME81y ky+uKBNzbGRn2PVNp1ewX3n3KIC5TiCEZ9ti9uEj2Xs4eg0eUyh9NcSOdDBh62fBsO6i 0N9YxUScZOxKE5rtbZlHZqm1F5rjg8XRDYLKY7w+u4w3WYyb6+3FUKU4inL8z2YpHxi2 234yvqOJfAhqzbvquNwCuXtHPd89wSlPXAHOz0CtNbJRhDMTbEpkaomffOP+DU226KCh eouKq86lY+r+AQBCSfNdf4lxmlP2HUV9wnx1K5z3xglkqWAIHfb3XEg3GmUNkbrOj+sH Ji4Q== 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:date:subject:cc:to:from; bh=Jyp2Lp1RVulO02PoMDjt4ZP76eZL5+SOO8npTcYYZTs=; b=zhReRiuZ13nRNh1+tI1hmo8LKvhOGNSxbZy+Vn1u39d5eLp9hemC08CujkB/Szkz1F hEyVVV9uON+8V4LkunJXnm+E5ilgDP27PuxaRR65pG5Kqcf1xX//UgDVWvzIAZ5P2Ld9 xMBNf+t0AYCOHsPlAb8aQQRqVRvMRRrcUObqJD3hrqPkDCFrRqFMSLSMH3kT+9U08kri Ch22omqXoLeZ4sS486M88O//Nw4TZicqNsWmiNK0abIZI9KTet31frqKnvjHLxrg9gYO uzG4SU9z58pqfzrdZYngNrbn9g40ZaQu8tC6WWAflIzfpfhogiDJE6mRzAZD+zBUe1if 3+Gg== ARC-Authentication-Results: i=1; mx.google.com; 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 f1si22739504pgq.553.2018.11.24.00.18.05; Sat, 24 Nov 2018 00:18:19 -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; 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 S2394108AbeKWUM1 (ORCPT + 99 others); Fri, 23 Nov 2018 15:12:27 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49411 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408925AbeKWUK2 (ORCPT ); Fri, 23 Nov 2018 15:10:28 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id B40EE20E3C; Fri, 23 Nov 2018 10:26:58 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id 5BBF220EB2; Fri, 23 Nov 2018 10:26:35 +0100 (CET) From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi@googlegroups.com, Daniel Vetter , Paul Kocialkowski Subject: [PATCH v2 30/43] drm/fourcc: Add definitions for Allwinner vendor and VPU tiled format Date: Fri, 23 Nov 2018 10:25:02 +0100 Message-Id: <20181123092515.2511-31-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This introduces specific definitions for vendor Allwinner and its associated tiled format modifier. This modifier is used for the output format of the VPU, that can be imported directly with the display engine hardware supported by the sun4i-drm driver. Signed-off-by: Paul Kocialkowski --- include/uapi/drm/drm_fourcc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index e7e48f1f4a74..841535172507 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -237,6 +237,8 @@ extern "C" { #define DRM_FORMAT_MOD_VENDOR_VIVANTE 0x06 #define DRM_FORMAT_MOD_VENDOR_BROADCOM 0x07 #define DRM_FORMAT_MOD_VENDOR_ARM 0x08 +#define DRM_FORMAT_MOD_VENDOR_ALLWINNER 0x09 + /* add more to the end as needed */ #define DRM_FORMAT_RESERVED ((1ULL << 56) - 1) @@ -643,6 +645,20 @@ extern "C" { */ #define AFBC_FORMAT_MOD_SC (1ULL << 9) +/* + * Allwinner tiled modifier + * + * This tiling mode is implemented by the VPU found on all Allwinner platforms, + * codenamed sunxi. It is associated with a YUV format that uses either 2 or 3 + * planes. + * + * With this tiling, the luminance samples are disposed in tiles representing + * 32x32 pixels and the chrominance samples in tiles representing 32x64 pixels. + * The pixel order in each tile is linear and the tiles are disposed linearly, + * both in row-major order. + */ +#define DRM_FORMAT_MOD_ALLWINNER_TILED fourcc_mod_code(ALLWINNER, 1) + #if defined(__cplusplus) } #endif -- 2.19.1