From patchwork Mon Apr 1 09:50:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chunming Zhou X-Patchwork-Id: 10879519 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 68B0915AC for ; Mon, 1 Apr 2019 09:51:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 519072880F for ; Mon, 1 Apr 2019 09:51:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 456ED2881B; Mon, 1 Apr 2019 09:51:18 +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 A28DD2880F for ; Mon, 1 Apr 2019 09:51:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E2B06E657; Mon, 1 Apr 2019 09:51:15 +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-eopbgr690064.outbound.protection.outlook.com [40.107.69.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 70C866E107; Mon, 1 Apr 2019 09:51:14 +0000 (UTC) Received: from CY4PR12CA0045.namprd12.prod.outlook.com (2603:10b6:903:129::31) by BN8PR12MB3457.namprd12.prod.outlook.com (2603:10b6:408:48::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.16; Mon, 1 Apr 2019 09:51:12 +0000 Received: from CO1NAM03FT060.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::204) by CY4PR12CA0045.outlook.office365.com (2603:10b6:903:129::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1750.17 via Frontend Transport; Mon, 1 Apr 2019 09:51:12 +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 CO1NAM03FT060.mail.protection.outlook.com (10.152.81.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1750.16 via Frontend Transport; Mon, 1 Apr 2019 09:51:11 +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; Mon, 1 Apr 2019 04:51:10 -0500 From: Chunming Zhou To: , , , , , Subject: [PATCH 0/9] *** timeline syncobj support *** Date: Mon, 1 Apr 2019 17:50:54 +0800 Message-ID: <20190401095103.9592-1-david1.zhou@amd.com> X-Mailer: git-send-email 2.17.1 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)(39860400002)(396003)(346002)(376002)(136003)(2980300002)(428003)(3190300001)(199004)(189003)(36756003)(7696005)(53936002)(50466002)(53416004)(478600001)(23676004)(305945005)(97736004)(426003)(66574012)(2201001)(68736007)(8676002)(86362001)(104016004)(1076003)(81156014)(81166006)(186003)(5660300002)(356004)(6666004)(72206003)(77096007)(476003)(110136005)(2616005)(486006)(316002)(26005)(6636002)(8936002)(5820100001)(47776003)(2906002)(14444005)(50226002)(106466001)(105586002)(336012)(2870700001)(126002)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR12MB3457; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7971bb8e-c84b-4680-110a-08d6b68792d0 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060); SRVR:BN8PR12MB3457; X-MS-TrafficTypeDiagnostic: BN8PR12MB3457: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0994F5E0C5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: ICp+A2VuQYoLN3A9qm1bFD88GoEIm6RTx3vMGQAPtz2KPzuUZoqco1r/LLGPSH9XMCJS9bJkMiBlWg7AYW0YdRP699vut/OjgtY+2mC3q6Pj24ar2j7qxBY7069nogs8JQMiucFAGfsfFMqWlIgiMcnvmWaxV9AMVnxTq830ABGy2ZnkvL8/j0cUmx6bZscwt0CdvucwrCgX9CG2kg9r7TDIn5vx2gUROiL0Env1kxCQGygh7iyxLvwUH5X/1gpsHfgofpPLkfU8ivVAfGrALpxfztifAhyGMnLsu9afSlJMWdHq1jZ1wzGQSoLOQ6/11mVyUAGC3Z26tD/jSdROwjHmBKV6Mo2gz+drV6VzA1rnw1agrnRh/PxU4ZR8rOHrgWCUwOnLNRPnVqZVgQSgZimtm4VpzFAhmwggudrHdhE= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2019 09:51:11.7371 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7971bb8e-c84b-4680-110a-08d6b68792d0 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: BN8PR12MB3457 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=GO0rr3/FkuDXkr3EF6DlXk6AvTXBdWqw9deSb0MzWI0=; b=x8XI1NFFzdA3SgBezK5ad8uPV+FcEbR+Y3Pg7vTJhXLRnDi5HmSGLrBG3RwcFm8WRAp4TuHZQl5oWVnpgmrc6xoYU4lhI9TDQSWB4vT6NWfEn9JwK4+/0LgJl28qQrS6LBaJr6Xbc1rJwX+DU4LkELx/dDUNTNBN6MnqTSfFnw8= X-Mailman-Original-Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP timeline syncobj gives user more flexibility and convenience to do sychronization. Lionel has written cts and adapted ANV based on this patch set, and also reviewed the patch set. please someone from community helps to submit the patch set to drm-misc-next. Christian König (3): dma-buf: add new dma_fence_chain container v7 drm/syncobj: add new drm_syncobj_add_point interface v4 drm/syncobj: use the timeline point in drm_syncobj_find_fence v4 Chunming Zhou (6): drm/syncobj: add support for timeline point wait v8 drm/syncobj: add timeline payload query ioctl v6 drm/amdgpu: add timeline support in amdgpu CS v3 drm/syncobj: add transition iotcls between binary and timeline v2 drm/syncobj: add timeline signal ioctl for syncobj v5 drm/amdgpu: update version for timeline syncobj support in amdgpu drivers/dma-buf/Makefile | 3 +- drivers/dma-buf/dma-fence-chain.c | 241 +++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu.h | 10 +- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 152 ++++++-- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +- drivers/gpu/drm/drm_internal.h | 8 + drivers/gpu/drm/drm_ioctl.c | 8 + drivers/gpu/drm/drm_syncobj.c | 446 ++++++++++++++++++++++-- include/drm/drm_syncobj.h | 5 + include/linux/dma-fence-chain.h | 81 +++++ include/uapi/drm/amdgpu_drm.h | 8 + include/uapi/drm/drm.h | 36 ++ 12 files changed, 944 insertions(+), 57 deletions(-) create mode 100644 drivers/dma-buf/dma-fence-chain.c create mode 100644 include/linux/dma-fence-chain.h