Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2754853rdb; Mon, 5 Feb 2024 17:28:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEK3QRkgdytvIb9LFsgJ6osdZzm4AGr+IYi1phfYb585QVRZL6VIaJFVMNeMaWpicJXTuOw X-Received: by 2002:a17:907:f81:b0:a37:37c3:c178 with SMTP id kb1-20020a1709070f8100b00a3737c3c178mr374155ejc.47.1707182919994; Mon, 05 Feb 2024 17:28:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707182919; cv=pass; d=google.com; s=arc-20160816; b=Q15t+6wn0esDdzpAddTWy6J/+MjFIrcfoz0CKiiPPEXSTkgf1tPTlP8D2m/pxwjLnc nBcM7nUjxWqO5bEwMtQUSuuNeoKjD7xLuVyISjutumz9wKsBt14W8ZwWvbaGMMDOHUUo /ZjCrSaaffvuHpi9cd+uliMtleCT+Fo2xMt2RbfQ0N1tJdanb+V9Tacuqa82CEILyhzv gDDqrnRg/L9unhMYHi3oJx/c3XSZVi3/ecmOMzCHVEENV1Cb0jheJDjMkJXW3rCbuJAE a0Chn8w6CIMZtxwycXH3ZQWA/0I2hq1VHczYE+okqyQ6U+cijT2afqaQ18e+vxNWSbaS 4UYw== 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=zKY0CiN5eVCwjR4J5nAX4GlXw1p1JS0IYgVBmlyJXhU=; fh=QtmcakmONjU47zAI542SMKCCLhVphZE2SwVic2Gk/jk=; b=JV00trGx+rYSG/XWLXO6YjuSrYU6rDCLyVkzNmVBG3L5tmzrFMc+06SNeMBWcpZsTE XGXGu3mN0BsqiSHTto9lJMho6ZkrMwybK21phviZEqr8gdqjvQXjSPGajgRsLBGNKA6w GT9tNtN2Np4zieV8zaKc5ti7jxhGBHqJqi2N5BeiNK5P1HfEThabgzGMNbxL3BTf6YU8 5eR1CnaPaoAaBmE9YjzquzltUKKfWvD/HyqVEkNgaono459xre4b0QV7Fj6DWpVUEClx yXK8+S7SB7yM6Ws3jPCaoZGev66RA+2f2pIMnyDPNX0Do/zD4KQwltnjDg14uwtBRpNz dzYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=p3Xvi+hM; 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-54151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au X-Forwarded-Encrypted: i=1; AJvYcCWOKxTr+SlpjyVJUB02wL7rNrk8AHK7E2bVVdZdShg4RTDBxyH2oRUs5zIHLBUIHeKAU7rmFwGZv3ujiNs37QGqpvavBBCdcvvCwdpF/Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w6-20020a1709064a0600b00a372f9ff69dsi476253eju.623.2024.02.05.17.28.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 17:28:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=p3Xvi+hM; 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-54151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54151-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id B3ECD1F2509D for ; Tue, 6 Feb 2024 01:28:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A44A15A4; Tue, 6 Feb 2024 01:28:32 +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="p3Xvi+hM" 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 F242C1109; Tue, 6 Feb 2024 01:28:26 +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=1707182911; cv=none; b=irpQVRRkL4H0YR5EHIuu0EbX27rs4nOJJVYeukTN3n/OSDPB28gGQW2o4Eu6ShbWKI4Z4PxYtJxV+MZNIqd6fL4AwLLXRmw9Me/80GD0mjDvQ9aGos4mlxjBJvPwY6sMnIza3tcLOxvDksMwW0NA0qjUARsu/W/YphE9KKH4+h0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707182911; c=relaxed/simple; bh=FK0LAAXd0iQ5ZyxzXGxUaI+ge6k/xBudQVnCEI9DX5k=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=Ht1lzo7JDumPg0EUWtQ0c05G1yZAUZpn1PPpVY+6MF7n3YD7kV9V+XJZtCnZmT9DkaGovjWtTuNETY1axabaOnrAGquuBhSpFLLej6Mt5lHg99tW1Tc1BLUQiudEyxkq0pcZ3eluGFL/LDwvR/nNob5/DqijSHDrvQaIgRomWIQ= 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=p3Xvi+hM; 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=1707182905; bh=zKY0CiN5eVCwjR4J5nAX4GlXw1p1JS0IYgVBmlyJXhU=; h=Date:From:To:Cc:Subject:From; b=p3Xvi+hMgs/tLQ65WhXY7emQZorkU4vGyAiUEQbvWBp1E981nzdmSgyKCCXXuf7Na blaobyUTeSuF1zEg0PR5GrBjvuOgKjy+D+XB/AiawYhwC1Z6Z4DdVUJZezpvl/6OkZ +xplFY/nIQV5Bfu0dUqTUlnEHdEAKoDBrpBC9lUCkRNrbZjuqDlDCrpfXj2Ir4BOLA CkrTYUobEbgY0e7DYRsUUkc2xxG7MgDjbIP95NJsY8diIbX7AyAxgj5mMu86Ml/lv4 BWk5g1OMgbHjtRIuOAmzM14lqUw1KD6LP9KbDI8AT5ev+rJN9Fn+SxH5mk5RpQLEnw fBfhei6CorH1w== 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 4TTQcR1p92z4wcJ; Tue, 6 Feb 2024 12:28:23 +1100 (AEDT) Date: Tue, 6 Feb 2024 12:28:22 +1100 From: Stephen Rothwell To: Daniel Vetter Cc: Matthew Brost , Rodrigo Vivi , Christian =?UTF-8?B?S8O2bmln?= , Somalapuram Amaranath , Intel Graphics , DRI , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the drm-misc tree Message-ID: <20240206122822.12a2df89@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/qoofQSLe6__zbq+lF9FrpkO"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/qoofQSLe6__zbq+lF9FrpkO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this: Caused by commit a78a8da51b36 ("drm/ttm: replace busy placement with flags v6") interacting with commit dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs") (and maybe others) from Linus' tree (v6.8-rc1). I have applied the following merge fix patch for today. This makes it buil= d, but more is likely needed ... From: Stephen Rothwell Date: Tue, 6 Feb 2024 12:21:07 +1100 Subject: [PATCH] fix up for "drm/ttm: replace busy placement with flags v6" interacting with commit dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs") Signed-off-by: Stephen Rothwell --- drivers/gpu/drm/xe/xe_bo.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c index 0b0e262e2166..280dbda8ae5a 100644 --- a/drivers/gpu/drm/xe/xe_bo.c +++ b/drivers/gpu/drm/xe/xe_bo.c @@ -38,8 +38,6 @@ static const struct ttm_place sys_placement_flags =3D { static struct ttm_placement sys_placement =3D { .num_placement =3D 1, .placement =3D &sys_placement_flags, - .num_busy_placement =3D 1, - .busy_placement =3D &sys_placement_flags, }; =20 static const struct ttm_place tt_placement_flags =3D { @@ -52,8 +50,6 @@ static const struct ttm_place tt_placement_flags =3D { static struct ttm_placement tt_placement =3D { .num_placement =3D 1, .placement =3D &tt_placement_flags, - .num_busy_placement =3D 1, - .busy_placement =3D &sys_placement_flags, }; =20 bool mem_type_is_vram(u32 mem_type) @@ -230,8 +226,6 @@ static int __xe_bo_placement_for_flags(struct xe_device= *xe, struct xe_bo *bo, bo->placement =3D (struct ttm_placement) { .num_placement =3D c, .placement =3D bo->placements, - .num_busy_placement =3D c, - .busy_placement =3D bo->placements, }; =20 return 0; @@ -251,7 +245,6 @@ static void xe_evict_flags(struct ttm_buffer_object *tb= o, /* Don't handle scatter gather BOs */ if (tbo->type =3D=3D ttm_bo_type_sg) { placement->num_placement =3D 0; - placement->num_busy_placement =3D 0; return; } =20 @@ -1353,8 +1346,6 @@ static int __xe_bo_fixed_placement(struct xe_device *= xe, bo->placement =3D (struct ttm_placement) { .num_placement =3D 1, .placement =3D place, - .num_busy_placement =3D 1, - .busy_placement =3D place, }; =20 return 0; @@ -2112,9 +2103,7 @@ int xe_bo_migrate(struct xe_bo *bo, u32 mem_type) =20 xe_place_from_ttm_type(mem_type, &requested); placement.num_placement =3D 1; - placement.num_busy_placement =3D 1; placement.placement =3D &requested; - placement.busy_placement =3D &requested; =20 /* * Stolen needs to be handled like below VRAM handling if we ever need --=20 2.43.0 --=20 Cheers, Stephen Rothwell --Sig_/qoofQSLe6__zbq+lF9FrpkO Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmXBizYACgkQAVBC80lX 0GyAJgf9Hild1zSurCMflzSa/SDNJVx/KSmIxojPE0TyUGi7s03D5gM99mKXR30J yRSZ1KM8B41FEGlmQRMoNHBnkUk8tYz7aajNjxnhIXXcIxU8xiGqgsjQ+bJ2kimg +xkn/SB7HMKW761o4k3ETBJKDUmOw9lUEGW4KCpmzM446mxF8Lc2RoqHWWSzggfS 9nVAH9NcStDpFWT6vCYY19fmd1g8S+LSAYE0Z5wFu088tJd+8liM/8l/+NBihDRV n0cR9Gec6OmN2YTozZrqRnVgRi/Cd90NzTdA9c2VHb2x4dK3/GlA3qZfnl1DEXjF 1Rg3OYiVjN3JObhHkODbJgQNsLJZDQ== =xKqJ -----END PGP SIGNATURE----- --Sig_/qoofQSLe6__zbq+lF9FrpkO--