#
#asahi-dev · 2022-11-26 14:46
ChaosPrincessSo, the "another apple serialization format" that they use to serialize MTP firmware is CBOR and not some proprietary thing.
#asahi-dev · 2022-11-26 14:23
amarioguyoof
#asahi-dev · 2022-11-26 14:14
svenand reset dwc3 every single time the tps chip issues a „plug changed“ event
#asahi-dev · 2022-11-26 14:13
svenfor usb you at least need that tps6598x chip and dwc3
#asahi-dev · 2022-11-26 14:13
sventhe hard part is as usual to get the order between all the moving components right
#asahi-dev · 2022-11-26 14:13
sventhat’s the easy part
#asahi-dev · 2022-11-26 14:10
amarioguyhonestly, i didn't even know before recently you needed to have some efuse config on hand to even bring up the ATC PHY
#asahi-dev · 2022-11-26 14:09
amarioguysven: lol fair that decides it then, nvme it is :)
#asahi-dev · 2022-11-26 13:21
svenyes please!
#asahi-dev · 2022-11-26 13:21
hir0proUSB specs ought to have a warning on them like cigarette cartons
#asahi-dev · 2022-11-26 13:19
svenwhile usb specs are probably harmful to anyone who reads them and then has to live with that knowledge
#asahi-dev · 2022-11-26 13:19
sven(Usb was more pain to be clear)
#asahi-dev · 2022-11-26 13:18
sveneven the spec is readable by humans
#asahi-dev · 2022-11-26 13:18
svennvme is like the opposite of usb
#asahi-dev · 2022-11-26 13:18
svenusb obviously :D
#asahi-dev · 2022-11-26 13:05
amarioguy(this pertains to stuff i'm doing to bring up [a certain proprietary os name here])
#asahi-dev · 2022-11-26 13:03
amarioguy(long story i'm trying to decide on my end what to bring up first...)
#asahi-dev · 2022-11-26 13:03
amarioguysven: btw what was less pain to bring up for you, USB (DWC3 and co, not including the stuff you're bringing up right now) or nvme
#asahi-dev · 2022-11-26 12:21
povikhttps://tpaste.us/wY5b
#asahi-dev · 2022-11-26 12:20
povikpatch for parsed segment-ranges in adt dumps:
#asahi-dev · 2022-11-26 12:05
jannauno, that doesn't seem to apply for sio
#asahi-dev · 2022-11-26 12:01
povikaha!
#asahi-dev · 2022-11-26 12:00
jannauphys and device address being equal could signal not to map text via dart
#asahi-dev · 2022-11-26 11:47
povikor maybe it's an oversight that iboot makes the mapping on M2
#asahi-dev · 2022-11-26 11:45
povikbut maybe we can map it every time?
#asahi-dev · 2022-11-26 11:45
povikwe still don't know how to decide on the mapping of the TEXT section based on segment-ranges
#asahi-dev · 2022-11-26 11:45
povikah. then we can't completely replace the carveout-memory-map logic even if we wanted
#asahi-dev · 2022-11-26 11:44
jannaudcpext can be switched to segment-ranges parsing as soon as the code exists
#asahi-dev · 2022-11-26 11:44
jannauthere are two reasons for that with dcp. 1) dart-disp0 needs to be covered as well (no segment-ranges for that) 2) text not mapped via dart through of my first high level segment-ranges parsing attempt
#asahi-dev · 2022-11-26 11:41
jannauyes, the physical addresses from the carveout-memory-map are matched with the dart mappings to produce physical address, device address, size
#asahi-dev · 2022-11-26 11:39
jannaufeel free to use code or refactor reserved memory region writing of dt_carveout_reserved_regions() as you see fit
#asahi-dev · 2022-11-26 11:38
povikso what happens now is the carveout-memory-map is combined with DART contents to produce the FDT data?
#asahi-dev · 2022-11-26 11:37
jannauparsing segment-ranges in kboot.c makes more sense than the /chosen/carveout-memory-map handling for dcp
#asahi-dev · 2022-11-26 11:33
jannausee dt_device_set_reserved_mem()
#asahi-dev · 2022-11-26 11:32
jannauyes, it's through the device. the "iommu-addresses" gets a device phandle too
#asahi-dev · 2022-11-26 11:30
povikyeah, i should do that. thanks!
#asahi-dev · 2022-11-26 11:30
jannaulooking at the output of `dtc -I fs -O dts -o - /proc/device-tree` might help
#asahi-dev · 2022-11-26 11:30
poviki was looking for iommu= property of sorts on the reserved memory node
#asahi-dev · 2022-11-26 11:30
povikah, so the relation to a DART instance is through the device
#asahi-dev · 2022-11-26 11:29
jannaucreate a memory region in /reserved-memory and link to that region via "memory-region" in the device
#asahi-dev · 2022-11-26 11:27
jannaupovik: look what I do with dcp in m1n1, src/kboot.c:dt_carveout_reserved_regions()
#asahi-dev · 2022-11-26 11:23
povikjannau: you engaged in binding discussions on iommu mappings so you might know this off the top of head: how do i represent the SIO's required DATA section mappings?
#asahi-dev · 2022-11-26 10:03
svenmaybe just needs some additional EPIC calls but i'd be surprised if it's very different
#asahi-dev · 2022-11-26 10:02
svenso chances are if audio output over the mac mini's hdmi works it might also just work over the type-c ports :)
#asahi-dev · 2022-11-26 09:24
povikgot it
#asahi-dev · 2022-11-26 07:57
svenshouldn’t type before coffee
#asahi-dev · 2022-11-26 07:57
svenI meant the internal screen is hooked up via DP and the HDMI output on the mini goes through a converter
#asahi-dev · 2022-11-26 07:56
svenuh. Never mind the last comment
#asahi-dev · 2022-11-26 07:29
sveneven the internal MacBook screen is hooked up through a DP to hdmi converter even though it doesn’t even use type c
#asahi-dev · 2022-11-26 07:28
svenpovik: almost nothing uses HDMI altmode. It’s always DP altmode plus some DP to hdmi converter

plus ›