Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8114520rdb; Thu, 4 Jan 2024 21:17:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQwe/bclevX1RlWwuoJMTqGSXtUj+ET+GemwqslBpzwk7038bkJwyweVsd2DIh9x20yDPL X-Received: by 2002:a05:6a00:4093:b0:6ce:474b:6078 with SMTP id bw19-20020a056a00409300b006ce474b6078mr1700272pfb.39.1704431850357; Thu, 04 Jan 2024 21:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704431850; cv=none; d=google.com; s=arc-20160816; b=iEjlkinNOFdFGTDxpqUPNqYLI6SOZWD5Ra8ZdPtpmfDgNy5p7jHfGbxWrXzJXhFfvs AmGFGCo/Zw0berdUOipTpUCQCAPtPdbtv54u5/JvCWIXpTBbG02P4T+LKdG3Uw/LEu8O rzd/BReKw+Tc7FWW7OtAOzTeHc7wtUSiMGUcjmocY7m1WLPk/4w+I45Aik5qz5H4VzaH U9mftzgzWXHi4r3IU/Sz6eR3hQpNGZMNPyWHFuBLnpVctVlro6F5Ex34t11q+F7E5Ueu sjHsGYG/ADePW6d4vf4SdwZStBo7/f7L/AtFg3ZtzLY3IAlC/HQbDnP81iT6PPxyX3pi IH/A== ARC-Message-Signature: i=1; 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=nHoW9gobpmGg5BUBY8TzEAIrwDE1AD2t9/HhOPtJlj4=; fh=6n/tBGY9Maz1N+593RIQk1a7JvmK9JONeEs0e9tVswo=; b=RO7IPvxmbtbfPbXZBHZ8V44GL9SWObzHtDe88OlFFP4v24NT8BnZYw17rZKVCcWMRj 4VCiQyPwsGRtF1PZHkhu2KT1f6plYX8glgLnqWPW5fpqOPOY/of3K/zhDVxyJbPaVLzL NIj59NH/vO/Zk5o+dDfvoo8gaZCCA1mmHUcaiuKL725a3KXzmvXgodvR6o3iv808y+U8 F8AilPtewyY6mQVaOuKKlkikpbb5UPIixgbEa9bNyAgnI1JTd9oP6uVajvHLbSAwyT8O l8KAiMHl1EGTGtRvhA50NuNCbk+U/IdE40qJDpW2Db8Xn4cTBgXCDcmkiqZf01kzHwtx DujA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=kwRuDrs6; spf=pass (google.com: domain of linux-kernel+bounces-17479-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17479-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x17-20020aa79a51000000b006d9a0558e11si688314pfj.150.2024.01.04.21.17.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 21:17:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17479-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=kwRuDrs6; spf=pass (google.com: domain of linux-kernel+bounces-17479-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17479-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E62412864EF for ; Fri, 5 Jan 2024 05:17:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18E8E53AE; Fri, 5 Jan 2024 05:17:22 +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="kwRuDrs6" X-Original-To: linux-kernel@vger.kernel.org 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 CFF7A538D; Fri, 5 Jan 2024 05:17:14 +0000 (UTC) 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=1704431832; bh=nHoW9gobpmGg5BUBY8TzEAIrwDE1AD2t9/HhOPtJlj4=; h=Date:From:To:Cc:Subject:From; b=kwRuDrs6at1fxwuh2IqqTH/memtEe2Mp7N/TXa8Rt4C+8QvzyQgg4lBsgCarwY4Mm y6JHmE5bXeeisr8c12cKlUq5nTfLz4SGVzgU4CdWRQAGBCz0F7MdTUBf/NZH5ST68f k5nFNcg0q4rKW9A3DuWBLepolIcV5hNf6eFUeKr7YArmAamjwUR3wyFAnymBWmw7sX w8wX8Rea3zB22l2Kibk9y/z9yBvNAe+VXrRmw1CLo52v6zwPKBM+m5T7KaAKiOhCIV uSPCd6RoMNeWCfhU1WDjj95xpzA7QHKAqzXCJOPLAhYeTkgGawlC4avcBxX9yBoL84 jcMHJOzdYagNQ== 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 4T5sCD0DR5z4x1x; Fri, 5 Jan 2024 16:17:11 +1100 (AEDT) Date: Fri, 5 Jan 2024 16:17:09 +1100 From: Stephen Rothwell To: Dan Williams Cc: Dave Jiang , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the cxl tree Message-ID: <20240105161709.22d1b027@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_/gvNwq2VFK1sACazWmpghUWe"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/gvNwq2VFK1sACazWmpghUWe Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the cxl tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/cxl/core/cdat.c: In function 'match_cxlrd_hb': drivers/cxl/core/cdat.c:327:43: error: 'struct cxl_switch_decoder' has no m= ember named 'target_lock' 327 | seq =3D read_seqbegin(&cxlsd->target_lock); | ^~ drivers/cxl/core/cdat.c:332:38: error: 'struct cxl_switch_decoder' has no m= ember named 'target_lock' 332 | } while (read_seqretry(&cxlsd->target_lock, seq)); | ^~ Caused by commit 185c1a489f87 ("cxl: Check qos_class validity on memdev probe") interacting with commit 5459e186a5c9 ("cxl/port: Fix missing target list lock") from hte cls-fixes tree. I have applied the following merge resolution for today. From: Stephen Rothwell Date: Fri, 5 Jan 2024 15:44:24 +1100 Subject: [PATCH] fix up for "cxl: Check qos_class validity on memdev probe" interacting with "cxl/port: Fix missing target list lock" Signed-off-by: Stephen Rothwell --- drivers/cxl/core/cdat.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/cxl/core/cdat.c b/drivers/cxl/core/cdat.c index cd84d87f597a..10ac76bed477 100644 --- a/drivers/cxl/core/cdat.c +++ b/drivers/cxl/core/cdat.c @@ -8,6 +8,7 @@ #include "cxlpci.h" #include "cxlmem.h" #include "cxl.h" +#include "core.h" =20 struct dsmas_entry { struct range dpa_range; @@ -315,7 +316,6 @@ static int match_cxlrd_hb(struct device *dev, void *dat= a) struct device *host_bridge =3D data; struct cxl_switch_decoder *cxlsd; struct cxl_root_decoder *cxlrd; - unsigned int seq; =20 if (!is_root_decoder(dev)) return 0; @@ -323,13 +323,11 @@ static int match_cxlrd_hb(struct device *dev, void *d= ata) cxlrd =3D to_cxl_root_decoder(dev); cxlsd =3D &cxlrd->cxlsd; =20 - do { - seq =3D read_seqbegin(&cxlsd->target_lock); - for (int i =3D 0; i < cxlsd->nr_targets; i++) { - if (host_bridge =3D=3D cxlsd->target[i]->dport_dev) - return 1; - } - } while (read_seqretry(&cxlsd->target_lock, seq)); + guard(rwsem_read)(&cxl_region_rwsem); + for (int i =3D 0; i < cxlsd->nr_targets; i++) { + if (host_bridge =3D=3D cxlsd->target[i]->dport_dev) + return 1; + } =20 return 0; } --=20 2.43.0 --=20 Cheers, Stephen Rothwell --Sig_/gvNwq2VFK1sACazWmpghUWe Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmWXkNUACgkQAVBC80lX 0GwC8wf/fe51lisvUioHJWYNubsayAdREhIgyRKw3s4LBfDnjseGmnrShJx2PQeq 7asAvMVmyOtqoqxVhfD4tgRKIehCs+niQVEdwsCEMhROTdurXvq3ohVKvgdaorUR SARToAHg7U5qAj4C42MGVGDPSgxQXASHznfB82oeGsoFez8hEF1H+1Krif5KaAaq AZZv8pICTgwm+V4knauxtjPXw+M8CkRFpUU33gzexwWEkFpZPYPqNoZiE0aq68N2 49FKwevy2Z/Hrl8gIsO3WcweAUJ+fgeuLGsTABYmcSBZW884Un8G/KKgn8c8hwHx bKPrbHTVJ+xdCLvW9q71LVBkdxW5xw== =0Juv -----END PGP SIGNATURE----- --Sig_/gvNwq2VFK1sACazWmpghUWe--