Message ID | 1533902159-14232-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 D12E114C0 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 10 Aug 2018 11:59:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C25F62B672 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 10 Aug 2018 11:59:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B682E2B964; Fri, 10 Aug 2018 11:59:06 +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 E66BF2B674 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 10 Aug 2018 11:59:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D65996E905; Fri, 10 Aug 2018 11:59:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0068.outbound.protection.outlook.com [104.47.41.68]) by gabe.freedesktop.org (Postfix) with ESMTPS id 231806E904; Fri, 10 Aug 2018 11:59:02 +0000 (UTC) Received: from SN1PR12CA0022.namprd12.prod.outlook.com (2a01:111:e400:5174::32) by BN6PR1201MB0115.namprd12.prod.outlook.com (2603:10b6:405:55::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.19; Fri, 10 Aug 2018 11:59:00 +0000 Received: from BY2NAM03FT030.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::201) by SN1PR12CA0022.outlook.office365.com (2a01:111:e400:5174::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1038.20 via Frontend Transport; Fri, 10 Aug 2018 11:58:59 +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 BY2NAM03FT030.mail.protection.outlook.com (10.152.84.214) 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; Fri, 10 Aug 2018 11:58:58 +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, 10 Aug 2018 06:58:56 -0500 From: Huang Rui <ray.huang@amd.com> To: <dri-devel@lists.freedesktop.org>, <amd-gfx@lists.freedesktop.org> Subject: [PATCH v2 5/5] drm/amdgpu: move PD/PT bos on LRU again Date: Fri, 10 Aug 2018 19:55:59 +0800 Message-ID: <1533902159-14232-6-git-send-email-ray.huang@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533902159-14232-1-git-send-email-ray.huang@amd.com> References: <1533902159-14232-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)(396003)(346002)(136003)(39860400002)(2980300002)(428003)(199004)(189003)(486006)(105586002)(478600001)(72206003)(106466001)(53416004)(186003)(336012)(446003)(11346002)(14444005)(81166006)(86362001)(26005)(97736004)(53936002)(77096007)(36756003)(81156014)(51416003)(76176011)(7696005)(104016004)(8676002)(50226002)(4326008)(305945005)(450100002)(2906002)(8936002)(476003)(47776003)(68736007)(316002)(110136005)(16586007)(356003)(50466002)(2616005)(126002)(48376002)(426003)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB0115; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT030; 1:ffPHWqx7+rezSDaSfYMpep4O+UsfnMIG8Tds0tAHUK79x/ZtGEWpni6GoTQFk8KEcatIgNIyjRIu6exai9SR+CdYjmNK1wfxkhjXiQry2WFE4QNWXgxM4Vq1mBhEGNEn X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a475bad8-cf75-489e-8f18-08d5feb8a82b X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060); SRVR:BN6PR1201MB0115; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0115; 3:0l4DGA2hTScn1iDeAeLPPixNmbGhduEJEKYNrwhcYAkWew6IYVzaIC5dI+8S39ZZeKYljUTacOcoSBT/W3TmzHfE92Vppy2EzOKg7BTVbYr5Xan6oJbkxbRtzQ1YlHjUD/DJcERzvYgKBWj/GRWejanERmjrbfbi87NdNKI4y4Lv+oO6NYafz6/2UbihI9bIU/qkd71EDeu4QDbRGZVify5ilUE1ARTh1swzRRR4RpgOeiMZoTTSV35OgBeePJpDoReEX8gl1Z8q+9I8UCnGeuMmuierDUP8E0LG9ryc/fgS/krMR/X5MoT8nTCIEa38q1vUwHanBS953EdG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QJmsQyN8cxlHIE41ZLqa+tY7N8wQM7izfq7Wt9xVR+DR82yF2fhf5sxeXE7bfjl2EApqJmTMVduz+0WtPeiy0b2dehT5fPmOpkKk9B4G2eXgshz79zu3Fs4XEwymItkf X-Microsoft-Antispam-PRVS: <BN6PR1201MB0115045B465C9B0A4B830753EC240@BN6PR1201MB0115.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)(5005006)(8121501046)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93003095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BN6PR1201MB0115; BCL:0; PCL:0; RULEID:; SRVR:BN6PR1201MB0115; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0115; 4:HHUltMiGK9xJqjN0/6nKzSwvq1tZt13xb03udH1Q/TJ9CuhLVm2sdMPcyx+loFmrJjSm4J07bOAaAQhtlqr0+d9Y/N2ZfNgmTB5MUKTbsJbEYZOJkV3SA1o99XVuTeYeehodqhGqypVdwB8RqCAwSLeVgOh/EtJfexEGeIKzeH5OIQSPD9bjBFcl+oATPkd2syuNKpTLGBWAqVLg81NHh3VnlJrdYvLbGZ+eCxVjTvtKj8l/QHDayDXPPeJZ4Yq8vwVUCuvPqgPtsa3hA33gK/y89x55OL7OLAiIwr3RfKGtsOvO3bVgcY1ZFEUBM1tS X-Forefront-PRVS: 07607ED19A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR1201MB0115; 23:J7FZSu9hh7I4BpJej7NZT8HLs6Jwun1gkUs78kt?= ZnheWB+cxOvXOSQZfPWVrENFkPdMPkh7Stk9K9qFQcgfo0QZDPUwxwas1n6RKm/yFWfQldxnX4ZiE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A3GnetB8WvNLcFiOG1XU2pocmaStZKbnGqoweY/T44wulVUHjpp+nACPFeBKIo/LS1r08JFsALeww+BdlVQavSNb5Ut0gw1sdbNcdE04rTDz77wXsedxNhUbALIISx6t4qnYD+icCPUPQMW6YC+Yt8NnUlC+a0dA9uvx5/b2Lc2TtuicvBF5Xmt9MevAKFReg1as8YNFh1lA8WyRTPeIOE/aBWS2TalDBMQIQrD3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0115; 20:sAdJM5rx0EFUNAkObH2o6uee/mmuluzaqF8OOvVoOwAGTmYI+mFFuHgcOW2JuVFnVTskqvc+ulTQkVZiZUcEee5+Pi1fuWgBsDlOb5G+YEYIcLMzxathMV/Sjp754wEGW5QptIhlFDKBuuR/0pRHtCTqrs12WhZWk4FmYNIcL6OjUETnebWRiaLmQ5QIwXgUv7xeM453cK4sYjsDDuJFZIfc4IQuW2fM6/wTLp3bu8vU8UhIISUpk/71nKioychJ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2018 11:58:58.3845 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a475bad8-cf75-489e-8f18-08d5feb8a82b 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: BN6PR1201MB0115 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: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 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 81fb1ac..9f44514 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1127,7 +1127,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)
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 <ray.huang@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)