From nobody Wed Sep 11 10:42: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 4X3cZj4x6Fz5WNHN; Wed, 11 Sep 2024 10:42: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 4X3cZj4GYDz4QR4; Wed, 11 Sep 2024 10:42:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726051325; 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=mtStfw6dNxJsOTFpfThJeowjKhV4xK6dLmRhmEc9oqc=; b=Z4o9FlqDPEAUBUOpDOF7422j+dbVwvVNNE54JbocuOroyX92dnJY0Tvmd3MnIiytwqQ2iM YJkV0LL7zKqApxky8CxBY30T0c4wo9pbG487mSzNcpWWgwpov/zZPC1sy1By9DNidB5FCZ Cz/HHh/XY4/T/wWhdk3Dh9d3pUR4hMBTJlqvCJQCkZVJcIAufOkLZ1HigpD6HSiDWoA21y /hAxdsYLAkmsqJyQCsarjvD7OunHP+RHXKU5vOWsJfL07F9dwqPNNh431QmHASuFBfT3nj CmKq1OSZDC5G2U7Nhd9jp5saieNG2NsZX8UxdD5bHJO3oaMZgia2ljrFpjfSUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726051325; a=rsa-sha256; cv=none; b=bHTN2m1Hp/TWk/clDG7ddaIFX+i3VKEGfyuV83lwlmJwQ245X53VR/g+Ky0vIjENAtZ1tn 0HlxDM4xxrPRaXbbknoSWIuYIJrNvSAsDfNP7TYBP5hFARo45hXXdijxssI1D78GPBFmph nZdhNLBpo+DHH+Xmqh1M6CvYYmPbHNi+NpwYtzxVx55acwjxq1oCC+sX9JgaAN9MM8IDjM zVZhyxWzXvXB7lztTJvnBzMdxdExImyJTUO/wpDWKV4aYxaOXesCMfFc+R3TcsXehiYRLp hZOPvinF11ojzXVI00Hp80M7RtZDNJGM2KgIrJ+/6ZtcxjWzVWNqQQdtycfrSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726051325; 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=mtStfw6dNxJsOTFpfThJeowjKhV4xK6dLmRhmEc9oqc=; b=j5T5tZLGWNSoR1u7dzuGX4NDlcd7OQX5gNe3iOygvruIxseu6gO4N5Qu1o7NYxHPYg0jAv Q+K1HsNucS/cOS3gSg6bCFtw28J3a2r5s/yjjyNYHC9G+Xn2zwIn9UmN4Kbop+62mIjogh iBMP+fSObWRr48+FfpEJZ93Q5kEsiJF8dey1yMtelZGBtK+7tFptRjtsUMGCu7JfTmv4RF 2fJCDY4+hvKPh6Je3aW3daRZbTw1pUu8Y5YmWd1Cj52rHpWqJosSxB1BUIte+pY87UAGJv gS1QHqDTFGVrQgEaRhWd4gm7hUkS+g0eYpFKyLHOyJqf11S6EuqqeO9PDc2fVQ== 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 4X3cZj3tGWzS7Z; Wed, 11 Sep 2024 10:42: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 48BAg5Ge007716; Wed, 11 Sep 2024 10:42:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48BAg5d9007713; Wed, 11 Sep 2024 10:42:05 GMT (envelope-from git) Date: Wed, 11 Sep 2024 10:42:05 GMT Message-Id: <202409111042.48BAg5d9007713@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: 9f3d15fda29a - main - arm64: Add CPTR_E2H_TTA 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/main X-Git-Reftype: branch X-Git-Commit: 9f3d15fda29a9d510754daed8e6158c637108b42 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=9f3d15fda29a9d510754daed8e6158c637108b42 commit 9f3d15fda29a9d510754daed8e6158c637108b42 Author: Andrew Turner AuthorDate: 2024-09-11 09:38:22 +0000 Commit: Andrew Turner CommitDate: 2024-09-11 10:25:09 +0000 arm64: Add CPTR_E2H_TTA The TTA field moves depending on the HCR_EL2.E2H field. Add a macro to hold the E2H == 1 case. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46515 --- sys/arm64/include/hypervisor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arm64/include/hypervisor.h b/sys/arm64/include/hypervisor.h index ba18f8077467..738eeca66ffe 100644 --- a/sys/arm64/include/hypervisor.h +++ b/sys/arm64/include/hypervisor.h @@ -56,10 +56,11 @@ #define CPTR_RES0 0x7fefc800 #define CPTR_RES1 0x000033ff #define CPTR_TFP 0x00000400 +#define CPTR_TTA 0x00100000 /* Valid if HCR_EL2.E2H == 1 */ #define CPTR_E2H_FPEN 0x00300000 +#define CPTR_E2H_TTA 0x10000000 /* Unconditionally valid */ -#define CPTR_TTA 0x00100000 #define CPTR_TCPAC 0x80000000 /* HCR_EL2 - Hypervisor Config Register */