Hector Martin
4ed4dea56e
m1n1.hv: Make TLBOS op tracing optional
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-08-29 17:25:40 +09:00
Hector Martin
5456642834
tools/run_guest_kernel.sh: Support specifying kernel
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-08-29 17:14:33 +09:00
Hector Martin
a47b590776
m1n1.adt: Add translate() method
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-08-29 17:03:02 +09:00
Hector Martin
29a85d6857
Makefile, asm.py: Work on native arm64 by default
...
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-08-29 17:03:01 +09:00
Asahi Lina
a010a2fc36
m1n1.hw.uat: Clear out any stray page tables on init
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-19 02:04:08 +09:00
Asahi Lina
5ec5def953
m1n1.hw.agx: Better fault decoding
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-19 02:03:18 +09:00
Asahi Lina
85b4dc6b27
m1n1.agx.object: Fix noncoherent object unmap dance
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-18 21:39:01 +09:00
Asahi Lina
fafe5c8c62
m1n1.fw.agx.handoff: Fix args & flush fields
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-18 21:38:38 +09:00
Asahi Lina
a87d85a7a2
m1n1.constructutils: Do not print Ver-disabled fields
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-18 21:26:00 +09:00
Asahi Lina
b95860ee10
m1n1.fw.agx.initdata: Unbreak 12.3 firmware
...
I knew I'd mess something up here...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-18 21:25:28 +09:00
Asahi Lina
690ff9bde8
tools/run_guest_kernel.sh: Allow passing HV args
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-18 02:05:49 +09:00
Asahi Lina
cfca18b83a
experiments: Add misc AGX experiments
...
A lot of these are broken/out of date with the current code, but it's
good to have them committed...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
2506ccf63f
m1n1.agx.render: Misc field value changes (CHECK!)
...
Things I changed during the 13.0b4 port. These are all suspect and we
really should figure out what they do.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
ffb42cabc7
m1n1.agx.render: Only blit 1920px wide FBs, disable depth dumps
...
This is a hack anyway. Almost all my demos/tests work with this
particular logic right now.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
2b1bb76416
m1n1.agx.render: Log event IDs
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
b0f8700796
m1n1.agx.render: Add support for input barriers
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
fc887ac570
m1n1.agx.render: Updates for struct changes and 13.0b4 support
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
8f7d1a9a9c
m1n1.fw.agx.microsequence: Updates for 13.0b4 and fixes
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
88de83422a
m1n1.fw.agx.cmdqueue: Updates for 13.0b4 support and misc
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
a4bfc4a9b8
m1n1.agx.event: Log when flag messages are received
...
This makes the event grouping visible
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
d96d17d36a
m1n1.agx.initdata: Disable the idle time overrides
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
dc3a39a2c7
m1n1.agx.object: Show object type in the Construct path
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
7f9d8a343c
m1n1.agx.channels: Add support for more DeviceControl messages
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
3ad561bc25
HACK: Disable Stats message parsing
...
The size changed in 13.0b4, need to figure out the new size...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
35067afec3
m1n1.fw.agx.channels: Fix KTrace message size/count
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
59bce08297
m1n1.fw.agx.channels: Fix TimeoutMsg field
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
f4daec5869
m1n1.fw.agx.channels: Add some more DeviceControl messages
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
b189e6a0ba
m1n1.fw.agx.channels: Switch a bunch of things to ZPadding
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
6441fe11cd
m1n1.fw.asc: Increase default boot timeout to 2
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
e8ce458dd5
m1n1.fw.agx.initdata: Updates for 13.0b4 support
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
6a99f397de
hv/trace_agx.py: Automatically set version
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
2b06a62b63
m1n1.proxyutils: Add support for figuring out firmware version
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
ccbb943993
m1n1.construcutils: Add to_rust() to generate Rust struct defs
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
8e3d6b1b52
m1n1.constructutils: Add Ver() versioning support
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
da40a6d843
m1n1.constructutils: Add ZPadding type
...
Like Padding, but actually asserts that the contents are zeroed.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
9aaac03907
m1n1.trace.agx: Print work item addresses
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
71e24171be
m1n1.trace.agx: Check for ring buffer overflow
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
5b9c709753
m1n1.trace.agx: s/NewInitData/InitData/
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
2ce4db9d8d
experiments/dcp_iboot.py: Fix p.display_shutdown() call
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
4923dd1e2e
m1n1.agx.shim: Optimize GBM buffer polling/copying
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
6ddc79a6eb
m1n1.agx.shim: Add log() method
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
15ba9aa55c
m1n1.agx.shim: Allocate GPU context explicitly
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
f89a0f5c8d
m1n1.agx.render: Change fb/depth dumping conditions
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
f4a71eecb0
m1n1.agx.render: Log more/less stuff
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
818ba31268
m1n1.agx.render: More random field value updates
...
Some of these really need to be investigated...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
e53298a6ca
m1n1.agx.render: Add timestamp objects
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
23e8d463d0
m1n1.agx.render: Rearm events when fired
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
4fa101e0a3
m1n1.agx.render: Keep track of work objects and free them
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
b6fde95d88
m1n1fw.agx.cmdqueue: Update barrier stamp field names
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
8923ffdaa4
m1n1.fw.agx.microsequence: More field updates
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
448bcf1bba
m1n1.agx.event: Do not free event when it fires
...
Renderer will reuse events
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
1f7e1b34c9
m1n1.agx.object: Properly do the free() unmap dance
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
2a4b408678
m1n1.agx.object: Optimize handling of raw buffers
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
76071a4fee
m1n1.agx.context: Add freeing support
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
701714d92b
m1n1.agx.context: Default to shared mappings
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
8f5ba29af9
m1n1.agx.context: Add strange map at 0x6fffff8000
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
75ebc3ad31
m1n1.trace.agx: Remove some dumps
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
daf56619df
m1n1.trace.agx: Reset queue tracer on new queue
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
08cc1c3178
m1n1.trace.agx: Add separate kern/user va tracing
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
00625fb8a0
m1n1.trace.agx: Add handoff tracer
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
daa7dfba28
m1n1.trace.agx: Add FWCtl ring tracing
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
04a92ce11c
m1n1.fw.agx: Drop spurious UAT import
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
1275e15b58
m1n1.agx: Add FWCtl ring
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
0aee8b7e2e
m1n1.fw.agx: Add FWCtl doorbell function
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
b5c3d9fdd6
m1n1.agx.channels: Add FWCtl ring support
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
8631deb731
m1n1.agx: Add the poke_sgx() mystery thing
...
Still don't know what this does...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
fa6edb8fe8
m1n1.agx: Drop uat.early_init()
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
8a3aad19e9
m1n1.agx: Add show_stats to disable stats printing
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
0b37f5599c
m1n1.agx: Update DeviceControl message names
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
ae8a4d9c4e
m1n1.fw.agx.channels: Add support for FWCtl ring
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
ab136b3234
m1n1.fw.agx.channels: Rename some DeviceControl messages
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
3609cb0f11
m1n1.hv: Trace GPU TLBI operations
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
f705672a7b
m1n1.hv: Actually step through unhandled atomics instead of punting
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
0f87d2b4f2
m1n1.hv: Add support for log timestamps, Linux style
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
f81bbcbd61
hv/trace_agx.py: Trace more/less things
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
94084c8ede
m1n1.proxyutils: Lower gzip compression level
...
This is the right tradeoff for the faster dwc3 code.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
bfccbd32e7
m1n1.proxyutils: Support sys/sysl ops (e.g. tlbi)
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
60d69697d3
m1n1.proxyutils: Add instruction cache to speed up repeat inst() calls
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
0b787f7d0d
m1n1.fw.agx.initdata: More field updates...
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
a76dd299a8
m1n1.hw.uat: Flush TLB on changes
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
8f2530cf64
m1n1.hw.uat: Clear out new page tables
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
2b6996db63
m1n1.hw.uat: Move handoff code to m1n1.fw.agx.handoff
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
ec3fcfc562
m1n1.asm: Upgrade to armv8.4-a
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
0cd85eb14b
m1n1.utils: Hack to recognize NdRange even if a partial reload happened
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00
Asahi Lina
15d04b3778
proxy: Expose hv_write_hcr()
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 14:02:55 +09:00
Asahi Lina
b6d2cc127c
hv_exc: Add support for resetting stolen time delta
...
This is useful to re-sync AGX, since it shares the same timebase as the
CPU.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 14:01:49 +09:00
Asahi Lina
8cd2865c1f
m1n1.sysreg & co: Add support for op-like sysregs (e.g. TLBI)
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 14:01:07 +09:00
Asahi Lina
52492350ee
m1n1.fw.agx.cmdqueue: Add support for setting queue priority
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:58:37 +09:00
Asahi Lina
a0aa41c743
m1n1.fw.agx.cmdqueue: Rename uuid field
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:58:19 +09:00
Asahi Lina
2193b4faff
m1n1.agx.render: Track fewer objects
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:58:04 +09:00
Asahi Lina
4810a868f3
m1n1.agx.render: Use separate TA/3D stamps
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:57:47 +09:00
Asahi Lina
1e0999450d
m1n1.agx.{context,render}: Track fewer objects
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:56:55 +09:00
Asahi Lina
27e161b94e
m1n1.fw.agx.channels: Proper statistics message definitions
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:56:19 +09:00
Asahi Lina
06673c40ba
m1n1.agx: str() arguments to log()
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:55:56 +09:00
Asahi Lina
96e4979c84
m1n1.agx: Support fault handling and recovery
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:55:39 +09:00
Asahi Lina
cb61ec4146
m1n1.agx: Increase guard page count for default allocators
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:54:44 +09:00
Asahi Lina
cc03bd8877
m1n1.agx: Instantiate SGXRegs
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:52:24 +09:00
Asahi Lina
be386b23c4
m1n1.hw.agx: Add SGXRegs definition
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:51:32 +09:00
Asahi Lina
b3afa720fc
m1n1.construcutils: Add .clone() method
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:49:47 +09:00
Asahi Lina
4bc08e9173
m1n1.constructutils: Abbreviate lists with trailing zero/null items
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 13:49:22 +09:00