From patchwork Thu Apr 12 10:09:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunming Zhou X-Patchwork-Id: 10338123 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F67260134 for ; Thu, 12 Apr 2018 10:10:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68E4C28756 for ; Thu, 12 Apr 2018 10:10:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B2432875C; Thu, 12 Apr 2018 10:10:02 +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.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 50F612875B for ; Thu, 12 Apr 2018 10:10:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 841CE6E595; Thu, 12 Apr 2018 10:09:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0044.outbound.protection.outlook.com [104.47.38.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id D41306E546; Thu, 12 Apr 2018 10:09:57 +0000 (UTC) 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; bh=taVTXFPwijFHCGUdaIvY2VGSKgfRuNyNWFEgWjnWpGc=; b=k6XJavjTMP6ZRwwIZWuExO4LCo89mCahHIxW7wk72dITkSvBWCZqb3jQr9xefp4Jd6YWiwEa17sYEjT60awVbAnJAABXMpAh0pDROxAcwAjFb3IEasI7BxU3F89oHwyNqI8WF12C+aV27uNkBGBNWC/a8JcmhpJDl1GuBKDODQs= Received: from CY1PR1201CA0041.namprd12.prod.outlook.com (2a01:111:e400:5b9a::51) by CY1PR12MB0758.namprd12.prod.outlook.com (2a01:111:e400:59d1::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Thu, 12 Apr 2018 10:09:56 +0000 Received: from DM3NAM03FT058.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::204) by CY1PR1201CA0041.outlook.office365.com (2a01:111:e400:5b9a::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.675.10 via Frontend Transport; Thu, 12 Apr 2018 10:09:55 +0000 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; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT058.mail.protection.outlook.com (10.152.82.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.8 via Frontend Transport; Thu, 12 Apr 2018 10:09:55 +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.382.0; Thu, 12 Apr 2018 05:09:54 -0500 From: Chunming Zhou To: , Subject: [PATCH 01/11] drm/ttm: add ttm process struct Date: Thu, 12 Apr 2018 18:09:30 +0800 Message-ID: <20180412100940.25039-2-david1.zhou@amd.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180412100940.25039-1-david1.zhou@amd.com> References: <20180412100940.25039-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)(39380400002)(39860400002)(396003)(376002)(2980300002)(428003)(189003)(199004)(50226002)(97736004)(356003)(53416004)(2906002)(105586002)(50466002)(68736007)(305945005)(186003)(7696005)(48376002)(81156014)(1076002)(76176011)(51416003)(36756003)(104016004)(59450400001)(106466001)(26005)(6666003)(5660300001)(336012)(316002)(16586007)(47776003)(8936002)(426003)(72206003)(486006)(81166006)(476003)(575784001)(86362001)(478600001)(53936002)(450100002)(4326008)(110136005)(446003)(77096007)(2616005)(126002)(54906003)(8676002)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0758; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT058; 1:8VgAHvamgffzrjVoZv8Uju/xkPHrlS05lVaCNumRVV8TaURKMJIi2PR0GA6zP94mqGIf1yZCgKS0r2+ycr3EogZM1ldS/D/Z2uydRw4/kB4zwHYf61WlPKihe1yThDkE X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:CY1PR12MB0758; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0758; 3:Xvs8H60h1kJQxyn0v84iMBRCU78YqW8F/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3B7WFf5xyBe3HR8gdux2UW7jA0xJ2EOIu6VSXXnPBgBKhSP6OpxnQaIFGsjHDBGSYtf03rGBoX65ueIBaIZzlvITpopfW8zwV8MMouo9AEjRYGmVmitJ8i95wZ78w21nngSvNI6qM42lr1m5XkTljq9cidNVLwu8AnFjjv3/64JjTS4Cm3j68LD+J6ksJIlC2D/CO99a3IS71iN+nMJJ7UYQ1xEONUYpLj6CHnEvvsiDVd2EZJjAKFtmhGncI9z+wCci2RmFeVgMYtujdFN8wYj1I9UyaajzrPj1Yyut8CDnQGW7PBs2O+CHgh0TPLa5M0+CwYe6HGVMzobjiai2tY8JsXaq6K31HJlZl0fOIfudtklvD5P34KC5rM6hq8U1xP6MXHymQjNsBWU16sKZDJk2mW6zqhqG7YQjXuvSqFUp5kJ/vc3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93003095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY1PR12MB0758; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0758; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0758; 4:AlwZBO31Gc6qr42SGEn+6X3e7fKU8DFe/fHGXDj4B1Pn0XS0arZT4hfp28fHFBGfGrC7wVOyalEdcM9cqWxjAZWmHOCKLGhELIz17tTZDwl9DWcdaNwfocG0Ii3VDAxEtp5i7Cp3c9itn2WNB12ujs5Bd156iVAB1GOR3XmF6AOuu82ZC13C9kNoAHSJYQluZXwhrgxTePi+RPkgfg3C2nsreXpd0dSYl/sE36s1bWqcyBfpk8A0L6/7xbc8gLQBrWh1iiZaDx+vvc/YcZnOOaewYrOOqsItx8BC6ryc/YktvgwulwFmC0H4E3LrgSgD X-Forefront-PRVS: 06400060E1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0758; 23:4v4sndzSZngr+zfkCqufJ7ZMfxqDTd09UdXJZBzR9?= =?us-ascii?Q?yI62soKmfACr64X2a+GuwbVK/dAdhhfLmY22bHF5ytZg82hcxVBoCCZfojN6?= =?us-ascii?Q?y2Ki0cn8VvCX3i7GLIbqLubfwQpWcNsBsr8lGxbdf//veshCDdZSbedAYxry?= =?us-ascii?Q?zIF72rVKcBCDwetfOUl5DWJQzpf2RlforLgQ5GHniMGXnV/esSayFpoz1Rt3?= =?us-ascii?Q?ObQhQba+egCvL5oFpfhNcoIOGg4+ZxFnK1wNEzEY61hOC2HDPPP7r6nfuVkT?= =?us-ascii?Q?ksK2Lb+ZSuJF7+6q4gDSIO2JtkD8xstwWsI2Z78jmZs4s+nK0KBpZfdrT5Yh?= =?us-ascii?Q?SxeD6Q4niq2emmgVIEEO+gKmGm4aGYGGmfb14VSMPbqfBbGg6HUPJEhwUjaT?= =?us-ascii?Q?yZJQlMQMEsxQfZUgaAU17mQq+ey4e/uM1PQED8emuQzqZqRWDT0wluhxcG+n?= =?us-ascii?Q?q4mVpVosYANRxrU/ANR/kaTaZilz64cFR++ARBLhplDBkwT1c+T01YFzA1sT?= =?us-ascii?Q?Ix3whFM1vann3u3/A8/gWhVlPitWJMjx8gQEinA2FooTURjqZoC27p5lP9Qw?= =?us-ascii?Q?X+1zFekft31fI7LmOvsm+EoXeQLhR16f9I5fvS7zROHY6tzN08lSP22BlT/E?= =?us-ascii?Q?cUf7yqCxTEKCtBVR2q3ZEJ7wKGBn1m2IDilxVbJPjPuo8js7T1CFFTSEZtS/?= =?us-ascii?Q?Jpa1GgMMqMlRfiw9G+H1s8wGFfDv5jKjSRSiuWBjL97CPcNj+In/p/ubG0zc?= =?us-ascii?Q?tvYOgpQgIkCIGDK0Oq4hUimkWtB7is8LpYvPoXUeIR47Ls4vQpa7SM0cVgcQ?= =?us-ascii?Q?l5faje7lrsepfYi8gOlmsum0PQussZFYhUpltGa1bOCdqbFQRjieC8TCJJCb?= =?us-ascii?Q?ERipmk94mT2s9zrtB0U+zBywRN/SFaJ2frNlwx4nft62idLVkXbgaYwfsnBs?= =?us-ascii?Q?oHrAjfXlzdhZSa1FzcVfcfcL32SwlCcH1CuuOzgrPi5ZaMag2J4+Xm6JU8AJ?= =?us-ascii?Q?3BUyWR18qJrr/ZI4NCFPtITUv5ZTDCMKeNBPV1DZ10uKYEBG/XL6tHdgUA1F?= =?us-ascii?Q?Lk4vt0YnPnXc+LtWTPWf7s8ItpARPLQBa/nzMHKw60NNwZWQgNliSc4DzpcC?= =?us-ascii?Q?jC9nLyS4BvQaKrwzzBPA/y6FNKtuT8Gt/CMV+LXB4cTu64sVtPrkNmE65fRu?= =?us-ascii?Q?lA9ILrL267Zmk1VPTSjikzNeLK+7ResdUyWTGsnl/fJdrVpzinl5zxxSDeyJ?= =?us-ascii?Q?TScJwPPqkNO91j96hePwaQ2dGHjKEE8VFl8jORR?= X-Microsoft-Antispam-Message-Info: +bDy54BPogrG2RZY5OcQOxuXRMQ2H1NraE05JzuTr59KBaKxPs3YyPazjP5PP8l50AQhM53VP+hd/B8eoEqMVH2Ge2nSf0gWqte0qJGhY0h6Oka+V/bH07p/kxxX/yTFn5LWbUPgFMhxAwoceC8OlUd7xZCyV7LDzrzvVm8xzEOhW5jaFHDXX//TVthS0r51 X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0758; 6:5n/UfQy5UMb1JbCLPv4SHwNtGmP+sFp159gUSXe6hL4cPdUFgiWx/W6fL3MWjinyHWbggvmNppaepHA4pzP8EZk1r3UGRqOrr2JMFY252pNM3s/+hZCFRl4q9CDo0mvy67VBYoLeTQjK9suGua2fcJQ8WAFTHSjaubnG0rdoq3jGztn2KQLtnxFh3U5I8ZxQYmru+EkQGOCdP2z2mV1smJgi2WXIyYhWWZTJWJAnw7Y52LHAW/uevs1Mu2Ic5iBazrH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0gw392wc5DSEDEN9EhKSGV6GgpgK X-MS-Office365-Filtering-Correlation-Id: ca7728f4-0732-40ac-8a44-08d5a05d8a79 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2018 10:09:55.6854 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ca7728f4-0732-40ac-8a44-08d5a05d8a79 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: CY1PR12MB0758 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: Kai.Guo@amd.com, christian.koenig@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Change-Id: I34924a40392653e72eeeef143c30ab312cbbf9fa Signed-off-by: Chunming Zhou --- drivers/gpu/drm/ttm/ttm_bo.c | 23 +++++++++++++++++++++++ include/drm/ttm/ttm_bo_api.h | 1 + include/drm/ttm/ttm_bo_driver.h | 10 ++++++++++ 3 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 98e06f8bf23b..b740d8f390ca 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -1556,6 +1556,7 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev, 0x10000000); INIT_DELAYED_WORK(&bdev->wq, ttm_bo_delayed_workqueue); INIT_LIST_HEAD(&bdev->ddestroy); + INIT_LIST_HEAD(&bdev->process_list); bdev->dev_mapping = mapping; bdev->glob = glob; bdev->need_dma32 = need_dma32; @@ -1569,6 +1570,28 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev, } EXPORT_SYMBOL(ttm_bo_device_init); +int ttm_process_init(struct ttm_process *process, struct ttm_bo_device *bdev, + struct reservation_object *resv) +{ + int i, j; + + INIT_LIST_HEAD(&process->process_list); + for (i = 0; i < TTM_NUM_MEM_TYPES; i++) { + for (j = 0; j < TTM_MAX_BO_PRIORITY; j++) { + INIT_LIST_HEAD(&process->fixed_lru[i][j]); + INIT_LIST_HEAD(&process->dynamic_lru[i][j]); + } + } + spin_lock(&bdev->glob->lru_lock); + list_add_tail(&process->process_list, &bdev->process_list); + spin_unlock(&bdev->glob->lru_lock); + + process->resv = resv; + + return 0; +} +EXPORT_SYMBOL(ttm_process_init); + /* * buffer object vm functions. */ diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index c67977aa1a0e..8cb4b48f387a 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h @@ -172,6 +172,7 @@ struct ttm_buffer_object { */ struct ttm_bo_device *bdev; + struct ttm_process *process; enum ttm_bo_type type; void (*destroy) (struct ttm_buffer_object *); unsigned long num_pages; diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 3234cc322e70..91120923de81 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -438,6 +438,13 @@ struct ttm_bo_global { #define TTM_NUM_MEM_TYPES 8 +struct ttm_process { + struct list_head process_list; + struct list_head fixed_lru[TTM_NUM_MEM_TYPES][TTM_MAX_BO_PRIORITY]; + struct list_head dynamic_lru[TTM_NUM_MEM_TYPES][TTM_MAX_BO_PRIORITY]; + struct reservation_object *resv; +}; + /** * struct ttm_bo_device - Buffer object driver device-specific data. * @@ -459,6 +466,7 @@ struct ttm_bo_device { * Constant after bo device init / atomic. */ struct list_head device_list; + struct list_head process_list; struct ttm_bo_global *glob; struct ttm_bo_driver *driver; struct ttm_mem_type_manager man[TTM_NUM_MEM_TYPES]; @@ -575,6 +583,8 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev, struct ttm_bo_global *glob, struct address_space *mapping, uint64_t file_page_offset, bool need_dma32); +int ttm_process_init(struct ttm_process *process, struct ttm_bo_device *bdev, + struct reservation_object *resv); /** * ttm_bo_unmap_virtual *