Message ID | 1534500481-15123-6-git-send-email-ray.huang@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 2A49414BD for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 17 Aug 2018 10:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15FCB2AFD2 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 17 Aug 2018 10:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 092EC2B1CD; Fri, 17 Aug 2018 10:09:10 +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 F37362B026 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 17 Aug 2018 10:09:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D79446E606; Fri, 17 Aug 2018 10:09:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM05-BY2-obe.outbound.protection.outlook.com (mail-eopbgr710082.outbound.protection.outlook.com [40.107.71.82]) by gabe.freedesktop.org (Postfix) with ESMTPS id B59366E606; Fri, 17 Aug 2018 10:09:05 +0000 (UTC) Received: from CY1PR12CA0053.namprd12.prod.outlook.com (2a01:111:e400:c42b::21) by CY1PR12MB0247.namprd12.prod.outlook.com (2a01:111:e400:50f9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.20; Fri, 17 Aug 2018 10:09:04 +0000 Received: from DM3NAM03FT060.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::200) by CY1PR12CA0053.outlook.office365.com (2a01:111:e400:c42b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1059.20 via Frontend Transport; Fri, 17 Aug 2018 10:09:04 +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 DM3NAM03FT060.mail.protection.outlook.com (10.152.83.86) 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; Fri, 17 Aug 2018 10:09:03 +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; Fri, 17 Aug 2018 05:09:02 -0500 From: Huang Rui <ray.huang@amd.com> To: <dri-devel@lists.freedesktop.org>, <amd-gfx@lists.freedesktop.org> Subject: [PATCH v4 5/5] drm/amdgpu: move PD/PT bos on LRU again Date: Fri, 17 Aug 2018 18:08:01 +0800 Message-ID: <1534500481-15123-6-git-send-email-ray.huang@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534500481-15123-1-git-send-email-ray.huang@amd.com> References: <1534500481-15123-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)(979002)(39860400002)(376002)(396003)(346002)(136003)(2980300002)(428003)(199004)(189003)(97736004)(4326008)(450100002)(14444005)(86362001)(76176011)(7696005)(8936002)(68736007)(81166006)(81156014)(50226002)(50466002)(356003)(110136005)(104016004)(106466001)(26005)(53416004)(77096007)(53936002)(316002)(186003)(105586002)(2870700001)(2906002)(426003)(336012)(126002)(72206003)(5660300001)(476003)(486006)(446003)(305945005)(2616005)(47776003)(8676002)(478600001)(36756003)(11346002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0247; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT060; 1:Rq5G3p3PVeEicblhVZNyMSvkdybNqY1oL8QslmFod0tPZ2kvOBDRMEzJmxEjWcCDZpUrB7hL8ZvCpRAxDZmFCsqE04Ch1J4j83ME5jOu+f/F0BU5JwrAyYs98TWmFd+S X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1a3ba283-ecf4-4805-a864-08d604297604 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060); SRVR:CY1PR12MB0247; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0247; 3:wL3nOawP3lN5N6Qg5eGQvsNBTURDN4G+YfRyXJm7poXqVsZ8W598HmqrTh6gtpMEakxV3eJKydI/QWLltRQo6FbtasGSosiZe3oQa0cpoe28yovaNiC2VZ04As/Sv0NqnUKTzOQ3RqirVmVEGc36qPuGr9Rgn4z2bA2eKtTd4Jzdc0z1sHqtFv3tV7IgFHq2GIg//5gfbo8FKmb/YwJBsEZfBbJ4fDFn2gkrpiaOl4c+EiMs59Orau69bo5iLuk/oX4k8JJQDPnBbjL/Ml+b0n875eVfuUQTJzApKxHtzzz48SMHV5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kmY5jyc6oSh3Lrq6k/lPfew8Q4Io9AH2AT9ojA1rLk8B5FAv0PrjdQ5A2Qee9DcXmzkpExIV5NtviwTeb5Zv9lqnM2SDgfF7FUIVIuLsyZ/CEknkGOyJ4ugndBbr69XSWR1edE7V/QFDOC3hWw37idQGZs2keE72z+sJafB+SaoK1fcl X-Microsoft-Antispam-PRVS: <CY1PR12MB0247DF5D22050C01F54067F7EC3D0@CY1PR12MB0247.namprd12.prod.outlook.com> 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)(3002001)(10201501046)(93006095)(93003095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:CY1PR12MB0247; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0247; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0247; 4:pQ4x3ligH2BvVp6IT8skmpy+UD+dEntm/dvOsVw02q+LyVPt6MX8MD//pA00iYBGeIoa2g0KeizwszoVrNgxCKc2eCvRv8R2wRQAkm5QWv1n0sj05akbYAaSrQDaiikEh9JtWEQ+Ixx3h+l8P4iRVAi9P+5EDWSaP6mwJ7B6CJGt9EmSKVEy0Oz1Rfg0Txy6PZh16+i9gYHIEE5p3bQfnRLHoTS1dYQX0KC4/MiyICnY4VLE5ovQORRi1EAfm2ILhBo3K823v7B3BBiot4xJqg9hthew7gp1s32jJ7lWqrFz8Iqi/B2IZqKfv40GH7mS X-Forefront-PRVS: 076777155F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0247; 23:lrytnaOHOBRCasmb4gPkPXDEA4dPxIuQwiK3hklHE?= z/ow1zrd8FL9MH7FfqRoMrDOM7b0tBcQrkewLXU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aVrs5IfYLhbHTJplZFq/g3vL7vVXPsZJjkKu0La/13n4rk8V22NR1kp10yFoDVu/6Xvt6q4IIJZqtFQa6M=; 7:E0uOAVOS3GYNUhlApup5ID4Wdxa+HDfOIrVyF3AdoTzRaVcCL/nFfuAvyN7CxeHtaVfOOExfZCUrhY/nbHoMgGSHzX23o0V3kKWSGP3N5Seij4AElfNN7qHkYzGoftVDm4fEkbFoxtlbPS2uCyj7jKtyRTI6ZlVM8DQhhrlZCJ47HYmP+6tGDSW6HMA1okisBTjBv9CJJhv8kW2XHNR46O32esCsxCPS5TTZDrzSrunM5FFcVB/+RaYVPR0kWq/N SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0247; 20:BcIxRIfwb0ZStMGGT/yRGK0YTZKMpYnuQudYFi0X6LMSVUNNeTHz1APrJLM2KithTtnjgjkWa+3fSsbZ1VBXaSX3+1nXGUuqw2HGw3sgRvalh+QQXXgJoipqk6Lt6edVJmPfp5n/jwOGxKHA7OO8JNYSdIQ7dp/CT8bYEEefkvvERefo6GaegqCewy/8x2PDhdSU6uFdNkZlFjKMr/vytkV3LCE/+4hxBLB+RwyVpEDs6wTxRHwCSwMhnyO2TaT7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2018 10:09:03.7972 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1a3ba283-ecf4-4805-a864-08d604297604 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: CY1PR12MB0247 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Huang Rui <ray.huang@amd.com> Content-Type: multipart/mixed; boundary="===============1802265345==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
drm/ttm,amdgpu: Introduce LRU bulk move functionality
|
expand
|
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 037cfbc..f498b7c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1121,7 +1121,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)