#
#asahi-dev · 2023-04-30 07:29
eiln_so the kext turns on 5 to unlock the mmio region, then the fw turns on the last one... why are they playing games with power domains of all things
#asahi-dev · 2023-04-30 07:27
eiln_jannau: received, thank you so much. it looks like it's 6.
#asahi-dev · 2023-04-30 07:26
jannauupdated, different content but do 7 and 8 actually turn anything on as the pmgr reg remains 0
#asahi-dev · 2023-04-30 07:16
eiln_can you see if the 8th one turns on too?
#asahi-dev · 2023-04-30 07:16
eiln_jannau: yeah, the engine region seems to be locked behind 5 then. weird the last two turn on though, whose domain is that?
#asahi-dev · 2023-04-30 07:09
jannaueiln_: https://www.jannau.net/asahi/ane/ane_t6002_power_pd4.log exceptions and more poll output. are those crash dumps?
#asahi-dev · 2023-04-30 06:43
eiln_jannau: does it work with 4?
#asahi-dev · 2023-04-30 06:04
jannaualso modified '"ane%d" % i*2' to '"ane%d" % (i*2)'. it looks like '%' takes precedence over '*'
#asahi-dev · 2023-04-30 06:02
jannaueiln_: https://www.jannau.net/asahi/ane/ not sure what you're looking for but it seems all PD_COUNT vals work
#asahi-dev · 2023-04-29 22:47
jannaufinally a picture with dcpext on the m2 mac mini. I unfortunately can't make any nice pictures since the pcie xhci dies and I have no input devices
#asahi-dev · 2023-04-29 20:58
eiln_and attach the mon.poll() results if some PD_COUNT val works
#asahi-dev · 2023-04-29 20:58
eiln_in https://github.com/eiln/m1n1/tree/ane-power branch
#asahi-dev · 2023-04-29 20:58
eiln_jannau: do you mind running experiments/ane_t6002_power.py for PD_COUNT 5, 6, or 7
#asahi-dev · 2023-04-29 20:58
eiln_but the kext only turns on 5? is the fw doing the last one/two??
#asahi-dev · 2023-04-29 20:58
eiln_id guess 7 bc t8103 has 7 pds & everything looks the same
#asahi-dev · 2023-04-29 20:58
eiln_given rPMGR_ANE2_SET4_PS there should be at least 6 pds, but likely 7
#asahi-dev · 2023-04-29 20:57
eiln_the kext & fw flip flop with the pds for some bizarre reason
#asahi-dev · 2023-04-29 19:52
jannauno, in this case it was an entirely empty TTBR due to dart-dispext0 being locked
#asahi-dev · 2023-04-29 19:48
poviki guess the axi_rd error was the dart resetting, right?
#asahi-dev · 2023-04-29 19:42
jannaufixed but dcpext still crashes but not anymore due to an axi_rd error
#asahi-dev · 2023-04-29 19:13
jannausigh, all the disp* darts on m2 have locked tcr/ttbr out of iboot. the current lcoked dart handling can only deal with a single locked dart in group
#asahi-dev · 2023-04-29 18:19
jannausigh, entirely an software issue. the iommu grouping doesn't work. the fb mappings are all on disp0-dart and none are on dispext0-dart
#asahi-dev · 2023-04-29 13:48
jannaumight actually be a software issue, there's for some reason no modeset
#asahi-dev · 2023-04-29 13:31
jannauFIFO_RD_UNK_EN in the atc-dpxbar has for some reason a different field layout and uses 4 bits instead of 2 per dispext
#asahi-dev · 2023-04-29 13:27
jannauI guess an issue in atc-phy putting the dp signals on the wires
#asahi-dev · 2023-04-29 13:26
jannaudcpext on m2 half working. dcpext is happy but the display is not and claims there's no signal
#asahi-dev · 2023-04-29 08:05
marcanit's just a copy paste and they decided it wasn't worth it
#asahi-dev · 2023-04-29 08:05
jannaupovik: https://tpaste.us/PEQ1 looks good. I discovered I even need it for dcpext. I suppose pci was the only thing without runtime pm when I looked at it. dcp is shielded from the dart_hw_reset since the involved darts are locked. dart-dispext* is not locked and that started to cause problems
#asahi-dev · 2023-04-29 08:05
marcanyup
#asahi-dev · 2023-04-29 08:04
eiln_they can't utilize ane1 to 2x one job bc they have separate L2s. nothing suggests the two can communicate actually. so at most it 2x two jobs simultaenously
#asahi-dev · 2023-04-29 08:01
marcanthey just dropped it
#asahi-dev · 2023-04-29 08:01
marcanbut since ane1 and ane2 are basically the same, no reason to believe ane1 is different in any way
#asahi-dev · 2023-04-29 08:01
marcanso that makes me think ane0 may have some other subtle difference (or maybe not and it's just ARM instruction encoding gave a different instruction count when they changed the base addr)
#asahi-dev · 2023-04-29 08:01
eiln_ig stacking two ane's didn't go as planned
#asahi-dev · 2023-04-29 08:00
marcanane0 and ane2 are more different
#asahi-dev · 2023-04-29 08:00
marcanbut actually ane1 and ane2 are almost identical in .text, then .data changes
#asahi-dev · 2023-04-29 08:00
dottedmagmarcan: Yes, I'll talk to daniels
#asahi-dev · 2023-04-29 08:00
eiln_its bc of mmio base address lol
#asahi-dev · 2023-04-29 08:00
marcanthe first difference I see is different MMIO addresses (duh)
#asahi-dev · 2023-04-29 08:00
marcane.g. ane0 and ane2 have different firmware even though they are literally the same hardware
#asahi-dev · 2023-04-29 07:59
marcanthe firmwares are all different for stupid reasons
#asahi-dev · 2023-04-29 07:59
eiln_ane/ane0 fw is rlly similar too, i highly doubt ane0/ane1 had mem sharing features
#asahi-dev · 2023-04-29 07:58
eiln_they share a unified -h13 flag
#asahi-dev · 2023-04-29 07:58
eiln_interestingly t8103 ane & t6000 ane compile the same microseq
#asahi-dev · 2023-04-29 07:55
marcanane is actually quite power hungry, it's a major component in the CLPC stuff and has its own power rail, so ane1 is probably not even wired to power on any machine
#asahi-dev · 2023-04-29 07:54
marcanI'm sure they had some test hardware somewhere with it enabled, but they never shipped it
#asahi-dev · 2023-04-29 07:53
marcanso the double ane for max models was a planned feature that got cut and removed from the next iteration
#asahi-dev · 2023-04-29 07:53
marcanm2 max does not have ane1 physically, it is not present in the die
#asahi-dev · 2023-04-29 07:52
marcaneiln_: I think they decided not to ever enable it for power delivery/product reasons
#asahi-dev · 2023-04-29 07:51
eiln_ane0/ane1 have near identical fw, maybe overheating?

plus ›