#
…

2022-10-29

00:08Dcow_ has joined #asahi-dev
00:09SuperED has joined #asahi-dev
00:13Dcow_ has quit [Remote host closed the connection]
00:15Dcow has quit [Ping timeout: 480 seconds]
00:21millenia_ has joined #asahi-dev
00:24millenialhacker has quit [Read error: No route to host]
00:24millenia_ has quit [Read error: Connection reset by peer]
00:29SuperED has quit []
00:29Dcow has joined #asahi-dev
00:37Dcow has quit [Ping timeout: 480 seconds]
00:40millenialhacker has joined #asahi-dev
00:48millenialhacker has quit [Ping timeout: 480 seconds]
00:53tpw_ruleswith the new firmware bits, did anything in the kernel itself change? i wouldn't think so
00:59thelounge7571340 has joined #asahi-dev
00:59thelounge7571340 has quit [Remote host closed the connection]
01:00DragoonAethis has quit [Quit: hej-hej!]
01:00DragoonAethis has joined #asahi-dev
01:02Dcow has joined #asahi-dev
01:09nicolas17 has quit [Ping timeout: 480 seconds]
01:10Dcow has quit [Ping timeout: 480 seconds]
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
01:23kazuki has joined #asahi-dev
01:30nicolas17 has joined #asahi-dev
01:35kazuki has quit [Quit: Konversation terminated!]
01:39Dcow has joined #asahi-dev
01:45amarioguy has joined #asahi-dev
01:47Dcow has quit [Ping timeout: 480 seconds]
01:48Etrien has joined #asahi-dev
01:55Etrien__ has quit [Ping timeout: 480 seconds]
02:07thelounge7571340 has joined #asahi-dev
02:07thelounge7571340 has quit [Remote host closed the connection]
02:12Etrien__ has joined #asahi-dev
02:15Dcow has joined #asahi-dev
02:17Etrien has quit [Ping timeout: 480 seconds]
02:21VinDuv has quit [Ping timeout: 480 seconds]
02:23Dcow has quit [Ping timeout: 480 seconds]
02:34SSJ_GZ has quit [Ping timeout: 480 seconds]
02:34millenialhacker has joined #asahi-dev
02:34SSJ_GZ has joined #asahi-dev
02:38Core9066 has joined #asahi-dev
02:51Dcow has joined #asahi-dev
03:00Dcow has quit [Ping timeout: 480 seconds]
03:08thelounge7571340 has joined #asahi-dev
03:09thelounge7571340 has quit [Remote host closed the connection]
03:22thelounge7571340 has joined #asahi-dev
03:22thelounge7571340 has quit [Remote host closed the connection]
03:27Dcow has joined #asahi-dev
03:33duban6 has quit []
03:35duban6 has joined #asahi-dev
03:35Dcow has quit [Ping timeout: 480 seconds]
03:53chadmed has joined #asahi-dev
03:58nicolas17 has quit [Quit: Konversation terminated!]
04:02chadmedtook the time to grab a freq-response curve from macos on j314: https://chadmed.github.io/res/macos.png, made the right decision to not copy this imo
04:02chadmedif that phase/delay data is accurate thats... very fun
04:03chadmedhttps://chadmed.github.io/res/linux.png <-- SotA via pipewire at the moment, just gotta smooth out the mids a bit
04:04chadmedbump at 50hz is just mains hum
04:07chadmedi should note that i bumped the codec gain limits to 15 instead of 9 since i have no intention of ever using this machine without pipewire. the curve is pretty much identical at the normal limit though, just quieter by a few dB
04:25thelounge7571340 has joined #asahi-dev
04:25thelounge7571340 has quit [Remote host closed the connection]
04:41millenia_ has joined #asahi-dev
04:49millenia_ has quit [Ping timeout: 480 seconds]
05:10chadmed has quit [Quit: Konversation terminated!]
05:10Dcow has joined #asahi-dev
05:10chadmed has joined #asahi-dev
05:13chadmed has quit []
05:18Dcow has quit [Ping timeout: 480 seconds]
05:26thelounge7571340 has joined #asahi-dev
05:26thelounge7571340 has quit [Remote host closed the connection]
05:46Dcow has joined #asahi-dev
05:55Dcow has quit [Ping timeout: 480 seconds]
06:13marcanso I think the only major issue with the new kernels is the tipd i2c thing?
06:13marcando we have any good repros for that? I still haven't seen it myself...
06:14marcanI *think* I can get tipd i2c physically out the Type C ports with my glasgow/arduino rig, so I can use that to debug if needed, but first I need a repro...
06:16marcantpw_rules: the kernel gained /lib/firmware/vendor as a load path
06:16marcanother than that no
06:17svenI haven’t been able to reproduce it here but I think jannau can reproduce it reliably
06:28thelounge7571340 has joined #asahi-dev
06:28thelounge7571340 has quit [Remote host closed the connection]
06:43marcanrmk: if you have a tree with review comments addressed I can try to merge it into mine to make sure we don't diverge into a mess
06:43marcanthen if I end up having to rearchitect that thing we won't lose review state
06:43marcan(thanks for trying to upstream this, and sorry that it's become such a mess)
06:46jannauI can reproduce the tipd issue easily on the m2 macbook with asahi-dev without HV
06:47jannauI think the issue might be acessing tipd too quickly after an interrupt
06:49jannaucurrent minimal workaround are udelay(200) before read/write in tps6598x_block_read and tps6598x_block_write
06:50jannaureproduction is disconnecting and reconnected usb-c devices/charger a couple of times
06:51jannaufails usually at 1-3 try
06:54jannauthere is also issue with dart/iommu device probing. most likely affecting devices with multiple darts like usb, audio on t600x, pcie
06:55jannauworks fine if all darts are probed first, i.e. workaround is to build dart not as module
07:00millenia_ has joined #asahi-dev
07:09millenia_ has quit [Ping timeout: 480 seconds]
07:10jannauChaosPrincess: kbd pwm driver works on m2
07:31thelounge7571340 has joined #asahi-dev
07:31thelounge7571340 has quit [Remote host closed the connection]
08:00millenialhackeris pwd driver in another branch? I'd like to try it out
08:01jannaupwd? the keyboard pwm driver is not yet merged. it is https://github.com/AsahiLinux/linux/pull/57
08:02marcandammit. recoveryOS doesn't have libffi, which is needed for ctypes to work.... argh!
08:03marcannow how do I work around this...
08:03millenialhackerI saw the kernel patch raised yesterday, thought it was already in one AsahiLinux/linux branches
08:08rmkmarcan: I've been talking to robh in private about improving the dt schema checks, and it sounds like some of my suggestions are being acted on... quite different from Krzysztof's attitude.
08:09marcanrmk: Krzysztof has... a certain attitude, that's for sure
08:10marcanhm, now how do I fix this... is there some way to invoke lzfse decompression in RecoveryOS? or just... bundle img4tool?
08:11marcanor maybe I can just include libffi
08:11millenialhackermarcan what are you doing? I arrived late to party so miss context
08:11marcaninstaller releng
08:12marcanI'm tempted to just vendor the .dylib into our installer repo and call it a day
08:13millenialhackeris there any plans to have a GUI installer (is it even possible?)
08:13chadmed has joined #asahi-dev
08:14marcanit's possible, but no solid plans here
08:14marcanmaybe one day once I run out of other things to do
08:15marcanlooks like the homebrew dylib might work, let's go with that
08:16chadmedmillenialhacker: someone was working on implementing one in qt but thats vapourware now
08:18millenialhackerI could try to help there, I mean I tried RE ISP and I couldn't progress too much so I could try to do something more according to my skills lol
08:21gladiac has joined #asahi-dev
08:23marcanit would be nice to have a wizard-style installer
08:24marcannot sure how much of the code could be shared. I guess probably the most reasonable thing would be to rewrite most of main.py and then change the other modules to report progress/errors via some kind of callback or abstraction, instead of just printing messages to stdout.
08:24marcansome of the main.py logic could probably be moved to shared code (like some of the decisions around what operations to offer and enumerating partitions)
08:35millenialhacker wizard style with distro choose, that would be my ideal scenario
08:40thelounge7571340 has joined #asahi-dev
08:40thelounge7571340 has quit [Remote host closed the connection]
08:49Etrien has joined #asahi-dev
08:51chadmedif you use pyqt5 you probably wouldnt need to change much in the current installer since you could probably just import its methods and call into them
08:52chadmedid suggest tkinter so you could run it in 1tr but i wouldnt wish tkinter on my worst enemy
08:52VinDuv has joined #asahi-dev
08:55Etrien__ has quit [Ping timeout: 480 seconds]
09:00VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
09:00VinDuv has joined #asahi-dev
09:05millenialhackerwhy not a fully native ObjectiveC app xD
09:05millenialhackerI assume apple native apps should be able to run in 1TR
09:08chadmedyeah id assume youd at least have swiftui
09:09Etrien__ has joined #asahi-dev
09:09chadmedbut then youd need to figure out how to call in to the installer, or modify it so that you can just run it externally with some parameters fed to it
09:13Etrien has quit [Ping timeout: 480 seconds]
09:13chadmed has quit [Quit: Konversation terminated!]
09:15___nick___ has joined #asahi-dev
09:16___nick___ has quit []
09:16chadmed has joined #asahi-dev
09:16chadmed has quit []
09:18___nick___ has joined #asahi-dev
09:18chadmed has joined #asahi-dev
09:20chadmed has quit [Remote host closed the connection]
09:22chadmed_ has joined #asahi-dev
09:22chadmed_ is now known as chadmed
09:41thelounge7571340 has joined #asahi-dev
09:42thelounge7571340 has quit [Remote host closed the connection]
09:50millenialhacker has quit [Remote host closed the connection]
09:51millenialhacker has joined #asahi-dev
09:54millenialhacker has quit [Read error: No route to host]
09:54millenialhacker has joined #asahi-dev
09:54millenialhacker_ has joined #asahi-dev
09:58millenialhacker has quit [Read error: Connection reset by peer]
09:58millenialhacker has joined #asahi-dev
09:58millenialhacker has quit [Remote host closed the connection]
09:59millenialhacker has joined #asahi-dev
09:59millenialhacker has quit [Remote host closed the connection]
09:59millenialhacker_ is now known as millenialhacker
10:00millenia_ has joined #asahi-dev
10:01millenia_ has quit [Remote host closed the connection]
10:01millenia_ has joined #asahi-dev
10:01millenia_ has quit [Remote host closed the connection]
10:02millenia_ has joined #asahi-dev
10:03millenia_ has quit [Remote host closed the connection]
10:03millenia_ has joined #asahi-dev
10:03millenia_ has quit [Remote host closed the connection]
10:16millenia_ has joined #asahi-dev
10:18chadmedi think the best solution to the energy model thing long term is going to be to specify the voltages in the DT
10:22marcanpyqt5 should work in recovery mode as long as we bundle it
10:23marcanwe already established it's not too big to bundle
10:23marcanmillenialhacker: I'd rather the installer be maintainable by other people, most of us aren't familiar with swiftui
10:23marcanpyqt5 makes more sense IMO
10:24marcanchadmed: why do we need the voltages?
10:25chadmedthe code that registers the energy model via the opp table does so by assuming there are VRMs associated with the core linked to the opp table in question. VRMs are enumerated by looking for the number of opp-microvolt props in the DT. if no VRMs are found, the energy model is not registered
10:27chadmedive been looking at changing that behaviour so if there are no VRMs associated && opp-microwatt is present, it still works. however, the core OPP code uses arch-native unsigned longs in all the relevant structs and functions, so using of_property_read_{u32,u64} makes the compiler very sad
10:30millenialhacker_ has joined #asahi-dev
10:30chadmedfwiw we dont actually need to describe the VRMs in their entirety for this to work, i confirmed that just having opp-microvolt in the pstates is fine last night (see logs)
10:31marcanso here's the fun thing: Lina discovered yesterday that that's not constant
10:31millenialhacker_ has quit []
10:31marcanthere's minor variation in microvolt values between pcore tables from machine to machine
10:31marcanapparently my M1 Studio and jannau's disagree
10:32chadmedoh its the same on the cpu cores too?
10:32marcanyeah, I thought they were always the same (in my cursory looks in the past) but apparently not, or not any more
10:33chadmedidk what assumptions other arches make about the size of these dt properties, i dont really want to start going through changing shared code willy-nilly :(
10:33marcanI'm not opposed to making m1n1 forward that, same as Lina did for the GPU, but only if those values are actually meaningful
10:33marcanthe DT properties should have constant sizes regardless of arch
10:33marcanwhat's the problem exactly?
10:34millenialhacker has quit [Ping timeout: 480 seconds]
10:36marcanchadmed: the bindings don't say anything about types for these fields, which is arguably a bug, but I think the intent is clearly that opp-microwatt is u32
10:37marcansee drivers/opp/of.c for how to parse it
10:37marcanu32 array, more specifically
10:37marcan(in case of multiple regulators)
10:38marcanOTOH, that entire binding is arguably silly
10:38marcanthe binding implies this is to configure regulators
10:38marcanas in some kind of cap
10:38marcanwhich is different from a power level you'd use for EAS
10:38chadmedyeah i dont really know why opp-microwatt got tied to all of this
10:38marcanso maybe that binding should be changed, and just have that field dropped to a single u32 representing total power for this entry
10:39marcanhow does EAS work exactly anyway?
10:40chadmedno clue how the actual scheduler makes decisions, but the cpufreq driver registers the device with the energy model system, and then schedutil can use that power information along with capacity-dmips-mhz to optimise for J/inst or something like that
10:40marcanthat makes sense
10:41chadmedthe opp-microwatt property was specifically added so that DT platforms could just provide opp-microwatt in the opp table and have the kernel do everything else without intervention by using that register_em_with_opp function as the callback for .register_em
10:41chadmedso i have no idea why it got tangled up with all this VRM crap, it was specifically added to NOT do that...
10:43thelounge7571340 has joined #asahi-dev
10:43thelounge7571340 has quit [Remote host closed the connection]
10:45chadmedoh i see whats happened
10:45marcanchadmed: Look at dev_pm_opp_of_register_em. It looks for microwatt, if it finds it, it elides the calculations.
10:45marcanif that doesn't work, that's a bug
10:46chadmedyeah i see whats wrong, they have a function that looks for the property BUT it only finds the property if it finds opp-microvolt first, the check is nested inside an if statement that is false if theres no opp-microvolt
10:46marcanyeah, opp_parse_supplies
10:46marcanthat needs fixing
10:46chadmedyeah i might make the _of_has_opp_microwatt_property thing actually check for the property instead of what happens now
10:47marcanthat won't work
10:48marcan_get_dt_power still does the same thing with the OPP
10:48marcanusing the OPP is correct
10:48marcanopp_parse_supplies just needs to be fixed so it doesn't assume everything needs a voltage
10:49marcanwhich might need some rework, but that's kernel dev for you :)
10:51marcanlooks like the way it works is it looks for regulators to find the count, if it doesn't find them, it assumes 1 for the purposes of parsing the table, which is what you'd want
11:02marcanchadmed: untested patch: https://mrcn.st/p/baH3NSlh
11:03marcanprobably some syntax errors there :p
11:03chadmedlet me reboot into linux
11:03chadmed has quit [Quit: Page closed]
11:11chadmed has joined #asahi-dev
11:24gabuscus_ has joined #asahi-dev
11:25gabuscus has quit [Ping timeout: 480 seconds]
11:42chadmed has quit [Quit: Konversation terminated!]
11:47uur has joined #asahi-dev
11:53thelounge7571340 has joined #asahi-dev
11:53thelounge7571340 has quit [Read error: Connection reset by peer]
11:55marcanok, pushed new (hopefully working) asahi-installer to alx.sh/dev, with all the random things we've picked up over time
11:55marcanimproved APFS resize limits checking, the new firmware extractors, firmware.cpio, and the new repair and m1n1 upgrade options
11:55marcanrepair fixes botched step2.sh and cases where apple nuked our boot policy (it just redoes the last step of the installation)
11:55marcanm1n1 upgrade does what it says on the tin
11:56marcanif you run m1n1 upgrade from recoveryOS paired with asahi, it'll do it all inline
11:56marcanotherwise it'll trigger a reboot/step2.sh path
11:57marcanthe repair option also works inline from paired mode (if paired recoveryOS actually works)
11:57uur has quit [Remote host closed the connection]
11:57marcanalso, I promoted M2 to non-expert, and dropped 12.1 from the ipsw list
11:57marcanrandom message improvements and probably other things I forgot
12:02uur has joined #asahi-dev
12:07Dementor has quit [Remote host closed the connection]
12:08svenfive fixed magic MMIO pokes later and it’s still not working :(
12:08Dementor has joined #asahi-dev
12:11uur has quit [Remote host closed the connection]
12:12uur has joined #asahi-dev
12:14chadmed has joined #asahi-dev
12:16chadmeddo you mind having a look at this? it works, the EM is registered but as you could probably tell with my bumbling around macaudio im not very good at this :P
12:19chadmedoh hang on i left a debug print in there
12:22chadmed has quit [Quit: Konversation terminated!]
12:28chadmed has joined #asahi-dev
12:32Dcow has joined #asahi-dev
12:34uur has quit [Remote host closed the connection]
12:36uur has joined #asahi-dev
12:38chadmed has quit [Quit: Konversation terminated!]
12:40chadmed has joined #asahi-dev
12:57thelounge7571340 has joined #asahi-dev
12:57thelounge7571340 has quit [Remote host closed the connection]
13:12___nick___ has quit []
13:33uur has quit [Remote host closed the connection]
13:57thelounge7571340 has joined #asahi-dev
13:58thelounge7571340 has quit [Remote host closed the connection]
14:17thasti(looking at macsmc_power.c): is it actually correct that POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW is returned in seconds, as opposed to minutes? i'm seeing in asahi that i3status tries to interpret this uevent property as minutes...
14:19wyes has joined #asahi-dev
14:25thastitwo random kernel drivers I just checked (bq27xxx and cw2015) return it in minutes
14:29thastioh no, it's only the cw2015, the bq27xxx also does it in seconds. great
14:32jannauthasti: it's interpreted correctly by kde
14:34thastithanks jannau - thought so. looks like this cw2015 driver (and in turn i3status) is broken instead.
14:58uur has joined #asahi-dev
14:58thelounge7571340 has joined #asahi-dev
14:58thelounge7571340 has quit [Remote host closed the connection]
15:02uur has quit [Remote host closed the connection]
15:08uur has joined #asahi-dev
15:26millenia_ has quit []
15:51Retr0id8 has joined #asahi-dev
15:51Retr0id has quit [Read error: Connection reset by peer]
15:51Retr0id8 is now known as Retr0id
16:00thelounge7571340 has joined #asahi-dev
16:00thelounge7571340 has quit [Remote host closed the connection]
16:05uur has quit [Remote host closed the connection]
16:09uur has joined #asahi-dev
16:22uur has quit [Remote host closed the connection]
16:24wyes has quit [Quit: Leaving]
16:50uur has joined #asahi-dev
16:52uur has quit [Remote host closed the connection]
16:56uur has joined #asahi-dev
16:57uur has quit [Remote host closed the connection]
17:01thelounge7571340 has joined #asahi-dev
17:02thelounge7571340 has quit [Remote host closed the connection]
17:07chengsun_ has quit [Ping timeout: 480 seconds]
17:11chadmed has quit [Remote host closed the connection]
17:34gladiac has quit [Quit: k thx bye]
17:56nicolas17 has joined #asahi-dev
18:09thelounge7571340 has joined #asahi-dev
18:09thelounge7571340 has quit [Remote host closed the connection]
18:15uur has joined #asahi-dev
18:15ChaosPrincess has quit [Quit: WeeChat 3.6]
18:16ChaosPrincess has joined #asahi-dev
18:20___nick___ has joined #asahi-dev
18:28chengsun has joined #asahi-dev
18:30pthariensflame has joined #asahi-dev
18:44uur has quit [Remote host closed the connection]
18:46chengsun has quit [Ping timeout: 480 seconds]
18:50pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
19:05yuyichao has quit [Quit: Konversation terminated!]
19:06yuyichao has joined #asahi-dev
19:12thelounge7571340 has joined #asahi-dev
19:12thelounge7571340 has quit [Remote host closed the connection]
19:20jluthra_ has quit [Remote host closed the connection]
19:20jluthra_ has joined #asahi-dev
19:27tpw_rulesso is a scenario known or anticipated where some firmware will actually need to be loaded by the initrd or is this just to make management easier?
19:29tpw_rules(and avoid "first boot" sorts of problems)
19:32tpw_rulesi guess there is the usb controller firmware on some machines
19:33tpw_rulesso if you are booting off USB you would need that in the initrd. barf
19:33tpw_rules(though u-boot couldn't find that drive _anyway_ so)
19:39nicolas17fun edge cases
19:40nicolas17apparently Apple contemplated the edge case where you're booting macOS off a USB drive connected to the USB hub on the Studio Display, in which case it won't let you install software updates on the display
19:41jannauyou can have the esp/kernel/initrd on the nvme and the root partition on usb
19:43jannaubut the main advantage is that it is much simpler and you don't have to fight with udev to avoid races
19:45tpw_rulesarch runs udev in the initrd, right
19:53kazuki has joined #asahi-dev
20:07___nick___ has quit [Ping timeout: 480 seconds]
20:09c10l5 has joined #asahi-dev
20:09c10l has quit [Ping timeout: 480 seconds]
20:27thelounge7571340 has joined #asahi-dev
20:27thelounge7571340 has quit [Remote host closed the connection]
20:43pthariensflame has joined #asahi-dev
20:43pthariensflame has quit []
20:45jluthra_ has quit [Read error: Connection reset by peer]
20:45jluthra has joined #asahi-dev
21:02ChaosPrincesswould someone with a M2 machine mind running this kernel https://github.com/AsahiLinux/linux/pull/62 and then running sudo hexdump -C /dev/mtd0 | grep nvram ?
21:03ChaosPrincessalso, this one has a very small but non-zero chance of making you have to restore os via dfu restore
21:28thelounge7571340 has joined #asahi-dev
21:28thelounge7571340 has quit [Remote host closed the connection]
21:46SSJ_GZ has quit [Read error: No route to host]
22:19Etrien has joined #asahi-dev
22:19nicolas17ChaosPrincess: I have M2 MBP but I'd need some handholding through the process...
22:20nicolas17ah hm if there's a risk of needing DFU restore I may need to backup some stuff too :D
22:23Etrien__ has quit [Ping timeout: 480 seconds]
22:35thelounge7571340 has joined #asahi-dev
22:35thelounge7571340 has quit [Remote host closed the connection]
22:39Etrien has quit [Read error: Connection reset by peer]
22:40Etrien has joined #asahi-dev
22:51Etrien__ has joined #asahi-dev
22:53Etrien has quit [Ping timeout: 480 seconds]
22:56nicolas17such as, how do I build a kernel with the appropriate config for a mac?
22:57nicolas17ChaosPrincess: ^
22:57kazuki is now known as kazuki_
22:57kazuki_ is now known as kazuki__
22:57ChaosPrincessdo you already have asahi installed
22:58ChaosPrincesszcat /proc/config.gz
23:06nicolas17once I compile it how do I install it? the kernel readme says "if you have lilo you can just run 'make install'" and that sounds outdated as hell (lilo?!)
23:07ChaosPrincessyou run make install, then make modules_install, and then reconfigure your bootloader to see the new kernel
23:07ChaosPrincessi am assuming it is grub, so you will have to run grub-mkconfig
23:08nicolas17damn, I *was* using all 8 cores for something else earlier but that didn't bring up the fans at full speed like this kernel build is doing :D
23:14nicolas17ChaosPrincess: I think 'make install' actually overwrote my existing kernel
23:14ChaosPrincesslook in /boot, if it did, it moved it to the same name but with .old at the end
23:15ChaosPrincessbut it is weird and it really shouldnt have done that
23:15nicolas17the one I installed is vmlinux and the repo one is vmlinuz
23:23nicolas17ok, I built the kernel from git asahi branch (so it doesn't even have your pull request), and it just hangs on startup showing a text cursor and 10 seconds later it reboots
23:24ChaosPrincessyou are probably missing an initrd or somethng
23:25ChaosPrincessanyway, im off to sleep for today, its getting super late
23:28nicolas17yeah pretty sure it's the initrd
23:34nicolas17booted self-built kernel \o/
23:34nicolas17now to try your PR
23:41thelounge7571340 has joined #asahi-dev
23:41thelounge7571340 has quit [Remote host closed the connection]
…