Janne Grunau
53e6254497
kboot: Skip over missing dcp aliases
...
Prevents failing on non-existant carveout regions from the M1 Ultra on
M1 Pro/Max.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-10-26 01:22:00 +09:00
Hector Martin
aa0a3e6fcf
kboot: Don't fail if there are fewer than 6 DCPEXTs on t600x
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-10-25 00:23:42 +09:00
Hector Martin
0fb9bf6c40
hv/trace_wlan.py: More WLAN tracer stuff
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-10-23 17:22:14 +09:00
Janne Grunau
ca68e1a9d2
kboot: Transfer dcpext* iommu mappings to device tree
...
Only dcpext* has memory mapped iboot.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-10-23 17:21:26 +09:00
Janne Grunau
21dc622735
kboot: Transfer display related memory carveouts to device tree
...
DCP and disp0 need their bootloader iommu mappings maintained until
an OS driver can take over. DCP's mappings have to be kept
indefinitively since it's unknown if or how it can be restarted.
Bindings based on
https://lore.kernel.org/asahi/20220923123557.866972-1-thierry.reding@gmail.com
Signed-off-by: Janne Grunau <j@jannau.net>
2022-10-23 17:21:26 +09:00
Janne Grunau
7ae0aac831
kboot: lock dart-disp0 to prevent accidental resets
...
This prevents older systems from resetting dart-disp0 on init when they
encounter device trees with DCP/disp nodes.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-10-23 17:21:26 +09:00
Janne Grunau
e5db7233a9
dart: add dart_init_fdt()
...
Used to intialize by FDT phandle.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-10-23 17:21:26 +09:00
Janne Grunau
d27ca705c1
devicetree: Add dt utils for "ranges" based address translation
...
Signed-off-by: Janne Grunau <j@jannau.net>
2022-10-23 17:21:26 +09:00
Janne Grunau
f1664ccef4
dart: Add DART_PTR_ERR to indicate failures for IOVA returning functions
...
0 is a valid and used device virtual address. Daart functions returning
device address can not use 0 to indicate errors.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-10-23 17:21:26 +09:00
Hector Martin
2e1ed1d457
nvme: Increase enable timeout to 5s, do a clean shutdown on fail
...
It seems unclean startup sometimes takes longer. On top of that, if we
don't do a clean shutdown in the error path, the next startup will
continue failing (we know hard-disable triggers races and crashes the
ASC).
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-10-17 22:14:21 +09:00
Asahi Lina
67901fa1bb
main: Move tunables_apply_static() here
...
m1n1 python scripts probably want this too, let's just do it
unconditionally.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-10-17 22:14:21 +09:00
Asahi Lina
3e36d18241
tools/run_guest_kernel.sh: Support --
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-10-17 22:14:21 +09:00
Asahi Lina
d6d72b6398
hv_exc: Pass through TLBI OS instructions
...
Gues VM TLBI OS instructions don't work. Trap them and pass them through
as the host.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-10-17 22:14:21 +09:00
Asahi Lina
d8c2d68ebf
exception: Fix FAR decoding in GL2
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-10-17 22:14:21 +09:00
Asahi Lina
52e72c62b8
hv: Fix bugs in split r/w emulation
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-10-17 22:14:21 +09:00
Asahi Lina
4274c9d74a
hv: Log memory attribute & sharability info in mmiotrace
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-10-17 22:14:21 +09:00
Zhuowei Zhang
5836db9305
m1n1.proxy: increase p.call max args to 5 to match proxy.c
...
Commit 6a1a9bfc3c
raised the limit in proxy.c but not in the Python code.
Signed-off-by: Zhuowei Zhang <zhuoweizhang@yahoo.com>
2022-10-11 22:55:53 +09:00
Janne Grunau
81acfe96d8
kboot: Adapt multi-die handling to linux submitted DT
...
"simple-bus" restricts the node names to predefined list. "soc" looks
like the most appropiate name considering the dies are M1 Max SoCs.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-09-28 01:23:28 +09:00
Radovan Blažek
e9e2571a17
proxyclient/m1n1/proxy.py: Add missing returns
...
Return the result in setX, clearX and maskX functions.
Signed-off-by: Radovan Blažek <blazra@gmail.com>
2022-09-28 01:21:47 +09:00
Sven Peter
ded7e58e90
trace_dcp: Add dcpdptx-hdcp-auth-session tracer
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
c1e84bf79c
trace_dcp: Add dcpav-controller-epic tracer
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
c8d606e270
trace_dcp: Add dcpdp-device-epic tracer
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
3e112460cd
trace_dcp: Add dcpav-audio-interface-epic tracer
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
f072434647
trace_dcp: Add dcpdptx-port-epic tracer
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
da8a691023
trace_dcp: Rename EPIC endpoints
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
f5ed6f89b0
trace_dcp: Add SilentEp to shut individual tracers up
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
b5e16b2a67
trace_dcp: Add EPICServiceTracer
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Sven Peter
e1ad6e7e90
trace_dcp: Allow to switch to dcpext
...
Signed-off-by: Sven Peter <sven@svenpeter.dev>
2022-09-28 01:21:23 +09:00
Asahi Lina
fe0d3e8e34
tunables_static: New module to set up static tunables
...
This is for things that xnu hard-codes. This first one for AGX is
required to make coprocessor TLB coherency work properly...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:04:41 +09:00
Asahi Lina
a15eb0919d
hv_vm: Support LDAR/STLR instructions
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:04:41 +09:00
Asahi Lina
63345c43ac
m1n1.fw.agx.channels: Map the specific size for each state field type
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
13cfe5028f
m1n1.fw.agx.initdata: Replace padding with explicit fields
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
202781f4f1
m1n1.fw.agx.initdata: Fix number of buffer managers
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
35b33fdd28
m1n1.trace.agx: Fix number of UAT contexts
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
d1a3b8c7fa
experiments/agx_dumpstructs.py: Dump microsequence
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
88603e153c
hv/trace_agx_defer.py: Add another tracer variant
...
This one configures it to stop tracing after init, good for
self-contained tests
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
d6d17b6b2d
m1n1.fw.asc.crash: Gracefully handle faulting code dumps
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
83b9d5c13f
m1n1.agx.initdata: Add a field
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
cb9f7cd685
m1n1.proxyutils: Fix instruction cache
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
0aed256416
m1n1.fw.agx: Add Halt message (maybe?)
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
0d3ed156a1
m1n1.constructutils: Add offsetof()
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
7889f056f9
m1n1.agx.cmdqueue: Rename Timestamp to TimeStamp
...
This avoids a conflict with Construct
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
8a222a1346
m1n1.agx.context: Print address in hex
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
65d4f7ab80
m1n1.fw.agx.channels & co: Add some KTrace support
...
This is quite handy to see what the firmware is doing
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
7a38d14a0c
m1n1.agx.channels: Complain if the ring pointer overflows
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
0e8a522845
experiments/agx_renderframe.py: Rework based on the other demos
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
fddb8d63e0
m1n1.trace.agx: Allow configurable user/kernel map tracing
...
Also improve the general handling of all this... the logic is still
broken in places.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
35a5e2a838
m1n1.trace.agx: Handle new queue pointer resets properly
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
5dfbd5216c
m1n1.trace.agx: Disable handoff tracer
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00
Asahi Lina
cc29042f97
m1n1.trace.agx: Don't trace Stats/KTrace
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-09-27 06:02:28 +09:00