Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2924257rwb; Mon, 15 Aug 2022 14:09:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6VAGbkTjQAROOg/CGNAqtq7ZE2cW90LwSB5Q/jFiT75g/SXkwtO6vqd1oAqdGk48VRGgJg X-Received: by 2002:a17:902:7442:b0:16d:b480:31eb with SMTP id e2-20020a170902744200b0016db48031ebmr18305507plt.157.1660597742546; Mon, 15 Aug 2022 14:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597742; cv=none; d=google.com; s=arc-20160816; b=vO9bBBLPIcUk/0xVcq1mVITYySNgsTI/ZNih+HtxLf5rOhyzKr0ENIKfG1zkcXHQBo UyBjSqpIG63YhM6TbOqmL2MSZSrDMvJPohLpUrHB6v1DAGyguAaDwgQq0UUbD181rwm9 QUQwF6vD08X6aI8DaUWF0SUeOdNbTnvSFgBBfXDq4cYSZc+5APaaWhl5m2ABS+nDtxMG GjQNBKXJ5vdMVCHR70/e4tmiI5I0NrenKL2CURemCAO7vdovwQFEo86tZ/nD/pTxgbBf 0ppSDjx8Gh1sKcLPK/ZN1LFmWAYGlfFJeg7iJCGupt8L6S2qjTdLz73XO+YSxaIqybpJ CbNQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3nI99U0UHGQPmO0IdWkDHtoAr9DYhiD+STWgLzbrJ10=; b=AoZE+Mbym2YCXRJagvfl4SDEI5xLf2jB88mPLqLmcI4uyvaQ9txYscE06Xm7LIZ4o3 /x+EbbdOZQeklPTgucMJqjieXm1jg22uCWiTPBy5tOq7naCZ0XPlcha/YaYcquf3AeWU nsf2v04r4M1HgQZCV/s6IU2tqdYtUDBxavAcm2KVRn6cO1ilQcUD6f5i7jSrnhTkUevM GLK5h/p8V5BdjxTflgr073vgjnYsZlHMjSwICrNbtLYo1D1Tn24Uqw/yubOhwyA4ZLuC z2KhGBjWhsK24vW0SH0O+3DwOtEwPexfs1hTxtipOdvUuREYZZqvVZ9fFHh/rdqh7ktB +N6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xg4c0M8H; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a17090a481100b001fa5ea8e65bsi8011192pjh.19.2022.08.15.14.08.48; Mon, 15 Aug 2022 14:09:02 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xg4c0M8H; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344958AbiHOUdC (ORCPT + 99 others); Mon, 15 Aug 2022 16:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347633AbiHOU0U (ORCPT ); Mon, 15 Aug 2022 16:26:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FFE39D11F; Mon, 15 Aug 2022 12:03:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2878D612A3; Mon, 15 Aug 2022 19:03:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16858C433D6; Mon, 15 Aug 2022 19:03:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590195; bh=G6z55BCnM9EFXJvqKHhQOx84UM7dS+cHpqatbRvC6C8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xg4c0M8HG8vVlDokI0CPtx/xDIZgVCP6fvMP64lRybwZpkckM0cMQ1LCOyeDGxNPP UFx6+xPGFZUijXGJE4g3n84B7D2En9p2JoXLE7gAlOWvLb8ks4teVDlfmsLV9L62zc aYwhvRDecBh60FqmdiUo2zc4JCRivYXoBLaUqqHM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, xinhui pan , =?UTF-8?q?Christian=20K=C3=B6nig?= , Felix Kuehling , Alex Deucher , Sasha Levin Subject: [PATCH 5.18 0182/1095] drm/amdgpu: Remove one duplicated ef removal Date: Mon, 15 Aug 2022 19:53:01 +0200 Message-Id: <20220815180437.170658697@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: xinhui pan [ Upstream commit e1aadbab445b06e072013a1365fd0cf2aa25e843 ] That has been done in BO release notify. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2074 Signed-off-by: xinhui pan Acked-by: Christian König Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index f4509656ea8c..e9a8eb070766 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c @@ -1401,16 +1401,10 @@ void amdgpu_amdkfd_gpuvm_destroy_cb(struct amdgpu_device *adev, struct amdgpu_vm *vm) { struct amdkfd_process_info *process_info = vm->process_info; - struct amdgpu_bo *pd = vm->root.bo; if (!process_info) return; - /* Release eviction fence from PD */ - amdgpu_bo_reserve(pd, false); - amdgpu_bo_fence(pd, NULL, false); - amdgpu_bo_unreserve(pd); - /* Update process info */ mutex_lock(&process_info->lock); process_info->n_vms--; -- 2.35.1