From patchwork Wed Jul 3 15:55:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 168453 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1911833ilk; Thu, 4 Jul 2019 00:25:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPgOmgKlivvAy24kFzst7RocVyLoPxo/kFZ7g6JGlzFbNgRmXxH9thhPzaAQuR7gfMPd9b X-Received: by 2002:a63:f4e:: with SMTP id 14mr41989946pgp.58.1562225136389; Thu, 04 Jul 2019 00:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562225136; cv=none; d=google.com; s=arc-20160816; b=PNNoDMsq9QnrhyXDaJmSlJpnYltDvPaYlfdCumbrgfplB4XV+2Uvc0wE32T62P3Mq/ rOr+BEDhOPw6Q2DYH6OfScyk1+OZsmpiQ6vr5lqFSaprwKh0E9DbZS5UHpfx2WC2Kg2W h1qQsyNM3xnFEuGmKGg/rnHPpClTbxgKk1zzPxrOqHPoIGjJcFE3lG9+vaPScP9aZB/p feD5j9kqLHSPjY17Vlt6A86InFvHEgVYqj9X/4KREc44KsyTaia+0jJeb0uVHTYvsN4l gZoyiWwgb7KjArQyIQMTI8sYFVXO5Dk9yoBA9hM/FTpiU6GsX5dHZFMZ2YaTYhopPTz8 VFPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=zXGxA+gnJI2q/xJEUcROfLYW0K/ITBz9ud9uQguuX4I=; b=UjATW2mn24onBPHiIel2/sQvnumTYbQXZ38r9dHAL6lVlGu0mTl69ThOvrRADOhtx1 Ea0tiHpSLhXgH6mSV1S5wB/pO8UcrJYV9mmSAAguO+QVajE3TjqUakX8lDt6CmYRy1rs WAYYI18X/1GuqNLhGZhas/GaTdH1P0+uAR1adO6rPk1hWJvGdL+beCGXUmxN0QBrfak+ 7ZKMSXbjvu7WOGYgDzGMdQ3L6X89zBBWQp3LSh74wmORLT4910xvqCOP87XYZCu+Lvgy 4MwBl627SchKe+9fFQkTKrOJfdcjr/wGssufgPio7JPzpBdP/jzb6FmGE2Q4ovh/xwcV 87Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id l184si4808210pge.286.2019.07.04.00.25.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jul 2019 00:25:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F6566E280; Thu, 4 Jul 2019 07:25:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id E384D6E16D for ; Wed, 3 Jul 2019 15:55:48 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x63Ftlk4059892; Wed, 3 Jul 2019 10:55:47 -0500 Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x63Ftla1099237 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Jul 2019 10:55:47 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 3 Jul 2019 10:55:46 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 3 Jul 2019 10:55:46 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x63FtjGt122082; Wed, 3 Jul 2019 10:55:46 -0500 From: Jean-Jacques Hiblot To: , , , Subject: [PATCH 4/8] drm/omap: cleanup OMAP_BO flags Date: Wed, 3 Jul 2019 17:55:32 +0200 Message-ID: <20190703155536.28339-5-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190703155536.28339-1-jjhiblot@ti.com> References: <20190703155536.28339-1-jjhiblot@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Approved-At: Thu, 04 Jul 2019 07:25:13 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562169347; bh=9EhmjkByqc9yQn1jXmBokEn/jgfmINUvb+h85iVasbk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QKqFj6bRArg3JZr8rqhZbCLKXBOjJa+M4wcd8Dg3sTolzEzsz3rv653JmWtyEdN1h FLgHikn2QD1KVO1gzo9fIeOqziQPVCTPDGE9QzaRGixZleRiz+A/uaBL0gG0CtC29Y tlS3/toML3EVj4zKozSXOLOx8EuQ3bCGrmg8n4+4= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jsarha@ti.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Tomi Valkeinen Reorder OMAP_BO flags and improve the comments. Signed-off-by: Tomi Valkeinen --- include/uapi/drm/omap_drm.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/uapi/drm/omap_drm.h b/include/uapi/drm/omap_drm.h index 1fccffef9e27..d8ee2f840697 100644 --- a/include/uapi/drm/omap_drm.h +++ b/include/uapi/drm/omap_drm.h @@ -38,19 +38,20 @@ struct drm_omap_param { __u64 value; /* in (set_param), out (get_param) */ }; -#define OMAP_BO_SCANOUT 0x00000001 /* scanout capable (phys contiguous) */ -#define OMAP_BO_CACHE_MASK 0x00000006 /* cache type mask, see cache modes */ -#define OMAP_BO_TILED_MASK 0x00000f00 /* tiled mapping mask, see tiled modes */ +/* Scanout buffer, consumable by DSS */ +#define OMAP_BO_SCANOUT 0x00000001 -/* cache modes */ -#define OMAP_BO_CACHED 0x00000000 /* default */ -#define OMAP_BO_WC 0x00000002 /* write-combine */ -#define OMAP_BO_UNCACHED 0x00000004 /* strongly-ordered (uncached) */ +/* Buffer CPU caching mode: cached, write-combining or uncached. */ +#define OMAP_BO_CACHED 0x00000000 +#define OMAP_BO_WC 0x00000002 +#define OMAP_BO_UNCACHED 0x00000004 +#define OMAP_BO_CACHE_MASK 0x00000006 -/* tiled modes */ +/* Use TILER for the buffer. The TILER container unit can be 8, 16 or 32 bits. */ #define OMAP_BO_TILED_8 0x00000100 #define OMAP_BO_TILED_16 0x00000200 #define OMAP_BO_TILED_32 0x00000300 +#define OMAP_BO_TILED_MASK 0x00000f00 #define OMAP_BO_TILED (OMAP_BO_TILED_8 | OMAP_BO_TILED_16 | OMAP_BO_TILED_32) union omap_gem_size {