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:03chadmedhttps://chadmed.github.io/res/linux.png <-- SotA via pipewire at the moment, just gotta smooth out the mids a bit
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: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: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:49jannaucurrent minimal workaround are udelay(200) before read/write in tps6598x_block_read and tps6598x_block_write
06:54jannauthere is also issue with dart/iommu device probing. most likely affecting devices with multiple darts like usb, audio on t600x, pcie
07:00millenia_ has joined #asahi-dev
07:09millenia_ has quit [Ping timeout: 480 seconds]
07:31thelounge7571340 has joined #asahi-dev
07:31thelounge7571340 has quit [Remote host closed the connection]
07:59millenialhackerisinyaaa
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:02millenialhackerhaha, pwm *
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:10marcanhm, now how do I fix this... is there some way to invoke lzfse decompression in RecoveryOS? or just... bundle img4tool?
08:11millenialhackermarcan what are you doing? I arrived late to party so miss context
08:13millenialhackeris there any plans to have a GUI installer (is it even possible?)
08:13chadmed has joined #asahi-dev
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: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: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:23marcanmillenialhacker: I'd rather the installer be maintainable by other people, most of us aren't familiar with swiftui
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:31millenialhacker_ has quit []
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: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:38marcanso maybe that binding should be changed, and just have that field dropped to a single u32 representing total power for this entry
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: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:45marcanchadmed: Look at dev_pm_opp_of_register_em. It looks for microwatt, if it finds it, it elides the calculations.
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:46chadmedyeah i might make the _of_has_opp_microwatt_property thing actually check for the property instead of what happens now
10:48marcanopp_parse_supplies just needs to be fixed so it doesn't assume everything needs a voltage
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: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:57marcanthe repair option also works inline from paired mode (if paired recoveryOS actually works)
11:57uur has quit [Remote host closed the connection]
12:02uur has joined #asahi-dev
12:07Dementor has quit [Remote host closed the connection]
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: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:33jannauand seconds is correct: https://github.com/torvalds/linux/blob/master/include/linux/power_supply.h#L23
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: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:43jannaubut the main advantage is that it is much simpler and you don't have to fight with udev to avoid races
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: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:56nicolas17https://github.com/AsahiLinux/docs/wiki/SW:Getting-started links to https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart which doesn't exist
22:57nicolas17https://github.com/AsahiLinux/docs/wiki/Tethered-Boot-Setup-(For-Developers) has some broken-syntax link to "DesktopKernel"
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: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: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:41thelounge7571340 has joined #asahi-dev
23:41thelounge7571340 has quit [Remote host closed the connection]