#
…

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:37alyssachadmed: Oh, er, not sure
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:41alyssaDT bindings turn my head into mush
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:42alyssabig.little is hard but has been around a decade now.
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 :-)
06:28kettenis_alyssa: odd that you have issues spinning up the other cores with u-boot
06:28kettenis_u-boot leaves those cores alone
06:29kettenis_this must mean the memory for the spin table/code isn't properly reserved
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:14everslickseconded!!!
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:11kettenis_ah crap, i suppose i shouldn't send mail using my isp's webmail
11:12j_eyjannau: do you still have the GPIO trace log?
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:43j_eyjannau: thx
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:58alyssaSo maybe there's something especially buggy with my config
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:13alyssapipcet[m]: PCIe tunables
16:13alyssaCorellium does it in their linux driver, Asahi does it in m1n1
16:13alyssakettenis_: wrote the m1n1 code
16:15pipcet[m](can you apply those without turning on the clock on the macbooks, though?)
16:16pipcet[m](I still have my enable-all-clocks in place before I ever hand off control to m1n1, so...)
16:43kettenis_alyssa: that's odd since simple-framebuffer works for me in openbsd
16:43kettenis_i can even run X
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 ;)
16:52pipcet[m]clearly someone needs to invent a new, better one, to replace all of them!
16:53tophevich[m](xkcd reference detected: https://xkcd.com/927/)
17:04alyssakettenis_: could be? 🤷
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:08alyssacurrently rebasing pcie driver on top of kettenis_ 's device tree. fun time.
22:09alyssanow it's not even probing. fun time!
22:24alyssa-MODULE_DEVICE_TABLE(of, gen_pci_of_match);
22:24alyssa+MODULE_DEVICE_TABLE(of, apple_pci_of_match);
22:24alyssathis was suggested by kernel build bot
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:43alyssaj_ey: it seems to work for me
22:43alyssawith some manual patching to add the clocks back in
22:43alyssaOoh, on the nub you mean
22:44alyssathat.. should probably be fixed yes
22:44j_eyyep, I thought you might get at least an error in dmesg
22:46alyssafixed the nub one, dunno about the aop etc
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:50j_eyheh, I already rebased it yesterday! but gitlab is still down
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 ...
22:51alyssaonto pcie-v2-4
23:01jeffmiw has quit [Ping timeout: 480 seconds]
23:31alyssaported over to kettenis_ 's bindings 👍
23:39alyssajust working through the mountain of feedback 😇
23:40alyssahow could so much duct tape and gorilla glue be wrong? :P
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
…