Asahi Lina
9360a92cdc
m1n1/trace/agx.py: Add SGXTracer
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
0a57f45805
m1n1.hw.agx: Add chip info regs
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
e1752306c5
m1n1.fw.agx.initdata: Fix a bunch of fields
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
2dab8e352a
m1n1.agx.render: Misc tiling related fixes
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
9e65bd527b
experiments/agx_{parallel,renderframe}.py: Misc fixes
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
25e1644858
m1n1.adt: Add mtr-polynom-fuse-agx parsing
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
fbc04995ab
tools/chainload.py: Fix chainloading of xnu
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
3278d75453
kboot_gpu: Add preliminary T600x support
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
6e99fde8f2
hv/trace_all_more.py: Trace more stuff
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
10d772f743
hv/trace_agx_pwr.py: Messing with pstates
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
34b883318c
m1n1.fw.agx.initdata: Make somethings Dec
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
e4810a452d
m1n1.utils: Add align_pot()
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
7b63613945
m1n1.agx.render: Always enable Z compression
...
This seems to be required on t600x...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
05ece42eba
m1n1.agx.render: Better t600x support
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
bcd3d0274d
m1n1.agx.initdata: Work out all the ADT relationships
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
d265abc90c
m1n1.adt: Fixes for adding properties
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
808baf22df
m1n1.agx: Initial T600x port
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:10 +09:00
Asahi Lina
5a73bd6476
hv/trace_agx_pwr.py: New HV experiment
...
This is intended to reverse-engineer the macOS driver's power scale
calculations.
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:17:07 +09:00
Asahi Lina
02d9fdc6a0
m1n1.trace.agx: Add after_init_hook
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
e50be4bf0d
experiments/agx_tlb.py: Misc tracing changes
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
29ee0d5d32
m1n1.hv: Don't catch SystemExit from tracers/shells
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
b4d5ff7520
m1n1.agx: Add printing IRQs
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
2fe37d6dfa
m1n1.fw.agx: Misc field renames & fixes
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
b4a19572f2
m1n1.fw.agx.handoff: Add CUR_CTX field
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
3aa2be6489
m1n1.hw.uat: Flushing cleanup
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
4a6a4c0376
kboot: Add initial GPU property forwarding
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
f92be5a076
experiments/agx_parallel.py: Uncomment some power-related tracers
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
f6dad68156
m1n1.fw.agx.initdata: Disable KTrace by default
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
20fce92280
m1n1.trace.agx: Disable some hex dumps
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
b8bf3f485e
m1n1.trace.agx: Various UAT related improvements
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
a097e5b744
m1n1.trace.agx: Instantiate SGXRegs
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
621e7b535a
m1n1.fw.agx: Misc structure tweaks
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
2978f246f2
m1n1.agx.render: PowerVR style tile param calculation
...
Also document some other registers
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
c72b6ce98c
m1n1.hv: Translate DC CIVAC argument if trapped
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
633e551c2d
m1n1.agx.object: Support reading back directly from physmem
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
bc99d3411a
m1n1.agx.context: Fix blocklist indexing
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
5e39db820b
m1n1.agx: Only try to decode fault if fault happened
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
1f28498b0a
m1n1.hw.agx: Export R_FAULT_INFO
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
b8f9008953
m1n1.hw.uat: Show context ID in exceptions
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
b04cc0c7c8
m1n1.hw.uat: Document attribute indexes
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Asahi Lina
6a0008884d
m1n1.agx: Add an initdata hook
...
Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-12-04 13:15:55 +09:00
Hector Martin
9e2eeeb911
hv/trace_pmgr.py: Get rid of pwrgate stuff
...
It's broken
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-12-04 13:10:59 +09:00
Janne Grunau
71baff4adc
experiments/dcp.py: Set the display with surface swap
...
Needs testing on DP/HDMI outputs.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00
Janne Grunau
7d9608adc4
m1n1.fw.dcp.manager: Add backlight callbacks
...
DCP reports the display brightness with
PropRelay::pr_publish(prop_id=15, value=...). The value divided by
"Brightness_scale" appears to be the display brightness in nits.
Add other callbacks encountered on j314c.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00
Janne Grunau
6aa1da3c31
m1n1.fw.dcp.ipc: Annotate backlight fields in swap_rec
...
Allows brightness control of integrated displays.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00
Janne Grunau
98e8e48171
experiments/dcp.py: Add set_digital_out_mode call
...
Initializes the display if not already done by iboot/m1n1. Not expected
to change anything for disp0 but might be helful in bringing DP alt
mode for dispexp[0-7].
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00
Janne Grunau
053eb7bfda
experiments/dcp.py: Handle external displays correctly
...
Pass disp0's comaptible string to DCPManager.
Fixes Mac Studio and M1 Macbook handling.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00
Janne Grunau
452a3243c0
m1n1.fw.dcp.manager: Add SetDigitalOutMode convenience function
...
This prints the selected modes. In addition omits printing the whole
DCPAVProps.
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00
Janne Grunau
dc3397888d
m1n1.fw.dcp.manager: Add update_backlight_factor_prop call back
...
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00
Janne Grunau
aa7088f3fb
m1n1.fw.dcp.manager: Support 't600x' in rt_bandwidth_setup_ap
...
Signed-off-by: Janne Grunau <j@jannau.net>
2022-11-29 01:36:14 +09:00