Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3743911pxj; Mon, 7 Jun 2021 19:53:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW51Wa8feCcWQ0fA8sGBkY+3AzabMSGVZiDRDq8Rk9RtUzucfZrGbQim+ONzIrdTn7LUKa X-Received: by 2002:aa7:d64f:: with SMTP id v15mr22691588edr.255.1623120835096; Mon, 07 Jun 2021 19:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623120835; cv=none; d=google.com; s=arc-20160816; b=EPbiTn0DrMaKe3PvW8xiNMf0eXn821Od35TPoqBGE+tErlvUApUiXJdw3r3H081qO4 yAO4BpQuwhFnSjipmOodAZcgUSxz/dMLndcP5Xzn5iYJYL94xy5DK5deYMRigUlCgGyT 3eXQ4Eu6M5FBjZgXNOVDM3Kwu7eMgcvBiKasB8nd3Y967lRKuqQc+h9ywZxFso4k28lK UbMNsC8DYvObbrqa8UsX9kyW8Wd3HoaphxnQdUg8/AuYwCXgFJfcHsylK9qBVrtPDqZ0 bE9QLH790jsEaSIAq64bipgTIx1SxitlencP/LF423kvkzYAsk9HH3Vv/Wq3yZxcXo0P QKHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=DP4y2zUao/Zb1KIhVtZVJNiC0MFfU6IUa93cB1YmFgk=; b=D4/RQjseBbtmQfszeWjvOhi/cIIl6pRdiP5D3M3Tn21gMPPKlUz146M6tDSK9TsqaU /+XGtHrmTaIDGFFHT/gn6Fd3vZRK7tbd4k8bm8+3LRqx+KENFysrEz4KP1abtkhQpOVE rEHEitYiEaQOEA6U1wyB/B6YAcMLRCPuRCULjJcSRRBnjwnrwKfs9Df4hDinH4ugimTM EGkHhbiCk5OAzVoD0S+dGSlJ0wOFBi+ZF3vn2X0LZMdN+nvMzAgFHudCUs5mJEBupmw5 qNvyWXXgiTzKeUdq6WQmjExzNTuB8Hbswwe6pp8cori0d+ASwidlDXbWS3Dv+EDRTUMe I4DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=EbZFANXY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si13919726ejz.348.2021.06.07.19.53.32; Mon, 07 Jun 2021 19:53:55 -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=@canb.auug.org.au header.s=201702 header.b=EbZFANXY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230508AbhFHCwu (ORCPT + 99 others); Mon, 7 Jun 2021 22:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbhFHCwu (ORCPT ); Mon, 7 Jun 2021 22:52:50 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 879B8C061574; Mon, 7 Jun 2021 19:50:53 -0700 (PDT) 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 ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4FzZVf0SyWz9sW6; Tue, 8 Jun 2021 12:50:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1623120651; bh=DiTGmecdZYHMMtAdC/UcRL7S4kOx9dLsyL3eCfsThzw=; h=Date:From:To:Cc:Subject:From; b=EbZFANXYGN9AFjHGMwewWEcnIKn6Ghu3VXJEEsKDZEyLJPYPLsF/H2Sk1OXz9n13r xTAlKxVOkd4OCn925RiW4qj2h5/i/AJ4gE3GiDMdVDUCUvAkB0CgzKzzTn+H5KxDel JT61KpK/O62xU3xW1P4DpL+SW4iZZBrNZj40gzvHAe26MeuLWZtY1u2JD5GYjPBCSE 7aQk/+DXEkLe5A7sR4kBrq7xthQouzjAo4BPT4eGWPKieIBZtDdUxIs3VuafVfoNmL kWvxr/IFaNdcmPcRDVvBgczfuZj+xDWczeG+0SV6rg1gC7tlQJLI+c1/o0QxneQv64 X0X6gfwjH/6nw== Date: Tue, 8 Jun 2021 12:50:46 +1000 From: Stephen Rothwell To: Daniel Vetter , Intel Graphics , Dave Airlie , DRI Cc: Alex Deucher , Felix Kuehling , Christian =?UTF-8?B?S8O2bmln?= , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the drm-misc tree Message-ID: <20210608125046.07c6deca@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/HN8jrUNGDvei7eQWFTM0ikT"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/HN8jrUNGDvei7eQWFTM0ikT 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: drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: In function 'amdgpu_preemp= t_mgr_new': drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:75:5: error: 'struct ttm_re= source' has no member named 'mm_node' 75 | mem->mm_node =3D NULL; | ^~ drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c: At top level: drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: error: initializati= on of 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, c= onst struct ttm_place *, struct ttm_resource **)' from incompatible pointer= type 'int (*)(struct ttm_resource_manager *, struct ttm_buffer_object *, c= onst struct ttm_place *, struct ttm_resource *)' [-Werror=3Dincompatible-po= inter-types] 129 | .alloc =3D amdgpu_preempt_mgr_new, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c:129:11: note: (near initial= ization for 'amdgpu_preempt_mgr_func.alloc') Caused by commit cb1c81467af3 ("drm/ttm: flip the switch for driver allocated resources v2= ") from the drm-misc tree interacting with commit b453e42a6e8b ("drm/amdgpu: Add new placement for preemptible SG BOs") from the drm tree. I don't know how to fix this, so I added the following hack (a better fix would be nice): From: Stephen Rothwell Date: Tue, 8 Jun 2021 12:41:16 +1000 Subject: [PATCH] hack fix up for needed amdgpu_preempt_mgr_new() fix up Signed-off-by: Stephen Rothwell --- drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c b/drivers/gpu/= drm/amd/amdgpu/amdgpu_preempt_mgr.c index d607f314cc1b..e1a7b3e967b9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c @@ -66,14 +66,16 @@ static DEVICE_ATTR_RO(mem_info_preempt_used); static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, struct ttm_buffer_object *tbo, const struct ttm_place *place, - struct ttm_resource *mem) + struct ttm_resource **res) { +#if 0 struct amdgpu_preempt_mgr *mgr =3D to_preempt_mgr(man); =20 atomic64_add(mem->num_pages, &mgr->used); =20 mem->mm_node =3D NULL; mem->start =3D AMDGPU_BO_INVALID_OFFSET; +#endif return 0; } =20 --=20 2.30.2 --=20 Cheers, Stephen Rothwell --Sig_/HN8jrUNGDvei7eQWFTM0ikT Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmC+2wYACgkQAVBC80lX 0GwewAf/YdnB2DjDpowhM9Z2I9YaWjY1BfFNOG7wQukpUA7AmIE/X31CbfnKoCO2 0+dh43WnBMPN8oeacSSUlM3AnmR90KJOcuD6fTSolwcduGaHr3BzBaUa7C6/aZBz ie25b3tZNLlOTfmtz5NBRPehKoyhVNCCjsN/31d4saOQfBQOi6IJyafj1FT1UQdr L1N9SZayk7WThMlJtFdYznNAvWkceENP6tgtp6Dhfd1ZIlOqa2TrdAch9SDScn5Q U20aIjVuJNowdpm5KaKQZam+cZcjcvx+heWkeBRU7escFIoCzqDTkdPXHyYapmua C79HmqkJiW4ryYyOt3wQK7Bv30h1XQ== =12WW -----END PGP SIGNATURE----- --Sig_/HN8jrUNGDvei7eQWFTM0ikT--