Message ID | 20240206152850.333f620d@canb.auug.org.au |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-54297-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1315219dyb; Mon, 5 Feb 2024 20:29:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5lTx7uNJmtJi79CNka91aSyfoCLUTGMErlelvYxENslDpdWVYzPLZe4lV/Utao5b2mrud X-Received: by 2002:a05:6214:27cd:b0:68c:aa0e:9647 with SMTP id ge13-20020a05621427cd00b0068caa0e9647mr1734919qvb.15.1707193753613; Mon, 05 Feb 2024 20:29:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707193753; cv=pass; d=google.com; s=arc-20160816; b=vwNVV+nwZaL61XFIgAVKZVIGtpgS5rhKqRMvlJ1jMssMB5+h3hX4drQ6yxNQcTN97G 1yPoKwIxzPfwIcVlYwlOyGQA7/ZLcxv13o08OElhRJBR1YMqdXmaUITkI5wmamxS5yDd xxHCp6+nvQsf+17FBA5lvFi0L2753QiNr65eCEI7nAF6pYYRQLgwDY5McrjlHvj4cAAT t+rL5Vu9WARTayGjWfUEV2VklgZQk1qPov473tHPrml2/2xTS69OyyBY6FaRZX+wR8xk rTIIpP29M9NhB/VvI/qtVVQNGkOXVcKeChjpOarGxw4xEU2gdVAZRbKYoTFp8Ie57br2 BsTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=dnMjULAeQjKUoGmPRhe1coGuGskZaD6h8z3MIPfgPs8=; fh=4GKEdw0WdQVK56m2wiP5RGQWrXEkMMotjwxGG4HNVYc=; b=gi+tGzCaP/H7aaREFeh6VaAahqfZhgcaWLz4lZIjrMp5MokpHdpePxeTJBA2ktC1HR 6a1FA6oYxfVXDxjUTW+ZOtPFBTBHtT7JGA45DEnogAnnY+kHYVJVXPS8f2nOzafyGtOa TbGO63Pm5e71yOD9kWVUEFyUIzGJWXvPX3f/yL7xBhTakSs7ohoYuX9zXw7cV+nKObUT 8eicNMfWBpCnv7STelUO1Zz67nliIZKZdpr4PmVes14T9s91rIFgZk++cQhV87d7Scf/ Q4uEx7wNzfLr8ywKBwv9WkpnIW56mmw4uHsMcIczhLhJIIaMaO+GmbZWEdHu6vDwrEQS bGXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=nrVR97I6; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-54297-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54297-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au X-Forwarded-Encrypted: i=1; AJvYcCVkDy8J7UbdkllEtiTRjIuKja0GZIEg/3pi8lWeaLI/kZM393nkHubmDOM9AhjDIH5b/k1IaptDZ0cg/haWjiruySy2WA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dv15-20020ad44eef000000b0068c4f5b461csi1794094qvb.328.2024.02.05.20.29.13 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 20:29:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54297-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=nrVR97I6; arc=pass (i=1 spf=pass spfdomain=canb.auug.org.au dkim=pass dkdomain=canb.auug.org.au dmarc=pass fromdomain=canb.auug.org.au); spf=pass (google.com: domain of linux-kernel+bounces-54297-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54297-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A2F71C23D55 for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 04:29:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B44DB768F3; Tue, 6 Feb 2024 04:29:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="nrVR97I6" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6228B74E06; Tue, 6 Feb 2024 04:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707193739; cv=none; b=UJqbVPEg9m43FENsmv9PFxyU6OO18We/wVg6vUh8Jz9Hoi/0Tayq5HS0ocEf10FFw3b14pdYves+KfJb1KM+XSVCRyrh9jJN0onaG9bDiCqsThVFhWTYA2EvC0swcW+OMevmGpHozti/sTFIwEmxuJHfgiUpcN7gB3uSCBULHY0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707193739; c=relaxed/simple; bh=Zy0GF+e5VWhkJg3CITxJZKjoEMKdDZ/8GzFJf7bPyeI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=XOMBuDXgwZ3kopbEPHDI8TPrYVx8+2RykrHahpwbiggzftheoHO5A9jEhgB3rcn3iq6h3zdLJr2KJzgz/COO0OrNZboBbqOSOsnxQmSEfq+FSXmo0GXyx3lTpl1Q6nSWzy9Vd2Q1Bkg9s0T00347J0gYUr4OZAbbwIrpbiVhQxQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au; spf=pass smtp.mailfrom=canb.auug.org.au; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b=nrVR97I6; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1707193733; bh=dnMjULAeQjKUoGmPRhe1coGuGskZaD6h8z3MIPfgPs8=; h=Date:From:To:Cc:Subject:From; b=nrVR97I6Ea2OifH65kdK3jSc8ubBFbjquHicHDGHI4TXr5CbSa+P84H03RuJ30ILS OZITWgA7quRjZL/ld+8mqUB2U4r1mqoJ2+W3NzbpPys0Z0Fq8hC+CqUNIyCAQATlIj kG3QY+I0wNckDkDvNq0qaTvHms6Faq2ysNnYZ6DUF0PK3diLRuN49C4C7BQHgxYFsF QEbWbKqo8W9VH+zW32pRgODvCZ8N5NvMzJCz3Hn5mXexLdMNYiCNHArSRV4juaiktx kJp4xKR4fMbe7aOUAgMAZ3QSOOZZEbNap7BxMP2KorgoKXrTxc+D2jsLtVqKMoma9H 3FMHLMtM1etRA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4TTVch6nrBz4wcC; Tue, 6 Feb 2024 15:28:52 +1100 (AEDT) Date: Tue, 6 Feb 2024 15:28:50 +1100 From: Stephen Rothwell <sfr@canb.auug.org.au> To: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Christian =?utf-8?b?S8O2bmln?= <christian.koenig@amd.com>, Somalapuram Amaranath <Amaranath.Somalapuram@amd.com>, Intel Graphics <intel-gfx@lists.freedesktop.org>, DRI <dri-devel@lists.freedesktop.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Linux Next Mailing List <linux-next@vger.kernel.org> Subject: linux-next: build failure after merge of the drm-misc tree Message-ID: <20240206152850.333f620d@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/3Y6MoHeU/vcVg9/l.X7hCZH"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790111045790085569 X-GMAIL-MSGID: 1790122397201188333 |
Series |
linux-next: build failure after merge of the drm-misc tree
|
|
Commit Message
Stephen Rothwell
Feb. 6, 2024, 4:28 a.m. UTC
Hi all, After merging the drm-misc tree, today's linux-next build (i386 defconfig) failed like this: In function 'i915_ttm_placement_from_obj', inlined from 'i915_ttm_get_pages' at drivers/gpu/drm/i915/gem/i915_gem_ttm.c:847:2: drivers/gpu/drm/i915/gem/i915_gem_ttm.c:165:18: error: 'places[0].flags' is used uninitialized [-Werror=uninitialized] 165 | places[0].flags |= TTM_PL_FLAG_DESIRED; | ~~~~~~~~~^~~~~~ drivers/gpu/drm/i915/gem/i915_gem_ttm.c: In function 'i915_ttm_get_pages': drivers/gpu/drm/i915/gem/i915_gem_ttm.c:837:26: note: 'places' declared here 837 | struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; | ^~~~~~ Caused by commit a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") I applied the following hack for today: From: Stephen Rothwell <sfr@canb.auug.org.au> Date: Tue, 6 Feb 2024 15:17:54 +1100 Subject: [PATCH] drm/ttm: initialise places Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> --- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi all, On Tue, 6 Feb 2024 15:28:50 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > After merging the drm-misc tree, today's linux-next build (i386 defconfig) > failed like this: > > In function 'i915_ttm_placement_from_obj', > inlined from 'i915_ttm_get_pages' at drivers/gpu/drm/i915/gem/i915_gem_ttm.c:847:2: > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:165:18: error: 'places[0].flags' is used uninitialized [-Werror=uninitialized] > 165 | places[0].flags |= TTM_PL_FLAG_DESIRED; > | ~~~~~~~~~^~~~~~ > drivers/gpu/drm/i915/gem/i915_gem_ttm.c: In function 'i915_ttm_get_pages': > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:837:26: note: 'places' declared here > 837 | struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > | ^~~~~~ > > Caused by commit > > a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") > > I applied the following hack for today: > > From: Stephen Rothwell <sfr@canb.auug.org.au> > Date: Tue, 6 Feb 2024 15:17:54 +1100 > Subject: [PATCH] drm/ttm: initialise places > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > --- > drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > index 80c6cafc8887..34e699e67c25 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > @@ -834,7 +834,7 @@ static int __i915_ttm_get_pages(struct drm_i915_gem_object *obj, > > static int i915_ttm_get_pages(struct drm_i915_gem_object *obj) > { > - struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > + struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1] = {}; > struct ttm_placement placement; > > /* restricted by sg_alloc_table */ > -- > 2.43.0 I am still applying the above patch :-(
On Tue, 06 Feb 2024, Stephen Rothwell <sfr@canb.auug.org.au> wrote: > Hi all, > > After merging the drm-misc tree, today's linux-next build (i386 defconfig) > failed like this: > > In function 'i915_ttm_placement_from_obj', > inlined from 'i915_ttm_get_pages' at drivers/gpu/drm/i915/gem/i915_gem_ttm.c:847:2: > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:165:18: error: 'places[0].flags' is used uninitialized [-Werror=uninitialized] > 165 | places[0].flags |= TTM_PL_FLAG_DESIRED; > | ~~~~~~~~~^~~~~~ > drivers/gpu/drm/i915/gem/i915_gem_ttm.c: In function 'i915_ttm_get_pages': > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:837:26: note: 'places' declared here > 837 | struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > | ^~~~~~ > > Caused by commit > > a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") Cc: more people. > > I applied the following hack for today: > > From: Stephen Rothwell <sfr@canb.auug.org.au> > Date: Tue, 6 Feb 2024 15:17:54 +1100 > Subject: [PATCH] drm/ttm: initialise places > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > --- > drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > index 80c6cafc8887..34e699e67c25 100644 > --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > @@ -834,7 +834,7 @@ static int __i915_ttm_get_pages(struct drm_i915_gem_object *obj, > > static int i915_ttm_get_pages(struct drm_i915_gem_object *obj) > { > - struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > + struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1] = {}; > struct ttm_placement placement; > > /* restricted by sg_alloc_table */ > -- > 2.43.0
Hi all, On Mon, 12 Feb 2024 15:15:54 +0200 Jani Nikula <jani.nikula@linux.intel.com> wrote: > > On Tue, 06 Feb 2024, Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > > > After merging the drm-misc tree, today's linux-next build (i386 defconfig) > > failed like this: > > > > In function 'i915_ttm_placement_from_obj', > > inlined from 'i915_ttm_get_pages' at drivers/gpu/drm/i915/gem/i915_gem_ttm.c:847:2: > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:165:18: error: 'places[0].flags' is used uninitialized [-Werror=uninitialized] > > 165 | places[0].flags |= TTM_PL_FLAG_DESIRED; > > | ~~~~~~~~~^~~~~~ > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c: In function 'i915_ttm_get_pages': > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:837:26: note: 'places' declared here > > 837 | struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > > | ^~~~~~ > > > > Caused by commit > > > > a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") > > Cc: more people. > > > > > I applied the following hack for today: > > > > From: Stephen Rothwell <sfr@canb.auug.org.au> > > Date: Tue, 6 Feb 2024 15:17:54 +1100 > > Subject: [PATCH] drm/ttm: initialise places > > > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > > --- > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > index 80c6cafc8887..34e699e67c25 100644 > > --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > @@ -834,7 +834,7 @@ static int __i915_ttm_get_pages(struct drm_i915_gem_object *obj, > > > > static int i915_ttm_get_pages(struct drm_i915_gem_object *obj) > > { > > - struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > > + struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1] = {}; > > struct ttm_placement placement; > > > > /* restricted by sg_alloc_table */ > > -- > > 2.43.0 I am still applying the above patch ...
Hi all, On Tue, 20 Feb 2024 08:48:21 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > On Mon, 12 Feb 2024 15:15:54 +0200 Jani Nikula <jani.nikula@linux.intel.com> wrote: > > > > On Tue, 06 Feb 2024, Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > > > > > After merging the drm-misc tree, today's linux-next build (i386 defconfig) > > > failed like this: > > > > > > In function 'i915_ttm_placement_from_obj', > > > inlined from 'i915_ttm_get_pages' at drivers/gpu/drm/i915/gem/i915_gem_ttm.c:847:2: > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:165:18: error: 'places[0].flags' is used uninitialized [-Werror=uninitialized] > > > 165 | places[0].flags |= TTM_PL_FLAG_DESIRED; > > > | ~~~~~~~~~^~~~~~ > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c: In function 'i915_ttm_get_pages': > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:837:26: note: 'places' declared here > > > 837 | struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > > > | ^~~~~~ > > > > > > Caused by commit > > > > > > a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") > > > > Cc: more people. > > > > > > > > I applied the following hack for today: > > > > > > From: Stephen Rothwell <sfr@canb.auug.org.au> > > > Date: Tue, 6 Feb 2024 15:17:54 +1100 > > > Subject: [PATCH] drm/ttm: initialise places > > > > > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > > > --- > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > > index 80c6cafc8887..34e699e67c25 100644 > > > --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > > +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > > @@ -834,7 +834,7 @@ static int __i915_ttm_get_pages(struct drm_i915_gem_object *obj, > > > > > > static int i915_ttm_get_pages(struct drm_i915_gem_object *obj) > > > { > > > - struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > > > + struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1] = {}; > > > struct ttm_placement placement; > > > > > > /* restricted by sg_alloc_table */ > > > -- > > > 2.43.0 > > I am still applying the above patch ... Any progress?
Hi all, On Mon, 26 Feb 2024 08:41:16 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > On Tue, 20 Feb 2024 08:48:21 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > > > On Mon, 12 Feb 2024 15:15:54 +0200 Jani Nikula <jani.nikula@linux.intelcom> wrote: > > > > > > On Tue, 06 Feb 2024, Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > > > > > > > After merging the drm-misc tree, today's linux-next build (i386 defconfig) > > > > failed like this: > > > > > > > > In function 'i915_ttm_placement_from_obj', > > > > inlined from 'i915_ttm_get_pages' at drivers/gpu/drm/i915/gem/i915_gem_ttm.c:847:2: > > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:165:18: error: 'places[0].flags' is used uninitialized [-Werror=uninitialized] > > > > 165 | places[0].flags |= TTM_PL_FLAG_DESIRED; > > > > | ~~~~~~~~~^~~~~~ > > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c: In function 'i915_ttm_get_pages': > > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c:837:26: note: 'places' declared here > > > > 837 | struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > > > > | ^~~~~~ > > > > > > > > Caused by commit > > > > > > > > a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") > > > > > > Cc: more people. > > > > > > > > > > > I applied the following hack for today: > > > > > > > > From: Stephen Rothwell <sfr@canb.auug.org.au> > > > > Date: Tue, 6 Feb 2024 15:17:54 +1100 > > > > Subject: [PATCH] drm/ttm: initialise places > > > > > > > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > > > > --- > > > > drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > > > index 80c6cafc8887..34e699e67c25 100644 > > > > --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > > > +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c > > > > @@ -834,7 +834,7 @@ static int __i915_ttm_get_pages(struct drm_i915_gem_object *obj, > > > > > > > > static int i915_ttm_get_pages(struct drm_i915_gem_object *obj) > > > > { > > > > - struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; > > > > + struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1] = {}; > > > > struct ttm_placement placement; > > > > > > > > /* restricted by sg_alloc_table */ > > > > -- > > > > 2.43.0 > > > > I am still applying the above patch ... > > Any progress? And this commit is now in the drm tree.
Am 25.02.24 um 22:47 schrieb Stephen Rothwell: > Hi all, > > On Mon, 26 Feb 2024 08:41:16 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: >> On Tue, 20 Feb 2024 08:48:21 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: >>> On Mon, 12 Feb 2024 15:15:54 +0200 Jani Nikula <jani.nikula@linux.intel.com> wrote: >>>> On Tue, 06 Feb 2024, Stephen Rothwell <sfr@canb.auug.org.au> wrote: >>>>> After merging the drm-misc tree, today's linux-next build (i386 defconfig) >>>>> failed like this: >>>>> >>>>> In function 'i915_ttm_placement_from_obj', >>>>> inlined from 'i915_ttm_get_pages' at drivers/gpu/drm/i915/gem/i915_gem_ttm.c:847:2: >>>>> drivers/gpu/drm/i915/gem/i915_gem_ttm.c:165:18: error: 'places[0].flags' is used uninitialized [-Werror=uninitialized] >>>>> 165 | places[0].flags |= TTM_PL_FLAG_DESIRED; >>>>> | ~~~~~~~~~^~~~~~ >>>>> drivers/gpu/drm/i915/gem/i915_gem_ttm.c: In function 'i915_ttm_get_pages': >>>>> drivers/gpu/drm/i915/gem/i915_gem_ttm.c:837:26: note: 'places' declared here >>>>> 837 | struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; >>>>> | ^~~~~~ >>>>> >>>>> Caused by commit >>>>> >>>>> a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") >>>> Cc: more people. >>>> >>>>> I applied the following hack for today: >>>>> >>>>> From: Stephen Rothwell <sfr@canb.auug.org.au> >>>>> Date: Tue, 6 Feb 2024 15:17:54 +1100 >>>>> Subject: [PATCH] drm/ttm: initialise places >>>>> >>>>> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> >>>>> --- >>>>> drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- >>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>> >>>>> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c >>>>> index 80c6cafc8887..34e699e67c25 100644 >>>>> --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c >>>>> +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c >>>>> @@ -834,7 +834,7 @@ static int __i915_ttm_get_pages(struct drm_i915_gem_object *obj, >>>>> >>>>> static int i915_ttm_get_pages(struct drm_i915_gem_object *obj) >>>>> { >>>>> - struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; >>>>> + struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1] = {}; >>>>> struct ttm_placement placement; >>>>> >>>>> /* restricted by sg_alloc_table */ >>>>> -- >>>>> 2.43.0 >>> I am still applying the above patch ... >> Any progress? > And this commit is now in the drm tree. Sorry for the delay. Oring in the flag needs to come after the call and not before it. Going to fix this. Thanks, Christian.
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c index 80c6cafc8887..34e699e67c25 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c @@ -834,7 +834,7 @@ static int __i915_ttm_get_pages(struct drm_i915_gem_object *obj, static int i915_ttm_get_pages(struct drm_i915_gem_object *obj) { - struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1]; + struct ttm_place places[I915_TTM_MAX_PLACEMENTS + 1] = {}; struct ttm_placement placement; /* restricted by sg_alloc_table */