#
…

2021-10-18

00:10rohin2 has quit [Ping timeout: 480 seconds]
00:10jmr2alyssa: a last unprompted one - how about this ? http://paste.debian.net/plainh/a24bdf8c
00:11rohin2 has joined #asahi
00:11jmr2code, just in case http://paste.debian.net/plainh/528995ac with xxd -r / -p postprocessing
00:18jmr2 has quit [Quit: Page closed]
01:10rohin2 has quit [Ping timeout: 480 seconds]
01:27Serentty[m]I’ve partitioned space for it and installed M1N1. How should I go about installing Linux. Is there a write-up somewhere? I’m okay with something manual like extracting a tarball and setting it up from the command line. I’m just not sure what I should download in terms of a kernel, if I need any patches, and stuff like that.
01:44Serentty[m]This guide seems to be quite out of date.
01:45Serentty[m]Or is it not?
01:54alyssajmr2: Ah ha
01:55alyssaThose all seem to be way too short..
01:56alyssaI suppose that could explain the parse fail, though
01:56alyssaunless it just be like that on the macbooks
02:05jmr2 has joined #asahi
02:07alyssaNo, it's not cut off. It's just short on the macbook air. nice.
02:08jmr2I had a doubt whether dcp->chunks.length was 8-bit or 32-bit, but I really feel it's 8-bit.
02:09alyssajmr2: Yeah, this is right.
02:09alyssaI see what's happening now.
02:09jmr2Stards with D3 as expected, and I dumped twice with different segment size. Both dumps were identical, so I'm fairly confident I got it right.
02:09alyssaThank you so much for grabbing that unsolicited dump ;-)
02:10jmr2Glad I could help. Ping me it you need somethiing else, I'll keep an eye on this channel.
02:10alyssa^ Here's the data you sent as JSON (from https://github.com/AsahiLinux/dcp-parser )
02:10alyssaI suppose I should take a look at a macbook air ADT next..
02:12c10l has quit [Quit: The Lounge - https://thelounge.chat]
02:12jmr2That's... something I have no idea how to create at this time.
02:13c10l has joined #asahi
02:14alyssam1n1 has a script for it but there's PII in them by default IIRC
02:14alyssaI think there are redacted ones floating around
02:15jmr2I'll have a look. No promises though.
02:17alyssajmr2: Anwyay, so there's no problem parsing
02:17jmr2Could the macOS version used to install m1n1 have an impact?
02:17* alyssais typing
02:18alyssaEr wait yes
02:18alyssaDCP firmware version
02:18alyssaslightly diferent from what you said but
02:18alyssaYou're on 11.4 right?
02:18alyssaEverything should be broken otherwise.
02:18jmr211.6 on MacOS, 11.5.2 I think on the Linux stub.
02:18alyssayes that could have an impact..
02:18chadmedSerentty: if youve already got m1n1 installed then the developer quickstart guide should still be accurate to follow on from. nothing about that process has changed materially, marcan just made a script to automate some of it
02:18PhilippvK has joined #asahi
02:18marcanalyssa: we need to figure out how to encode this in the DT
02:19alyssamarcan: thanks for volunteering to write the m1n1 patch
02:19marcanonce we agree on how
02:19alyssajmr2: https://rosenzweig.io/rm.txt this is worth a try
02:19alyssamarcan: me? DT?
02:19alyssaask robher :-p
02:19* alyssadoesn't care if the DT is purple and upside-down
02:20marcanI guess I should scrape all existing IPSWs and first determine if iBoot version always bumps together with DCP version
02:20alyssamarcan: the other question is, how do I know the physical size of the display?
02:20marcanif it doesn't then we need to use something else
02:20marcandidn't DCP tell you?
02:20alyssafor HDMI and presumably DisplayPort, this is in the productattributes dict
02:20jmr2I could try to install the 11.4 stub tomorrow, and redo the dump.
02:20alyssaAt least on whatever version jmr2 is on, DCP doesn't tell you for the internal panel on the macbook
02:21alyssaSo either it gets hardcoded in the linux DT, or maybe it's passed through the ADT
02:21alyssaMinor thing but apparently is breaking the DCP driver on Macbooks right now
02:22phiologe has quit [Ping timeout: 480 seconds]
02:22marcanI don't see it in any obvious place in the DT
02:23alyssaAlright.
02:23alyssaI guess that needs to go in the macbook air / pro DTs resprectively then.
02:23jmr2Confirmed - my Linux stub is 11.5.2.
02:24marcanyeah I don't see it
02:25alyssawidth-mm/height-mm panel props are a thing on linux
02:25marcanyeah, we should probably just use that
02:25alyssastill annoying as hell
02:26chadmedwould that mean a separate DT for each size macbook?
02:26marcanthat's already going to be a thing
02:26marcanthey are different models
02:26marcanwe will have a DT for each model
02:27marcanit's not just the screen size
02:27chadmedah right
02:30rohin has quit [Quit: Konversation terminated!]
02:31alyssamarcan: I suppose on the Mini side, I'm currently hardcoding some stuff for HDMI
02:31alyssaso that all has to get described in the DT too. meh.
02:33rohin2 has joined #asahi
02:35alyssaOoh, this is what drm_bridge is for.
02:36alyssaI see how to do this now. and with 100% generic code if I don't screw it up :]
02:39Serentty[m]<chadmed> "Serentty: if youve already got m..." <- Can I boot it without sending commands over a serial connection? That’s what the instructions seem to say to do.
02:39jmr2alyssa: just installed a 11.4 stub, and the three lengths are the same. I'll need a bit more time to compare the contents.
02:39alyssaswitch to drm_bridge, use display connector bridge, describe HDMI in the mini DT, describe panels in the macbook DTs, everyone is happy.
02:40alyssajmr2: did you apply the rm diff I sent?
02:40jmr2Not yet. That's my next step.
02:40alyssahandling the macbook case properly takes a lot more work (see ^^), but for now you can just skip it tbh
02:40chadmedSerentty: you can concatenate the device tree, kernel and m1n1 into a single macho binary and have m1n1 chainload the kernel. its in the quickstart, a bit further down i believe
02:48Serentty[m]Alright. I’m going to build the kernel now. It’s complaining about the lack of a GNU toolchain targeting AArch64 Linux. Can I use Clang and LLD instead?
02:49chadmedyeah just add LLVM=1 LLVM_IAS=1 after make
02:49chadmedm1n1 has some problems with clang i think though so it might be worth investing the time into building an AArch64 gnu toolchain
02:50nobodynada has joined #asahi
02:50jmr2alyssa: ah, beat you to it! If you check in my "for when you're bored" patch & dmesg from earlier today, I was already forcing non-zero values into width_cm and height_cm.
02:50jmr2That leads to a frozen display, an unhandled D211 callback, vblank wait timouts and lots of interesting stuff.
02:51jmr2(same result currently - I'm still forcing those, even if I no longer do the corruption that you pointed out)
02:52jmr2But still - let me try commenting that out instead.
02:56Serentty[m]Hm... It says “restart config” and it wants me to go through the kernel configuration. I copied the file to .config like it said.
02:56chadmedyou should run menuconfig or nconfig and set the kernel up properly. it will stop it from doing that. theres probably some new options in the kernel that arent in your .config or vise versa
02:59jmr2alyssa: same with your patch - frozen screen, D211 and vblank timeout.
03:06Serentty[m]chadmed: Now I’m going through the kernel configuration. Is page size something worth thinking about?
03:06chadmedthe M1 uses 16K pages so as long as that's set you should be fine. not sure on the status of sven's 4K patches rn.
03:16Serentty[m]scripts/sorttable.c:27:10: fatal error: 'elf.h' file not found
03:16Serentty[m]That’s strange.
03:17jmr2alyssa: and unless I screwed up, the ColorElements/TimingElements/DisplayAttributes are the same regardless if I boot from an 11.4 or an 11.5.2 stub.
03:20marvin24 has joined #asahi
03:21Serentty[m]Oh man, I’m running into all of the errors described in this article which I found by searching.
03:22chadmedoh youre trying to build on macos lmao yeah that'll do it
03:22Serentty[m]Are you saying that I need to be on Linux already to compile Linux?
03:24marvin24_ has quit [Ping timeout: 480 seconds]
03:32jmr2 has quit [Remote host closed the connection]
03:35kov has quit [Quit: Coyote finally caught me]
03:36kov has joined #asahi
04:08Glanzmannrross101: Thank you I improved my instructions also based on what you found out: https://ab34.de/u/asahi.txt
04:14phire has quit [Ping timeout: 480 seconds]
04:16GlanzmannSerentty[m]: That is how I isntalled Linux on my m1 using alyssa instructions.
04:17Serentty[m]I get a 404.
04:20sajattack[m]Serentty: why do I keep running into you everywhere? 🤣
04:21Serentty[m]Because I’m everywhere.
04:23Serentty[m]Oh, this is using the proxy client, though. I need to do concatenation to get it to work.
04:23Serentty[m]I don’t have a serial cable.
04:23marcanあっ!!金曜日は間に合わなくて、週末は郵便局が閉店なので今日行ってみましたが、お名前も必要みたいです!すみません…:sweat_drops:
04:23marcanbad paste
04:24marcan... how did that even happen. something something right click menu
04:24marcanSerentty[m]: I was going to say, yeah, *usually* you'd be building linux kernels on linux
04:24marcandoesn't have to be ARM linux though
04:24Serentty[m]Oh, it just occurred to me. Does anyone have a Mach-O image with M1N1, the kernel, the device tree, and the initramfs? I just tried it with the kernel I built, but it didn’t detect it.
04:24marcandid you use the gzipped kernel?
04:25marcanthis is for running under the hypervisor?
04:26chadmeddamn konversation doesnt play nice with fcitx...
04:26GlanzmannSerentty[m]: You only need a usb-c to usb-c cable and a second linux box.
04:26Serentty[m]I don’t think it is. Just booting in general.
04:26Serentty[m]Glanzmann: I don’t actually have any other computers in the house with a USB-C port.
04:26GlanzmannSerentty[m]: USB-C also does it.
04:26GlanzmannSerentty[m]: Do you have a USB-A to USB-C Cable than?
04:27marcanSerentty[m]: you usually would not embed Linux kernels into m1n1 for booting stand-alone
04:27Serentty[m]How can I boot standalone, then?
04:28marcanfor an end-user system, you'd embed U-Boot into m1n1 and use that as a second stage, but we don't really have guides for that nor is it in the installer because right now we only expect kernel devs to be booting things and developing using another system as a host
04:28Glanzmannmarcan: How can someone pass linux command line parameters with a concatted m1n1? So how can I run this with concatted m1n1? M1N1DEVICE=/dev/ttyACM0 proxyclient/tools/linux.py --bootargs="net.ifnames=0 rw root=/dev/nvme0n1p4 rootwait rootfstype=ext4" Image.gz t8103-j274.dtb
04:28marcanGlanzmann: you can't, you need to put them in the device tree right now. I've been meaning to add some mechanism for that.
04:28Glanzmannmarcan: But I think the linux kernel can embedd a linux default command line, can't it?
04:28marcanyes, either in the kernel or the DT
04:29marcanI'm just saying there's no way to tell m1n1 to do it separately
04:29marcanbut you can use either of those methods
04:29marcanI use the DT
04:29marcanjust put the commandline in /chosen/boot-args
04:30Serentty[m]So right now, the only way to boot is with serial every time? Or making M1N1 binary with U-Boot?
04:30GlanzmannSerentty[m]: No, as marcan said you put the kernel command line in the dt under /chosen/boot-args
04:30marcanI mean you *can* embed a kernel into m1n1 and boot it, but it'd be silly because you'd have to go to 1TR and run kmutil every time you want to change the kernel
04:30GlanzmannThan you concat m1n1, kernel and dt and copy to the boot volume and bless it with kmutil.
04:31marcanthat's why the production setup will use U-Boot
04:31GlanzmannIn your case you have to do that two times, one for booting from usb, and than for the final one booting from the nvme.
04:32marcanin my opinion there really isn't a good reason for people to be putting kernels straight into the boot object, especially at this point in the game... but I won't stop you if you really want to do it that way :)
04:32GlanzmannSerentty[m]: But it is much easier if you just go to amazon and buy a cable, if you don't have one. You just need a second linux box with a usb port and the right cable to hook it up to the m1.
04:32marcanGlanzmann: macos works too
04:32marcanand yes, any USB-C to USB-A or USB-C cable (depending on your other side) will work, nothing fancy
04:33marcanyou don't need a serial cable, just a USB cable will do
04:33marcanserial is a special thing
04:33Glanzmannmarcan: I mean the m1n1 as desktop is usable, I'm typing on it right now. And if you don't play a lot with the kernel, maybe you just want to be able to turn it on and use it. But yes, probably you will compile kernels every few days.
04:33marcansure, but given how things are in flux...
04:34marcanlike, I won't stop people from doing it, but it's going to make debugging a nightmare and just isn't terribly useful, so you're kind of on your own if you really want to do that
04:34marcanwhat this is telling me is I need to get the U-Boot flow sorted out because enough people want to use this already :p
04:35chadmedyeah i dont see a reason for directly embedding the kernel unless you really, _really_ hate u-boot or something
04:36Glanzmannmarcan: How will that work? m1n1 loads uboot, uboot has a nvme driver and reads the kernel from the nvme?
04:36Glanzmannchadmed: Or you just want a workstation that boots when you turn it on.
04:36Serentty[m]This is the command that I ran:
04:36Serentty[m]cat m1n1.macho Image.gz t8103-j274.dtb initramfs-linux.img.gz > ~/payload
04:37marcanSerentty[m]: put the kernel last
04:37Serentty[m]And then I put the payload file on my APFS volume and call it m1n1.macho.
04:37marcandid you run kmutil?
04:37Serentty[m]Okay, thanks.
04:37chadmedGlanzmann: you can build u-boot so that it runs non-interactively, when was the last time you had to point your android phone to its device tree and kernel?
04:37Serentty[m]marcan: Nope. But it did find M1N1 and boot it.
04:37marcannope, it didn't
04:37marcanthat was your old m1n1
04:38marcanm1n1.macho doesn't do anything on its own, you need to install the boot object from 1TR (booting with the power button held down). This is why this is a pain in the ass and not recommended.
04:38marcanwhen you run step2.sh it copies m1n1.macho into the proper place and updates the boot policy
04:38marcanthis is part of secureboot and requires authenticating against the SEP and only works from 1TR
04:38marcanso it is absolutely required to go through this process every time
04:38marcanthat is why I think it makes no sense to embed kernels this way
04:39Serentty[m]cat m1n1.macho t8103-j274.dtb initramfs-linux.img.gz Image.gz > ~/payload
04:39Serentty[m]Is that the correct order?
04:40Serentty[m]marcan: Can I run the step2.sh file on my Linux volume from recovery to update this?
04:40marcanyes, as long as you put m1n1.macho next to it (you might need to remount read-write as macos likes to mount system volumes read-only by default)
04:47Glanzmannmarcan: What is missing for uboot? Is kettenis not already doing it for OpenBSD?
04:48Glanzmannmarcan: Where do I get the dt for the macbook air?
04:48marcanthere is no canonical MBA devicetree yet
04:48Serentty[m]Well, now it’s saying that the custom kernel failed to boot, so that’s progress.
04:48marcanu-boot works, it's just not upstream yet and I haven't integrated it with the installer / build stuff
04:49marcanSerentty[m]: how big is your image? there's a payload size limit
04:49marcan64MB by default right now
04:49Serentty[m]It’s only about 25 MiB.
04:49Glanzmannmarcan: I see. Where do I get the uboot from, are there any instructions I can try?
04:49marcandon't ask me, getting that part sorted out is on *my* TODO list :)
04:50marcanthere's a reason it's not in the installer yet
04:50marcanagain, this is why I'm only targeting kernel devs willing to boot tethered right now...
04:53Serentty[m]By the way, there’s no filesystem or anything for it to boot off of. That shouldn’t be the issue, right? Like, if that were the issue, I would see Linux try to boot but complain, right? It wouldn’t just reboot without showing anything?
04:53GlanzmannSerentty[m]: Correct.
04:54Serentty[m]I think I’ll leave it here for today.
04:54Serentty[m]I’ve learned a bit more about the boot process.
04:55Serentty[m]I could try the USB method next time. The funny thing is that the only other Linux machine that I have in this house (other than mobile stuff) is a PowerMac G3. Using that would be kind of funny.
04:56Glanzmannpovik: I would like to try the audio driver, where can I get it from and do you have any instructions for it?
04:57Serentty[m]Using a PowerMac to boot an ARM Mac, completely skipping over x86. There’s some poetry to it.
05:07marcanyou can use any Linux or macOS machine as the host side
05:07marcanprobably windows too if you try hard enough
05:08rohin2 has quit [Ping timeout: 480 seconds]
05:10Serentty[m]I’ll probably use the PowerMac G3 then. It’s not fast, but it should be fast enought to run this I would imagine.
05:13Serentty[m]It’s kind of neat how this machine which came with Mac OS 8 can still be useful thanks to Linux. :D
05:14marcanI imagine compiling kernels on that won't be a great experience, but it should work
05:16Serentty[m]Oh, I compiled the kernel earlier in a Linux VM on my M1 Mac.
05:16Serentty[m]I’ll just transfer it over.
05:16Serentty[m]But that’s for another day at this point.
05:21Glanzmannjmr2: If you do any progress on the macbook air, let me know, I would like to reproduce that.
05:23Glanzmannmaz: Can you send me the URL to your m1 kernel tree, please? I would like to try it out.
06:15svenpovik: those are "documented" somewhere in the logs of this channel :(
06:15svenbut i'm about to finally get back to nvme
06:15svenjust want to submit another version of that 4k iommu series first
06:15svenpovik: but can just use marcan's reset controller to make ANS work again after it's been initialized once
06:16svenit's not the "proper" way without sending the shutdown commands first but it'll work fine
06:20Glanzmannsven: What are the next steps for NVMe?
06:20svenclean it up and then submit it
06:20sventhen figure out all the things i did wrong during review and clean those up as well
06:22GlanzmannI see, nice. :-)
06:22Glanzmannsven: I only noticed that random writes under Linux feel slow. I compiled fio yesterday under macos to compare performance, but it does not run.
06:23Glanzmann80 4k randrom writes: Jobs: 80 (f=80): [w(80)][0.0%][w=5765KiB/s][w=1441 IOPS][eta 01d:17h:36m:30s]
06:23bps has joined #asahi
06:23sveni'll first focus on getting a working version upstream. then i can look into making it faster if required
06:26Glanzmannsven: I agree. I look forward for m1/nvme to hit upstream. :-)
06:26Glanzmannsven: Have you managed to get fio running under macos?
06:26svenhaven't even tried
06:27GlanzmannI compiled it yesterday, but it does not run: https://pbot.rmdir.de/DvieNwRso9vFe6NzwEkolQ
06:27sventhere's a reason i want to run linux on these machines ;)
06:52gabuscus_ has joined #asahi
06:56gabuscus has quit [Ping timeout: 480 seconds]
07:16Glanzmannsven: Allocating 80GB of ram when you have only 16 might be a bad idea. If I only allocate 1 GB of RAM, fio works on macos. There is a hugh performance difference: 4k random writes: 50 vs 34.4k. See here: https://ab34.de/u/m1-nvme-performance-linux-vs-macos-2021-10-18.txt
07:17GlanzmannBut you're right, lets get that driver upstream first.
07:17GlanzmannBecause a slow nvme driver is much better than none. :-)
07:18DarkShadow44 has quit [Quit: ZNC - https://znc.in]
07:19DarkShadow44 has joined #asahi
07:19j_eyGlanzmann: Im just using the mini dts on my macbook air for now
07:28marcangoing to work on m1n1 for a bit on -stream
07:28j_eymarcan: anything in particular?
07:29marcanpmgr device state fixes, cpufreq init, maybe add a bootargs=foo thing for payload mode
07:29j_eydoesnt matter Ill watch anyway
07:29j_eybootargs=foo is nice
07:30* j_eyhas been known to rebuild the kernel to change CONFIG_CMDLINE
07:40povikthere's also branch audio-w-dcp with some version of the DCP driver merged into it
07:40poviklet me upload my .config somewhere
07:43povik^ this is .config i am building audio-w-dcp with
07:45svenGlanzmann: huh, that's a surprisingly large difference
07:45svenespecially because all that performance stuff should be handled by the regular linux nvme code
07:46mazGlanzmann: try *what* out? my tree is at git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git , but there is no single M1 branch. rather a collection of series.
07:55Glanzmannj_ey: Than I'll do that do, do you have x11 running on the air?
07:55j_eyGlanzmann: nope
07:55Glanzmannmaz: I heard you have a frankenstein kernel with some corellium parts and asahi, I would like to try that.
07:56Glanzmannj_ey: But the framebuffer is working?
07:56j_eyGlanzmann: yes
07:57Glanzmannsven: Yes, i noticed when I installed my first deb using apt, but could not pinpoint it until I got fio working on macos.
07:57Glanzmannsven: I'm doing some linear tests as well.
08:00rross101 has joined #asahi
08:01Glanzmannsven: Maybe it has something todo with large pages? Linear is better and has higher iops even with 1MB block size. So for linear writes with 1MB block size it is 2.7GB/s (macos) vs 1.7 GB/s (Linux). https://ab34.de/u/m1-nvme-performance-linux-vs-macos-2021-10-18.txt
08:02sventhe nvme page size is 4k
08:02svenit also doesn't go through DART
08:03mazGlanzmann: no, I have no such thing. I don't touch the corellium stuff at all.
08:07Glanzmannmaz: I see.
08:07Glanzmannmaz: Than I confused you with someone else.
08:07mazGlanzmann: no worries
08:08poviki used the same words to describe pipcet's kernel, maybe you mixed that up
08:09j_eywell thats what alyssa's branches are too
08:09povikbut i was first to call it frankenstein!
08:09povik(maybe)
08:10Glanzmannpovik: Might be.
08:10aleasto has joined #asahi
08:10Glanzmannsven: I did some more testing, good news the random writes is the only one where we're really slow. All others have room for improvement but have the same ball park figures: https://ab34.de/u/m1-nvme-performance-linux-vs-macos-2021-10-18.txt
08:11GlanzmannBasically I did linear read/write with 1MB block size and random read/write with 4k block size. all queue depth 1.
08:12Glanzmannpovik: [RE audio branch and config] I'm currently sitting in the car waiting for my wife to finish some doctors appointment but once I'm back on my desk, I'll try that, thank you.
08:13povikgreat, let me know how it goes. expect only the speaker on mac mini working
08:13povikno other output devices will be there
08:14Glanzmannj_ey: About the m1 mabook air: Do you have the built in keyboard?
08:14povikalthough i have a working prototype of audio_jack.py :-p
08:15j_eyGlanzmann: yes, using corelliums spi+keyboard driver
08:15mazsound? and I was trying to prevent the mini from making that sound at on reset... ;-)
08:15mazs/at//
08:15j_eymaz: boot into macOS, you can turn it off!
08:15sveni hear a dremel or similar tools should work fine for that
08:16povikmaz: yeah. i had an opposite reaction, i wanted more of it!
08:17mazj_ey: booting into macos involves finding a keyboard and a screen... I think I like sven's approach better.
08:17j_eymaz: his approach may void your warranty
08:18mazj_ey: I'll survive that.
08:24svenyou could also write a spi driver and write to that nor flash to disable the bootup sound from linux - but where's the fun in that?
08:26j_eysven: well we'd have a SPI driver for one thing :P
08:26everslick_ has quit [Remote host closed the connection]
08:26mazI'm not indifferent to non-invasive surgery, but given that I already have the tooling... :D
08:26everslick_ has joined #asahi
08:27rross101 has quit [Quit: Page closed]
08:43Glanzmannj_ey: Do you have your tree somewhere?
08:44Glanzmannj_ey: Do you have wifi running on the mabook air? If so do you have instructions how to get it running?
08:48j_eyGlanzmann: I dont have wifi, but I think jmr2 did. alyssas branch has the code but you need the firmware and some way to set it up
08:49j_eymy branch is here.. https://gitlab.arm.com/linux-arm/jg-open/-/tree/m1-keyboard but maybe I should spend a bit of time to redo it to make it easier to cherry-pick
10:00bps has quit [Ping timeout: 480 seconds]
10:10bps has joined #asahi
10:23bps has quit [Remote host closed the connection]
10:24bps has joined #asahi
10:34Glanzmannj_ey: I see, thanks.
10:58kovj_ey, btw, real life got in the way, but I managed to do a few builds and poking at config, I couldn't get the keyboard to work even after figuring out all of the dependencies to get KEYBOARD_APPLESPI enabled properly, would you mind sharing your .config? maybe there is some hidden dependency that I failed to enable
11:00j_eykov: can you share yours? I can take a look
11:01j_eyyou have SPI_APPLE_MC too right?
11:01j_eyand PINCTRL_APPLE_GPIO
11:01j_eyand COMMON_CLK_APPLE_CLKGATE
11:03kovinterestingly paste.debian.net thinks it's spam
11:03kovjust a sec I'll check those
11:04j_eyand chrome thinks that it's a dangerous file to download
11:04j_eykov: wait, which tree are you building?
11:05j_eyCOMMON_CLK_APPLE_CLKGATE isnt set
11:05kovexactly
11:05kovj_ey, I tried a lot of trees, that config may be a bit mixed with other builds, but that is indeed not set, I'll try with it
11:06j_eykov: check you have that driver
11:08kovhrm yeah, just switching to your tree again and make menuconfig shows it enabled
11:09kovand it's set on .config after I save *shrug*
11:09kovGlanzmann, thanks!
11:10kovheh, but now kov@uva ~/P/A/linux (m1-keyboard)> grep PINCTRL_APPLE_GIO .config
11:10kovkov@uva ~/P/A/linux (m1-keyboard) [1]>
11:10koverm doh
11:10kovyes it was the missing P
11:10kovok let's try building that and see if it works
11:11j_eykov: if not, paste the dmesg output
11:11kovj_ey, k
11:40bgb has joined #asahi
11:42bgbj_ey: just tried the IPI fix of m1n1, seems 100% boot to macos(hv) :)
11:44kovj_ey, it worked! I wonder if it was COMMON_CLK_APPLE_CLKGATE all along but menuconfig somehow fixed it for me
11:44kovI think I was only using olddefconfig before
11:45kovok, now to figure out the cherry picking =)
11:49j_eykov: definitely easier to cherry pick keyboard onto DCP
11:49j_eybgb: great! its in the main branch now
12:03rross101 has joined #asahi
12:06alyssajmr2: Next thing I guess is enabling the debug messages in DCP
12:07alyssagood to know the TimingElements/DisplayAttributes dicts are the same
12:07rross101 has quit []
12:10alyssapovik: my kernel has some corellium code in it but not much
12:10alyssareboot, spmi, rtc, and wifi are corellium code
12:10alyssaof those, I've made changes to... I think all of them
12:13alyssareboot will be replaced entirely by a wdt driver eventually
12:13alyssawifi needs work
12:14alyssaspmi and rtc, idk, the code is there, I fixed a lockdep issue (🤔) but yeah
12:14arndalyssa: do you have a link to your version of those drivers?
12:21bps has quit [Ping timeout: 480 seconds]
12:24arndI just looked at the corellium rtc driver, the code looks "obvious", but I think we'd need to replace the two DT properties with normal "reg" properties, and of course it needs the spmi driver first, and that seems likely to need more changes, or at least a more detailed review
12:27jmr2 has joined #asahi
12:33bgb has quit [Ping timeout: 480 seconds]
12:34jmr2Glanzmann: The only real progress I made on the air is to get the wifi working by reproducing alyssa's steps. Just need to activate with smc.py prior to booting, and putting the correct firmware files in an initramfs. See the T2linux wiki.
12:36jmr2alyssa: OK, I'll try later today. Would you mind sharing your best trampoline_* guess for D211 ? Is the tool you're using to lookup the function names accessible?
12:37povikalyssa: i know, i took reboot from you actually
12:41alyssajmr2: m1n1/proxyclient/hv/trace_dcp.py has the function names from 11.4
12:41alyssaalyssa@sunset:~/m1n1$ git grep D211
12:41alyssaproxyclient/hv/trace_dcp.py: "D211": "void IOMFB::UPPipe2::update_backlight_factor_prop(int)",
12:41alyssaSo `nop` that one, at least for now
12:42alyssaarnd: if I link it do you promise not to NAK my drm-misc commit access request? ;-p
12:42bgb has joined #asahi
12:42jmr2Thank you!
12:42alyssa^ this is what I'm running as a daily driver
12:43arndthanks
12:43alyssaand agreed... rtc looked just about there, spmi looked kinda scary
12:43alyssaor maybe I'm just saying that because their spmi driver broke the boot because of a serious locking failure
12:43alyssa(did they just disable lockdep?)
12:43arndI have no business in drm-misc, or at least I keep saying no whenever I'm offered commit access
12:44sven^-- smart! :p
12:44alyssaarnd: I kept trying to do that
12:44alyssabut I kept asking for someone to take a look at a patch
12:44alyssaand the maintainer kept telling me to push it to drm-misc-fixes
12:44alyssaand i'm like I don't have push
12:44alyssaand he's like well fix taht.
12:45alyssado I have class today? idk!
12:45alyssait's a review session. do I go late or skip it or stop yapping on irc and sprint
12:47brentr123[m]Vote for skip it?
12:50jmr2 has quit [Quit: Page closed]
12:59Misthios has quit [Ping timeout: 480 seconds]
12:59bgb has quit [Ping timeout: 480 seconds]
13:07arndalyssa: I had not even noticed that MFD regmap bit, only the main driver. Any idea what the MFD side is good for? For the actual spmi driver, it's mostly the irqchip bits that I suspect need changes after a thorough review. The interrupt-hopping data transfer looks inefficient, but there is probably not much to be done about that in the driver.
13:07bgb has joined #asahi
13:16bgb has quit [Ping timeout: 480 seconds]
13:23bgb has joined #asahi
13:31bgb has quit [Ping timeout: 480 seconds]
13:32chadmed[22:44] <alyssa> do I have class today? idk! <-- me every day for ~26 weeks of the year
13:34chadmedi have phsyiology lab time booked at 10am tomorrow, it is currently 11:30pm and the mac event is at 3am. my dilemma right now is do i make myself another green tea and stay up to watch it, or go to the lab well rested and ready to sit around collecting data?
13:39bgb has joined #asahi
13:44Leidenfrost has joined #asahi
13:46LeidenfrostHello guys. Question: Will HD video (via vdpau or vaapi) will come after 3d acceleration or is it a project expected to be started in parallel?
13:47LeidenfrostOh sorry wrong channel
13:47bgb has quit [Ping timeout: 480 seconds]
13:58bgb has joined #asahi
14:06bgb has quit [Ping timeout: 480 seconds]
14:15bgb has joined #asahi
14:23Misthios has joined #asahi
14:23bgb has quit [Ping timeout: 480 seconds]
14:25Misthios has quit []
14:26Misthios has joined #asahi
14:32bgb has joined #asahi
14:37bps has joined #asahi
14:40bgb has quit [Ping timeout: 480 seconds]
14:45alyssa_ has joined #asahi
14:46bps has quit [Ping timeout: 480 seconds]
14:46alyssa_alyssa: where are you
14:47svenyou actually cloned yourself? impressive!
14:48rimani has joined #asahi
14:49bgb has joined #asahi
14:57bgb has quit [Ping timeout: 480 seconds]
14:58kenjigashu has joined #asahi
15:03rimani has left #asahi [Leaving]
15:05bgb has joined #asahi
15:05alyssa has quit [Remote host closed the connection]
15:10alyssa_ is now known as alyssa
15:11alyssaarnd: haven't looked too much at the SPMI stuff, not sure what the MFD shim was for
15:11alyssaDCP has been consuming all my (already limited) dev hours
15:11* everslick_is gone, searching for himself. if you see him, before he gets back, keep him here.
15:11marcanalyssa, sven, maz, povik, kettenis, j_ey, arnd: how about we try to shift more dev chat to -dev, since this channel is getting a bit noisy lately? This is why I made them separate initially :)
15:11povikwhy not
15:12svenworks for me
15:12alyssain that case i'm /parting this one because I don't need the noise 😅
15:13j_eywhat about helping people, that can stay here I suppose
15:13povikalyssa: bye bye
15:13bgb has quit [Ping timeout: 480 seconds]
15:13povikj_ey: no! all your attention will be -dev now
15:13alyssawill find somewhere else to dump my inane scholastic ramblings, maybe twitter :-p
15:13alyssa has left #asahi [#asahi]
15:21bgb has joined #asahi
15:29bgb has quit [Ping timeout: 480 seconds]
15:33Glanzmann has quit [Quit: leaving]
15:38bgb has joined #asahi
15:50bgb has quit [Ping timeout: 480 seconds]
15:58bgb has joined #asahi
16:06bgb has quit [Ping timeout: 480 seconds]
16:12kenjigashu has quit []
16:16bgb has joined #asahi
16:24bgb has quit [Ping timeout: 480 seconds]
16:33bgb has joined #asahi
16:39___nick___ has joined #asahi
16:41bgb has quit [Ping timeout: 480 seconds]
16:44rohin has joined #asahi
16:49bgb has joined #asahi
16:53FLHerne has joined #asahi
16:56yuyichao has quit [Ping timeout: 480 seconds]
16:57bgb has quit [Ping timeout: 480 seconds]
17:06bgb has joined #asahi
17:08JTLkeynotes just a bunch of stitched video clips these days :P
17:12yuyichao has joined #asahi
17:14bgb has quit [Ping timeout: 480 seconds]
17:15nobodynadahere come the macs!
17:16marcanlol M1 Pro
17:17marcanApple outdoing themselves in the silly marketing names department :D
17:17j_eylook at this cool lab
17:17marcanM1 Macbook Pro
17:17marcanM1 Pro Macbook Pro
17:17i509vcb[m]Apple upgrade name starter pack: "Pro, Ultra, +"
17:17marcanit's all so logical
17:18phire has joined #asahi
17:18marcaninb4 16 MCC channels
17:18j_ey32 GB RAM!
17:18marcan"why not limit the mcc,channels dt prop?" because I saw this coming :p
17:18marcan8p 2e was super leaked by now
17:19marcanoooh prores in hardware?
17:19marcanthat's neat
17:19* marcanjust got a camera that records prores recently
17:19j_eymarcan: why didnt he mention asahi? :(
17:19dottedmag2 display controllers
17:20marcan2 dispexts I hope
17:20EmantorM1 Max. lol.
17:20j_eyhow many cores?
17:20JTLwaiting for Max+ next year /s
17:20marcansame 10 cores? lol
17:20marcanso just a giant GPU
17:21JTLnot surprised
17:21j_eyI dont want GPU :<
17:21marcanI guess that's the gaming chip then
17:21dottedmagwhy two prores?
17:21marcandottedmag: video editing
17:21j_eyanyone know what this guys accent is?
17:21JTLHungarian?
17:21JTL(a guess)
17:21j_eythats what my guess was
17:22fridtjof[m]wow, labelled axises(?)
17:22JTLmarcan: for concurrent encode/decode during editing workloads?
17:22marcanhaha, claims to beat discrete GPUs
17:22marcanI'm so looking forward to whatever alyssa does with this
17:22marcanJTL: yeah
17:22JTLmakes sense
17:23i509vcb[m]discrete as in the huge 3 slot gpus?
17:23marcanthey didn't say *which* discrete
17:23bgb has joined #asahi
17:23leah2but can it mine eth? *ducks*
17:23dottedmagof course they didn't, they have lawyers
17:23j_eymarcan: do you think this is a real lab
17:23i509vcb[m]leah2: LOL mining eth on the m1 gpus
17:24leah2what else do people use gpus for these days :p
17:24marcanj_ey: I doubt it, but I've heard the boards are real
17:24fridtjof[m]they did specify which laptop models, so we could look it up
17:24j_ey4 external displays
17:24j_eyare they AICv2 tho? :P
17:25dottedmagchips are phenomenal: macOS guys can do whatever they want, and it's still fast.
17:25marcanI think I'm going to feel silly saying "m1 max" and "m1 pro", can we switch to saner names?
17:25i509vcb[m]reject alphabet embrace magic numbers
17:26j_eym1.2 m1.3
17:26marcanrumors say M1 Pro is t6000 / Jade Chop
17:26marcanand M1 Max is t6001 / Jade
17:26armarcan: do you want to supersize that m1macmax?
17:26fridtjof[m]m1x2, m1x4? :P
17:26j_eylol chop
17:26marcan"chopped in half" I guess? :p
17:26j_eymarcan: mentioned secure boot
17:27marcanyeah heh
17:28j_eyI guess thats it for the fun stuff
17:28dottedmagWhy do the app developers sound like a Apple marketing department employeees?
17:29dottedmagstupid question, I know
17:30brentr123[m]j_ey: I’m sure we can get around that somehow
17:30marcanso the thing is, the rumor is there's a third one
17:30phire_ has joined #asahi
17:31marcanwhich is 2x M1 Max dies together
17:31marcan... which I guess is not getting announced today
17:31j_eym1 maxmax
17:31marcanbut that would be one monster chip
17:31marcanM1 Max²
17:31opticronso current tally on that chopped off bit is 2x memory controllers, 2x display controllers, 32x functional GPU cores
17:31bgb has quit [Ping timeout: 480 seconds]
17:31j_eybrentr123[m]: assuming they give us bputil/kmutil etc, it just "works" not working around
17:31doggkruse has joined #asahi
17:32i509vcb[m]dottedmag: "use our technology and don't go to others"
17:32j_eyi missed it, is there a touchbar?
17:32marcanpretty sure no touchbar
17:32j_ey4.7 pounds? thats cheap!
17:33kovdidn't see it but they added that thing at the top of the screen like on the iphone
17:33j_eykov: the notch
17:33opticronthe notch
17:33kovguess it's the camera
17:33psykoseno touch
17:33i509vcb[m]notch on laptops?
17:33* marcanputs "add notch support to kwin" on the TODO list...
17:33dottedmag"brought it to laptop" lol
17:33kovit'll nicely cover gnome's date/time
17:34brentr123[m]REGULAR F1 KEYSS
17:34j_eysdcard is weird
17:34marcanbut will it do SDExpress?
17:34marcanexternal PCIe ports are fun :p
17:34jixhow would a notch even work with macos? they still have the menu bar don't they?
17:34j_eymarcan: thatts what your setup should look ike
17:34VinDuvit’s split looks like
17:34jixlol they just add a gap to the menu bar?
17:35marcanj_ey: lol
17:35kovlol the menu items spilling to the right
17:35psykosewonder how many times they've said 'entirely new level'
17:35marcannot gonna lie, I thought I'd end up with a new iMac but at this rate my new main box might be the big MBP replacing my old laptop and driving a 4K display or so
17:35opticronugh, and now we have two current techs called "magsafe"
17:35kovif it were left side app, right side system it would be annoying, this is just dumb
17:35marcanwhich means going back to my old "laptop is main" setup
17:36i509vcb[m]Please other laptop manufacturers DO NOT start using notches
17:36VinDuvI wonder what happen to the cursor around the notch
17:36kovmarcan, that's what I'm pondering doing as well
17:36kovMBP as main, but the 14" one
17:36EmantorThey fixed the keyboard, SD slot, HDMI, touchbar gone, more display controllers than current gen intel… not bad.
17:36marcanooh 120hz
17:37marcanEmantor: they've apparently learned to admit to mistakes, which is new for Apple
17:37marcanhalf of it is going back to 2015 MBPs
17:37i509vcb[m]120hz isn't the worst thing
17:37i509vcb[m]Arguably should be standard
17:37j_eymarcan: yeah, i really thought they'd never 'admit' touchbar was bad
17:37opticronI like variable refresh rate...
17:37i509vcb[m](with vrr for battery life)
17:38opticronI guess I'm getting a MBP m1p in the nearish future
17:38VinDuvWhen they brought back the FireWire and the SD card slot on the 2009 MBP I don’t think they mentioned it so clearly, at least
17:38marcanif only HDR worked well on linux
17:38j_eymarcan: add it to the TODO list
17:38EmantorHDR is coming slowly with the wayland color management extensions.
17:38marcanyou know, I kind of hope once we get all the core stuff working smoothly, this inspires more devs to care about things like color management and HDR
17:38dottedmagj_ey: That's Wayland TODO list, or at least compositors' one
17:38marcansince right now it's still... questionable
17:39opticronI have no idea how well linux handles VRR
17:39i509vcb[m]You do need to get some protocol for everyone to agree to in wayland or else it will be just like screen capture
17:40j_eyisnt it weird that speakers are basically just very controlled fans
17:40marcangoogle images that :p
17:41j_eymarcan: oh lol
17:41j_eyit really is a fan!
17:41bgb has joined #asahi
17:41opticronI still have a dream of eventually building an exotic home theater system with at least a rotary sub and a plasma tweeter
17:42opticronprobably some panel exciters for the mid range
17:42j_eyIm a caveman, just use my macbook air's speakers
17:42marcannow the question is how many configurations of these do I have to buy...
17:42marcancan I get away with a big max one and a small pro one... or do I need both configs for the small one too...
17:42i509vcb[m]I do wonder has anyone ever figured out the touch bar or is it still a black box
17:42JTLI was wondering the same for your sake
17:42Glanzmann has joined #asahi
17:43j_eyis there going to be a new mini?
17:43jeh[m]I'm hating the notch design :p I'll stick with my MBA only xD.
17:43marcanI swear I'm going to end up with a shelf dedicated to stocking macs
17:43j_eymarcan: finish cleaning your apartment!
17:43marcanj_ey: definitely, but I'm smelling it not getting announced today... but I guess we'll see?
17:43marcanj_ey: ;_;
17:43marcani509vcb[m]: on what macs?
17:43marcanit's been figured out on T2s
17:43brentr123[m]this is why people need to keep donating to marcans patreon
17:44marcanon M1s it's just some other display hardware nobody has bothered to look at yet
17:44phire_"you can record a guitar with the built-in mic array"
17:44GlanzmannDid the already say how many cpu cores the air and pro have?
17:44phire_which is optimistic
17:44i509vcb[m]So the drivers exist on T2 but not M1?
17:44marcanGlanzmann: 8+2
17:44j_eyGlanzmann: 10
17:44kovI may need to double my patreon donation =P
17:44Glanzmannmacbook pro has 64 GB ram, right?
17:44kovI bet the 16" with max will be expensive
17:44Glanzmannwhat about macbook air?
17:44marcanthey didn't announce any airs
17:44marcanI don't expect them to
17:44minithe air will be unchanged, I suspect
17:44marcanthe air will be M1-only
17:44minithe air is a base model after all
17:45marcanthere's no way they can put these chips in a fanless laptop
17:45j_eyi want a new mba!
17:45kovyeah, I'd expect them to do Air refresh next year with "M2"
17:45marcanon the plus side: m1n1 is still appropriately named
17:46GlanzmannAnything new on the mini?
17:46kovnot yet
17:46marcanno(t yet?)
17:46GlanzmannI already hate the notch.
17:46kovthey still talking about macbooks
17:46j_eykov: yeah jeez, we get it now
17:47marcan"We’re making updates to the Apple Store. Check back soon."
17:47marcanwonder when they go on sale
17:47j_eyf5 f5 f5 f5 f5
17:47i509vcb[m]I do wonder is there a future where all the iDevices and macs share the same cpus? Given the M1 ipad has come to exist
17:47opticronlort, up to 8T of storage
17:47miniI don't want a 30W+ chip in my phone. I like my hands unmelted
17:47i509vcb[m]sure cores and gpus varying
17:47j_eyGlanzmann: the notch will be.. interesting
17:48marcantbh I hope they take a bit of time to ship because this week I'm swamped
17:48rohinhardware looks good, too bad macOS feels like MEGA blocks
17:48marcanlet me do the bringup stream next monday plz
17:48kovnext week it is marcan
17:48j_eyno mini i guess
17:48jeh[m]j_ey: I wonder how it'll be handled in Linux
17:48kovyeah, looks like they're wrapping up on M1 Pro
17:49marcanjeh[m]: that's the window manager's job
17:49bgb has quit [Ping timeout: 480 seconds]
17:49kovwould it be possible to just make the display controller "ignore" that part of the screen?
17:49j_eyjeh[m]: i would maybe just be ok with having it act like a full border?
17:49opticron"magic keyboard" did I miss an explanation somewhere of that?
17:49j_eykov: ^
17:49i509vcb[m]jeh[m]: "Pretend it exists when rendering"
17:49marcanyes, we could make DCP have a "just pretend the notch isn't there" mode
17:49j_eyopticron: magic as in.. not touchbar lol
17:50marcanat least as a stopgap
17:50marcanthat's easy
17:50kovbecause it will be ok for gnome and kde I think, but as soon as you go fullscreen on a game it's game over
17:50jannaudone and the store changed to almost ready
17:50JTLIs there prior art for the Linux dispaly stack or other components handling notches in displays?
17:50marcankov: the window manager will make sure fullscreen stops at the notch
17:50Glanzmannno children were harmed in this video.
17:50GlanzmannOkay, very nice.
17:51marcanno sale date?
17:51kovI guess they can do that unless they do compositor pass-through?
17:51jeh[m]No new Mac Mini - very interesting!
17:51kovmarcan, they said today
17:51marcan"Just a few finishing touches and the Apple Store will be ready. See you soon."
17:51kovmarcan, well pre-orders
17:51jannauorder today. shipment next week
17:51kovbut available from next week
17:51balrogI expect a desktop Mac event in Feb or so, with iMacs and Mac Minis
17:51kovso yeah
17:51marcanit just opened now
17:51kovyou got your week marcan
17:51phire_I don't have that much of a problem with the notch. I see it as the top border being pushed up along most of the top
17:51kovlet me see if brazilians were also blessed
17:51marcanhow many configs is this now...
17:51GlanzmannHow much do think the pro or max or whatever it is called (the best machine) will cost with everything maxed out?
17:52phire_but I am going to have to move gnome's clock
17:52marcan8-core CPU? is this a cut down 6+2 model?
17:52j_eymarcan: i support not buying everything
17:52kovyep, available here as well
17:52opticronwhoah...yeah
17:52kovcosting a couple of kidneys
17:52opticronI'm seeing that, too, no 32core GPU on the 14"
17:52fridtjof[m]shipping with a 140W USB-C power adapter??
17:53fridtjof[m]doesn't PD only go up to 100W?
17:53kov14" base model is priced at 4.9kUSD here, welcome to Brazil ;D
17:53opticronthe new PD goes up to 240W or something like that
17:53Emantor2249€ in germany
17:53GlanzmannI see the store is ready.
17:54fridtjof[m]oh, also USB-C to magsafe 3
17:54fridtjof[m]interesting
17:54marcanI guess it's going to be a Pro 14-inch and a Max 16-inch for now
17:54opticronthe previous PD technically goes up to 150W or so, but I think it requires non-standard power profiles
17:54EmantorGPU also scales up, multiple M1 & M1 Max variants.
17:54marcan... and then we'll see if I need more in the future...
17:54j_eymarcan: tell us the final $ amount :3
17:54marcandefinitely going to be a total idiot on the 16-inch though, because hey this actually sounds like a machine I'd use
17:55jannaustore is slow for me in Germany
17:55svenaw.. no new mac minis
17:55GlanzmannFor me it is fast.
17:55marcan$8200 in the cart...
17:55j_eysven: save your money!
17:55jannauthere is 24 core gpu on thr 14" model
17:55svenj_ey: oh yeah, i won't buy any of these
17:55marcanwait, can I even put this on my credit card? :D
17:55GlanzmannThe 16-inch macbook pro maxed out costs 6099 USD.
17:56VinDuvok that’s a bit deceptive, going from M1 Pro to M1 Max adds 230€ but it forces 32 GB RAM which adds 460€
17:56marcanI'm hoping 4TB SSD is enough
17:56Glanzmannmarcan: Depends on your credit card.
17:56j_eytake out a small business loan
17:56marcanyeah not on mine lol
17:56marcannot at my current usage anyway
17:56svenpretty sure i'd get a call from bank if i put that on my card just because it's unusual activity :D
17:56marcanjapanese CCs are kinda... crappy
17:57j_eysven: like when I got a call from my bank cos AWS billed me $1
17:57JTLmarcan's card gets declined from ordering several M1 systems at 2 in the morning
17:57JTL</joke>
17:57bgb has joined #asahi
17:57marcanI actually have a second card, but I'm not sure that one is much better
17:57marcanOTOH pretty sure there are other payment methods?
17:57marcanlet's see
17:57j_eyoffer to do a linux port, if they donate some machines
17:57svenmy bank is pretty reasonable. i think i went over the card limit once because i had to put some business travel on it and all they did was call me and ask me to confirm
17:58marcanalso I'm not even in the right shop, lol
17:58GlanzmannIn Germany they ship Nov 3 - 5 if you order right now.
17:58ah-[m]ordered :)
17:58j_eyah-[m]: which one?
17:58ah-[m]Delivers Oct 29 - Nov 2
17:58ah-[m]16 inch 64GB
17:59j_eybig boi
17:59marcan961,600円
18:00GlanzmannI'll not order, I like the macbook air. And I have other systems if I need bigbois.
18:00marcanI swear I'm doing this for the project :p
18:00Glanzmannmarcan: Wow, fucking expensive.
18:00ah-[m]is that fully maxed out?
18:01marcanthat's 14"/pro/10c16g/32GB/2TB + 16"/max/10c32g/64GB/4TB
18:01GlanzmannThan it is reasonable.
18:01marcanseems like a resonable combination for "computers I'd actually use"
18:02marcanif I end up needing more variants I'll get minimal specs for those...
18:02GlanzmannPreviously I always spend approx. 2500 EUR every 3 or so years on a new thinkpad.
18:02jannau14"/pro/10c24g/32GB/2TB ordered
18:03GlanzmannNow that the macboos have so many gpus, we need a gpu bringup stream.
18:04marcan16" arriving next tuesday, 14" arriving a bit later ish
18:04marcanif I can get them ordered..
18:04j_eyjannau: nicenice
18:04marcanblergh, card only
18:04marcanmaybe I can put one on each card...
18:04* tophevich[m]is curious how much impact these newly released macbook pro models will have on developers getting itchy to contribute to this project, as they get hungry to have that hardware as daily drivers :D
18:04opticronthe website was having a really bad time for me earlier
18:04psykosedo you normally pay cash? :D
18:04Glanzmannmarcan: Just try it, if it is a debit credit card, it probably will just work.
18:05marcanpsykose: I normally don't put things on my card that exceed the limit
18:05marcanGlanzmann: it won't
18:05marcanchecking the limit on the other one
18:05psykoseahh, yes that would not be very good
18:05bgb has quit [Ping timeout: 480 seconds]
18:06marcanthe problem is precisely that I've been paying for *everything* with card lately, and due to the way they count the limit over more than one month, that kinda sucks for it
18:06marcanyeah I can't even put a single machine on the other card, lovely
18:06rohini think i will give it a couple months, like the ipad pro hype, it went 200 bucks off 3 months after launch lol
18:06j_eyI dunno what my limit is, i guess that means I never got close :P
18:07marcanwhy doesn't apple allow paying via bank transfer like most big ticket japanese businesses, sigh
18:08marcanI guess this is the part where I start putting "get better credit cards" on the business expenses list... :/
18:09tophevich[m]hm apple online shop seems to struggle right now (at least for me)
18:10kovmeh, can't pre-order yet it seems
18:10j_eymarcan: I thought you just go to the bank and theyre happy to raise it
18:10marcanthis is japan.
18:10___nick___ has quit []
18:10Glanzmannmarcan: I used to have good credits card, but they required a not rooted phone to purchase in the internet as only option, as a result I cancled it. These days I have to debit visa cards, both never let me down even for very high charges.
18:11marcananwyay, I ordered just the 14"...
18:11j_eymarcan: never been, I should visit
18:11marcanmaybe I can put the 16" on there in a couple weeks after card pay day
18:11marcanお届け予定日 2021/10/28 - 2021/11/0114インチMacBook Pro
18:11Glanzmannmarcan: In Germany I had also problems getting a decent credit card for a very long time, but than I financed a flat with one bank and from then on, it is private banking. If I want something from them (credit card, credit, ...) I call them and two days later I have it.
18:13bgb has joined #asahi
18:15jixI have a credit card where I can extend the limit on the fly by transfering funds into a separate account, essentially turning it into a debit card... but it still has a normal credit limit when I don't do that and it's still accepted at places that don't accept debit cards
18:17jixGlanzmann: yeah DKB
18:19Glanzmannjix: I hated that, because the credit card account was also the one where you got the interest. So I had a lot of money on that account and so I never used the credit card because I was afraid of abuse. And once I used it in russia, guess what ...
18:19GlanzmannGot the money back, only a few thousand bugs, but I had to go the police and file a report, proof that I was not in russia when the transactions happened, etc, etc. cost me whole day.
18:19marcanapparently I can get a prepaid Visa from my bank, maybe that's the safe option for this kind of thing
18:19marcanwhat's the limit on it though...
18:20marcanok, yeah, ¥2m max balance, that'll work
18:21marcanthough ¥1m/mo max spending, lol, what's the point of more than that then?
18:21bgb has quit [Ping timeout: 480 seconds]
18:21marcanstill, would've covered these two macs at least
18:21kovapparently brazil's telecom agency hasn't approved the new macbooks yet so they aren't even allowed to accept pre-orders gah
18:21svenuh. i got a credit card in .de with like a 2k eur limit as a student without any kind of income. there are enough sketchy/awesome banks around :D
18:21marcansven: the problem is this one ends up applying the limit over 2 months or so
18:22marcanjust due to the stupid way billing works
18:22sventhat sounds dumb :/
18:22tophevich[m]hm ... airpods pro cost the exact same in my country as the airpods 3rd gen o_O
18:22marcanso I have a $15k equiv limit, but in the end it's more like $7k/mo
18:22marcanand I've been using that card for almost everything (because it gives me some points), so most of that limit is already gone
18:23marcan(and now after this purchase it *really* is on the edge)
18:23___nick___ has joined #asahi
18:23Glanzmannsven: When I was 18 I was declined from every bank I applied for a credit card. But then came barcalay card and others around. 1600 EUR/ month ...
18:23marcanI wish I could just press a button and pay off the whole balance early and reset everything
18:23svenyeah barclays was the bank that gave me that credit card when i was 19 or so as well *shrug*
18:23marcanbut alas I don't think that's an option
18:23marcananyway, pay date is in a week
18:23marcanso it won't be too long
18:23jixGlanzmann: ah well, I'm not leaving any money in that account, and being able to quickly raise my limit when I need it was really convenient a few times
18:24* tophevich[m]can't buy anything directly at apple because they only support credit cards for payment ...
18:24phire_ has quit [Ping timeout: 480 seconds]
18:24dottedmagI remember having a credit card without a limit (probably they'd call me if I tried to buy an island with it though), was quite convenient.
18:25dottedmagToo bad Eurocard is only in nordics nowadays
18:26milek7>at places that don't accept debit cards
18:26milek7huh, does such places exist?
18:26Glanzmannmarcan: When does the one that you ordered, arrive?
18:27marcanI couldn't set an exact date like with the 16"
18:27marcanso sometime next week probably
18:27marcandepending on timing, since I'm busy that weekend, the bring-up might be the following monday
18:27kode54don't forget
18:27kode54Max isn't just a giant GPU
18:28jixmilek7: "Virtual or prepaid credit or debit cards aren't accepted as payment for Azure subscriptions." is one place where I ran into that
18:28nobodynadaI get mine a week from tomorrow
18:28kode54it's also the only 64GB config
18:28marcannobodynada: that's what it would've been like for the 16"
18:28marcankode54: I know, that's why I'm getting a max too
18:28marcan... as soon as my CC lets me
18:28kode54$3500 fricking eh
18:28marcanmore with more SSD...
18:29kode54I bet that $3500 config only comes with what 256GB?
18:29kode54I didn't read that much into it, oops
18:29marcannah, 1TB I think?
18:29jannauthe max has also twice the memory bandwidth
18:29kode54that's slightly cheaper than the overkill iMac 5k I bought back in 2014
18:30kode54had so many troubles with that thing
18:30kode54not the least of which was that the display controller told not-macOS that it was a single channel 4k panel
18:30kode54Linux never fixed that until after I sold it
18:31bgb has joined #asahi
18:31kode54even Windows had trouble keeping the two display halves synced
18:31___nick___ has quit []
18:31kode54for instance, the onboarding wizard with the fading background, you could see the two halves were fading out of sync
18:33___nick___ has joined #asahi
18:34jannauoh, the base 14" model has just 6 performance cores (14 GPU core)
18:35kode54yes, it costs as much as the base 16" model just to get a properly binned 14" model
18:35kode54at least they're not offering 8GB configs
18:36nobodynadaquestion, how likely am I to need a UART adapter? it looks like that USB-C controller board on the Asahi website has been chip-shortaged out of existence
18:36nobodynadacan I run Linux in the hypervisor and use its vUART?
18:36jannauthunderbolt 4
18:37marcankode54: linux hasn't fixed that yet
18:37marcanI have one of those
18:37j_eynobodynada: yes
18:37marcanbeen meaning to fix the 5k thing... some day...
18:37marcanwhen I get bored... if that ever happens...
18:37j_eynobodynada: I use a normal USB cable with linux+vuart
18:38nobodynadaawesome, thanks
18:38marcanthey 5K support is in the driver, linux one needs patches
18:38marcangpu performance switching also doesn't work... that's another one I need to annoy the amdgpu guys about one day...
18:38nobodynadaI have a Cypress PSoC devkit whose USB controller might be...repurposable, but I really don't want to do that if I don't have to
18:38marcanbut at this rate this computer will be retired for an M1 before tha happens
18:39j_eymarcan: but your precious rootfs :P
18:39bgb has quit [Ping timeout: 480 seconds]
18:39marcanj_ey: this will be the end of hostname raider, after all these years
18:39kode54I already retired the 5k, it was throttling too much
18:40Glanzmannnobodynada: You can also use a second mac, if you have one around.
18:40kode54I actually on numerous occasions managed to make it hit the thermal cutoff of 106°C
18:40marcanI have a 2015 one that I maxed out the CPU on last year (got it from a friend) and it's not throttling too badly
18:40marcanbut yeah it's not exactly amazing either
18:40kode54neither Apple nor AASP documented or knew of this cutoff
18:40j_eynobodynada: did you buy one of the current M1s?
18:40kode54when it hits 106, it goes to sleep
18:40nobodynadaI just preordered a pro
18:40kode54AASP swore it was a defective board and replaced it (under applecare)
18:40j_eynobodynada: but one of the previous revisions I mean'
18:40ah-[m]Imean 106 is a little toasty
18:41kode544790K and R9 M295X *easily* hit 100C under load
18:41nobodynadaj_ey: I don't have one, though maybe I can ask some friends who do if they'd be down for kernel hacking sessions
18:42kode54AASP also never heard of retina desktops before
18:42kode54managed to stress fracture the display getting it off to do the board replacement
18:42j_eynobodynada: because what Glanzmann was alluding to, was that two M1 machines can act like a hardware uart
18:42j_eynobodynada: but it works fine with jus teh vUART mostly
18:42kode54I'll take further discussion of the 5k to offtopic
18:43nobodynadaj_ey: yeah, I saw that on the website
18:43nobodynadaj_ey: awesome, thanks!
18:43j_eynobodynada: the good thing about the hardware uart is that you can reboot the target machine remotely without using the hypervisor
18:44nobodynadaj_ey: can you do that with a 2nd mac, or do you need the hardware adapter?
18:45j_eythe only time ive booted without the hypervisor so far is to test kvm patches
18:45jannaua second m1 mac has the same functionality as serial adapter
18:46Glanzmannnobodynada: But you need one of these good usb cables. The one that shipped with my eizo works for me.
18:46GlanzmannThe charging one from apple, doesn't.
18:46doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:47nobodynadaGlanzmann: ugh, guess I'm making a trip to best buy then
18:47bgb has joined #asahi
18:49Glanzmannnobodynada: The good usb cable you only need to use a second m1 as a uart replacement. vuart works with a normal cable.
18:51___nick___ has quit [Ping timeout: 480 seconds]
18:51marcananyway, I should sleep
18:52nobodynadawow, it looks like they're already selling out
18:52nobodynadasome of the models are showing shipment dates in November now
18:52ah-[m]michael fast as always
18:53LeidenfrostYeah I prefer to wait until the frenzy ends and the price drops
18:54marcannobodynada: yeah, the 16" is already on the same timescale as the 13" here now :/
18:56bgb has quit [Ping timeout: 480 seconds]
18:58tomtastic_ has joined #asahi
19:00tomtastic has quit [Ping timeout: 480 seconds]
19:00tomtastic_ has quit [Remote host closed the connection]
19:00tomtastic has joined #asahi
19:03minithe custom build 14" I ordered is second week of november for ship date already
19:03minibut I imagine there's a *lot* of demand
19:03bgb has joined #asahi
19:07nehsou^ has quit [Ping timeout: 480 seconds]
19:07nehsou^ has joined #asahi
19:11jelly-hme is now known as jelly
19:12bgb has quit [Ping timeout: 480 seconds]
19:13balrogmini: custom built always have longer lead times.
19:14minibalrog: yeah, I know. but that's already slipped by ~2 weeks since the store opened
19:14minior at least a week and a half
19:19tomtastic_ has joined #asahi
19:20bgb has joined #asahi
19:22bps has joined #asahi
19:24doggkruse has joined #asahi
19:24tomtastic has quit [Ping timeout: 480 seconds]
19:26doggkruse has quit []
19:28tomtastic has joined #asahi
19:28bgb has quit [Ping timeout: 480 seconds]
19:30tomtastic_ has quit [Ping timeout: 480 seconds]
19:32bgb has joined #asahi
19:35kettenisheh, thaat certainly caused a lot of noise ;)
19:36balrogkettenis: what did?
19:38kode54the page design is kind of broken
19:38kode54there is no 14" on the main page
19:38kode54you have to click 16" to get to the 14" option
19:39minithe store is working pretty well in the UK now at least, it melted quite badly immediately after the stream finished
19:39minialthough for a while it was still showing the *intel* 16" after they reopened it
19:39minion some pages anyway
19:40kettenisthe release of the new macs
19:40bgb has quit [Ping timeout: 480 seconds]
19:43malvo has quit [Ping timeout: 480 seconds]
19:44Glanzmannkettenis: What is the status of OpenBSD on m1?
19:45kettenisstill issues with SMP :(
19:45kettenisbut quite solid with a non-MP kernel
19:46kettenisgoing to see if I can get the laptop keyboard work in the next week
19:46j_eykettenis: cool!
19:46Glanzmannkettenis: I see. I used the mini on Linux for a few days, works good so far. Did not had any issues beside the dcp, but once the display is up it is stable.
19:46Glanzmannkettenis: Did you do performance benchmarks on the nvme?
19:46GlanzmannUnder OpenBSD?
19:47kettenisnot systematically
19:48kettenisthe driver uses a queue depth of 1, so that impacts performance I bit
19:49Glanzmannkettenis: Could you try this command and let me know how many iops do you get? fio --ioengine=sync --direct=0 --fsync_on_close=1 --randrepeat=0 --nrfiles=1 --name=randwrite --rw=randwrite --bs=4K --size=1G --end_fsync=1 --fallocate=none --overwrite=0 --numjobs=1 --sync=1 --directory=/mnt
19:50kettenisksh: fio: not found ;)
19:50bgb has joined #asahi
19:50kettenislooks like there is a port though
19:51GlanzmannYou can also compile it from source it is straightforward. just git clone and make.
19:51kettenisi'll see what I can do on wednesday or thursday
19:52Glanzmannkettenis: For Linux we get only 50 iops, no idea why.
19:54svenis that running on a performance core btw?
19:55j_eygood point, and have you run the cpufreq/cpu_perf*.py stuff?
19:55jmr2 has joined #asahi
19:55kettenisGlanzmann: running this on my amd64 laptop it reports
19:55ketteniswrite: IOPS=11.1k
19:55kettenisis that the number you're after?
19:56jmr2Glanzmann: here's a slighly more detailed version of the steps to get wifi working on the air: http://paste.debian.net/plainh/df6b642b
19:57jmr2I don't plan to maintain that doc - feel free to merge it in yours - or in the project's wiki.
19:58bgb has quit [Ping timeout: 480 seconds]
20:00Glanzmannkettenis: Yes, but you can also paste the whole output.
20:01Glanzmannjmr2: Thank you.
20:07mjg59marcan: I'm sure you mentioned this at some point, but I can't find anything online - does M1 implement Trustzone?
20:08bgb has joined #asahi
20:08j_eyno, there's no secure ELs
20:08svenmjg59: they don't have EL3. the only part of trustzone that they implement is the memory protection.
20:08sventhey can setup a carveout area that only their secure co-processor can access
20:09mjg59Thanks!
20:16bgb has quit [Ping timeout: 480 seconds]
20:24bgb has joined #asahi
20:28bps has quit [Ping timeout: 480 seconds]
20:32bgb has quit [Ping timeout: 480 seconds]
20:41bgb has joined #asahi
20:49bgb has quit [Ping timeout: 480 seconds]
20:58bgb has joined #asahi
20:58Glanzmannsven / jey: I did not pin the core, but the point is the random write 4k are really bad.
20:58svendid you run cpufreq before?
20:58jmr2 has quit [Remote host closed the connection]
20:58sveni don't know how that benchmark works, it might be heavily cpu bound
20:59sventhe number is still low but if it was running on a heavily underclocked performance core who knows
21:00bps has joined #asahi
21:00malvo has joined #asahi
21:06bgb has quit [Ping timeout: 480 seconds]
21:06balrogThese M1 Pro and M1 Max don't look like multi-die
21:14landscape15[m]Do you think the less efficiency cores in the new chips will affect a lot the CPU drivers?
21:15kettenisGlanzmann: I will do once I actually run this on an m1 machine
21:16bgb has joined #asahi
21:18Glanzmannsven: I ran it multiple times. I notices the bad performance immediatly after I was installing my first debian package using apt. I ran 80 threads in parallel. I get 1000 IOPS. Look at the CPU: https://ab34.de/u/screenshot-nuc-2021-10-18-23_16_33.png
21:18svenagain: did you run cpufreq before?
21:18svenor does your tree have the cpufreq driver?
21:19Glanzmannsven: No, I did not. I ran alyssas tree.
21:19GlanzmannLet me check.
21:20GlanzmannYes, the driver is in.
21:20svenhrm, ok. so it's actually running with full speed probably
21:20Glanzmannsven: Even if it didn't its way to bad.
21:21sven*sigh*
21:21GlanzmannBut, if you want I can also run the m1n1 cpufreq experiment.
21:21sven<sven> i don't know how that benchmark works, it might be heavily cpu bound
21:21svenbut if the cores are running at full speed it's a different issue
21:21Glanzmannsven: You saw my screenshot. This is 80 threads, I ran on of them.
21:22Leidenfrost has quit [Quit: Connection closed]
21:22j_eyyou can probably look at some /sys values to find the frequency
21:22Glanzmannj_ey: Let me check.
21:24bgb has quit [Ping timeout: 480 seconds]
21:26Glanzmannsven: Probably it is best if you do the benchmarks yourself, than you trust them. :-)
21:26GlanzmannBut if you want I can kick out the cpufreq driver and run the cpufreq experiment in m1n1, as I used to and reproduce the issue.
21:27svenno, i just wanted to make sure the cores are at full speed
21:28kode54did you try the IOPS against a thunderbolt drive?
21:28kode54it's possible that the nvme driver is not really optimal yet?
21:28j_eykode54: the nvme core should be doing all the optimisations
21:29kode54unless Apple made that entirely software
21:29j_eycore as in, the core linux code
21:30GlanzmannI thought we don't have thunderbolt yet? But I have no thudnerbold drive, but I have a usb stick. Lets try that.
21:30kode54I thought the linux driver had to talk to some coprocessor with messages to do that
21:30bps has quit [Ping timeout: 480 seconds]
21:30Glanzmann has quit [Quit: Lost terminal]
21:30j_eykode54: for whateever reason, the nvme code doenst talk to the ANS2 coproecessor
21:30j_eyit has to be online though, so its doing something
21:32jacoxon has joined #asahi
21:32bgb has joined #asahi
21:32Glanzmann has joined #asahi
21:32GlanzmannDid I just quit irc, strange.
21:33GlanzmannI did the test on the usb stick: 250 IOPS vs (50 on the nvme): https://pbot.rmdir.de/u/-eBt-nonVsZadqu1OheYLA
21:35GlanzmannAnyway, I'll hit bed now, if I should do any more tests, let me know.
21:40bgb has quit [Ping timeout: 480 seconds]
21:45Glanzmann has quit [Quit: EOF]
21:48bgb has joined #asahi
21:53nsklaus_it seems these new m1s will heat and consume a bit more energy than the base model, while still staying way down compared to the competion
21:54jacoxon has quit []
21:54nsklaus_*competition
21:55nsklaus_i wonder what the reaction of the other companies will be (amd and intel, mainly)
21:56nsklaus_actual benchmark will be interesting to look at too
21:57bgb has quit [Ping timeout: 480 seconds]
21:57nsklaus_memory throughput seems very nice
22:05bgb has joined #asahi
22:06aleasto has quit [Quit: Konversation terminated!]
22:13bgb has quit [Ping timeout: 480 seconds]
22:21bgb has joined #asahi
22:23kenjigashu has joined #asahi
22:23kenjigashu has quit [Remote host closed the connection]
22:29bgb has quit [Ping timeout: 480 seconds]
22:39bgb has joined #asahi
22:47bgb has quit [Ping timeout: 480 seconds]
22:49kenjigashu has joined #asahi
22:55bgb has joined #asahi
23:03bgb has quit [Ping timeout: 480 seconds]
23:04yuyichao has quit [Ping timeout: 480 seconds]
23:11bgb has joined #asahi
23:18amw has joined #asahi
23:19bgb has quit [Ping timeout: 480 seconds]
23:20kenjigashu has quit []
23:28bgb has joined #asahi
23:30yuyichao has joined #asahi
23:31avalos has joined #asahi
23:32avalosHello, everyone.
23:33avalosThis project sucks. I mean, it's extraordinary and all, but it's missing the most important part of any project:
23:33avalosA FAQ that explains the meaning of its name.
23:33avalosI'm curious!!! Lol.
23:34avalosAnd I'm also stupid. That's already explained on the about section.
23:35avalosAnd there's also a FAQ.
23:35avalos has left #asahi [#asahi]
23:36bgb has quit [Ping timeout: 480 seconds]
23:41yuyichao has quit [Quit: Konversation terminated!]
23:43yuyichao has joined #asahi
23:45bgb has joined #asahi
23:51malvo has quit [Read error: Connection reset by peer]
23:51malvo has joined #asahi
23:53bgb has quit [Ping timeout: 480 seconds]
…