From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 8FF40C83F10 for ; Thu, 31 Aug 2023 10:57:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89FE510E047; Thu, 31 Aug 2023 10:57:05 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8F0B010E047; Thu, 31 Aug 2023 10:57:02 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B457E62FF2; Thu, 31 Aug 2023 10:57:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C16A2C433C7; Thu, 31 Aug 2023 10:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1693479421; bh=caetN6+oskSH08smnopyy2xlFSz88PRY0E9DEwG49oE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tc/hRlgaXXXcp9mVUDRHyxASla0XvJNGsZi67nx1dEMb7s8NS3ITP2KHUaO5odwFb uDMnjBd9Dgp97/oBrC7V+gWSc6Bu/XknCsbDOL82sFSp9wPwGjSXEr+NndXEyIllzr vKKsVVZARq8N1GKopGBrKsGZ00r3CfdjpCOq8RXM= Date: Thu, 31 Aug 2023 12:56:58 +0200 From: Greg KH To: Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [PATCH AUTOSEL 5.10 13/22] drm/amdgpu: install stub fence into potential unused fence pointers Message-ID: <2023083145-scoured-celery-2511@gregkh> References: <20230724012419.2317649-1-sashal@kernel.org> <20230724012419.2317649-13-sashal@kernel.org> <55fc4a28-1e17-44df-2069-a688828080e6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55fc4a28-1e17-44df-2069-a688828080e6@gmail.com> 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: Sasha Levin , airlied@linux.ie, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Christian =?iso-8859-1?Q?K=F6nig?= , dri-devel@lists.freedesktop.org, Alex Deucher , stable@vger.kernel.org, Lang Yu Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Aug 31, 2023 at 12:27:27PM +0200, Christian König wrote: > Am 30.08.23 um 20:53 schrieb Chia-I Wu: > > On Sun, Jul 23, 2023 at 6:24 PM Sasha Levin wrote: > > > From: Lang Yu > > > > > > [ Upstream commit 187916e6ed9d0c3b3abc27429f7a5f8c936bd1f0 ] > > > > > > When using cpu to update page tables, vm update fences are unused. > > > Install stub fence into these fence pointers instead of NULL > > > to avoid NULL dereference when calling dma_fence_wait() on them. > > > > > > Suggested-by: Christian König > > > Signed-off-by: Lang Yu > > > Reviewed-by: Christian König > > > Signed-off-by: Alex Deucher > > > Signed-off-by: Sasha Levin > > > --- > > > drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 ++++-- > > > 1 file changed, 4 insertions(+), 2 deletions(-) > > We start getting this warning spew on chromeos > > Yeah because the older kernels still kept track of the last VM fence in the > syncobj. > > This patch here should probably not have been back ported. > > Why was that done anyway? The upstream commit doesn't have a CC stable and > this is only a bug fix for a new feature not present on older kernels. It is part of the AUTOSEL process.