From patchwork Tue Mar 14 16:57:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng <15330273260@189.cn> X-Patchwork-Id: 69737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1882256wrd; Tue, 14 Mar 2023 10:16:35 -0700 (PDT) X-Google-Smtp-Source: AK7set8OCUBGvGU70eN1OJ19tG7xrhipfhKvmuCkzoPv1YcOVOL7K/TVNl6fFz7jYSRSvLy0mqjI X-Received: by 2002:a17:902:a986:b0:19d:297:f30b with SMTP id bh6-20020a170902a98600b0019d0297f30bmr30371796plb.19.1678814194904; Tue, 14 Mar 2023 10:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678814194; cv=none; d=google.com; s=arc-20160816; b=dBGCxDWipT4DH7q1i07XEUI9H95wZV3DQKdrRYXOFsFy9HXz6Q37w64PYIiiB4bHdf 0ev0rl7eeKbKxxJGJ1UBvLICA520Lh2c7Tsp7j5pAjdzpfEUIt5ZZj154Ef0sIL06Zex Va939px7VcGSaR3kDTdp0IIVHORqRtVnwJO7zKlJOsIhM3CWTRIvu6NjBpzqQW8OjgJC e8cbZ4NSzfKXoyI3Gt+UMACJZXSex+rMeB/dlbXuIDi21KlWNHW4dI7FJdiIbodcDsA8 Mt870vi5nB+iNMcv+H7U0Ny0pCKXmP3p9WxU6Ddhft3UBzSPa5EPERDX8PnrhHVmPHE8 1Jbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:hmm_source_type :hmm_attache_num:hmm_source_ip; bh=r7aqYm5IKAvs38EJT7/ueiPITycsyH6wyN6SpBEsOaM=; b=N+xnFn9HE2h2W/iswwtz3194nnqt6+7bA5EqeziM8tpRab1svcKqVPK6DP7f5TBNxM 7zaP/a4VJ2Oq/J4GseICUYMwoVbdcEkCnuwQgSdWY8vLNOVz1F7crqe6FkVVtJO2tlha tzNRGD+zXPPvzsdoXic2R6ubXa+w6SJt/63EBYGg4RXD3TfJloq/9IYDm8eos4jPkwaB 3n+vDgAK0rOWF2EXdRr09fVaOhNCeLJWno2pkEJrdyO1S1WncSnnaGJapNz2HSl44FoT VsqapuxNHiIEWCtpGN3IM/WSU9eIOkrzTenfdlmrqIbArlPdBeDP9kGVHVUpVMzA+FIr cd0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id km15-20020a17090327cf00b0019e8c3cd3ffsi2860391plb.421.2023.03.14.10.16.18; Tue, 14 Mar 2023 10:16:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjCNQ5o (ORCPT + 99 others); Tue, 14 Mar 2023 12:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjCNQ5n (ORCPT ); Tue, 14 Mar 2023 12:57:43 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B202B1B2F for ; Tue, 14 Mar 2023 09:57:34 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.43:51764.1378362099 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.43]) by 189.cn (HERMES) with SMTP id 1024910029F; Wed, 15 Mar 2023 00:57:25 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-698c9d7bb7-s8g24 with ESMTP id 9cace5e29154469986979a83f13f6eed for maarten.lankhorst@linux.intel.com; Wed, 15 Mar 2023 00:57:32 CST X-Transaction-ID: 9cace5e29154469986979a83f13f6eed X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn From: Sui Jingfeng <15330273260@189.cn> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , suijingfeng , liyi Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/vram-helper: remove a redundant iosys_map_clear call in move_notify Date: Wed, 15 Mar 2023 00:57:22 +0800 Message-Id: <20230314165722.2290209-1-15330273260@189.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760364273145173272?= X-GMAIL-MSGID: =?utf-8?q?1760364273145173272?= As it is already called in ttm_bo_vunmap() Signed-off-by: Sui Jingfeng <15330273260@189.cn> --- drivers/gpu/drm/drm_gem_vram_helper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/drm_gem_vram_helper.c index 0bea3df2a16d..b0c2a7ef91bf 100644 --- a/drivers/gpu/drm/drm_gem_vram_helper.c +++ b/drivers/gpu/drm/drm_gem_vram_helper.c @@ -558,7 +558,6 @@ static void drm_gem_vram_bo_driver_move_notify(struct drm_gem_vram_object *gbo) return; ttm_bo_vunmap(bo, &gbo->map); - iosys_map_clear(&gbo->map); /* explicitly clear mapping for next vmap call */ } static int drm_gem_vram_bo_driver_move(struct drm_gem_vram_object *gbo,