From patchwork Wed Aug 8 09:59:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Rui X-Patchwork-Id: 10559719 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 858E013AC for ; Wed, 8 Aug 2018 10:01:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7435B2A95C for ; Wed, 8 Aug 2018 10:01:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68BF82AA1D; Wed, 8 Aug 2018 10:01:32 +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 232572A95C for ; Wed, 8 Aug 2018 10:01:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C788B6E504; Wed, 8 Aug 2018 10:01:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-eopbgr680063.outbound.protection.outlook.com [40.107.68.63]) by gabe.freedesktop.org (Postfix) with ESMTPS id E23876E504; Wed, 8 Aug 2018 10:01:29 +0000 (UTC) Received: from DM3PR12CA0084.namprd12.prod.outlook.com (2603:10b6:0:57::28) by DM5PR1201MB0122.namprd12.prod.outlook.com (2603:10b6:4:55::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.18; Wed, 8 Aug 2018 10:01:28 +0000 Received: from CO1NAM03FT019.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::207) by DM3PR12CA0084.outlook.office365.com (2603:10b6:0:57::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1038.19 via Frontend Transport; Wed, 8 Aug 2018 10:01:28 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT019.mail.protection.outlook.com (10.152.80.176) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1038.3 via Frontend Transport; Wed, 8 Aug 2018 10:01:27 +0000 Received: from hr-intel.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.389.1; Wed, 8 Aug 2018 05:01:22 -0500 From: Huang Rui To: , Subject: [PATCH 5/5] drm/amdgpu: move PD/PT bos on LRU again Date: Wed, 8 Aug 2018 17:59:37 +0800 Message-ID: <1533722377-27020-6-git-send-email-ray.huang@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533722377-27020-1-git-send-email-ray.huang@amd.com> References: <1533722377-27020-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)(376002)(39860400002)(396003)(346002)(136003)(2980300002)(428003)(199004)(189003)(53936002)(81166006)(356003)(7696005)(51416003)(110136005)(16586007)(81156014)(450100002)(106466001)(48376002)(76176011)(316002)(47776003)(126002)(2616005)(8676002)(86362001)(105586002)(476003)(50466002)(575784001)(486006)(36756003)(2906002)(97736004)(4326008)(11346002)(50226002)(26005)(8936002)(72206003)(478600001)(68736007)(77096007)(104016004)(5660300001)(186003)(14444005)(6666003)(305945005)(53416004)(336012)(426003)(446003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB0122; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT019; 1:RHp/9M8gFqUcrPkM/yJu6vBb1E0MDuiabjU+icZscd0oKOaIF8PtGjnGbNCHBv9EvpLMBmwuRbe99t31vtMjL5Nspm/gb9iBpRP56v7sQSL+1jZ4TdcH08bu63jlO9eI X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bc87e65d-8324-4b36-1de5-08d5fd15e89c X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060); SRVR:DM5PR1201MB0122; X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0122; 3:NirtX3qPSev8ouKEM88PP6KxQ5lGDSRyJej+Y87dkziCBB/9GLozA+0MruUdmyD8zWKu7Yk3IV5qbp9512pcH+BQFam2GNd5APVccxnzyItlFgO1ewz1IdPjbKz3uy9G9JmJWftBiXisbzGuSx97YxVqz5PuLLZiyP2v9mx4e58YJ6dSf8noQS9X7+JeFFYCS3iR1pROWDZAJ/mr/4gNWh0ZK17jzAb/mStQ5qM3fqEeK2JupRRyGmqYT9DTyR+4Cb6MJ0pDX4MND0ELSqqIJXpZYxHm4ZkpOVhpqtiBvQQLmMM3l0fso6Y9z3Fpavvj1oJX6VRz6Mqlcomco5N/7q9r/fwuyPsscHVyDs3IWmk=; 25:deRe+IX4sd4bhTr/B0BftAcEnVAmrdvFMtXCaSO2KtRVSB9m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L57bqSSDD5VHNKXmfUGKHOWszjnjGYS 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)(5005006)(8121501046)(93006095)(93003095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DM5PR1201MB0122; BCL:0; PCL:0; RULEID:; SRVR:DM5PR1201MB0122; X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0122; 4:bB8ti5RUvlI552bGCpDWS3AYptPpqv7kPa/DezwzmXZVP0VK8jRlUUXdSTG3tpWfEltPs1WZe4s2ov6YZ6qBBd6az6G30flW68rW/SXcxXotAgTuvGA0M60n5CKPHlHWVqFAiWZ9oyW2u7KxGBMGavNtGK5fQ94MljLd/xEEEuiafwOXhIjQ5G73uHcPINplzVtWt/hFsPOf77P98btzViRTZmTv9to6kKbhcymWA9eK1uJ+MQ1MjEZiYWXCAqY1edn/2YCoxnDxs52e1IIfxZfh0o4Tn9QoHkxGmLReDIpZKfjGNchju3Wva8TkgPPc X-Forefront-PRVS: 07584EDBCD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR1201MB0122; 23:h+1SvrUPJVAOoGy1jCNOw4mhNOXSP10OatwjIxC?= 2yDySYcEAETzJ8bVo2Z2cBWjqi3YOV13OG3C52DUJt/HPAjpt5AD/PN8kKG8aDs44xyc0WVnawxYWDMBYUuhB1cNe+0CApZCu7gQ8vLpxbGtnYm0DGzPsx0gCrS4L1K78yxkYdChGKNJWMGQytyhUZgHCMGklV+PzVBgBJ2W406P1WeckmB04p06Tx2MJzAEk1KTuWom0RRhS5UdQEB0MXKrVb5k6JHzLSedy8//RfDeNnPq/DZ4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ZFMPpbvyD3e/oAhuMuGSVyaUMb7ulR2WH4t4TFXSxChu9Mk9//xztz9EALekJJv6Le7ciMXwx0pWWNccZurxiyUB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0122; 20:afYNRiuxDUkpbJ4R9lqaRCtBvo5M1WvlonxrLb49UqP/sENQXHvvhJkOd+LWtbgPQRaEMb3l+SrE31k1jdd2wEP9Wr6TehyYuepk+bJzskA2ZgbzC4YHzkfhKnTjPwN3QpJeEgiUmQbJMWv4Me78ybiQEJfT7o0N4RlBg8lz9pSBwT0orfFqkwsGdg7DSlMA3R9ROYipDgzw4Imy9kcoSQxU7p/9mHn4EOFGVi2b6abVnkUVex2HyidA7PIvl0E+ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2018 10:01:27.8822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc87e65d-8324-4b36-1de5-08d5fd15e89c 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=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0122 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 --- 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 eda0bb9..3550166 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1090,7 +1090,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)