From patchwork Tue Jun 8 18:13:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Das, Nirmoy" X-Patchwork-Id: 12307883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D098C47082 for ; Tue, 8 Jun 2021 18:13:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C357C61246 for ; Tue, 8 Jun 2021 18:13:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C357C61246 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 34F876E58A; Tue, 8 Jun 2021 18:13:26 +0000 (UTC) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2063.outbound.protection.outlook.com [40.107.243.63]) by gabe.freedesktop.org (Postfix) with ESMTPS id 190236EC34 for ; Tue, 8 Jun 2021 18:13:25 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lo9w1lifa1lecj+iX3E4gPSJA9Sro3tFjEIjWcciJXNga0/V18PnNqGNxrjcji+Pg/gAxDglrSI1FM2vkStMb2izQSnKZEvx11+4ee080C+mElKl6qG8yZbR5Z7AlMa1eiBF6w8ZrEINocFarXZFeQHVIFoymEgFz/5AmKgYm17aeR+/PgWVS6HYGDNGLy7YpFzxbJLhl5tBxMBvfcMDB0MHmIDzzDGr8Q7zs+4Li7j1oW3MDJOOW9yg7PtD0b/wPxjXAT6q1wnAPjwxjlaAgtcd6sx43zRhZsRWJijF44FE+IH8gVWVTMDxz6IoV2JYmQBsnR7L208Qc9DJRhlNFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m2F7N+cfxxAAuJG89aZ+g2ri5GnVh7d418iTD4Qx+d0=; b=U0iV7uXhonUqGgxroK36nJVw3eNWpSJFcGvY3cfF8MOKsZyB0kijcr7oiqiwXRAjZ43H+BSUkaSZ5e4/vEIo6a+izLoQdIxm1GDVSHoIq09lWlwQg1q+bIaGjeD8F9AhYCeqzDKwSIsIwSR0sZnRU+etj/EMUDAw+eA/Fh3mB9UVRekbpAF9+ybV73a8qM3zjXkFTgjEhyuUyNbPXi/fXtb++muIpFqmdpqgJUs9sPQBTmeRNOFSA/lpKSmBhViurhkahcUEn9Z5UrXvl80kY6HgGNeW+PuyPpwxUNEDR/RZPEZKX6Q8hLt9lDV4EQqzJnjFfm3z50ZYclm12frDgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m2F7N+cfxxAAuJG89aZ+g2ri5GnVh7d418iTD4Qx+d0=; b=KaMGRxbOgIzufevjlsHcFfkTOmRIXpjEdNzslXuNo5yuLQwRUDECfxqSR4d5uQHnfhW6Wct8CZgMNflGa6V3XdSQNHgtBYH8kXw++4H8VWnyyxKwAkOtM40AnNs97xGEgqmeltYjaeeZsP4B4z9g1YKBjgxwT/bzpd1qy9FxL2A= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB5136.namprd12.prod.outlook.com (2603:10b6:5:393::23) by DM8PR12MB5431.namprd12.prod.outlook.com (2603:10b6:8:34::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.20; Tue, 8 Jun 2021 18:13:22 +0000 Received: from DM4PR12MB5136.namprd12.prod.outlook.com ([fe80::4074:4943:244:a5fa]) by DM4PR12MB5136.namprd12.prod.outlook.com ([fe80::4074:4943:244:a5fa%6]) with mapi id 15.20.4173.037; Tue, 8 Jun 2021 18:13:22 +0000 From: Nirmoy Das To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/1] drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move Date: Tue, 8 Jun 2021 20:13:06 +0200 Message-Id: <20210608181306.90008-1-nirmoy.das@amd.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: X-Originating-IP: [165.204.84.11] X-ClientProxiedBy: BN9PR03CA0954.namprd03.prod.outlook.com (2603:10b6:408:108::29) To DM4PR12MB5136.namprd12.prod.outlook.com (2603:10b6:5:393::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from brihaspati.amd.com (165.204.84.11) by BN9PR03CA0954.namprd03.prod.outlook.com (2603:10b6:408:108::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 8 Jun 2021 18:13:21 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b44a18c-f93b-40be-581c-08d92aa91a1e X-MS-TrafficTypeDiagnostic: DM8PR12MB5431: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:376; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9PKf+qgdk/UdLjxTlXNEUnC7wZsdOPWWdMWLcVmf74a4OXIYHIxowE6ngueu9IWw/uxVHd++gXInD5Ykmp4oAg6KaJEInNc8iq4Ece8xWKfX1sZGGj4UlvNJyE+Gy+WiPeAKp/4A/3IKHYHOhEn6u1J5MSfo5HyDhkosr98BWVdzsmuW/ZSr0N7v5Kh7VDLSVLFtMP20UbTtchXXUMmMMW7vYcWhTHR6cIdAgXzK89Vdg703Q/8ojGXmChhMISr2f5Fd9YtP0ihOp4cWutUdOYoDKnqUAF4qfRO2cIURAY1q7PnXk+ZicpWbaM4bofJ67fCnjZCOvTOhHIezEBtFtpYifXr9ia5AqBYnIzSdrwnYynuzpBHIzWt6teqsoy/MeH8OydL0KlcWzTiaitwshPSB47XwO/ESh1ClJ5CRHk02zqa2qRgPP47HT2VJk40BStm7r9rsmI7CQ41eQ9hSDnUOwRIvsjEzKTU+IqWvDwQnCvryUxo1kQ/z7AzXgOtVCH//8OMQ5MvPlGgD58R6/5FDJSfdfm/CmQNKBRHqmFvgOhwJQzTlZ4jR8f3alFdQwJ/ZzSLy9bEG8hzP7HTT8kuIOAdKN0ftwMWvXbScgZuLifZrNsQE2Y8lmPMPq52vzroucphU7MJFJD7ZXwFzjMDSjdgvaiuvSDxT76KsNto= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5136.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(376002)(346002)(396003)(39860400002)(6666004)(38100700002)(1076003)(186003)(316002)(16526019)(4326008)(38350700002)(83380400001)(4744005)(66946007)(5660300002)(66476007)(2616005)(956004)(36756003)(54906003)(8936002)(66574015)(6916009)(52116002)(7696005)(8676002)(44832011)(2906002)(26005)(478600001)(6486002)(86362001)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?L46K1ZaAb477/6WPr09QlxILmR2l?= =?utf-8?q?q58JuJVIuzuJOIWwkQe0nr5wnYLjK2oP4NxSgeOI3BrYqonlwK27LtzwCCfHofHmD?= =?utf-8?q?RD9RqJU5RYLSl+e2HHogg7JhCwMiurkiUWNP6c84HKNektazYqIiop/S2S2qkqRuV?= =?utf-8?q?CD5g0oxKY7FOSNnKMZ8VVBw5buW8gYVhuFIggfvq0Vhcgm3FoCT6MPN+MRocJBfYK?= =?utf-8?q?YAIQKFgYFS2aXwyMdRN+EkSSZ3vefjNRkUxdXDRhKXp+67AQl03sZnxJzkG5sti3M?= =?utf-8?q?04WajK5TkobEfM0hMCFTM/54kZ6kb5sdqdGe498u79Iuw9Dd07OkBD2VKt4hpTZCL?= =?utf-8?q?v52Fpa1SsGiLTd/xcKtiV+ZzymMfVx2U2N36c9aj3y22zuA9p+6fA7xEnM3lGkvad?= =?utf-8?q?qPFlp0KlyuJumunve2C85sFhYdmPYkQzlzo70/SVXtwL/F4q4zssX9KXkoVbsSqla?= =?utf-8?q?K9vPle6wtH0p4tokHXBkAEk8hcKmHQFFdIBJKjgsrPP4qywQWL6oyDfZOOGyiFG1L?= =?utf-8?q?txEKcgu9UoFpgR2jdlVJI45lnH8lAG+o0FyYjurbRbOeH0M5RNcLvaRCWlVmcGsQs?= =?utf-8?q?2hERsG+ENxJmwltHnOI9yQljLS3/lAm6/RMag4rUxmI684ISTMQe0o5+lvnwBPV1J?= =?utf-8?q?DDP3xVM7/febzrjLoobWpTiZVROIMba1ffW6yBA5VPF7WYYkXW5tp6KlZ5IAzGtZ9?= =?utf-8?q?1U6+MLFEeV2M97mJSOhkrmEWbv9LeQAIQLVrmfdQNwMeIxJrI/nAVa0G8868sIpOi?= =?utf-8?q?d9gqmx7TkvkRE443dHkh/AAQoZfUyXUel5ReHNP4Ge9qfL2BdlNfRJEszss/pccCG?= =?utf-8?q?6+ls1+Dx9Yp1CG0PeNL4OaN7NMNM89z/8egmtFACltrUrW6oGa3s+wfrXcZltU9xz?= =?utf-8?q?YxWahMWs8LakY7oMZ/aJMeQi0xleK+I6ZmMiXmAi4SLahaY8XulYueCb6AVdiVRV8?= =?utf-8?q?RpUm2d5nFHgSEhq7UdrH2P32vhQn36xnkapbel/zBMH4FugKjY4Y+xCs+BSrqm10V?= =?utf-8?q?7EyPIfAs1TLu2UyKATxX90F0RgjvyKDNNelPJpb6g0Q6/ddocg7zmCTn3vtUKI2Mp?= =?utf-8?q?bKqauUN5WM7hcZGntnPB1BW1xdEIkMTouxEBRvZVgIJL21FzV2NC6Y2So7j0X+Keb?= =?utf-8?q?bLYcoo7fjtJMsdMpFACIeld3Z6/2X461rxZ5PhAZQ+c+5JXKQyrXmELfw7WconPwJ?= =?utf-8?q?yf0Rjgcb/r0fTju+HEcprIbFT8HBNf4TVMXQZfgPTyHZK2cMu/NHvaXuZ1JDXdjRr?= =?utf-8?q?QXeBTtTVkBmOUoQi?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b44a18c-f93b-40be-581c-08d92aa91a1e X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5136.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2021 18:13:22.7991 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8PATPRB6j3BGs8zrdADOg51Mmq+wgXiflcveLcR0eiqsv51h0ehvuHhI8O2HeOhR6hXPjS87NapoxRhsSMO6nA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5431 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas_os@shipmail.org, Nirmoy Das , linux-graphics-maintainer@vmware.com, =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Use ttm_bo_move_null() instead of ttm_bo_assign_mem(). Signed-off-by: Nirmoy Das Reviewed-by: Christian König --- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c index bfcf31bf7e37..0488042fb287 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c @@ -733,7 +733,7 @@ static int vmw_move(struct ttm_buffer_object *bo, if (old_man->use_tt && new_man->use_tt) { if (bo->resource->mem_type == TTM_PL_SYSTEM) { - ttm_bo_assign_mem(bo, new_mem); + ttm_bo_move_null(bo, new_mem); return 0; } ret = ttm_bo_wait_ctx(bo, ctx);