#asahi-dev · 2023-09-13 16:29
_jannau__yes, kernel can be booted over usb (either barebone or with m1n1's HV which virtualizes mostly the serial port)#asahi-dev · 2023-09-13 16:29
svenbut the hard reset over pd might be very useful for CI#asahi-dev · 2023-09-13 16:29
svenit just passed through most hw and doesn’t try to virtualization anything #asahi-dev · 2023-09-13 16:28
svenI do all my development inside that hv fwiw #asahi-dev · 2023-09-13 16:27
_jannau__I should get a few populated cs-hw boards tomorrow#asahi-dev · 2023-09-13 16:26
eric_engestromwould running that in m1n1 work?#asahi-dev · 2023-09-13 16:26
eric_engestromso the purpose is to be able to run any arbitrary kernel + mesa to test that it works before merging changes#asahi-dev · 2023-09-13 16:26
_jannau__I suppose for CI the hard reset over USB PD is useful#asahi-dev · 2023-09-13 16:25
sven(as a regular cdc acm device)#asahi-dev · 2023-09-13 16:25
svenor you can run Linux inside m1n1‘s thin hv which will steal a usb port to expose a serial console #asahi-dev · 2023-09-13 16:25
_jannau__we still have to implement that on Linux#asahi-dev · 2023-09-13 16:24
svenor just another m1/m2 machines :p#asahi-dev · 2023-09-13 16:24
_jannau__yes, has to be enabled via USB PD, 1.2V#asahi-dev · 2023-09-13 16:24
eric_engestrom_jannau__: thanks!#asahi-dev · 2023-09-13 16:24
_jannau__see https://github.com/AsahiLinux/vdmtool or https://git.kernel.org/pub/scm/linux/kernel/git/maz/cs-hw.git/#asahi-dev · 2023-09-13 16:24
eric_engestromlooks that up#asahi-dev · 2023-09-13 16:24
eric_engestromI take it I need some usb-c serial adapter?#asahi-dev · 2023-09-13 16:23
eric_engestromnice, that's about as non-destructive as it can be xD#asahi-dev · 2023-09-13 16:23
_jannau__eric_engestrom: there is a serial console on the USB-C port next to the magsafe port#asahi-dev · 2023-09-13 16:21
eric_engestromthis is so that I can run CI on it, to make sure our infra is ready to support asahi testing#asahi-dev · 2023-09-13 16:21
eric_engestromI have a screwdriver for the srcews at the bottom, but I haven't tried opening it yet (kinda scared of breaking something)#asahi-dev · 2023-09-13 16:21
eric_engestrommarcan (or anyone): can I (non-destructively, it's also my work machine) get a serial console on my macbook air (m2, 2022)?#asahi-dev · 2023-09-13 15:14
j`ey(somehow missed there's a lot of dcp_* functions in that file, just saw the iofmb_* functions either side of it)#asahi-dev · 2023-09-13 15:12
j`eydcp_is_initialized seems like it's in the wrong place being in drivers/gpu/drm/apple/iomfb.c?#asahi-dev · 2023-09-13 08:32
marcaneiln: t6000 worked for me without any of those pointers. I suspect the dsid thing is for t8xxx only, since those addresses make no sense for t6xxx. But I think that whole thing is a memory controller optimization and we can just skip it (as long as there is some valid way to do that, e.g. all 0).#asahi-dev · 2023-09-13 07:40
chadmedit doesnt seem to be fragile at all its just gross to look at#asahi-dev · 2023-09-13 07:39
chadmedlots of evil pointers#asahi-dev · 2023-09-13 07:39
chadmedok this works but i dont think it will be upstreamable #asahi-dev · 2023-09-13 01:04
chadmedno of refcount errors on the first try though so thats nice :)#asahi-dev · 2023-09-13 01:04
chadmedim looking at this hwmon mess and i really dont like how the "info" channels work... its a nightmare to try and populate from the devicetree#asahi-dev · 2023-09-13 01:04
chadmedurgh forgot how loathsome C can be sometimes#asahi-dev · 2023-09-12 12:36
eilnthat's the iphone 15 max sensor hehe#asahi-dev · 2023-09-12 12:36
eilnimx913 calib file was added between 12.3 and 13.5#asahi-dev · 2023-09-12 08:47
eilniiuc unk4 is platform_type (t8103: 0x1, t6000: 0x3) and pad_40[1]/pad_40[3]/pad_7c[3] are required? pad_7c[3]=0x3b54000 looks like the ANE-IPC endpoint (I hate that I know this by heart), can you try removing that? pad_40[1]=0x3128000/pad_40[3]=0x48000 look like u64 iova/size for some other heap, not sure what though. we don't allocate any differently#asahi-dev · 2023-09-12 08:46
eilnalso can you test with the calib files and ensure the frames are Apple Quality i.e. we don't have to adjust filter params. also can you re-send all the dmesg struct hexdumps so I can better fill those fields out. alsoalsoalso t8112 calls a different dsid function, we will need to look into that#asahi-dev · 2023-09-12 08:46
eilnmarcan: ohh you declared the heap in the dt like uat. I added it to asc-mem phandle so we don't even have to acknowledge its existence, only passing ctrr_size for aperture/bootargs (I thought of passing it as vm_base). is it not fit as a reserved mem too?#asahi-dev · 2023-09-11 19:20
pb17Same for me but you never know. I'll try to fix p2p next#asahi-dev · 2023-09-11 19:05
jannauthanks for looking into it. not sure if I'll ever need it but there were a few users asking for it#asahi-dev · 2023-09-11 18:58
pb17jannau: Great, thanks for testing!#asahi-dev · 2023-09-11 18:56
jannaupb17: everthing works here. the connection sharing issue was unrelated but due the errors in the kernel log I didn't check NetworkManager's log#asahi-dev · 2023-09-11 18:31
pb17I did my tests on j316s mostly with link local addresses. That seemed to work fine#asahi-dev · 2023-09-11 17:42
jannauno, even that seems to work now. maybe it was just missing dependencies for network sharing. testing now with link local addresses#asahi-dev · 2023-09-11 17:38
jannaupb17: access point mode itself seems to work. works without encryption. WPA2 PSK doesn't work#asahi-dev · 2023-09-11 14:27
pb17jannau: Regarding your comment on my PR #184. Would it be possible for you to gather some logs on your M1 Mac Mini? I can try to guess what goes wrong over the weekend#asahi-dev · 2023-09-11 02:20
marcanjannau: done#asahi-dev · 2023-09-11 02:06
chadmedmarcan: makes sense, i have been doing it that way so far. just wanted to double-check#asahi-dev · 2023-09-11 02:01
marcansince there are many more variables (e.g. GPU usage)#asahi-dev · 2023-09-11 02:00
marcanchadmed: per-soc should be fine I think. only the fanless models should throttle and I don't think that behavior is going to be very usefully encoded in the EAS data anyway#asahi-dev · 2023-09-11 00:56
chadmedi feel like per-device makes more sense given the per-device throttling and power envelope behaviour #asahi-dev · 2023-09-11 00:55
chadmedwith eas, do we want to do measurements and values on a per-device basis or per-soc