#asahi-dev · 2022-12-22 04:27
psykosethough given how it's after all the output of the script before the final step i assume it was added to work around something#asahi-dev · 2022-12-22 04:25
hertz@psykose I see, thanks!#asahi-dev · 2022-12-22 04:24
psykoseredirects stdout/in/err to the tty regardless of shell redirections#asahi-dev · 2022-12-22 04:21
hertzIt makes no sense to me...#asahi-dev · 2022-12-22 04:21
hertz`exec </dev/tty >/dev/tty 2>/dev/tty`#asahi-dev · 2022-12-22 04:21
hertzhttps://github.com/AsahiLinux/asahi-installer/blob/main/src/install.sh#L55#asahi-dev · 2022-12-22 04:21
hertzIn the installer, what is the purpose of this line?#asahi-dev · 2022-12-21 13:56
sven*feels#asahi-dev · 2022-12-21 13:55
sveni can hack it for now by just making everything child nodes of atcphy and probing/unprobing them I guess but that feel wrong#asahi-dev · 2022-12-21 13:54
sven(the pmgr clock thing is also weird: apparently it can only be turned on and it needs a ~0.5s delay or so to actually work and there's no status register. it can only be turned off by resetting atcphy afaict)#asahi-dev · 2022-12-21 13:52
svenright now the dart driver tries to access its MMIO inside probe to figure out some basic information about the dart (pagesize etc.)#asahi-dev · 2022-12-21 13:52
svenhow do we represent this? acio only (and its mbox) would be doable by just making sure the driver doesn't do anything before a tbt cable is connected and atcphy is up but acio-dart is going to be a bit more tricky#asahi-dev · 2022-12-21 13:51
svento turn that PMGR thing on atcphy has to be up and running. if atcphy is reset or powered off everything dies and some SoC-internal reset is triggered rather quickly#asahi-dev · 2022-12-21 13:51
svenurhg, so thunderbolt: there's acio and acio-dart, both need a special clock/power/whatever thing inside PMGR to be turned on to make their MMIO accessible and not SError.#asahi-dev · 2022-12-21 13:36
ChaosPrincessthe backlight driver does not set them, and if the user manually exports pwm and controls from there - thats on them to deal with#asahi-dev · 2022-12-21 13:30
jannauit would make sense to reject really small duty_cycle/period values in apply#asahi-dev · 2022-12-21 13:26
jannaudown in apply, up in set_state if understand Uwe's comment correctly#asahi-dev · 2022-12-21 13:26
ChaosPrincessactually, the other way around#asahi-dev · 2022-12-21 13:25
ChaosPrincessso, up in apply, down in set_state?#asahi-dev · 2022-12-21 13:23
jannauChaosPrincess: I suppose if you round up in get_state you're closer at the values from set_state (on/off cycles were rounded down there)#asahi-dev · 2022-12-21 12:43
ChaosPrincesswtb some help, i do not understand how rounding is supposed work in pwm drivers. here https://www.spinics.net/lists/linux-pwm/msg20140.html uwe claims that it should be rounded up, while the strings in pwm core.c claim that period/duty cycle is supposed to be rounded down.#asahi-dev · 2022-12-21 12:15
marcan:)#asahi-dev · 2022-12-21 11:46
mazbut at least it doesn't take a couple of hours to get to a prompt, so there is some progress!#asahi-dev · 2022-12-21 11:45
mazmarcan: plenty of crap though. there is an issue with the GIC maintenance interrupt for which we need a handler, so I need to revisit this.#asahi-dev · 2022-12-21 11:38
marcanmaz: niiice!#asahi-dev · 2022-12-21 11:29
svenand the atcphy kext even fails if it sees any non-32bit tunable :D#asahi-dev · 2022-12-21 11:28
maz... and it just booted an L2 guest. something must be wrong.#asahi-dev · 2022-12-21 11:28
svenkettenis: I looked at the thunderbolt tunables again, and they also all seem to be 32bit masks. we can also just keep the current format then#asahi-dev · 2022-12-21 11:24
mazmarcan: it's alive: https://paste.debian.net/1264832/ (sort of)#asahi-dev · 2022-12-20 18:14
bcrumbcan someone check the -scripts PRs out? thanks :]#asahi-dev · 2022-12-19 18:12
amarioguyjannau: thanks#asahi-dev · 2022-12-19 18:07
jannauamarioguy: https://lore.kernel.org/u-boot/878rj44wtp.fsf@bloch.sibelius.xs4all.nl/#asahi-dev · 2022-12-19 18:03
amarioguywant to get some of the context behind what's going on here#asahi-dev · 2022-12-19 18:02
amarioguykettenis: link to the mailing thread?#asahi-dev · 2022-12-19 12:33
kettenisright#asahi-dev · 2022-12-19 12:28
apaloss/on/ok#asahi-dev · 2022-12-19 12:28
apalosso I am generally on with that patchset, I'll go stare at it more #asahi-dev · 2022-12-19 12:28
apaloskettenis: we are in the point again of "we know this isn't brilliat, but every other alternative is worst"#asahi-dev · 2022-12-19 12:27
apaloskettenis: no worries, got my answers already #asahi-dev · 2022-12-19 12:18
kettenisapalos: here now#asahi-dev · 2022-12-19 11:53
mazNV+GIC traps is going to be an interesting ride :-/#asahi-dev · 2022-12-19 11:51
mazmarcan: yeah. the timing must be subtle, because it is only when I merged in the 6.2 stuff and NV support that I managed to tickle it.#asahi-dev · 2022-12-19 11:44
marcanmaz: :<#asahi-dev · 2022-12-19 11:14
mazbah. Dreaded SError still fires on M2. and I was really hoping not to have to mitigate that sucker.#asahi-dev · 2022-12-19 11:05
_jannau_we currently use the per installation ESP for the 2nd stage m1n1#asahi-dev · 2022-12-19 11:04
j`eyyeah so it's really: m1n1 -> m1n1+u-boot ->#asahi-dev · 2022-12-19 11:04
_jannau_so the 1st stage m1n1 has a partition uuid and path to chainload the 2nd stage min1#asahi-dev · 2022-12-19 11:03
_jannau_m1n1 is also splitted into 2 stages to make updates easier. the first stage needs to be installed via macOS recovery. That is a little bit annoying#asahi-dev · 2022-12-19 11:02
j`eyyup#asahi-dev · 2022-12-19 10:58
apalosit's iboot1 -> iboot2 -> m1n1 -> u-boot -> whatever?