From nobody Mon Aug 22 09:12:14 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MB67f5v3dz4Z5Nd; Mon, 22 Aug 2022 09:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MB67f36cDz3fFZ; Mon, 22 Aug 2022 09:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4JFBMT7MB2AAERjSOlWEhaW/Yo5iZdm8JRUqytb33NU=; b=A1tWK3vI8NCdXtcRNahglPMHK6xMQO3tTZP9BYLPPSCAXsQBM4donTvMa9KiZlf9iAHO4u ftqJQCxWp63ELV1nMD7en/fudNS+e4X5ZE/RZll9FTAxsl8ynoEmVOEPq41MY4BtqCU/Ga 9D8tXmw5FMk8CiQUz/iTDtPOmIMQqibbhukR9JE+jnmRlodCTtpNGUNSnX1hGsqDdT6vmt tkGlQvt1hErxH22riNv/eAAjcVbjgNvD1Z8GG1BqBoLkz7p3q7vt02TABxh4+I5WCVxnFn gYnday6Sn2AvY7Ve5X7h2RlR955t8CQF32q6ZRp9YXqOhLl608pQ0uHIA5llfQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MB67f2CXlzl01; Mon, 22 Aug 2022 09:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27M9CETY046883; Mon, 22 Aug 2022 09:12:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27M9CE7s046882; Mon, 22 Aug 2022 09:12:14 GMT (envelope-from git) Date: Mon, 22 Aug 2022 09:12:14 GMT Message-Id: <202208220912.27M9CE7s046882@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 441d0bf214d2 - stable/13 - Only add gicv3 fdt children with a compatible property List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 441d0bf214d228c5d41937ee24f8b3481f9caf20 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4JFBMT7MB2AAERjSOlWEhaW/Yo5iZdm8JRUqytb33NU=; b=Y1r6742lgCPhIcjDhPztI03p/W4YU3Z7rcFEayktb9/fWBLgCobLuDFPFxBiUAaoF9ZkBF eJtrKLTGCQpHYBSh6M3BbVbPsbwLpZ2RDI72CheHdh+PLeJxirKW/OYlqL2Rx78ETk5ulh 41Mvn9UmVKW+SozLIm3lIM8nING+DKyu/y4mJy3xT3C+NUDEKBxssjwYvh+xdSPGeGIgGR edDGXFwtami6122kvp1crh1ha9BrehFljSB9WNRAamiIIIaIYcSB3+3mwCyEpj9sdkOIm6 yM7d9x2aRRe7DA0uMxm9V7giBZ/iy1ncw/CU3pLRWsOFoOArl4sfOYiOUaruUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661159534; a=rsa-sha256; cv=none; b=HeYhWnd0lUGz6uYr1eBIOqVCzZCxKA7nJZ8oFa2x5Vy6qJXVKyLqz772ORm8Pze2MmISrf Sc2HOVfVTN6zlFGd9Q8lJJr09hWJJifbX/A8hUfh8NA77AJ0zeCJdHK5e6AaF5pQHhxIB5 LZtOE+dnCihhCP6wJlS+1MYGP5WkfSzJLlo/6sdVlINkZumrNZyb4kF14m4ZoyG7gCgNTI Wk0kQrS2L3HeWmh9FalzcTw0QYGEyCH+HJdQ3/Vo7+0mOScVYLeW/DzNyEvlO4RsAY6bqr P/0mxWMOn6t4eUZc8ORR5MNgY3l5Kf9eCarTheyX1CR+vuxR6YsYVdCX96XtFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=441d0bf214d228c5d41937ee24f8b3481f9caf20 commit 441d0bf214d228c5d41937ee24f8b3481f9caf20 Author: Andrew Turner AuthorDate: 2022-07-06 17:04:53 +0000 Commit: Andrew Turner CommitDate: 2022-08-22 08:41:41 +0000 Only add gicv3 fdt children with a compatible property Not all gicv3 fdt children have a compatible property. Those that don't are configuration data rather than something that should have a driver attach. Sponsored by: The FreeBSD Foundation (cherry picked from commit 92f692fd249e64ed4b25199310fafe41e2d9c74d) --- sys/arm64/arm64/gic_v3_fdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/arm64/arm64/gic_v3_fdt.c b/sys/arm64/arm64/gic_v3_fdt.c index d2c0611c9167..6aa8018de56e 100644 --- a/sys/arm64/arm64/gic_v3_fdt.c +++ b/sys/arm64/arm64/gic_v3_fdt.c @@ -301,6 +301,14 @@ gic_v3_ofw_bus_attach(device_t dev) sizeof(size_cells)); /* Iterate through all GIC subordinates */ for (node = OF_child(parent); node > 0; node = OF_peer(node)) { + /* + * Ignore children that lack a compatible property. + * Some of them may be for configuration, for example + * ppi-partitions. + */ + if (!OF_hasprop(node, "compatible")) + continue; + /* Allocate and populate devinfo. */ di = malloc(sizeof(*di), M_GIC_V3, M_WAITOK | M_ZERO);