summaryrefslogtreecommitdiffstats
path: root/meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch
blob: bfb57ae39b9f56077c639acc44040d61a5046e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From 723ca87d25c1f8bac68d2608dbc3b5e8caba69ca Mon Sep 17 00:00:00 2001
From: Andreas Dannenberg <dannenberg@ti.com>
Date: Mon, 12 Sep 2022 13:22:04 -0500
Subject: [PATCH] configs: arm64: k3-am625-sk: Add crypto memory region

Add the memory region for the AM62x crypto accelerator to the device-
specific config file. This fixes a runtime exception when the kernel
accesses that memory region:

<snip>
Unhandled data read at 0x40910010(4)

FATAL: unhandled trap (exception class 0x24)
<snip>

Upstream-Status: Submitted [jailhouse-dev@googlegroups.com]

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
---
 configs/arm64/k3-am625-sk.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configs/arm64/k3-am625-sk.c b/configs/arm64/k3-am625-sk.c
index 2e5c3aef..4b0b8043 100644
--- a/configs/arm64/k3-am625-sk.c
+++ b/configs/arm64/k3-am625-sk.c
@@ -18,7 +18,7 @@
 struct {
	struct jailhouse_system header;
	__u64 cpus[1];
-	struct jailhouse_memory mem_regions[31];
+	struct jailhouse_memory mem_regions[32];
	struct jailhouse_irqchip irqchips[5];
	struct jailhouse_pci_device pci_devices[2];
 } __attribute__((packed)) config = {
@@ -231,6 +231,13 @@ struct {
			.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
				JAILHOUSE_MEM_IO,
		},
+		/* CRYPTO */ {
+			.phys_start = 0x40900000,
+			.virt_start = 0x40900000,
+			.size = 0x0030000,
+			.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
+				JAILHOUSE_MEM_IO,
+		},
		/* First Wake Up Domain */ {
			.phys_start = 0x2b000000,
			.virt_start = 0x2b000000,
--
2.34.1