From nobody Thu Feb 15 19:24:24 2024 X-Original-To: dev-commits-src-all@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 4TbQ3s1PMPz59ycr; Thu, 15 Feb 2024 19:24:25 +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 4TbQ3s0gfBz42L4; Thu, 15 Feb 2024 19:24:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708025065; 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=Ocxct8d+zOdyRvORFyGbJ3jc0+OUbvA703NmJ9TNqFs=; b=c/w0AxKcvYDHTcWRb+V/5bGF0seBcL3h4vHOueJ4PpM4Rg/Vtu4gshyZK+M+Jc4GzlKoBP 7yLgr2YBP7nPcoWWqfT1wu6sLXSM41DAVAV0DlcNJbkf2tEGoBUNSWrZeZ5E6iecdtWw83 qoaVPvuWcDo89imuGDUDP1tKTjET6FvewfTqci37GF5mVUykRQTWU2ENMfMCDt/9LG2m+F jU5Kg62uKM+dneL54OZmpvEnVSgk2oZ67ZigQYK0IshX/Q/x5XG7Ee28qVJ5qYjPbwyXd0 ypYts9cXlQ7xvJHvaxqP3fW/V4zQH55TgLE/2NcWvfrTYOIvksg6h6PRtVJNkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708025065; 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=Ocxct8d+zOdyRvORFyGbJ3jc0+OUbvA703NmJ9TNqFs=; b=fRm1fVOBPvEK89QGADO+0tb5pjMce9g/ijb5JBIRK9VCwhBqOnZgb2gp3zAPIYc37fdgLg CWgTEJ40lOEPtLYD2+MlnHJEV8Gd/2UrJvuuqz2r1XOFtPPpDEdOeX4blDDQ9hEXkEGgcw vsTMvTdt+LzLHkIW83/vcdTJnizyN1430UMmA8fgE5qX5z4K00ZVyqHRvPJH2yCKwfKKJv wpuNz5/XwsIQAOoW5NtgqMwGhnr68FWv8ZNXdIqaVqQ0EjnDA14hRxNqK9D58U+JVd85kp pAe4gHWJUE6mPEJjbYG93wAmDUupSUlOhGqPPNAZrSoSJBPGjhu0yKmH4N2/dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708025065; a=rsa-sha256; cv=none; b=H3VwqEktiQqg3gxxzyglrfPU0VdpHIT8GehGj03DE+d8aRFISjnxVuVv88/22q5GCTSUgh 9HrER6xTKgTqHSrBXc2E6ObuiDgPC/gOeLdp+SQ6T9T3244zCiemk3hjg9BDep+b/erHlx isxowLNMpl2d3qHvNMCrayn11VeOSZa3j8JZ9kBPEko3D2Spi6eAsaEFeNKbsyjHhHgChX UOHLIl4PU+fJp4w6z4nUxjVyQQH4K52ySa1FAjnh9XEDdjefAkB8NyFecwBcqj/nTli0mL WgtEN0EvL3ZOnvG3uJXOsHleNghVOY1pycwe/87Q4QhEjC7zb6TIoqu8MZ8Y5Q== 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 4TbQ3r6qTtzv0N; Thu, 15 Feb 2024 19:24:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FJOOox052288; Thu, 15 Feb 2024 19:24:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FJOOUG052285; Thu, 15 Feb 2024 19:24:24 GMT (envelope-from git) Date: Thu, 15 Feb 2024 19:24:24 GMT Message-Id: <202402151924.41FJOOUG052285@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Stephen J. Kiernan" Subject: git: 53670ee165f4 - main - psci: Add FDT node status check List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: stevek X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 53670ee165f428fd7d27b9e2d1efb4ab2c9caec6 Auto-Submitted: auto-generated The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=53670ee165f428fd7d27b9e2d1efb4ab2c9caec6 commit 53670ee165f428fd7d27b9e2d1efb4ab2c9caec6 Author: Stephen J. Kiernan AuthorDate: 2024-02-15 16:57:32 +0000 Commit: Stephen J. Kiernan CommitDate: 2024-02-15 19:24:15 +0000 psci: Add FDT node status check Consider the PSCI missing if the FDT node status says it is not okay. Reviewed by: andrew Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D43920 --- sys/dev/psci/psci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/psci/psci.c b/sys/dev/psci/psci.c index 46d7a2f07181..0c8f094e0037 100644 --- a/sys/dev/psci/psci.c +++ b/sys/dev/psci/psci.c @@ -386,6 +386,9 @@ psci_fdt_callfn(psci_callfn_t *callfn) return (PSCI_MISSING); } + if (!ofw_bus_node_status_okay(node)) + return (PSCI_MISSING); + *callfn = psci_fdt_get_callfn(node); return (0); }