From patchwork Thu Oct 10 11:59:56 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: 175775 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2181694ill; Thu, 10 Oct 2019 05:00:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi3LKCSM4QbXaLcgy3W/0QE548XDWaJLbA+gZFqeW2wc7gPfdv/8eXly3Z8NkU1+XjkS/h X-Received: by 2002:a63:9c2:: with SMTP id 185mr10428238pgj.175.1570708822891; Thu, 10 Oct 2019 05:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570708822; cv=none; d=google.com; s=arc-20160816; b=HBlxT23NlstiolapIIe0OFueKzWYaLtzDkcZkpTmA7jovgkhplg8RZR/N0ENn7dRbP V1hL4EkPp1/iMRYqxj1l+/O6DfjBcP1OmkB/diUfJSiBw/ihZie9DPcdPGNqREkMc6gh qxwAapLpuWemC7qBl2ZFYJO5l5xdnoK2VHyC9zD1Wf9yzwwKInAf7J8bjIh5WFGj10HW WQBIZMHtN9i0QKZjnU0mCxaua5RGkGwF6nEZVeUWVxFlM1n8aA2ADdZHXS5/A2ARwtNz dq1osdfk74xd2C60wib3kNiV3viS62/lxjlhr93zg4giKRixQqupGRh2kR77DmlnC8Ai SHiw== 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=k9TculPzD9A8ZTxzt/93N0TVz8R91HKZE0f1Wl3SIzM=; b=QVnj6s6GqcvBDOYKUdJfKZt9DMUJzFf8303cDdfdS8S7K+OSvxt7QjWBGe/AzM+9U2 y/LrEGJMAc8HoywfpfbDNOKCQ/f42IljrTSS7Fkt8fuHrlD/muXM6evrgjLCH51dKHmQ sHdc7Iqv+BjMZbg3QtSzUjzGb8S6/LaRigVkLqGqpAgt0K8bPuoCfhU4Uu9jzYcJPNJg OR0bV1DLWyZTm+iPXnQnyvut6JmpUnc6H2UoSg5/6qbtxdrDur/kgIJW8ughflp2d+70 tS4It2DSYf6hO5hVhtXZCjYj1wuew+wbfkyPQMZzXvusSAPz+QTSx3eu+jZLUBiUHv8i fcGw== 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 11si5995398pfn.70.2019.10.10.05.00.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Oct 2019 05:00:22 -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 6FC7988FE2; Thu, 10 Oct 2019 12:00:19 +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 523EE6EB0B for ; Thu, 10 Oct 2019 12:00:14 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9AC0ChJ023050; Thu, 10 Oct 2019 07:00:12 -0500 Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9AC0Cpp059183 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Oct 2019 07:00:12 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 10 Oct 2019 07:00:11 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.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; Thu, 10 Oct 2019 07:00:12 -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 x9AC0BmU121753; Thu, 10 Oct 2019 07:00:11 -0500 From: Jean-Jacques Hiblot To: , , Subject: [PATCH v5 4/8] drm/omap: cleanup OMAP_BO flags Date: Thu, 10 Oct 2019 13:59:56 +0200 Message-ID: <20191010120000.1421-5-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191010120000.1421-1-jjhiblot@ti.com> References: <20191010120000.1421-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=1570708812; bh=x6CFEyQ5hZGLdJM9om0YP8uZogPODV92P5gME8H8Uq0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QJiFMdLVNl+Wn0kqmvKb6NlXoNgJdVip8K1b+/ZHZLRT1IbfZ6Jly/lmoMhA2/oO1 P1mVITbQMEQOxKvacO3TsLcMIZASjY5A7y8kOdbyAbpWC4BbqM6eQJOmwZzKo1Hcbu Vt4FoVBvWOBZnBhPYKnih2oIJ+TNwzYjrP0UBo5o= 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: jjhiblot@ti.com, 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 {