From patchwork Mon Jul 8 10:45:16 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: 168609 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp6982971ilk; Mon, 8 Jul 2019 03:45:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLqOzdEJih0FHn3AkWgOpiL8yn/C+DDp5HNWY9ooZ1kXGQ6iprLQUZ7AQbYet24i3XubZF X-Received: by 2002:a63:2784:: with SMTP id n126mr22055384pgn.92.1562582737164; Mon, 08 Jul 2019 03:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562582737; cv=none; d=google.com; s=arc-20160816; b=ZbeCEYGsoTCpgmY0/HUkww8dy7zEWulBoks50JnWBLGKIvUrZBBdedD0yXIsy/n8PK f2OtQDuWtka+GSwxrpXv6iO0EtUmA67kvOHItjt6gFmVRJNkBrUG9QalrprH7Ao1JJHC B74b4hdPQzlKwDcfVjczKz2TvJsny5ciavPvuXuoj/D9hKQtZcbnClSV8Xw/zsTjqGer xd1OVdyZIzg2nO+lF8+LlxwWYm+Rdk5YNSHFO9VoeAofHzc9KADR4TYyHXzTvDw8wgxP T0Ah/1GElg7T/DNcVzaDIiMIJyxplgQH5iaE6PafSZ4IDWXTOHG/LNP/9QbMl2BnENeq Mziw== 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=g5cH8Wfs5PDvguX8in55LwIqFd2+YH8aXnZwF6C12PMec35ocsTvmVa8kiNqHkDCnM 7CaIrxVcZFjlp1UsT6179ibkriOk5koXHduumqSJ1sCaAL2pLtGZBsxJEpJkvyuK8/tA W34PdxU6RzpGm7JkUei0szX5xIms29AxSMkkoPvJaDjm2Jxi8Z1iANmTOyKjrB8CsAzq oRReDDruMKak0J/KR+K2B0lA9qdq6J0D0N4XwfsmKXz1GhqG6nKkNZWfx/tax8oVoAZU wRtjkD8C10ifTK5aBSPDfvOks/7xy79MxPJjVM71QXSOYib7UIBqbP41LFgvfW4MFtjD IfEA== 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 w1si13078799pfn.129.2019.07.08.03.45.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 08 Jul 2019 03:45:37 -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 BE34389C69; Mon, 8 Jul 2019 10:45:35 +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 A965389C6B for ; Mon, 8 Jul 2019 10:45:33 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x68AjWcg045625; Mon, 8 Jul 2019 05:45:32 -0500 Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x68AjW66002673 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Jul 2019 05:45:32 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 8 Jul 2019 05:45:32 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE112.ent.ti.com (157.170.170.23) 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, 8 Jul 2019 05:45:32 -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 x68AjVI8094820; Mon, 8 Jul 2019 05:45:31 -0500 From: Jean-Jacques Hiblot To: , , , Subject: [PATCH v2 4/8] drm/omap: cleanup OMAP_BO flags Date: Mon, 8 Jul 2019 12:45:16 +0200 Message-ID: <20190708104520.24217-5-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190708104520.24217-1-jjhiblot@ti.com> References: <20190708104520.24217-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=1562582732; bh=9EhmjkByqc9yQn1jXmBokEn/jgfmINUvb+h85iVasbk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sapXGWW9BN6FlpSA4P7a/JGCKHcN487Ue0wGRTg40da/mz6kjqCGC+YJx+J423qbD 9MY++DOeHi7gOFXwUt4hYHsLbTfWEp7jLvw6nf5b2yrrnkGs9LL2L2BSaJdVlaCSZH pCz1kTxX8pKWiDDjhUBu5C9bBKckyi5KbCxm5Zlw= 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 {