From patchwork Wed Aug 22 07:52:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Huang Rui X-Patchwork-Id: 10572665 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 B700C921 for ; Wed, 22 Aug 2018 07:55:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE5652AE69 for ; Wed, 22 Aug 2018 07:55:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2E232AE9B; Wed, 22 Aug 2018 07:55:19 +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 4E6AF2AD5F for ; Wed, 22 Aug 2018 07:55:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3FEC06E1AB; Wed, 22 Aug 2018 07:55:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 30E2D6E1AC; Wed, 22 Aug 2018 07:55:16 +0000 (UTC) Received: from CY4PR1201CA0009.namprd12.prod.outlook.com (2603:10b6:910:16::19) by BN6PR1201MB2498.namprd12.prod.outlook.com (2603:10b6:404:a9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.20; Wed, 22 Aug 2018 07:55:14 +0000 Received: from DM3NAM03FT056.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::200) by CY4PR1201CA0009.outlook.office365.com (2603:10b6:910:16::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1080.14 via Frontend Transport; Wed, 22 Aug 2018 07:55:14 +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 DM3NAM03FT056.mail.protection.outlook.com (10.152.83.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1080.9 via Frontend Transport; Wed, 22 Aug 2018 07:55:14 +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, 22 Aug 2018 02:55:12 -0500 From: Huang Rui To: , Subject: [PATCH v5 5/5] drm/amdgpu: move PD/PT bos on LRU again Date: Wed, 22 Aug 2018 15:52:55 +0800 Message-ID: <1534924375-5837-6-git-send-email-ray.huang@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534924375-5837-1-git-send-email-ray.huang@amd.com> References: <1534924375-5837-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)(396003)(376002)(346002)(39860400002)(136003)(2980300002)(428003)(189003)(199004)(426003)(476003)(4326008)(450100002)(97736004)(81166006)(81156014)(106466001)(14444005)(8676002)(446003)(11346002)(6666003)(72206003)(5660300001)(356003)(53416004)(2616005)(126002)(86362001)(486006)(50466002)(305945005)(105586002)(478600001)(26005)(186003)(77096007)(36756003)(8936002)(47776003)(50226002)(104016004)(68736007)(2906002)(53936002)(5820100001)(76176011)(7696005)(336012)(23676004)(316002)(2870700001)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB2498; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT056; 1:B86bJ2VcFiOkfwai2vOZsjmoa/f7RiM6W95m281zXM+Y8+/7u/jG/OlrdzLIB0fqR1j2whUIdnnyVfRyURLGHfhqUmCMa6XBTelGuujEcOItoH5GZLzRLnmOkJbhXR3m X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c7cb948-b7e2-4c48-0bb0-08d6080497fb X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060); SRVR:BN6PR1201MB2498; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB2498; 3:HFNCxwM4rJPa44T0ly7SJeiVRsW8oIohaK1SC/ne03DckUKWXHGTlW2OQS2iI0h7wEGRO/9U98fXI2/dgiaILA9GoifXcEoY79XqwIAs7waoEMuBDSh+/Qta3p10A7ENl9zgx016YU4CoCzVulFczaSClRs1/AMXdxLzZopI7yuOJ+wzG2sXQBxdw7wt35g2wzFJM+Oe6iQR83gZmx/OsB7dxlPgp4qwZ/JjYiIWpfsH1kq66Y7cadnfBrDt5Odx1OQhbxdhoOMw5JHcaW1j419a6GjrgF9QqyeBYRHejWoMM5S4gm05nkSX8S4c8PUZPhIcDOxQZfoUxo0ygqwZ8hmsn594FXu9Wko6HRzAA9A=; 25:RO5Xp8lA9bMWtX66yjCE1W3+kyLsTVy6sz8gI2KwS7LGBU8q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ZHyiO5IMrsMHcXImJI1N2gD0Kc0rqCNAUkZSP 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)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:BN6PR1201MB2498; BCL:0; PCL:0; RULEID:; SRVR:BN6PR1201MB2498; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB2498; 4:GbuKblFC9/kVQGIK/fLLBxUDJLeO90KcQ+lKJTcCg1FJPi0aiO6Dlz+1BsbBz3N/c4f4xYINhgZXj8LflLS9wgwzmBI0TiuikDlFHCOKDjgNb6NgJNZ89/Cg8Rb2wz3Tm3b0MSK5JzxnIbNCNgdLBJjzXlCjfDF/t9VqlAv11kpmx2BJbyNVhqBt9mAU3DLEESmgVFyt3ySP35wxtQCwEfsOM1X0Tut0fLWezji3WnAWycHOaF9zxqEa7bXVirg+eoDPJzNywZqnJve78+zKQ225Udn8BJhk7IhR9jZrWvZhxb59hDzCkb+D6X1YDCBe X-Forefront-PRVS: 0772E5DAD5 X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BBN6PR1201MB2498=3B23=3AR83Bw?= =?utf-8?q?aQQ1BvnpqvsxyxnwXRkdvJDg7IJpeIDsTQ1hS9Y/YuVArfQgfb5a115pfzLlk31Jr?= =?utf-8?q?I20pfg87X0rVLNZLuTb3Y+FLTVg9aPm03C7jvbYwsfBgGGZtjybLcB15a8aMP8/Xk?= =?utf-8?q?2GFfeKkoRrF2IVM7hjz9XjJu93HZ99I9EBD5t9VB3j3QMbdPuJ1eCSIwEzltLYWOH?= =?utf-8?q?SZCgo33mmA8N83v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UicAhGtkiIuUHUiO/YFQQxbFd9XmSLny6RnBThA+XA1TPQ31x+FujJlZYLp5TzfLrq2U=; 7:jTK6bgG+XixlhUkZ2ofA4jxfzY80J8IjHtqHW+GAjXXU/kBmaPxuG47WbZEJaOoTO2lRmg76BpTyBpFB20uaZf11L7jhPdJZZMWbb3CV5xs1/JeRgnSZPg3gSlkgsaFRZr2tOizQ6zFJcHCi7MyHudqKduTdqlyGr80qTV4kPvkl9L6vR2rA+pLM8y+en48wHRUxw6rpe+Gvr3P8PMC8yiiCQ0YgH80mBgo+I8jwllmcpOWmMX1EIKKr4rbW1lcj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB2498; 20:DgqN1vbjVtZcSizDuSVeg5+fo7r2DZRrcogNUBw7QZnpPeZhFgNv1zisR+PfoGFs1sQRSGSCg6B7PyOjy0qwtPX3/CxrQHrnbf92/bAl1l/LWDdTw5oB/Coabca1577gacAZ+JM/SUd5cekDeNEf9TM4wnNSSddAZEEJJp5MgY1i9vbkSapju/nTMXUx++wgb1O/6h88qIRQHioxk9hlK9EfPNmyjNvrhMK824JnW4n51ljxPYnbZt71nmMXmMC2 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2018 07:55:14.0332 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c7cb948-b7e2-4c48-0bb0-08d6080497fb 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: BN6PR1201MB2498 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 Tested-by: Dieter Nützel Acked-by: Chunming Zhou Reviewed-by: Junwei Zhang --- 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 db1f28a..d195a3d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1107,7 +1107,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)