#
#asahi-dev · 2023-01-27 03:31
eilnanyone mind doing a prelim review of the driver? it's under ane/src
#asahi-dev · 2023-01-27 03:30
eilnpushed https://github.com/eiln/ane.git
#asahi-dev · 2023-01-27 03:30
eilnfinally figured out a major bug
#asahi-dev · 2023-01-27 03:20
eilncheckout https://github.com/AsahiLinux/docs/wiki if you haven't
#asahi-dev · 2023-01-27 03:19
eilnyou can watch her streams, but any linux (or even macos) host with a usb-c between will do.
#asahi-dev · 2023-01-27 03:14
twhat is asahi lina's setup for gpu re? host m1 and usb to connect to intel macbook?
#asahi-dev · 2023-01-26 19:58
mazChampagne!
#asahi-dev · 2023-01-26 19:41
marcannice!
#asahi-dev · 2023-01-26 19:24
sven~30 hotplug events and nothing broke :)
#asahi-dev · 2023-01-26 19:24
svenhah, looks like it’s stable with that notification now!
#asahi-dev · 2023-01-26 19:02
svenand there are no interrupts triggered in that state unfortunately
#asahi-dev · 2023-01-26 19:02
svenif pcie isn’t kept in “tunnel reset” until the thunderbolt tunnel is ready it can crash the firmware
#asahi-dev · 2023-01-26 19:01
svenhrm, looks like we’ll need a OOB notification from nhi to pcie after all to make complex tunnels (like the old Thunderbolt Display) reliable
#asahi-dev · 2023-01-26 17:53
nicolas17it's not possible to enter 1TR before doing initial macOS setup and setting a password etc right?
#asahi-dev · 2023-01-26 16:03
svenand it keeps working if I switch the cable type or orientation. so, uh, I guess that's actually a "write N times here to crash the co-processor" register? :P
#asahi-dev · 2023-01-26 16:02
svenif I just don't do that more than once and write random parameters in there it doesn't seem to crash after hotplug anymore...
#asahi-dev · 2023-01-26 16:02
svenokay, what the hell Apple. so there's a vendor specific "cable information" register that I was writing to on hotplug with bits having specific meaning (e.g. cable orientation, etc.)
#asahi-dev · 2023-01-26 14:14
kettenisand probably at the stage where I understand enough of how it is supposed to work that I could write that mail
#asahi-dev · 2023-01-26 14:12
kettenismarcan: I'm at the point where I could really use a PSCI for OpenBSD
#asahi-dev · 2023-01-26 14:11
khmarcan: If you report it can you cc me too
#asahi-dev · 2023-01-26 14:11
marcan(I also still need to write that big email about the psci issue...)
#asahi-dev · 2023-01-26 14:10
mazthanks!
#asahi-dev · 2023-01-26 14:09
marcanack
#asahi-dev · 2023-01-26 14:09
mazmarcan: ^^
#asahi-dev · 2023-01-26 14:09
mazplease report this sort of stuff on the list, cc'ing null, Sudeep Holla, and maybe Saravana Kannan...
#asahi-dev · 2023-01-26 14:08
kettenishttps://pubs.opengroup.org/onlinepubs/9699919799/
#asahi-dev · 2023-01-26 14:08
kettenisyup, and it means that the Linux CLOCK_MONOTONIC isn't POSIX compatible
#asahi-dev · 2023-01-26 14:02
jannauit's documented as stopping on suspend in the kernel: https://docs.kernel.org/core-api/timekeeping.html
#asahi-dev · 2023-01-26 14:02
kettenisLinux got this aspect of POSIX wrong, but the past attempts to fix it caused all sorts of breakage
#asahi-dev · 2023-01-26 14:00
kettenisdoesn't mean they're right ;)
#asahi-dev · 2023-01-26 13:59
khsystemd folks say otherwise https://github.com/systemd/systemd/issues/9538#issuecomment-405901335
#asahi-dev · 2023-01-26 13:58
kettenistechnically CLOCK_MONOTONIC should never stop, but I guess that ship has sailed
#asahi-dev · 2023-01-26 13:57
khHere's my very poor attempt at fixing it https://github.com/Kaz205/linux/commit/6e19008c4eb51cdae4b5a1bb9f7f3cec7bfa78b3
#asahi-dev · 2023-01-26 13:56
marcanchadmed: please don't tell people to switch to asahi-dev re: https://www.reddit.com/r/AsahiLinux/comments/10l8s2d/minimal_install_failure_with_asahidev/
#asahi-dev · 2023-01-26 13:53
marcancc maz
#asahi-dev · 2023-01-26 13:52
marcan(there is no excuse for this, it *should* be able to work with just WFI)
#asahi-dev · 2023-01-26 13:52
marcanso it just pretends to work but half of it breaks
#asahi-dev · 2023-01-26 13:52
marcankh: sigh. lovely...
#asahi-dev · 2023-01-26 13:49
khThat gets called in call_cpuidle_s2idle()
#asahi-dev · 2023-01-26 13:48
khsched_clock_suspend() is what stops the clock I think
#asahi-dev · 2023-01-26 13:48
khI don't think so, CLOCK_MONOTONIC only should stop during suspend, not idle
#asahi-dev · 2023-01-26 13:46
j`eytheres a call to tick_nohz_idle_stop_tick. it isnt that, that stops CLOCK_MONO..?
#asahi-dev · 2023-01-26 13:46
khThat causes programs like systemd to crash at times, and if I'm unlucky systemd-logind will crash and then I'm no longer able to login
#asahi-dev · 2023-01-26 13:43
khIt does but it's completely broken, for example CLOCK_MONOTONIC keeps ticking even though it has to be stopped because we ended up exiting early in cpuidle_idle_call() before we have a chance to stop it
#asahi-dev · 2023-01-26 13:41
j`eyor some kind of idle mode
#asahi-dev · 2023-01-26 13:41
j`eybut it does go into s2idle?
#asahi-dev · 2023-01-26 13:40
khSeems like PSCI cpuidle has to be added before enabling suspend
#asahi-dev · 2023-01-26 13:39
khIt ended up being a really messy implementation since Arm removed support for the generic cpuidle driver
#asahi-dev · 2023-01-26 13:38
khI tried making it work without a cpuidle driver but I failed, the kernel doesn't boot anymore
#asahi-dev · 2023-01-26 13:36
khIt fails here https://github.com/torvalds/linux/blob/master/kernel/sched/idle.c#L188

plus ›