From patchwork Fri Dec 7 15:56:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunming Zhou X-Patchwork-Id: 10718439 Return-Path: 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 AE40915A6 for ; Fri, 7 Dec 2018 15:57:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EBB92DADC for ; Fri, 7 Dec 2018 15:57:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92E712E5F6; Fri, 7 Dec 2018 15:57:03 +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=BAD_ENC_HEADER,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 4DDD52DADC for ; Fri, 7 Dec 2018 15:57:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4803A6E7D1; Fri, 7 Dec 2018 15:57:02 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690041.outbound.protection.outlook.com [40.107.69.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5441E6E7D1; Fri, 7 Dec 2018 15:57:01 +0000 (UTC) Received: from MWHPR1201CA0013.namprd12.prod.outlook.com (2603:10b6:301:4a::23) by BY2PR12MB0054.namprd12.prod.outlook.com (2a01:111:e400:2c80::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.17; Fri, 7 Dec 2018 15:56:59 +0000 Received: from DM3NAM03FT051.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::200) by MWHPR1201CA0013.outlook.office365.com (2603:10b6:301:4a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.19 via Frontend Transport; Fri, 7 Dec 2018 15:56:59 +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 DM3NAM03FT051.mail.protection.outlook.com (10.152.83.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1404.17 via Frontend Transport; Fri, 7 Dec 2018 15:56: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; Fri, 7 Dec 2018 09:56:57 -0600 From: Chunming Zhou To: , , , Date: Fri, 7 Dec 2018 23:56:37 +0800 Message-ID: <20181207155642.16063-2-david1.zhou@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181207155642.16063-1-david1.zhou@amd.com> References: <20181207155642.16063-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)(346002)(376002)(396003)(136003)(39860400002)(2980300002)(428003)(199004)(189003)(8676002)(2906002)(48376002)(2616005)(81156014)(16586007)(47776003)(53416004)(104016004)(336012)(110136005)(81166006)(426003)(106466001)(316002)(486006)(26005)(36756003)(105586002)(476003)(97736004)(126002)(50226002)(51416003)(356004)(77096007)(50466002)(450100002)(8936002)(6666004)(186003)(86362001)(2201001)(305945005)(53936002)(68736007)(7696005)(5660300001)(11346002)(478600001)(72206003)(446003)(4326008)(76176011)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0054; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT051; 1:vji/qfOEYPEGzlJqjjA29g+fk775YgSIU0RxD/Y+snAb5qRDPgwZtS8WSMh4jBUmT76N6wOj6X5/jf6A7isr+oUdvw0LFLMuNIgIg04SLDbH44kvDlVu40aQ01QOxanF X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f686ce51-b606-429b-8914-08d65c5c9eaf X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060); SRVR:BY2PR12MB0054; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0054; 3:FhM0BSvJcH6zTeFanCR/qdzpY3h5ImH1tu2OLnpyRaoLO5qt6ulQ7KgJW/LZLZxYxv32mTfeaWzVUI6sOl6uXM0yzrUPrXWYraTOTHBD7gZSbnJ61jOxrWJ/3BLgl88EiJ0D+WUCPHFqSBohZG8duX28IWX+3KrkkjiSmUCLZBYjbbV1NpZX/lx/c5XW1hFtexjjavFbmGPuR6G5TDDqRcFZwJolFYc+HnZDa1WnE8sWHEiGn3ltaD87O8GL1vgy9hWMfVujG5t3tiStydbkcG7Fi6ZvpkO6Oq1AtpicGVSE5JpCphEa3vyzEiyo7/NB2mGSgEjE0s0uCuFgD0teefmkYasd29724IJH5OW4r0g=; 25:iXd9N946BapKOnY65prHCi3LFcb7HT+3SXQkRTrPpjd1kn8j+tq4YvngqsiNpqsGKM/4iV6zpWmtulBcihES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5Zeu9Mo6+8Q X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93003095)(3231455)(999002)(944501520)(52105112)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:BY2PR12MB0054; BCL:0; PCL:0; RULEID:; SRVR:BY2PR12MB0054; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0054; 4:pvhbxvz5EXuyMFbkueCnfzqQw+iCDPxeET6R8sLOjoACh0wHQIWfRU754W/TK1Jtu74DuCQ3Kj5GYKhCDbJ72Z8HO/Djrftwhb8dyrfMbxqd29xytObxLavht7jPG+iBxH8vWS1OfrRj+Gl/z9QZ/xynWYQYII0Dc9eziLzIk4xoqXGxW6gw8Gfp5gTlsqdQYfWDxxT5Bg+xDHmmbJNfmYCeKAlUP+P4GKFdNLtK+VdNmUcETiQlMC7KYIRAYYgcYZqFqJ/ZjaXMnOcKlgwBPA== X-Forefront-PRVS: 0879599414 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0054; 23:HKhwG+jDriQVGxYkyxip3VW0lZoS22RF5MY11Ef7r?= ToGOuyZi4sQb4DUKNsxKX/7tIXO/FwEe9xmJZa4OHoXMyORHyN2CqUyWBUL/X8CrN5luIOdxHmEnnc3a4naqw6ppEbomQxI2Mc9AIUXwarP1JOMAdcbvNrOhOyXo9zVzvDxpE2zJZw+YpfXYy04wTDY2Jo5qLFeRh9FAMaqlF9vwQmkcwFslNIFXcd4OhCOrtRGGflHDKQVMRbVHNpXy6oC67K3g2PBnNlGsEGMeF4YZfvNwvEwjSttJc6WpqT67fDLc5L+jxhZ1RprAGE6RBSGKGWHGC/fiiov1c7v8onnM6N0GCEoA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+jyPbo8t1avygBijlP19UnL+rHTykVvg8qV4RMAokTXs6rv0kWZJUbGp9ezXZ9yF7HnTeV1/SqQ/xcLHPxsr5IWAzslKjC20VwHHPcxvqG7/WahPAneWKdCrNPGP4HYvpP3Q1RW+QRybd63DHi5gYcD7nNIjOxf4MNQALAo04U590= X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0054; 6:fuEEmrbm7ihnPg4e4kqyBsURBo7mjVm+t07lvEv3woPnEgihNdjTqRdAgol6xT9foOhmex82p6Re8zR4qykGq3Os4+YhX1LLtTja4PMvGRK5ynsBVJDOPX7n2DLGETAyDYKP7ZSRt7VDY3sf3yIzwy7ZjvCvXv2Bn6d3c2FvH8DITmjGfN3umW4/95uYKXPTLUgvholERIo/SdGQ3LMOY0ELnC0DiAN8NQhllxfvGO/or3oOmTFp/vpaMSN7VGO+iANRNZ39h9El2GU/BNCpK57jsZjfR1nhrQauyEdvwk3h1asswJU15LZEertcoETP6uEAHU0CVelJGY02Qoc6POsV98/XCyN3pCqe71oSlDrqXDRu7OF39Z29DZnMpR9Cs1asMp8o3nzHSfO2FpztUam6DitzcNL5kK7dfOHfwGUThCnLo6G405r+/gAmrQD6HygrWR5pArc5ju3Q+K/AMA==; 5:S9XME62xwmn9hN7uRbvSSza9dM7DMJb5zCMr+FgJ3fcdkokQsTKI2LBxkPmf2a1hAShxP0TrcM9cM6lmMLjckrvec/E8tPQzdmy7HWYru/kvlAr126lWouXmab9QN6OeTTu+G0lsgRtBxMpQJ52IOq9zM/hsVmPibEYX8GvnjXQ=; 7:AuMenf9HWZTwcB++p8xc7d4FVbzZ5Tq7KyXwBQSEH9ckyBYIxpYPnOaR9y5Q52m/HMbC2a+3pVBEmzXRBghj0RnrWLyJ8Vr1OAOWa/gRBZJlpsgnAIKl6sDZuQsa392LKfI72grGYA56E3uaXFC0qQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0054; 20:Sk9pSHfNKh1EGgLBfsv4HOMOEj/eAH0UbK/G4gB2qRZdLXFXSMXDfzfSPijQPHl9L2EV4nm/eECwBw/M2gWQ+f0gmv0RqeJI5DDW3LRh7TX2lCn7fH30wyr4bk+fkhIQ52rCFkhi9KiHZ+W9Lw9mdZe58V0P4lOQldsegnYXcGKa3Nqf3y27jiPqb8CNK2HuCvENykQ+MGALK6rglNqO21Oi3R5qFCTHIyWOJJM453PwspIHU1NtEuZoiDf4rIZI X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2018 15:56:58.5898 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f686ce51-b606-429b-8914-08d65c5c9eaf 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: BY2PR12MB0054 Subject: [Intel-gfx] [PATCH libdrm 2/7] addr cs chunk for syncobj timeline X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chunming Zhou Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Chunming Zhou --- include/drm/amdgpu_drm.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index 1ceec56d..a3c067dd 100644 --- a/include/drm/amdgpu_drm.h +++ b/include/drm/amdgpu_drm.h @@ -517,6 +517,8 @@ struct drm_amdgpu_gem_va { #define AMDGPU_CHUNK_ID_SYNCOBJ_IN 0x04 #define AMDGPU_CHUNK_ID_SYNCOBJ_OUT 0x05 #define AMDGPU_CHUNK_ID_BO_HANDLES 0x06 +#define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_WAIT 0x07 +#define AMDGPU_CHUNK_ID_SYNCOBJ_TIMELINE_SIGNAL 0x08 struct drm_amdgpu_cs_chunk { __u32 chunk_id; @@ -592,6 +594,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