Message ID | 20190409090437.3485-2-david1.zhou@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D242A17E6 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 9 Apr 2019 09:05:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C042C285FF for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 9 Apr 2019 09:05:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3DE328868; Tue, 9 Apr 2019 09:05:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 663D0285FF for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 9 Apr 2019 09:05:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1531E891CE; Tue, 9 Apr 2019 09:05:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-co1nam04on0620.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4d::620]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE27D891CE; Tue, 9 Apr 2019 09:05:00 +0000 (UTC) Received: from DM6PR12CA0026.namprd12.prod.outlook.com (2603:10b6:5:1c0::39) by MN2PR12MB2976.namprd12.prod.outlook.com (2603:10b6:208:c2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.19; Tue, 9 Apr 2019 09:04:59 +0000 Received: from BY2NAM03FT058.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::209) by DM6PR12CA0026.outlook.office365.com (2603:10b6:5:1c0::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16 via Frontend Transport; Tue, 9 Apr 2019 09:04:58 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by BY2NAM03FT058.mail.protection.outlook.com (10.152.85.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16 via Frontend Transport; Tue, 9 Apr 2019 09:04:58 +0000 Received: from zhoucm1.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.389.1; Tue, 9 Apr 2019 04:04:50 -0500 From: Chunming Zhou <david1.zhou@amd.com> To: <Christian.Koenig@amd.com>, <lionel.g.landwerlin@intel.com>, <dri-devel@lists.freedesktop.org>, <amd-gfx@lists.freedesktop.org> Subject: [PATCH libdrm 2/8] addr cs chunk for syncobj timeline Date: Tue, 9 Apr 2019 17:04:31 +0800 Message-ID: <20190409090437.3485-2-david1.zhou@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190409090437.3485-1-david1.zhou@amd.com> References: <20190409090437.3485-1-david1.zhou@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(136003)(376002)(39860400002)(396003)(346002)(2980300002)(428003)(189003)(199004)(53936002)(478600001)(486006)(72206003)(305945005)(4744005)(4326008)(36756003)(97736004)(110136005)(16586007)(76176011)(2201001)(86362001)(53416004)(104016004)(316002)(50466002)(48376002)(426003)(476003)(26005)(126002)(51416003)(186003)(77096007)(7696005)(2616005)(336012)(50226002)(356004)(11346002)(446003)(68736007)(5660300002)(81156014)(8676002)(81166006)(2906002)(47776003)(105586002)(106466001)(1076003)(6666004)(8936002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR12MB2976; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d3ef2cbe-8e5c-4efe-41eb-08d6bcca7114 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328); SRVR:MN2PR12MB2976; X-MS-TrafficTypeDiagnostic: MN2PR12MB2976: X-Microsoft-Antispam-PRVS: <MN2PR12MB297694F03F50777FAD81B82EB42D0@MN2PR12MB2976.namprd12.prod.outlook.com> X-Forefront-PRVS: 000227DA0C X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: MLR+MhL1g3QBV0yIFl7wT1DvhMUSjqZc1B+l8K9kMqcmtR4r8Lu+RTWD/SveK+indI2p0f77+aY7p6pxRuzAFGGLltCy+cOOhkfCLta96bm9+tO3AY4BX4B0uAtMyjw73dGE30GMN6WwPpvs+HxBVHIFDQ+NStTnD5nBFem7fA/uw+jUhR6YH3P7GlZwkQUmg0I+L2p12XoSXdTfTIYt/pXaY7DCdp/21SwSIQa/L7p/eDbc5B3n8R73/lfKf7UYHVjjxAjYDqCPSCk85LZpyqGuv1yBLhKfhzC2YeSe4NixGXPb7OjmnoaC0f73U9lWXOMWJsB6EUn5qyhaYsOo1E4W9RX24Vt4+GNDRwMFPFF6b7QNtl5fqVaGFkrI8YnuyxyJSmKiIS2By0udRUyXttvTi6R14xW7t+7+xWMCTjs= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2019 09:04:58.4171 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3ef2cbe-8e5c-4efe-41eb-08d6bcca7114 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB2976 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MCSytMziqE7J6fvCGExoSFjFrDYy7r3JRtSUNeA+CGs=; b=nXWnhi2BXjOee2qmbewtBC/ZJBaGFgeEKf5gdpYR2aJuBYCHUtX7bh/kuiH22yo1BTBcfhf1sNk10khCiUDjZPLozKaX5CyBPuMJkQWV5D5DyXsl/FD0av0Tdz4e6l4TQ54FnPFIEhcfkSQoPv2Bt12Eh8TlBvRwyiMEefeZirQ= X-Mailman-Original-Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[libdrm,1/8] new syncobj extension v3
|
expand
|
diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index e3a97da4..ab53f2e0 100644 --- a/include/drm/amdgpu_drm.h +++ b/include/drm/amdgpu_drm.h @@ -528,6 +528,8 @@ struct drm_amdgpu_gem_va { #define AMDGPU_CHUNK_ID_SYNCOBJ_OUT 0x05 #define AMDGPU_CHUNK_ID_BO_HANDLES 0x06 #define AMDGPU_CHUNK_ID_SCHEDULED_DEPENDENCIES 0x07 +#define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_WAIT 0x08 +#define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_SIGNAL 0x09 struct drm_amdgpu_cs_chunk { __u32 chunk_id; @@ -608,6 +610,13 @@ struct drm_amdgpu_cs_chunk_sem { __u32 handle; }; +struct drm_amdgpu_cs_chunk_syncobj { + __u32 handle; + __u32 flags; + __u64 point; +}; + + #define AMDGPU_FENCE_TO_HANDLE_GET_SYNCOBJ 0 #define AMDGPU_FENCE_TO_HANDLE_GET_SYNCOBJ_FD 1 #define AMDGPU_FENCE_TO_HANDLE_GET_SYNC_FILE_FD 2
Signed-off-by: Chunming Zhou <david1.zhou@amd.com> --- include/drm/amdgpu_drm.h | 9 +++++++++ 1 file changed, 9 insertions(+)