#
✕ nick:sven
#asahi-dev · 2022-06-12 14:25
svenhuh, 5.19 somehow broke atcphy
#asahi-dev · 2022-06-11 18:28
svenprobe function
#asahi-dev · 2022-06-11 18:28
svenuh, you should have a pointer to that struct in the apple
#asahi-dev · 2022-06-11 16:06
svenI actually checked before I wrote that comment :D
#asahi-dev · 2022-06-11 13:45
svenI’m happy to relicense the SART code if it makes life easier fwiw
#asahi-dev · 2022-06-11 10:31
svenouch, that‘s a pretty subtle bug
#asahi-dev · 2022-06-10 06:08
svennice!
#asahi-dev · 2022-06-09 15:06
svenhonestly wouldn't surprise me if it goes back even further
#asahi-dev · 2022-06-09 14:42
svenor, well, teach apple-dart.c about the slightly different register layout
#asahi-dev · 2022-06-09 14:41
sventhey'll also need a driver for that older dart
#asahi-dev · 2022-06-09 14:41
svenusb makes sense because the older iphones all had dwc2 instead of dwc3
#asahi-dev · 2022-06-09 14:41
svenj`ey: oh, interesting!
#asahi-dev · 2022-06-09 14:40
svenhttps://github.com/apple/darwin-xnu/blob/main/iokit/IOKit/IOReportTypes.h May or may not be related
#asahi-dev · 2022-06-09 14:39
svenI never figured out what those messages it sends during boot up actually mean
#asahi-dev · 2022-06-09 14:39
svenIoreport is the endpoint I understand the least
#asahi-dev · 2022-06-08 08:29
sventhe iommu maintainer usually picks up new code starting rc4 iirc but the io-pgtbl maintainer hasn't replied yet
#asahi-dev · 2022-06-08 08:18
svenit's incompatible to the old one because they moved some registers around but very very similar
#asahi-dev · 2022-06-08 08:18
sventhe thunderbolt dart on the m1 maybe counts as half new
#asahi-dev · 2022-06-08 07:55
svenatcphy has a new compatible but that might just be because of different tunables (t6k also had a different compatible even though it was almost the same)
#asahi-dev · 2022-06-08 07:55
svennvme also looks the same
#asahi-dev · 2022-06-07 12:57
svenand dwc3 has two for some weird reason
#asahi-dev · 2022-06-07 12:57
svenpretty much every single dma-capable device has its own DART instance
#asahi-dev · 2022-06-07 12:56
svenit's already present for thunderbolt and uhh.. some video encoder or something on the m1 max/pro or ultra
#asahi-dev · 2022-06-07 12:56
svenif it's t8110 like in the iphone ADTs someone wrote m1n1 code for it
#asahi-dev · 2022-06-07 12:15
sveni think it was cute. allows to completely skip SART
#asahi-dev · 2022-06-07 12:15
svenmaybe apple also broke the syslog hack by accident :D
#asahi-dev · 2022-06-07 12:00
svenare the new base ADTs for the m2 already available btw.?
#asahi-dev · 2022-06-06 14:01
svenand I think I already added the irq number to the device tree
#asahi-dev · 2022-06-06 14:01
sventhe common code probably only needs a use_irq flag and export a irq handler while the apple specific code requests the irq and then sets use_irq to true
#asahi-dev · 2022-06-06 12:22
svenyou’ll also have to configure the irq mask, see https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n1/hw/i2c.py#L124
#asahi-dev · 2022-06-06 12:20
svenand maybe even have the driver support both irq and pilled mode since it’s unclear if the old pasemi boards have a working irq
#asahi-dev · 2022-06-06 12:20
svenyeah, you probably want a completion instead of the wait queue
#asahi-dev · 2022-06-05 19:57
svenI’m about to go to bed but I can give you some pointers tomorrow
#asahi-dev · 2022-06-05 19:56
svensure!
#asahi-dev · 2022-06-04 21:40
svenworks for me
#asahi-dev · 2022-06-04 21:22
svenI’m happy to help whoever wants to pick that up. it’s probably als a good task for anyone who wants to get started with kernel development
#asahi-dev · 2022-06-04 21:22
sven:-)
#asahi-dev · 2022-06-04 21:21
svenif someone makes that list: “irq support for the i2c driver” is a nice and small task as well
#asahi-dev · 2022-06-04 18:15
svenoh, true
#asahi-dev · 2022-06-04 18:12
svennvram setting + DCP firmware patching from iboot maybe
#asahi-dev · 2022-06-02 17:28
svenhm, we still need to add that new mailing list to maintainers
#asahi-dev · 2022-06-01 19:47
svenI’ve tried but setting up a Linux VM was much easier in the end
#asahi-dev · 2022-06-01 16:08
svenx86 macs are a very different hw platform with an entirely different boot process fwiw
#asahi-dev · 2022-05-31 15:37
svenwrite32(asc_base + 0x1004, 0x10); write32(asc_base + 0x1014, 1); asc.send(0x30000000000010, 0); asc.recv(); read32(0x809f84000) <-- i dunno what that asc.send was supposed to do but this looks like I managed to crash it like that
#asahi-dev · 2022-05-31 15:34
svenand I think I also tried 0x1004 / 0x1014 but i'm not sure about that one because the context inside m1n1-history is confusing there
#asahi-dev · 2022-05-31 15:30
svenanother one I tried at some point is 0xc004 / 0xc024
#asahi-dev · 2022-05-31 15:27
svenhrm, one version is write32(0x10004, 0x11) followed by write32(0x10024, 1) but i'm not sure that's the correct one
#asahi-dev · 2022-05-31 15:25
sventhe kext hast like 5 or 6 different offsets depending on the asc version
#asahi-dev · 2022-05-31 15:25
svenit's moved around quite a bit, let me see if I still have notes
#asahi-dev · 2022-05-31 15:24
svendidn't manage to figure out what they were though

plus ›