#asahi-dev · 2023-01-16 15:52
povikbtw, how does the wake on lid open work? does userspace configure hid events that should wake the system, and kernel does some filtering and possibly returns to sleep?#asahi-dev · 2023-01-16 15:52
mazfeels like it needs to trigger a rescan of the PCIe config space -- hotplug style.#asahi-dev · 2023-01-16 15:51
marcanyeah, pretty sure it's the idrom thing or whatever they call it#asahi-dev · 2023-01-16 15:51
kettenisheh, shows how little I know about thunderbolt#asahi-dev · 2023-01-16 15:51
svenprobably, it does have a UUID in boltctl as well that had to come from *somewhere*#asahi-dev · 2023-01-16 15:51
marcanso it'd be identifying the TB device connected, not the PCIe device behind it#asahi-dev · 2023-01-16 15:50
svenyeah#asahi-dev · 2023-01-16 15:50
svenI think there might be a separate enumeration at tbt level though#asahi-dev · 2023-01-16 15:50
marcandoesn't thunderbolt have its own enumeration at the thunderbolt level?#asahi-dev · 2023-01-16 15:50
svenlet me test again, maybe i just confused myself and it did show up#asahi-dev · 2023-01-16 15:50
mazover usb? (making things up...)#asahi-dev · 2023-01-16 15:50
mazseparate enumeration mechanism?#asahi-dev · 2023-01-16 15:50
povik:D#asahi-dev · 2023-01-16 15:49
svenhuh.. good question#asahi-dev · 2023-01-16 15:49
kettenishmm, how can it identify the adapter without pcie config space access?#asahi-dev · 2023-01-16 15:49
marcannice :D#asahi-dev · 2023-01-16 15:49
svenstill doesn't show up in pcie though#asahi-dev · 2023-01-16 15:48
sven ? Apple Thunderbolt to Gigabit Ethernet Adapter#asahi-dev · 2023-01-16 15:48
sven$ boltctl list#asahi-dev · 2023-01-16 15:45
marcannice :)#asahi-dev · 2023-01-16 15:42
kettenisbeen an interesting experience (and yes I know about the PAN issue)#asahi-dev · 2023-01-16 15:42
kettenisbtw, we (OpenBSD) have gone execute-only .text on arm64#asahi-dev · 2023-01-16 15:39
marcanchadmed: tested wake on lid open on j314 too, works fine#asahi-dev · 2023-01-16 15:38
povikthere's an endpoint for it, i think it gets enabled, not sure anymore#asahi-dev · 2023-01-16 15:38
marcanthey probably don't actually enable it?#asahi-dev · 2023-01-16 15:38
povikthere were periodic lid angle measurements, so if the accelerometer was there, i would expect something similar#asahi-dev · 2023-01-16 15:37
povikat least i haven't seen anything that looks like imu data that AOP sends to macos#asahi-dev · 2023-01-16 15:37
povikhuh, i got the impression on j314 it's unpopulated#asahi-dev · 2023-01-16 15:37
marcanIIRC it was designed in but unpopulated in the original m1 series, but it looks like they actually started populating it in m1pro/max unless the ADT lies#asahi-dev · 2023-01-16 15:37
marcannah, I think it was a discrete part in the schematics#asahi-dev · 2023-01-16 15:36
kettenisit's probably just part of one of the chips they need for other purposes#asahi-dev · 2023-01-16 15:36
marcaninterestingly so does the m1 studio... which makes me wonder, but I wouldn't put it past apple to put an accelerometer in a desktop#asahi-dev · 2023-01-16 15:35
marcanpovik: j314/j316/j493 have accel/gyro nodes under aop#asahi-dev · 2023-01-16 15:35
kettenisanyway, if someone could test my current u-boot branch on an iMac or Mac Studio I would be grateful#asahi-dev · 2023-01-16 15:33
kettenis(not sure I mentioned it here, but OpenBSD now automatically updates boot.bin on the ESP)#asahi-dev · 2023-01-16 15:33
kettenisI'll need to teach the OpenBSD installboot about this trick, but that should be doable#asahi-dev · 2023-01-16 15:32
ChaosPrincessmarcan: if you have time, mind looking at the z2 driver draft and checking if im not doing anything super dumb#asahi-dev · 2023-01-16 15:32
povikthe raw data it processes is a 2.4 MHz PDM stream#asahi-dev · 2023-01-16 15:32
povikanyway we don't want to bypass LEAP because it does the PDM-to-PCM decimation#asahi-dev · 2023-01-16 15:32
marcanI've seen it in some ADTs I think#asahi-dev · 2023-01-16 15:32
marcanpovik: I think it might be populated on at least some models#asahi-dev · 2023-01-16 15:32
povikor is it on m2 macbooks that they started to put it in?#asahi-dev · 2023-01-16 15:32
povikmarcan: i thought the accelerometer is unpopulated#asahi-dev · 2023-01-16 15:31
marcanthe installer can just build a uboot-subset initramfs and tack it on at install time, update-m1n1 can do the same at update time#asahi-dev · 2023-01-16 15:31
marcanyeah#asahi-dev · 2023-01-16 15:31
marcanand since m1n1 will uncompress the initramfs for us (if compressed) you don't need to care about that either#asahi-dev · 2023-01-16 15:31
kettenisand then the idea is to just cat the initramfs to boot.bin on the ESP?#asahi-dev · 2023-01-16 15:30
kettenisright, sound doable#asahi-dev · 2023-01-16 15:30
marcanat that point parsing it is just parsing some hex numbers and looking for the filename you want#asahi-dev · 2023-01-16 15:30
marcanwe can skip hardlink support for u-boot (I can at least guarantee we either never omit file contents or duplicate them for u-boot archives if it ever becomes necessary)