From patchwork Mon Oct 7 11:25:51 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: 175323 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4143435ill; Mon, 7 Oct 2019 04:26:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJJ6GjH4GNaDv0LjOQeOi1VqHKs1WdIKWEvLcsxUEpme7JdamubIJHmPaRpHCBc08z0pIW X-Received: by 2002:a62:cd41:: with SMTP id o62mr384733pfg.94.1570447576096; Mon, 07 Oct 2019 04:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570447576; cv=none; d=google.com; s=arc-20160816; b=jCL8ZbbGj3ZnKJytMklP5c0TWiA5cQe08Ckfi0HVSPz8JioK5zoo6l3OXSCpz8GQ0C 5ccWvXLBRFyq9tlxpkiN0RucWhK5JjBWk2XDwUlipatEC9MQeqjb2z76/lWmTQaxkzoH XbFgKcS26SoisVSF/esC/D5xfTJlP2+R0Qb2cB04/Fp1QvZCUCBSoL1xCfxXqESN25cz CNeJXGaLeO4+yi+PznuO52WfYwHQ25OQhiQBE3Py9TvifzIsZvHWm9G1RZLgfW0bdb0Z DD4OX8++/Ttn+Gq0uCGVy2Vvx7jS0i2HNUDgK97RWmxO9SjkxmgqXpZfKX+oN/xlEmx5 73vw== 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=c5rVSD6rh+S9BSvY0/Ss1abeO09L/sx3C11WEAMS/oDfuWnUlEXoC4hbyTcoausqlF hZZKuCaMIMHNgRp7dr77glxGu9qPA6xY8FrLq1+xz7I1uOeu3f1rgFEm6DbiajekxOhq zgCnKb0Fkq4RiZUVi+ONiK/ctIvX6kzOh2kpLTZ0n2KxFYuLS3nGOCRJi+pBhaUmRFtb kiVFO4EomSFLWI+RS6r/yK84fOwK0pW2DS1wYqBDujhk1rVsNcnrE/o1dev+ajT4IqOh QrC+MozA8LTXAL0387+f1zbeaL9QuDVgSlw7+8Ia0tgRXJ3s6caIzXjXZX/tNmcTA2vs 8z9w== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id c9si13700121plr.319.2019.10.07.04.26.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Oct 2019 04:26:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 31FD16E566; Mon, 7 Oct 2019 11:26:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9FDC86E55C for ; Mon, 7 Oct 2019 11:26:07 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x97BQ52u122307; Mon, 7 Oct 2019 06:26:05 -0500 Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97BQ5Uc038045; Mon, 7 Oct 2019 06:26:05 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 7 Oct 2019 06:26:03 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) 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; Mon, 7 Oct 2019 06:26:03 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x97BQ4dZ024278; Mon, 7 Oct 2019 06:26:05 -0500 From: Jean-Jacques Hiblot To: , , Subject: [PATCH v3 4/8] drm/omap: cleanup OMAP_BO flags Date: Mon, 7 Oct 2019 13:25:51 +0200 Message-ID: <20191007112555.25278-5-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007112555.25278-1-jjhiblot@ti.com> References: <20191007112555.25278-1-jjhiblot@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570447565; bh=9EhmjkByqc9yQn1jXmBokEn/jgfmINUvb+h85iVasbk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kTIpXq753ykex2fjw13qmla/WUJSFp0Rb8eQeOfUrJgYoS3JoySfsoXKcgO3ySB/F BuOiGR3aB9Q+vcqom47Bw4uBFUGIh4qYv0/SKRBkxaKCV/twrXhRdv9DLoM6W6qAaG Ux5BjyB12Ho2FsRhbK8kmOdkxzy5LSPsKPHjcHGk= 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, dri-devel@lists.freedesktop.org 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 Reviewed-by: Jean-Jacques Hiblot --- 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 {