2022-02-19
00:30boardwalk has quit [Quit: The Lounge - https://thelounge.chat]
00:31mrtoby[m] is now known as MrToby[m]
01:06yuyichao_ has quit [Ping timeout: 480 seconds]
02:00DragoonAethis has quit [Quit: hej-hej!]
02:00DragoonAethis has joined #asahi
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi
03:16yuyichao has joined #asahi
03:26PhilippvK has joined #asahi
03:29phiologe has quit [Ping timeout: 480 seconds]
03:48kov has quit [Quit: Coyote finally caught me]
03:51kov has joined #asahi
04:12axboe_ has quit [Quit: leaving]
04:47atka has quit [Ping timeout: 480 seconds]
05:28atka has joined #asahi
05:58Glanzmannkov: When you change anything in the partitioning through macos, the partition numbers will be ordered in the order they're on the disk. So if you use the debian installer or parted to create the paritions and later change something in macos (including reinstalling the stub) the partitions will be reordered.
05:59Glanzmannkov: However other than a new parition number won't happen. If you create the partitions for Linux using diskutil in macos the order will not change since it is alread in order.
06:38eroux has joined #asahi
06:43sirn- has joined #asahi
06:49GlanzmannI just had my first real power loss on the mini. Guess the electronic heater, electric kettle and coffee machine was a little bit to much for the fuse. No data loss. ;-)
06:49sirn has quit [Ping timeout: 480 seconds]
06:49sirn has joined #asahi
06:56sirn- has quit [Ping timeout: 480 seconds]
07:27rkjnsntpw_rules, if you use Firefox, I have found this extension to be eminently useful: https://addons.mozilla.org/firefox/addon/open-in-browser/
07:27willemml has joined #asahi
07:27rkjnsnIt lets you open any browser-supported file in the browser itself, regardless of the server-sent mime type or content disposition.
07:29rkjnsnGreat for quickly looking at PDF files that try to force you to download them, as well as viewing files that you know are plain text but the browser doesn't.
07:34s1gtrap[m] has joined #asahi
07:34GlanzmannBut that is becase I use it mainly as a workstation, and I have all my data on remote systems, so I don't care if I loose a second. Also I have a battery ...
07:35eroux_ has joined #asahi
07:40eroux has quit [Ping timeout: 480 seconds]
07:42Misthios has quit [Quit: Ping timeout (120 seconds)]
07:42Misthios has joined #asahi
07:50rkjnsnThat was on macOS using F_BARRIERFSYNC instead of F_FULLFSYNC. If I understand correctly (which it sounds like maybe I don't…), whereas F_FULLFSYNC ensures the data is written to persistent storage F_BARRIERFSYNC, merely ensures that the data written before the sync hits persistent storage before data written after it, but it is still not guaranteed to be written when the call returns. My thinking was that if the underlying functionality used by
07:50rkjnsnF_BARRIERFSYNC was used for fsync instead of doing a flush, it could hopefully ensure that users of fsync would be guaranteed internal consistency of whatever made it to disk, even if there was the possibility for lost writes.
07:54marcankernel tree cleanup, distro work, installer, maybe look at the SPMI driver a bit but it's not critical
07:58GlanzmannThanks to your rtc patch it is much more pleasent to install Debian, tested it yesterday with the latest spmi branch from jannau. Works pretty good.
08:02GlanzmannThe debian installer itself uses 'ntpdate' so that is not the issue, but once the fresh debian is installed, it had the wrong date and no ntpdate, so it was difficult to install new packages, but with the rtc that is now easy.
08:10sri has joined #asahi
08:21eroux_ has quit []
08:27willemml has quit [Quit: willemml]
08:58sri has quit [Quit: Leaving]
09:17psykose has quit [Remote host closed the connection]
09:18psykose has joined #asahi
10:27eroux has joined #asahi
11:42GlanzmannAlso something hangs for me on reboot, have to find out what though. Will report if I find it. It has something to do with the new kernel.
11:43mpspovik: yes, with syncing t8103.dtsi from kernel with u-boot audio card works, sorry again for false alarm
11:48Glanzmannj`ey: Yep, that is what I spend a whole day on after marcan released rtc/reboot/power-off and janau did the missing device trees for t8103 devices.
11:48kettenisnote that now that the device trees are in sync, there is no downside of using the kernel DTs from the asahi kernel branch instead of the ones from u-boot
11:50j`eycool poweroff working, with no change in size to the kernel, i guess it all fitted in some padding/alignment
12:05Glanzmannpovik: On the air I get 'https://pbot.rmdir.de/Le1TbtOudZPGvCodmhlW0g' when I start alsamixer. And alsamixer hangs.
12:07j`eymarcan: just noticed from Glanzmann's dmesg "OF: Bad cell count for /soc/spmi@23d0d9300/pmu@f"
12:08mpsGlanzmann: also on MBP with kettenis's asahi u-boot branch sound card is not detected on boot, with dtbs from kernel and from u-boot
12:09mpspovik: it is detected with jannau's u-boot and dts copied from kernel there and rebuilt u-boot
12:11mpspovik: with kernel dtbs I got this `apple-mca 238400000.mca: bad or missing apple,mclk-range property`
12:20mpspovik: now card is detected and alsamixer work but got this in dmesg with mpv playing audio https://tpaste.us/aZnN
12:26GlanzmannBut alsamixer seems to try to connect to pulse: https://pbot.rmdir.de/qpevWGeqzyj2QFZiWhKkpg
12:49mpskettenis: jannau posted patch which enable loading compressed kernel by u-boot but I can't find url now
13:35___nick___ has joined #asahi
13:37eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:37___nick___ has quit []
13:39___nick___ has joined #asahi
13:40___nick___ has quit []
13:42___nick___ has joined #asahi
14:13marcanit's trying to translate through an untranslatable boundary because stupid legacy broken dts reasons, or something
14:35joerg has joined #asahi
14:35joerg is now known as Guest293
14:36Guest293 has quit []
14:40joerg1 has joined #asahi
14:41Glanzmanntpw_rules: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blob_plain/refs/heads/master:/bootstrap.sh
14:43joerg1 has quit []
15:18axboe has joined #asahi
15:32mps`sound/soc/apple/mca.c:951:41: note: in expansion of macro 'dev_err'` `dev_err(&pdev->dev, "no %s DMA channel: %d\n",`
15:38axboe has quit [Quit: leaving]
15:40axboe has joined #asahi
15:43axboej`ey: yeah I know, just talking about the feature patches and fixes I stacked on top of 'asahi'
15:47axboeand they often just abandon the tree once the product is shipped, it's not a long term maintained thing :/
15:49axboewould be nifty with some page cache stats that show you how much space you're wasting there with 16k pages
15:50axboethough I probably personally save more by just using FF instead of chromium than I waste in the page cache ;)
16:02grgy has quit [Quit: ZNC 1.8.2 - https://znc.in]
16:03grgy has joined #asahi
16:27axboetpw_rules: yep pro with 6 p cores, just compiling my for-next release kernel that I use in qemu for local testing
16:28tpw_rulesoh, huh. i got about 25% slower on the regular m1 mini. but for some reason once or twice it was only 10% slower
16:29axboetpw_rules: that's huge - since my compile is not that big, linking is probably skewing the numbers on my side in terms of raw compile speed differences
16:30kettenispovik: we still nedd a way to express the speaker layout on the laptops in the device tree
16:32mpsalso I have slowdown about 20-25% when building kernel, but on some other things it as around 10%
16:36tpw_ruleskettenis: does your u-boot asahi branch have all the same stuff as the old m1-m1n1-nvme one?
16:44jannaukcbench was 10% slower with 4k pages on my 10 core m1 max, doing 21-23 build per hour, so 2.5 to 3 minutes per build (iirc all cores at 2 Ghz)
16:45axboetiming allmodconfig, let's see how big of a difference it is here with all the crap enabled
16:50Glanzmannjannau / j`ey / marcan: If you have a air hooked up to the mini, is it possible to issue reset using some magic thing?
16:50Glanzmannpovik: I don't know if you do, but you could run the kernel in the hypervisor, than you can reboot without my help.
16:55myon98 has quit [Ping timeout: 480 seconds]
17:02svenThe harder part is figuring out how to do that in a sane way so that it can be upstreamed ;)
17:02povikbtw i can't bring up the laptop speakers with simple-audio-card or audio-graph-card as they are
17:03povikif there is special compatible for the mac's audio cards, then the order of speakers can be fixed i guess
17:04povikmeaning for a given amount of speakers, a specific layout is assumed and the speakers are placed in the layout based on their order in some sound-dai= list
17:05kettenisto me, the right approach would be to actually add a label to the tas5770l codecs to indicate their position
17:06povikbut on the other hand the devicetrees are supposed to describe hardware, not drivers, i guess
17:07ketteniswell, I think or OpenBSD I would like to use the stereo downmix capability of the tas5770l
17:13poviki should do the RFC for other reasons beyond the binding, and doing it with the fixed speaker order initially is easiest
17:29Glanzmanntpw_rules: I was looking for a clicky keyboard that is low. That is why I bought it and I like it.
17:29GlanzmannBut I also have some thinkpad usb keyboards with trackpoint I also like them a lot mainly due to the trackpoint.
17:29tpw_rulesGlanzmann: sorry, that wasn't a criticism. a lot of those fancy gaming keyboards use a different usb protocol. does it have a "bios mode" or something?
17:32Glanzmannpovik: I see, here also some errors that should be fixed, but I think axboe already has a patch in his tree. https://pbot.rmdir.de/xcBEAa8KhcIkOJ0deCDnpw
17:49Glanzmannkov: About the keychron. I'm using this settings, so that all the keys are where they belong: https://pbot.rmdir.de/3jMZHZgHUvFC6KKu2U5neQ
17:51Glanzmannkov: Me, too. But what I did not manage at the moment on the air is that I can switch option and command key and at the same time to be able to type german umlauts by doing right alt + a u ...
17:54kovGlanzmann, hmm how did you switch command and option? I used gnome's tweak tool to selected that 'alt and win are swapped' option and I seem to be able to use the right-side option key for the special characters option + s => ß
17:55kovI wonder how tweak does it, I suppose it's libinput settings, but I know very little about this (more than I wanted to know already)
17:58kovhmm looks like it sets dconf keys, so need to look into gnome settings daemon probably https://github.com/GNOME/gnome-tweaks/blob/1aa39325396754476061f58ac3f3dc84a49bea0c/gtweak/tweaks/tweak_group_xkb.py#L137
18:04kovand having opt/command as parameters to the module will be much better than using the tweaks trick ;D
18:05kovtpw_rules, yes! it's been applied and in theory has already been pulled into the stable branch as well
18:06mpsI use this setup with awesome wm, and I have two left-alt keys, lazy to assign one of them for something useful :)
18:06kovtpw_rules, yeah, I'm writing a comment about that idea of building specifically for M1, let me know if you want me to relay anything
18:07tpw_ruleskov: i mean basically i want to relay that the idea of having default binaries that break on M1 makes me sad. if you want to have a tweak to set it back to 4k if you want max performance or whatever and are building it yourself, then i suppose that's okay
18:08kovtpw_rules, I'm basically saying that it's more common to do custom builds for the embedded platforms than for m1
18:08povik> [ 18.252168] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
18:19svenalmost all commands go through the io queue, no need to waste that space for the admin queue
18:21kovtpw_rules, basically because they no longer needed it for RHEL and users were seeing it and enabling it without understanding what they were doing heh https://bugs.webkit.org/show_bug.cgi?id=227905
18:22kovI haven't looked in detail on the reason for the crash but from their talking about bmalloc I'm wondering if it's related to some kind of alignment requirements
18:25svenI’ve always enabled them with bootargs because I usually don’t have any userland but I believe it’s also possible to enable them in sys
18:31GlanzmannI have not, because povik is using my mine and my wifes air to develop speaker support. But he is not logged in, so let me try.
18:40Glanzmanntpw_rules: So I did replug my keyboard between usb-a and usb-c and typped a few characters to verify that it works.
18:41Glanzmanntpw_rules: This is with what is currently in bootstrap.sh I rebuild it with the latest sound and kernel warning patch. Also u-boot is coming from that (with the device tree from the kernel).
18:42tpw_rulesallegedly u-boot is using the same device trees as the kernel but maybe that is not the case
18:42Glanzmannpovik: Sound also works on the mini through the speakers. Now my daughter asks for her song ...
18:43kovtpw_rules, I'm doing some more reading on libpas (the bmalloc replacement, impressive how much work went in since I was active =P) and it seems to use 16k as the smaller page size it cares about, I guess it's no surprise Apple has basically started using 16k as *the* page size ;P
18:52willemml has joined #asahi
18:58tpw_ruleshm, now my config boots okay but i get this strange "unexpected GFP" kernel warning: http://ix.io/3Q5e
19:00tpw_rulesi didn't change my config at all, i thought it wouldn't be necessary because all the new stuff is default ARCH_APPLE
19:14tpw_rulesgrr, something is unstable. i keep having random hangs and reboots. i assume there is a watchdog cause i don't see a kernel panic
19:22willemml has quit [Quit: willemml]
19:23sri has joined #asahi
19:36jannauI see occasionally rcu stalls or hangs during boot, testing with dcp so that could be the cause here
19:37tpw_rulesi just see a normal boot sequence, except it stops at some random point and 10 seconds later the machine resets
19:48Glanzmannsven: After upgrading the kernel, the mini does no longer detect the m1n1 proxy on the air, any ideas?
19:48Glanzmannsven: https://pbot.rmdir.de/jVYHqmxczhWTAXWvcR-Ngw https://pbot.rmdir.de/yy_bARGOSDLL3vSKtT4WcQ I rebooted the air with the m1n1 multiple times.
19:51sri has quit [Ping timeout: 480 seconds]
19:52sri has joined #asahi
19:53jannauwhich usb port do you use on the mqc mini? type-a or type-c? is usb hotplug on the usb-c connectors working?
19:59bps has quit [Ping timeout: 480 seconds]
20:01willemml has joined #asahi
20:03le0n has quit [Quit: see you later, alligator]
20:03willemml has quit []
20:03le0n has joined #asahi
20:06GlanzmannNo idea what this is about. The superspeed cable came with an eizo monitor to use it as hdmi-over-usb-c cable and to my knowledge I did not replug or tocuh it.
20:07bps has joined #asahi
20:10boardwalk has joined #asahi
20:17tpw_rulessven: is this related to what you were investigating? i just got an rcu stall message before the watchdog bit me
20:19jannautpw_rules: yes, it halts completely. The rcu stall is supposed to print a backtrace but doesn't. sometime it halts without rcu stall message
20:19GlanzmannAs you can see it worked later when I switched to the usb-a. But it messages which are above are all from usb-c tries. I tried several times by rebooting the air.
20:19axboe has quit [Quit: leaving]
20:21axboe has joined #asahi
20:25jannauGlanzmann: not necessary, The messages I'm looking for are just printed to the serial console and not to the screen
20:49tpw_rulesyes, all the commands seemed to execute successfully but grub didn't come up with a menu
20:54axboe has quit [Quit: reboot]
20:56axboe has joined #asahi
20:58atka has quit [Quit: WeeChat 3.4]
20:58Glanzmannmps: Thank you for your /sys/module/hid_apple/parameters/ reminder. Now everything works for me (caps lock is control; german umlauts and meta alt swap)
20:59axboetpw_rules: I ran on a 5950x and 12900k for comparison, and x1 is completing it too (but that'll take a while)
21:02Glanzmannaxboe: That are my 5950x numbers: linux 5.10 allmodconfig: Kernel: make -j 64 V=0 &> /dev/null 12184.35s user 1387.42s system 3075% cpu 7:21.31 total
21:04axboeGlanzmann: these are test boxes, and I use them for peak runs hence disable mitigations, prune config etc
21:05axboeGlanzmann: hmm, is your ram clock right? sad to say I ran mine for quite a while before figuring out the bios set the ram speed way too low
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:10Glanzmannaxboe: I see. ram clock is right. I use the following configuration. RAM speed is maximum that I can get with 128 GB ram and that board:
21:10GlanzmannThe board can detect ecc errors and has remote management board and the chassis is only 1U. That is why I choose it.
21:17bps has quit [Ping timeout: 480 seconds]
21:36Glanzmannpovik made the speakers work on the macbook air. There is no patch yet. Just noise. :-)
21:42Glanzmanntpw_rules: The artefacts that you're using were compiled on Debian stable amd64 using a cross compiler.
21:42tpw_rulesi am compiling using a cross-compiler too. i think there is a difference in the kernel config
21:42tpw_rulesthough i am using gcc 9 instead of 10. i hope the issue is not something that sensitive
21:45tpw_rulesmeanwhile my 6 core xeon thinkpad which is like 30% slower still is sitting here screaming and melting stuff on my desk
21:45GlanzmannNo, it doesn't. Unless povik is doing sound tests that do not wake up the rest of the family int he same room.
21:45axboemy experience on my m1 laptop is that a "normal" compile (which is ~3 min) doesn't spin the fan at all
21:45axboethe allmodconfig does turn it in after 5 min or so, but it's still way less fan than on an x1 or (god forbid, I had one of these before) a p1
21:47kovtpw_rules, Glanzmann one thing I noticed on my testing is that the M1 chips seem to prefer C++/Rust compilation to C
21:49kovI tend to use building the rust compiler as my benchmark and the difference between the M1/M1 Max and my intel machines is massive
21:50kovaxboe, that'd be great! I'd really like to see 5950x and 12th gen numbers if you have the time
21:50Glanzmannaxboe: OUt of curiosity, could you run this on your m1? taskset -c 0 sysbench --memory-oper=read --memory-block-size=128M --memory-total-size=128G --threads=1 memory run
21:50axboepartial to doing kernel compiles as a) that's what I do, and b) no real external requirements for cross compiling
21:51kovthe thing that got me hooked originally was the compile times they were advertising for WebKit (I used to work on WebKitGTK)
21:53kovj`ey, hah, but then I lose the C++ part (I still have to compile WebKit and Chrome for work - and for the 16k patches ;D)
21:54kovaxboe, yeah, I've done a cross-compile to x86-64 once to see if it made a difference, it's close enough
21:54jmr2 has joined #asahi
21:54Glanzmannaxboe: I compared that to my 5950x, but did not notice that I was running on an e-core and was a bit disappointed. My ryzen can go around 30 GB/s
21:54le0n has quit [Quit: see you later, alligator]
21:54le0n has joined #asahi
21:56GlanzmannI see. This is 5950x with the slow ram timing: https://pbot.rmdir.de/6WUvToakl4haXrcWWmRjRA
21:57jmr2Glanzmann: regarding your USB issue: how old is your version of m1n1? I'm wondering if commit e1a7deb could help you (it's not included in the installer yet). More details in issue 101.
21:57Glanzmannaxboe: This is with the fast ram timing on a system that has only 2 slots and no ecc ram: https://pbot.rmdir.de/occeGOdlOtnNDKmBYA3zVQ
21:58kovaxboe, btw you probably want to do 2 runs, as it downloads a bunch of stuff, so what I did was I ran the build once, deleted build/{bootstrap,aarch64-unknown-linux-gnu}, then timed the second run (making sure no ccache or sccache was on the way of course hehe)
21:59jmr2Glanzmann: on a different topic, I'd suggest to add the following CONFIG_ to the wiki: GPIO_MACSMC CHARGER_MACSMC APPLE_PLATFORMS APPLE_SMC APPLE_SMC_RTKIT
22:00tpw_rulesjannau: if i use CONFIG_PREEMPT instead of CONFIG_PREEMPT_VOLUNTARY, it works properly. i couldn't get it to hang in 15 or so boots, whereas with VOLUNTARY it hung every other boot or so
22:00jmr2I think I'll let you do it - you know which rules you've used to determine what to add and not so far.
22:02j`eyPREEMPT means all(ish) kernel code is preemptable, preempt_voluntary means the kernel has some explicit preemption points
22:09jmr2 has quit [Quit: Page closed]
22:22axboerougly same ratio as kernel compile for 12900k, m1 does proportionally better on rust c++ compile than the 5950x compared to the kernel C compile
22:31sri_ has joined #asahi
22:31sri has quit [Read error: No route to host]
22:35kovaxboe, looks great, seems like more recent intel are much better than older ones (at least the ones that gobble power)
22:42kovaxboe, ok, found my notes here, I got 11:30 on macos and 15:23 on the linux 8-core VM running a standard distro kernel on my m1 max
23:08kovjust repeated the build on my m1 mini, 21:50, the fact I got ~16m on macos makes me think there may be some more 'need to enable L3 cache' that haven't been found heh
23:23kovtpw_rules, same time as which one? or do you mean the vm did it in the same time as linux bare metal?
23:23tpw_rulesiirc the 4k page size VM did it in almost exactly the same time as 16K bare metal but with no cpufreq driver
23:24tpw_rulesi think macos was able to make up the time lost with 4k pages by actually speeding up the P-cores
23:25Gaspare has joined #asahi
23:40willemml has joined #asahi
23:41willemml has quit []