Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1381155imm; Wed, 20 Jun 2018 17:17:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLo05VG2UFP0KKBvDCzE14CAFZMuK9dZ1eIzHx3sLQipUIQ6oXkTyQIAzp82E7YzQtr8EYj X-Received: by 2002:a65:5185:: with SMTP id h5-v6mr20955996pgq.0.1529540278209; Wed, 20 Jun 2018 17:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529540278; cv=none; d=google.com; s=arc-20160816; b=pF7WOnRpvSHa2R0cw63O7uq42bX35Vzu+FD3NldYYEFLUUpJ52oQkgPYC2b9smrXqF Rel8a8Gcrgob1rm1nF4hF5vDGta9mhgS4YcmUzwsanMtSFf+59piJGuyRt+HbPA1sd9Z jlEkVxW/zatelqigMwUbWPdGCK2iFidEmNyo6mn/n0pKtraFPTxj7YYMs4GkTovnBvsv uOFNJ6C3+EREHm5P3enH/4/H7nrBaztbVlYZJHVq+axVExrj/nvgsbJIHSpby847Gf6b Z2Q7r9fcgZX85Q4agdIVMQTz5soRSmesgxgfHCizIo/81NWC3kK0q3lNDaxKp0xTQPrX aXDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uplNRZ7R0FiyVmo91OLxoPN0I32AI3HFaPay81N8usk=; b=TVhABSRSdn/lcJfjvTcfp011kYfurn289vuvEAH1rp1V+G0L1YOA6spnjLMXRlpmjf y84YRtcK0W1RAWcZPmg7swjMDbDbyUPiy/51ze4fHZgZESJgHvoql6GCHapSwOxUZYBL t6XPkd/A7dvPnPE5j3qSXl09QzWbKde94f9K8Ey+n2Pc9R8DkwI/ULrhEScLKPPf/FtR kKNBNzYasoPGgvN4Q7yWTsFXLdDpAB6bc/4HwFIY9PxtzCOYDK6STbmtt+DaPS12urqe z0Cdw0b9KESOiU2veWjNYGI0fWo+KRtn1AS79vmW8h7cq/USrYpu8fzvtXTjFEu+0c1+ HwHg== 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 6-v6si3453758plb.409.2018.06.20.17.17.43; Wed, 20 Jun 2018 17:17:58 -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; 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 S1754290AbeFUARH (ORCPT + 99 others); Wed, 20 Jun 2018 20:17:07 -0400 Received: from anholt.net ([50.246.234.109]:49964 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753725AbeFUARG (ORCPT ); Wed, 20 Jun 2018 20:17:06 -0400 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id A69AC10A1633; Wed, 20 Jun 2018 17:17:05 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FZ4_ViMobNRB; Wed, 20 Jun 2018 17:17:04 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 7571310A053A; Wed, 20 Jun 2018 17:17:04 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id CBFEB2FE2FF0; Wed, 20 Jun 2018 17:17:03 -0700 (PDT) From: Eric Anholt To: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, Eric Anholt Subject: [PATCH] drm/v3d: Define the fourcc modifier for the Broadcom UIF format. Date: Wed, 20 Jun 2018 17:17:03 -0700 Message-Id: <20180621001703.13522-1-eric@anholt.net> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This will be used by Mesa, and potentially other drivers in the future, to describe tiled buffers. Signed-off-by: Eric Anholt --- include/uapi/drm/drm_fourcc.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 64bf67abff7e..d5e52350a3aa 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -464,6 +464,27 @@ extern "C" { #define DRM_FORMAT_MOD_BROADCOM_SAND256 \ DRM_FORMAT_MOD_BROADCOM_SAND256_COL_HEIGHT(0) +/* Broadcom UIF format + * + * This is the common format for the current Broadcom multimedia + * blocks, including V3D 3.x and newer, newer video codecs, and + * displays. + * + * The image consists of utiles (64b blocks), UIF blocks (2x2 utiles), + * and macroblocks (4x4 UIF blocks). Those 4x4 UIF block groups are + * stored in columns, with padding between the columns to ensure that + * moving from one column to the next doesn't hit the same SDRAM page + * bank. + * + * To calculate the padding, it is assumed that each hardware block + * and the software driving it knows the platform's SDRAM page size, + * number of banks, and XOR address, and that it's identical between + * all blocks using the format. This tiling modifier will use XOR as + * necessary to reduce the padding. If a hardware block can't do XOR, + * the assumption is that a no-XOR tiling modifier will be created. + */ +#define DRM_FORMAT_MOD_BROADCOM_UIF fourcc_mod_code(BROADCOM, 6) + #if defined(__cplusplus) } #endif -- 2.17.0