Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4837001pxj; Wed, 9 Jun 2021 03:08:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRXfvQgQXKU+Nrd+Mgpi9wm6pIV/wiTQ9kglKnULo44KPJm1rKzR7Vi2yDBZkhWfCmFJLd X-Received: by 2002:a50:9d8d:: with SMTP id w13mr29831841ede.94.1623233314454; Wed, 09 Jun 2021 03:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623233314; cv=none; d=google.com; s=arc-20160816; b=TwY7nqqHMDe9/ZXmVBM1CS3f4MghxFUoknk/MEOBx4ddZY3eZuXD3FJmpxIQoec1dO pRPcfKwkAZ4FopshhGfxN3Xih8ieqPAcTTZe1PSI190RRyjlSknMYSU7zqi+yfFN42iR lQq/nlDzcJF4MFD/8/95lXt0mA1pT2c9TEcP+u+Q6oWuZfJgjCjelbpBnM5J+PE/CkgG Lwqkb2sSz4o/7u/vfs3gxsUtgLaSFUE+tjGRE9MmYDGewiCZOwuxU35Yy5jec6uMV3/Z GhBX1eSeOuMXt5/H/znJOOzS0xkevpTtgVop6Hfn8pfHnBnd+eaWRZbIAeI+AQD1AYCe Hq/A== 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=q9SSPNuCztXOOGFqQYnevKSwa4XM+XhvW+/34h0PCi4=; b=m9vA3Js4mAIEA68Ft9zUxRkT9pUK2/X2cBMlwk+eoEXn/ofsV8srcdZ5QWtwWCAuLv xazuBsNAkgVZ0oqe5td+o1wOetjxBwFfm/N96Dpc3Y+4+McKt/Hv6j3QizRc0d3Iu0TP a2ukM49i5NmRHn3CWr9I1vTuJpTl2eV89ME6o+Zzd904zM6INSjfSBzAh4aOC0wZW6BY Sgf3px7RsKuf2T+GfkJLTwfnjC0BnnsM9Qt4dPvrVQ/DaKh5ilijUrGjGWsXyoGGpA8w hdYGmtiKz4RRagJNBnjXmXXP+KvEo8/1oU5okkpMYWtjOdBB66Jn3yhMkeVMsnE+TF0w efxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JmlSV6If; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si2519481edb.418.2021.06.09.03.08.11; Wed, 09 Jun 2021 03:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JmlSV6If; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236352AbhFHSwG (ORCPT + 99 others); Tue, 8 Jun 2021 14:52:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:43938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234037AbhFHSql (ORCPT ); Tue, 8 Jun 2021 14:46:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 078F1613E3; Tue, 8 Jun 2021 18:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177453; bh=ZydBe+WbxvdkA978sXK0CL0ac0+RQtvWqBWwEd+hHpM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JmlSV6If6LM4RS9tduoc1CTMbv6XpaggvV5jIwf1oYR7UjBAs/MonYCzfjzJSNrul /KGh7ajfhXuERnFd/+p2oPR8c4silOmvZj1Uwe+Y7sC7cj8nIYvKVw37tycOFTPfjp fQxjJ49TPoDPQRznFb+PDusfgpE65kQATrRvau4U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nirmoy Das , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher Subject: [PATCH 5.4 57/78] drm/amdgpu: make sure we unpin the UVD BO Date: Tue, 8 Jun 2021 20:27:26 +0200 Message-Id: <20210608175937.200831606@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175935.254388043@linuxfoundation.org> References: <20210608175935.254388043@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nirmoy Das commit 07438603a07e52f1c6aa731842bd298d2725b7be upstream. Releasing pinned BOs is illegal now. UVD 6 was missing from: commit 2f40801dc553 ("drm/amdgpu: make sure we unpin the UVD BO") Fixes: 2f40801dc553 ("drm/amdgpu: make sure we unpin the UVD BO") Cc: stable@vger.kernel.org Signed-off-by: Nirmoy Das Reviewed-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c @@ -354,6 +354,7 @@ static int uvd_v6_0_enc_ring_test_ib(str error: dma_fence_put(fence); + amdgpu_bo_unpin(bo); amdgpu_bo_unreserve(bo); amdgpu_bo_unref(&bo); return r;