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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96A8FC83F10 for ; Thu, 31 Aug 2023 10:57:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240574AbjHaK5F (ORCPT ); Thu, 31 Aug 2023 06:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239193AbjHaK5E (ORCPT ); Thu, 31 Aug 2023 06:57:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23CDBCF9; Thu, 31 Aug 2023 03:57:02 -0700 (PDT) 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 B454D60F12; 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?= Cc: Chia-I Wu , Sasha Levin , airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Alex Deucher , stable@vger.kernel.org, Lang Yu , 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> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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.