Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2877579rwb; Mon, 15 Aug 2022 13:08:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR5AFuG0qeSe4ZihYdVOwbheMfWoaMU3WQteZJNJMFN3A12P1MqacJ7quJDoaVN6oLnCBo5F X-Received: by 2002:a17:90a:ab15:b0:1f4:fc25:f180 with SMTP id m21-20020a17090aab1500b001f4fc25f180mr29588522pjq.144.1660594111045; Mon, 15 Aug 2022 13:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594111; cv=none; d=google.com; s=arc-20160816; b=ljRaCz5ELEDIpNd0lqlCbxf1itplO15VMDXWEYvaJim6/T0Fx2m3pDSv5pZ/nk4ppR YaNjbORUibB6+SHH4ZyT4meZqksUmjbpPcgoSaUdw+SmMW9sZiApJ21L8b4pYqK7+fOR zVELZwx0NON7903XeR87NNa1pRGpZi63wR1hm3+cDf5Gh7e1Ork7HaKFhvUm5HyQwyZO JsfO4wLZQUC+ZbfEPUVdR/vxYwxqMiV+sulLTLZzC9EoNpZvpy9vQfTvO7CZSQGnhFEL wLFPMoy7I9vZ9kUPe3Ef04/MdSNIV8tca/mGK8oxpZ/AO7h5balaenR7Fn11nWRlLI0h xjCQ== 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=wpOT1+l0l3db1nJUVFfjzUT8v/m2GMQLmidHYnKEqQs=; b=IbxgJ8ntrR17dOqzTR4aMenWUNewcZAE9J5xmpnp+H16NPdzUmTo1je/RDw4YNS522 E41fkOQZaCJi6E+2G3KUXJ//SQmUK/gI0VSCsYHBKwy/fEYyWtLi6yfjJzq/leVp4Hr/ 1HNsEEt015/ZSNV+A4T4CtN71aZ0nJ6zrcEaX9/luaJ9htzj1dNgZcteMDOpdKK2KOXA lQYx180OQ9QHArAo5Dt0VNO0GDSiuh9os9sf58zJx/pJBCTT5ZxuvObjflUOF0ajWcHu sedcDcuqjRXfKdN/c6Rk0OGxFlrdyNAEJT+t/OomMISG8YwaWlSo6ZAUt7YmI5iWccwl G2LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nGKMMeaY; 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 i24-20020a631318000000b0041d02825d4fsi12923544pgl.84.2022.08.15.13.08.20; Mon, 15 Aug 2022 13:08:31 -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=nGKMMeaY; 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 S243318AbiHOScP (ORCPT + 99 others); Mon, 15 Aug 2022 14:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243573AbiHOSbX (ORCPT ); Mon, 15 Aug 2022 14:31:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EBB332ED5; Mon, 15 Aug 2022 11:21:16 -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 466EE6068D; Mon, 15 Aug 2022 18:20:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47543C433C1; Mon, 15 Aug 2022 18:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587654; bh=YtcresAn+qp2Ji3gQYzaNCoxUrbqceUer7l0kgvznWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nGKMMeaY4FsOTfOg7ewxLex7NmwiLwdN7VGgXBx2t8K9w2oEdkiEfArgfFU1IumHR +rJZ2AL4648RvtTK7mnyXyWugFt+OGLdVh4o1RMAISCwJPepAiFIw/7sAiYljp1RSa UnLsHWEG4NtPd76nSL1IE+oWfc3w2c5iquA5VaCE= 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.15 151/779] drm/amdgpu: Remove one duplicated ef removal Date: Mon, 15 Aug 2022 19:56:35 +0200 Message-Id: <20220815180343.768993912@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 21c02f817a84..c904269b3e14 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c @@ -1318,16 +1318,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