From patchwork Mon Aug 13 09:58:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Rui X-Patchwork-Id: 10563973 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 BCD2B13BB for ; Mon, 13 Aug 2018 10:00:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAA6628EA0 for ; Mon, 13 Aug 2018 10:00:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F12428FED; Mon, 13 Aug 2018 10:00:15 +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 49A5928EA0 for ; Mon, 13 Aug 2018 10:00:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 141816E124; Mon, 13 Aug 2018 10:00:13 +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-co1nam04on0611.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4d::611]) by gabe.freedesktop.org (Postfix) with ESMTPS id C60776E124; Mon, 13 Aug 2018 10:00:11 +0000 (UTC) Received: from BN6PR1201CA0007.namprd12.prod.outlook.com (2603:10b6:405:4c::17) by DM2PR12MB0249.namprd12.prod.outlook.com (2a01:111:e400:50d1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Mon, 13 Aug 2018 10:00:08 +0000 Received: from CO1NAM03FT041.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::202) by BN6PR1201CA0007.outlook.office365.com (2603:10b6:405:4c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1038.22 via Frontend Transport; Mon, 13 Aug 2018 10:00:07 +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 CO1NAM03FT041.mail.protection.outlook.com (10.152.81.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.1059.14 via Frontend Transport; Mon, 13 Aug 2018 10:00:07 +0000 Received: from hr-intel.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.389.1; Mon, 13 Aug 2018 05:00:05 -0500 From: Huang Rui To: , Subject: [PATCH v3 5/5] drm/amdgpu: move PD/PT bos on LRU again Date: Mon, 13 Aug 2018 17:58:51 +0800 Message-ID: <1534154331-11810-6-git-send-email-ray.huang@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534154331-11810-1-git-send-email-ray.huang@amd.com> References: <1534154331-11810-1-git-send-email-ray.huang@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)(39860400002)(396003)(136003)(2980300002)(428003)(199004)(189003)(81156014)(76176011)(6666003)(356003)(2906002)(106466001)(53416004)(105586002)(8676002)(14444005)(8936002)(97736004)(81166006)(68736007)(336012)(4326008)(450100002)(47776003)(426003)(50466002)(48376002)(186003)(77096007)(26005)(7696005)(11346002)(51416003)(316002)(50226002)(110136005)(53936002)(16586007)(72206003)(486006)(86362001)(305945005)(126002)(2616005)(478600001)(5660300001)(104016004)(446003)(476003)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0249; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT041; 1:0dHYkq3ZDZcdqQkW+VNNBUIDz+F7QKkzHQogBQR7pZkN1ZvdlUVaYKybtiAMIksgwq+Vj4Y2OEFnevegptsHv3BzY/rSjG5RyfD9RV6MYtl3ZRFlLEmi7OtFtNhZCVoT X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f894d603-cbd5-4c3e-522a-08d601038c89 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060); SRVR:DM2PR12MB0249; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0249; 3:UrtP05gEoTWw/zrXM6KR2XfCQKPVzGIl7nV+1DqNZ2X36GorHz6+52asLL27uInaQrTnrYKE277GmIo51yqSK8kX9ANnZl3wAFgVpOBXtdjqkvuk+TeuDrwFbgHEgE5ZNUNRpW+C1UljPDRK5cp4c8SYnFEWDfACpEHd6F0+lIBRdNoNDrbjxxBabcOwdZQ2DiL8m3y6j1wquVCkJ5wKMLxzNGCWHJf2ysBVvVzh1cRI66J0XVgJJRQ8lZVZ9e4txx41ndcUcNv/HQwp/zFPY80nywFoUy9ThobNxn9ETgTxoIrGu2FYmp9YB+mllqBMfxU/k0eOYFht5KOZWj/SEvNrxtUUcZbfvvfX8pwFA5c=; 25:C5oAebROjW1x9tgOOyUucr6nbeLhY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cJAObUUJZMg3UuROY9oZ+67UZAAK91yr56MpJcivXLvgJKcFTvy0XubUHNQbtwmtCv6F+/w6YPC8P9MbSvy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93003095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DM2PR12MB0249; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0249; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0249; 4:BZlHWiTosZRaITdJquRVJtgCY6u3niaBNauKDO9RishwKz3UCuP8/Fsac+fjYPr+C6gbZbna0PBOYc/0RjHfNTzUz1xrWz6a2xBO7s0BWTnsHk7VpydNFqqi3NY5ERHsKGjg/F7KA56LLZh7WXlKitLCi1DzNRmW9HtP/If6cVL1gJDdDRPyG7WDHdKx+nwwYVAP/HWZhfbJakGMD7d9dGopNgrOj7OuE2mAesxtbgTnvBrt/yhSMCIj3FE84Hq/mbM6avHvUzzdXCJ+kDLInZabwRB214zQm2GrOWLmuoVDU8yfVYp297oc4NYeDbgs X-Forefront-PRVS: 07630F72AD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0249; 23:cncH5gTyj21WISyEQDfd4gLnoH8wGok95jjwVJfPF?= EG/wX02Bi0dtzb284aH0IjcZiwDv4uE1Sgi2/RWMWzIICQIwNaEtjzB1rvGpp0KlyPTuKXDPF6ZnPxITuBjnn//1xZ7iRqSzOrYWVkDHKT0Fif+NHc1ECupUe+S1oHcZx0FufkT2oDuvOSa0zg14EysyiScGGtVqiEaBq5n3i5+KFajFQLTpf9lIuIIio95VCI0JB/v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1Q3fp175ELwfEBXLklt8qPTYT2wB2rsuY7ejftIePgfp7gitrQlAjSuZ1T8XEjMeaCcosM9Sg540f2EKsYiyZ0SVc0XCPu41ss/roMPgV9FAwviGXblrjauH7nQ3rdfGyz9KDpLCWjHBtZH0UsSN246cI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0249; 20:G3DW62QeWQ7oqzrTtKa/kuG9zmmgfMDaL1uROT2kbva8xMU+c2OOFBMRQnI83v3XuvxKH5jQBZPC21hHxYIT/BFpey32kT/zNYR2wHqe4lKyGyjIp+8CgiJOerCBiMe78Iu32wfxHoe9JL5i5VQCCOLwqjRjj9ZIkoVUHFzJq7y0Mk2/pavO0qlQIG9eLvzPVMhT+QOKKHlLDxWOp5FPUo7oOcmCgrIaCmMwlDT4uaKoTojgDRzJ7LrCGKhkalOT X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2018 10:00:07.0249 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f894d603-cbd5-4c3e-522a-08d601038c89 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: DM2PR12MB0249 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: Huang Rui Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The new bulk moving functionality is ready, the overhead of moving PD/PT bos to LRU is fixed. So move them on LRU again. Signed-off-by: Huang Rui Tested-by: Mike Lothian --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index ee1af53..872ae5b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1125,7 +1125,7 @@ int amdgpu_vm_update_directories(struct amdgpu_device *adev, struct amdgpu_vm_bo_base, vm_status); bo_base->moved = false; - list_del_init(&bo_base->vm_status); + list_move(&bo_base->vm_status, &vm->idle); bo = bo_base->bo->parent; if (!bo)