From nobody Thu Mar 16 13:17:13 2023 X-Original-To: dev-commits-src-main@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 4PcnqF3swXz3y6XQ; Thu, 16 Mar 2023 13:17:13 +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 4PcnqF37r2z3C3v; Thu, 16 Mar 2023 13:17:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678972633; 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=vRsKdtK5+C/jKGtbcf/fsfadeSlO1IpyEnZcgLR6t2s=; b=WUG2gxkh+tNtbM0V1MkIP4q4T1jEImFxGeVc2oWmOjY1XEpmB64XBjX9EZJ8ao7jE1aizp JVebN1qwbNPvPCHSUiV5AIyaPzw4lGbydSPYqUHcXlL99xZfwChAb8OBlwmAkuekvzcSP4 8XVykHXWJfQe1F5lIktXE3tMpUtFF8fsEW9S+nbKMMapXfd5Poq0UDdWM9lE/5NAOUZxIT wEwQA2LdmZH1kx1Niusiypvo0DBXyXqy4CakVndS8Qzk+TLY0d/LARCRdrgWRAolgg0wMw k6hqyonfhPxnswmL00Rg9TZRdF8VL48clVSYyIaD/co4xELL3EfMEhFYxw671w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678972633; 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=vRsKdtK5+C/jKGtbcf/fsfadeSlO1IpyEnZcgLR6t2s=; b=P0YZlrn56PnkIZVJE9PtYzOoR/2ZRwLjMXu73we9jqUUEjASfYCqW0Ghamo2mpngh1x+Vf p5B4Iu1TNLeTQNMw+oMZ9yWrB5YGGziARkPoI46LWbhvfrwOEUG5tkmzOxdckkZEW/g95e BXwZuFIhX9afswm8FaGvbMCNWbKRHwzZm+wC5N+rvuzxqUtknBOw8o7ZjdXweVagw9NBAt KJbTGc1aFtkOryDsIAycM5Uu6Yy60R28ozxe9XTDJvldkD61iYj0Scs9iAvgvMA8/QSXPF jv+QsnUGT0lDqBsqfwcsPIUDGhiNszXQlHW4vKWBDowZP9ud/7bfOCNGToNlHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678972633; a=rsa-sha256; cv=none; b=csEwIJQJ1SVNeae0ZaH7lx87HvXwZ4V+wZgfuU/8sRryQVP0KKpUO9VnZWY25a/g5/ROTS iOk6q9g+1HwqxQZqKh9Y3Crk87yf5vq8V29Q7lD7gTTSmYRMvO8RYYrW3QFJ6d0p0wfd6n lUFKWg3ryOtTBtZ2NC8os7X8/2ITsH2c1wYngMgeC1CPyp7Vwice5skU42soSoaMtMv4+l 07xt6AqENtWjTvzdKzHk5N6jDXVSXN0R1IissYWN972h/+MrMoW3AiShcTgd4DHZo7NPfS k4mkSvq74hgov7sS6fIsFC4kBXU7a0XRYekjkl7BcCv1Qqt/HajP/fGGHqRatw== 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 4PcnqF2B4Kzkdh; Thu, 16 Mar 2023 13:17:13 +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 32GDHDBK078296; Thu, 16 Mar 2023 13:17:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32GDHDNi078295; Thu, 16 Mar 2023 13:17:13 GMT (envelope-from git) Date: Thu, 16 Mar 2023 13:17:13 GMT Message-Id: <202303161317.32GDHDNi078295@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 7d0b91591966 - main - Add PSCI affinity info return values List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 7d0b915919665cb43107b36ad103791515eade5b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=7d0b915919665cb43107b36ad103791515eade5b commit 7d0b915919665cb43107b36ad103791515eade5b Author: Andrew Turner AuthorDate: 2023-03-16 12:16:59 +0000 Commit: Andrew Turner CommitDate: 2023-03-16 13:08:00 +0000 Add PSCI affinity info return values These can be returned from the PSCI AFFINITY_INFO call. This is not marked as optional so bhyve will need to implement it & can use these macros. Sponsored by: Arm Ltd --- sys/dev/psci/psci.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/psci/psci.h b/sys/dev/psci/psci.h index 671f082bb119..207158b417ab 100644 --- a/sys/dev/psci/psci.h +++ b/sys/dev/psci/psci.h @@ -105,6 +105,10 @@ psci_call(register_t a, register_t b, register_t c, register_t d) #define PSCI_VER_MINOR(v) ((v) & 0xFF) #define PSCI_VER(maj, min) (((maj) << 16) | (min)) +#define PSCI_AFFINITY_INFO_ON 0 +#define PSCI_AFFINITY_INFO_OFF 1 +#define PSCI_AFFINITY_INFO_ON_PENDING 2 + #ifdef _KERNEL enum psci_fn { PSCI_FN_VERSION,