From nobody Mon Oct 21 15:05:05 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 4XXJWj6L2pz5ZNfJ; Mon, 21 Oct 2024 15:05:05 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXJWj4cLkz4f6S; Mon, 21 Oct 2024 15:05:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729523105; 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=OyCmOe8jvYzYB26mPrnVU8suXvkttbkyxh8U3/xcnrM=; b=kQKkMfsYH5lyNdo+7ZSlNWp6AdGHIHnXJwuYInwrXi3zlOs25ddLKgo4OtMB8sfCOFJc9D dnTugrCt1OYR7f2QrFYkgqBOx1dGz8A1H1Xa8LDluecbsT9Oqi4W6h0QeWKiy7IywGKk1P 7L9Frntjq8LsOxxkD2yrIfqBlM9Bqr14AxXNBxvI5OgXoZHE1rmfsU77P3bBaAaru8YbG5 5tLbRm6zaMMYc2rKN6EtQh1JAZAgbqTeGQL2tPrk3hfk+8uOqzmrtFA11yKvCiY/oJkHZv csxDBpjQhl6enjPfxYC5lZ4AH2l47Lrb+7UGlSUm+xSBHFdhf7QEfU07xAHX4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729523105; 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=OyCmOe8jvYzYB26mPrnVU8suXvkttbkyxh8U3/xcnrM=; b=P/tEATl3ntMlVW+9xZ3z7vEBkK0wAO71G3jmgRFEh/M6nKtpdmpbaA/nRI6p1wrRbSeEqZ V/yMrYl1/X4h7x3VtIA/oa0B8Qo3shUQLI9D3ZBBif3vujVm/zjjU+lGHzSrTs9KYuIJOS yxu2/SbNsxNBixBV1KjfhEOpyNDq02ooLngtzhvRchiTQ01UrKCrn0T0asm6qjcvu44n0H S94oXYMNb/ykEj3KXvmh0uWxiPbIoreEJ0WOEDi/Q+STyQGFlicD1iqJzrlMTq3XAevtPm HDouN6WZAsrFQzyVGgnw5g5iFHFJdCadQ1qtQFDhqogsrAMcJR21+hlQtaTxjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729523105; a=rsa-sha256; cv=none; b=tOf3WQQvZxjMhLzumritp5DxYo7I/vzOZJZjghbxDyeH/HASgS5h75/PVovuD/Ptc8xiiI TMfAUXtR4TGoPXnmxgls19EASkpijgz99cOeBq79EimnOyLmGJU2n6yJcikjCquq73V7Cf WdaX8ehHto2FQFcJL5+RhSU9dFOXdJ0XeD8cZG3kcjNrlQM3jUPHKp4ZTlXbLeDu8gppbH WYJIOEBvGCPDmcirTIBvUysmzTkztohwf6+xHTnDRvxpYZXfHTqWTZYze7p7CGiD4q+E7h QHPTq6IMlZfHim4PUVVnn8euXZUut6YoegzSv2RCDcnORrEigWKis1sArnakqQ== 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 4XXJWj40GTzZn5; Mon, 21 Oct 2024 15:05:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49LF55Dn046710; Mon, 21 Oct 2024 15:05:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LF55YA046707; Mon, 21 Oct 2024 15:05:05 GMT (envelope-from git) Date: Mon, 21 Oct 2024 15:05:05 GMT Message-Id: <202410211505.49LF55YA046707@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: 1ee244a9c5da - stable/14 - arm64: add additional MDCR_EL2 fields 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/14 X-Git-Reftype: branch X-Git-Commit: 1ee244a9c5da0d965cdac14c92308bd8e73bf57e Auto-Submitted: auto-generated The branch stable/14 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=1ee244a9c5da0d965cdac14c92308bd8e73bf57e commit 1ee244a9c5da0d965cdac14c92308bd8e73bf57e Author: Zachary Leaf AuthorDate: 2024-07-03 07:26:34 +0000 Commit: Andrew Turner CommitDate: 2024-10-21 15:03:26 +0000 arm64: add additional MDCR_EL2 fields Monitor Debug Configuration Register provides EL2 configuration options for self-hosted debug and the Performance Monitors Extension. Reviewed by: andrew Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46191 (cherry picked from commit 610348a90467980de0498fab8dfdddf221d7a604) --- sys/arm64/include/hypervisor.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h index 011f86e83fdf..49689347d399 100644 --- a/sys/arm64/include/hypervisor.h +++ b/sys/arm64/include/hypervisor.h @@ -261,5 +261,35 @@ #define MDCR_EL2_TDOSA (0x1UL << MDCR_EL2_TDOSA_SHIFT) #define MDCR_EL2_TDRA_SHIFT 11 #define MDCR_EL2_TDRA (0x1UL << MDCR_EL2_TDRA_SHIFT) +#define MDCR_E2PB_SHIFT 12 +#define MDCR_E2PB_MASK (0x3UL << MDCR_E2PB_SHIFT) +#define MDCR_TPMS_SHIFT 14 +#define MDCR_TPMS (0x1UL << MDCR_TPMS_SHIFT) +#define MDCR_EnSPM_SHIFT 15 +#define MDCR_EnSPM (0x1UL << MDCR_EnSPM_SHIFT) +#define MDCR_HPMD_SHIFT 17 +#define MDCR_HPMD (0x1UL << MDCR_HPMD_SHIFT) +#define MDCR_TTRF_SHIFT 19 +#define MDCR_TTRF (0x1UL << MDCR_TTRF_SHIFT) +#define MDCR_HCCD_SHIFT 23 +#define MDCR_HCCD (0x1UL << MDCR_HCCD_SHIFT) +#define MDCR_E2TB_SHIFT 24 +#define MDCR_E2TB_MASK (0x3UL << MDCR_E2TB_SHIFT) +#define MDCR_HLP_SHIFT 26 +#define MDCR_HLP (0x1UL << MDCR_HLP_SHIFT) +#define MDCR_TDCC_SHIFT 27 +#define MDCR_TDCC (0x1UL << MDCR_TDCC_SHIFT) +#define MDCR_MTPME_SHIFT 28 +#define MDCR_MTPME (0x1UL << MDCR_MTPME_SHIFT) +#define MDCR_HPMFZO_SHIFT 29 +#define MDCR_HPMFZO (0x1UL << MDCR_HPMFZO_SHIFT) +#define MDCR_PMSSE_SHIFT 30 +#define MDCR_PMSSE_MASK (0x3UL << MDCR_PMSSE_SHIFT) +#define MDCR_HPMFZS_SHIFT 36 +#define MDCR_HPMFZS (0x1UL << MDCR_HPMFZS_SHIFT) +#define MDCR_PMEE_SHIFT 40 +#define MDCR_PMEE_MASK (0x3UL << MDCR_PMEE_SHIFT) +#define MDCR_EBWE_SHIFT 43 +#define MDCR_EBWE (0x1UL << MDCR_EBWE_SHIFT) #endif /* !_MACHINE_HYPERVISOR_H_ */