2021-08-15
00:13alyssamaz: I see an #if 0'd teardown function in your pcie patch, any chance you remember whether that's still needed?
00:30alyssakettenis_: giving you a co-authored-by credit, though it looks like your u-boot patch doesn't have a signed-off?
00:56HaoYanQi[m] has joined #asahi
01:29chadmedso when we say get "SMP" working, does this include proper HMP support or can we only treat the firestorm and icestorm cores identically?
01:30chadmedik linux has an ARM HMP scheduler but ive never experimented with it so idk how easy it is to get working properly
01:38alyssachadmed: I just mean 8 penguins show up. Which is not the case if you boot linux through kettenis's u-boot since u-boot and m1n1 fight over the spintable.
01:51riker77_ has joined #asahi
01:56riker77 has quit [Ping timeout: 480 seconds]
01:56riker77_ is now known as riker77
02:37phiologe has joined #asahi
02:41PhilippvK has quit [Ping timeout: 480 seconds]
02:41alyssaIf it makes me feel any better, they'll be bikeshed so hard on the lkml it doesn't really matter what I initialize the file to in v1...
03:40JTL has quit [Quit: WeeChat 2.9]
03:40JTL has joined #asahi
03:45apetresc has joined #asahi
03:49marvin24_ has joined #asahi
03:53marvin24 has quit [Ping timeout: 480 seconds]
03:53chadmedhm ok ive had a read of some HMP scheduling docs and its looking like quite the effort to get it working properly. schedutil is responsible for doing the actual task scheduling, which it does by polling the energy model for the device. if im reading correctly, cpufreq-dt can do this with some device tree data, but what data it requires is ambiguous
04:24chadmedoh ok wow its actually very simple, theres basically two ways to do it. the easiest given the way the dt is laid out now would be to just add capacity-dmips-mhz bindings to each core, which can be scaled relatively or be absolute dmips/mhz measurements that we can just calculate using a benchmark bound to only one cpu
04:25chadmedthe other way is refactoring the dt core layout to be split the firestorm and icestorm cores into clusters and decribe their behaviour as clusters but we dont need to do that
04:44chadmedyeah its a feat, but afaict all that the kernel needs from us at this stage to get it working is that dt binding for each core and the scheduler can sort the rest out transparently
05:42pipcet[m]does that actually work though? I mean, telling the scheduler about it is one thing...
06:13chadmedwell thats something we'll have to test i guess. the arm manuals say that this is how you do it, and i dont think we really have a reason to doubt it
06:15chadmedlook at some rockchip and allwinner dts, they have operating poitns tables that presumably get read by cpufreq-dt/whatever dvfs driver they use, so the freq-voltage curve might be worth coaxing out of macos to get finer grained power management to go with the HMP scheduling, assuming of course we ever get that level of control over the chip
06:19chadmedwe will have to implement something like this at some point though so mobile users can get decent power management, or we'll have a situation like the A1708 macbooks and later where linux battery life is terrible and charging is spotty
06:20pipcet[m]I think battery life isn't terrible with the pearl/corellium kernel, but people might disagree :-)
07:39go4godvin is now known as Guest4408
07:46saintdevI just wanted to say thanks for the dev logs, I really enjoy reading what's going on behind the scenes. Thanks for all your hard work!
08:35kwilczynskikettenis_: Just FYI before someone else notices and send you to the netiquette - HTML e-mails are a no-no on the around kernel mailing lists. :) Make sure you send plain text.
08:46Andalu30 has joined #asahi
08:56besmirich[m] has joined #asahi
10:07bps2 has quit [Remote host closed the connection]
10:07bps2 has joined #asahi
11:03jelly has quit [Read error: Connection reset by peer]
11:03jelly has joined #asahi
11:14gabuscus_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
11:14gabuscus has joined #asahi
11:14tophevich[m]kettenis_: never use anything from your ISP but the internet (I'm in the industry, we (telecoms) only want to bundle you in our products in a bad way to keep you between a rock and a hard place when trying to leave for a less worse service)
11:19tophevich[m]read VAS (value added services) as laying stones in the way out of the gardn to recude churn -> make it painful as possible to leave
11:20tophevich[m](no I'm not bitter)
11:29tophevich[m]Third party vendors also sell this as a feature to ISPs. It's a sepcial feature that you can't take the 3rd party product/service with you. If you buy it directly, you can use it everywhere. But if you buy it OTT via your ISP, it is locked to your ISP account, and by explicit design you can't (read: are not allowed to) transfer, yay!
11:29tophevich[m]sorry, that was the last of it ...
11:42jannauj_ey: https://gist.github.com/jannau/a1f8f055a48b8aa9daa5f2383caa34ea looks like the best have available
11:44kwilczynskikettenis_: No worries. :)
11:46Andalu30 has quit [Ping timeout: 480 seconds]
11:50pipcet[m]alyssa: so, brcmfmac works with a few changes, most of them because I'm stupid and didn't read the error messages right :-)
12:35arahael has joined #asahi
13:43Andalu30 has joined #asahi
13:52Andalu30 has quit [Read error: Connection reset by peer]
13:58alyssakettenis_: I also had to add a hack (copying values from m1n1's fdt to u-boot's) to get the simple-framebuffer working in linux after enabling it in u-boot
13:59alyssaat any rate, unless we're doing the init in u-boot spl, I'm not thrilled about depending on u-boot proper for boot. and since the hard parts are already done in m1n1 (thank you!) getting the m1n1->Linux path to have proper init seemed like a good idea.
14:31jeffmiw has joined #asahi
15:32artemist has quit [Quit: artemist]
15:33pipcet[m]alyssa: which hard parts are those (not trying to be confrontational, just wondering whether m1n1 grew any new features while I wasn't looking)?
15:35artemist has joined #asahi
16:16pipcet[m](I still have my enable-all-clocks in place before I ever hand off control to m1n1, so...)
16:47kettenis_but maybe that is because the openbsd bootloader detects an EFI GOP framebuffer and creates the appropriate node in the fdt
16:51kettenis_one of the issues with linux on arm is that there are too many different ways to boot a kernel ;)
17:11daftfrog[m] has joined #asahi
17:16s-h-i-n-o-b-i_ has joined #asahi
20:16akemin_dayo has joined #asahi
20:41elosant[m] has joined #asahi
20:49akemin_dayo has quit [Ping timeout: 480 seconds]
21:21Graypup_ has quit [Quit: meow]
21:22Graypup_ has joined #asahi
21:29akemin_dayo has joined #asahi
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi
22:05alyssaj_ey: I am not to be trusted around device trees, cherry picking https://github.com/kettenis/linux/commit/7b4a4e507738defcc5865cb6511f31e5341f7a7f in which obviously conflicts with your gpio/spi patch fwiw
22:27j_eythe gpio_ranges in that patch look "wrong" compared to my ones which work / based on what corellium did
22:34apetresc has quit [Quit: ZNC 1.8.2 - https://znc.in]
22:47alyssaj_ey: i'm trying to do a messy pcie rebase, but you get a nice rebase of your own gpio series as a result, freeloader ;-P
22:50alyssaj_ey: mu-one/pcie-v2-3 has your branch (as it looked last week..) rebased on top of kettenis_ 's gpio dt
22:50alyssawhich was step one for rebasing on top of kettenis_ 's pcie dt which is .. much harder ...
23:01jeffmiw has quit [Ping timeout: 480 seconds]
23:41brentr123[m]alyssa: Haha gorilla glue is supposed to fix anything
23:43brentr123[m]Reminds me of the flex tape memes with the guy that claims to fix anything with it, even repairing a sawed boat