#asahi-dev · 2021-11-04 10:11
jixkettenis: usually you boot from USB and then use pacstrap, then chroot into that and setup more stuff#asahi-dev · 2021-11-04 10:11
jixkettenis: not sure if it supports untar rootfs on x86 but it's not the default way to install it#asahi-dev · 2021-11-01 15:54
jixhmm I wonder for autodetection would you want to chose the german pc or the german apple layout, they match for the labels on the keys (at least for apple not labeling the 3rd layer) but even ascii chars like []{}\ and I think some more are in completely different places#asahi-dev · 2021-11-01 15:32
jixhow did that order happen though? :D#asahi-dev · 2021-11-01 15:25
jixde mba: kblang-calibration = [0x00002FC513280101, 0x0000000000000000]#asahi-dev · 2021-10-29 16:27
jixeh sum, not difference, well depends on how you view it ^^#asahi-dev · 2021-10-29 16:27
jixah and that's why the difference is fout... by scaling both values by fout you can use an integer division here, that also explains why they're not using a reduced fraction#asahi-dev · 2021-10-29 16:18
jixah yeah, what I did was just to use high_inc and low_inc to directly match the fractional part of the divider period ... and that should check out if it's per output cycle as the formula for the fractional part already takes into account that the longer output cycles are longer#asahi-dev · 2021-10-29 16:14
jixhmm but no it should be fine I think... now let me try to do this the other way around to get from freq to incs#asahi-dev · 2021-10-29 16:11
jixI also totally don't trust that what I'm computing is the right thing, just that it ends up telling me mac os is setting 48k exactly#asahi-dev · 2021-10-29 16:06
jixI get that it should set a fractional value of 31/64 and that's what 5952000 / (5952000 + 6336000) reduces to... except wait is it actually the right thing to do? it matches what mac os does but uh not sure#asahi-dev · 2021-10-29 16:05
jixuh I think the math for the values you said mac os sets checks out? (also not quite following the last thing you said)#asahi-dev · 2021-10-29 16:00
jix(shouldn't be a choice here AFAIUI, just wanting to make sure that I have everything right)#asahi-dev · 2021-10-29 15:59
jixwhat d1/d2 values does mac os set this to?#asahi-dev · 2021-10-29 15:57
jixso this is used to adjust the fractional period of the lfsr divider? (just making sure I understand the whole chain here)#asahi-dev · 2021-10-29 15:54
jixthat's quite high 0o#asahi-dev · 2021-10-29 15:53
jixno, what's the frequency#asahi-dev · 2021-10-29 15:52
jixwhat's fin?#asahi-dev · 2021-10-29 15:51
jixpretty strange to not set it exactly anyway#asahi-dev · 2021-10-29 15:16
jixwait is it doing a zigzag around the midpoint or is it always wrapping around in one direction? (or I guess you could do it either if the increment regs are as wide as the accumulator reg)#asahi-dev · 2021-10-29 15:10
jixI guess it's always a good idea to avoid small incs anyway... i.e. multiply them by the largest constant that still fits#asahi-dev · 2021-10-29 14:45
jixcan you do the measurement over a longer interval or so to figure out if the 2**(-13) are just measurement error? I expect it to be... but a constant offset could also be plausible#asahi-dev · 2021-10-29 14:43
jixor equivalently 1/2 * r1 / (r1 - r2)#asahi-dev · 2021-10-29 14:38
jixhmm not a small factor but a small offset... if you use 0x60ae00 and then add 2**(-13) at the end it's really close (but that offset might also be measurement error? no idea how you measure this)#asahi-dev · 2021-10-29 14:33
jixalso 0x60a000 is even closer ... but it also seems to be off by a small factor#asahi-dev · 2021-10-29 14:26
jixmaybe 2**22.??? is just 0x600000 ?#asahi-dev · 2021-10-29 14:07
jixmarcan: same, do you have a rough idea what it does?#asahi-dev · 2021-10-29 14:03
jixoh and it's not close for the small values, I assumed they are noise because they jump all over the place in a log plot, but that might not be the case?#asahi-dev · 2021-10-29 14:02
jixbut that's just eyeballed, so no idea if that's close enough for what it's used for#asahi-dev · 2021-10-29 14:01
jixfrac = 1 / (np.exp2(23.5 - np.log2(reg)) + 2) # is pretty close#asahi-dev · 2021-10-29 13:10
jixwith those instruction it's probably faster than generating the table, but that's a lot of added complexity#asahi-dev · 2021-10-29 13:10
jixwithout using carryless (i.e. polynomial over F_2) multiplication instructions (which I assume arm also has these days) it might even be slower than the naive approach for 11 bits#asahi-dev · 2021-10-29 13:06
jixmarcan: you can use modular exponentiation by squaring to directly compute the n-th step of a lfsr, but for 11 bits I wouldn't bother#asahi-dev · 2021-10-28 20:56
jixjmr2: do you have CONFIG_APPLE_DART set? if not that would probably explain why you didn't have the issues I had with the DT#asahi-dev · 2021-10-28 20:51
jixalthough now I'm puzzled how that ends up doing this, given that without it, the keyboard input didn't end up in /dev/tty0 AFAICT#asahi-dev · 2021-10-28 20:50
jixconsole=tty0 did the trick, thanks :)#asahi-dev · 2021-10-28 20:50
jixunrelated, but something freezes for me sometimes if I leave linux running in the HV for longer ... virtual uart and hypervisor ^C don't respond anymore, but the devices are still there until I hard reboot#asahi-dev · 2021-10-28 20:46
jixif I have a working /dev/input/event1 (using the patches jmr2 collected) can I attach it to the console? can I do that automatically? I fail at finding the relevant documentation for this stuff#asahi-dev · 2021-10-28 20:45
jixI completely lack the big picture regarding everything, but listing stuff that is present and not stuff that is absent does seem clearer to me#asahi-dev · 2021-10-28 20:42
jixhttps://github.com/jix/linux/commit/13693c7dcce728b98f4cccd231bee195c5629f21 is what I did#asahi-dev · 2021-10-28 20:40
jixI did disable all darts in the t8103.dtsi and then enabled all three in 274... yeah exactly#asahi-dev · 2021-10-28 20:39
jixoh I also just started that#asahi-dev · 2021-10-28 18:31
jixI'm still a bit lost regarding what happens in which trees#asahi-dev · 2021-10-28 18:27
jixwell then let me rephrase: it'd be a good idea to maintain the DTs in a way that doesn't require manually patching things when not using a mac mini ;)#asahi-dev · 2021-10-28 18:25
jixah so all darts would be in the dtsi but the dts for the air would disable 2 of them?#asahi-dev · 2021-10-28 18:24
jixprobably would be a good idea to maintain different DTs at this point then and not put everything in the common t8103.dtsi#asahi-dev · 2021-10-28 18:22
jixok, the macbook air ADT marcan posted a while back also only has the one pcie dart, so I asssume jmr2 might have used a config without CONFIG_APPLE_DART?#asahi-dev · 2021-10-28 17:58
jixyeah even without the HV I do get a panic in apple_dart_probe while probing the one at 682008000 which isn't in my ADT... so are ther different HW revisions? or what is happening here?#asahi-dev · 2021-10-28 17:56
jixjmr2: I think I also tried it without the HV, but let me double check... in any case the DT wouldn't match my ADT#asahi-dev · 2021-10-28 17:52
jixj_ey: remove it or screwed it up? ^^