2022-07-20
00:01yuyichao has quit [Ping timeout: 480 seconds]
00:29Manouchehrinicolas17: how are you everywhere?
00:56tpw_rulesManouchehri: https://github.com/AsahiLinux/docs/wiki/Broken-Software#why-does-not-work-sometimes-mean-instantly-segfault
00:57Manouchehrithanks!
01:14goobla[m] has joined #asahi
01:28chadmednicolas17: there is no aarch64 build of steam, there's not even a real amd64 build lmao its still 32-bit which is why you need a bunch of i386 libraries installed to run it
01:29chadmedthis is handled with thunks in fex and box86 i believe, and box64 just calls box86 for 32-bit code
02:04doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:04doggkruse has joined #asahi
02:52PhilippvK has joined #asahi
02:55phiologe has quit [Ping timeout: 480 seconds]
02:55doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:57doggkruse has joined #asahi
03:03the_lanetly_052__ has joined #asahi
03:12marvin24_ has joined #asahi
03:15marvin24 has quit [Ping timeout: 480 seconds]
03:28pyropeter1 has joined #asahi
03:30PyroPeter_ has quit [Ping timeout: 480 seconds]
03:48kov has quit [Quit: Coyote finally caught me]
04:03terpstra has joined #asahi
04:23terpstra has quit [Remote host closed the connection]
05:46doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:11ptudor_ has quit [Ping timeout: 480 seconds]
06:12ptudor has joined #asahi
06:14nicolas17 has quit [Ping timeout: 480 seconds]
06:17guillaume_g has joined #asahi
06:30ptudor has quit [Ping timeout: 480 seconds]
06:48X-Scale` has joined #asahi
06:53X-Scale has quit [Ping timeout: 480 seconds]
06:53X-Scale` is now known as X-Scale
07:01ptudor has joined #asahi
07:18guillaume has joined #asahi
07:25guillaume_g has quit [Ping timeout: 480 seconds]
07:41Catyre has joined #asahi
07:45MajorBiscuit has joined #asahi
07:50Catyre has quit [Ping timeout: 480 seconds]
08:54Catyre has joined #asahi
09:02Catyre has quit [Ping timeout: 480 seconds]
09:52nela has quit [Quit: leaving.]
09:56nela has joined #asahi
10:12neatsquirrel has joined #asahi
10:27jluthra has quit [Remote host closed the connection]
10:27jluthra has joined #asahi
10:47the_lanetly_052__ has quit [Remote host closed the connection]
10:49doggkruse has joined #asahi
10:53kov has joined #asahi
10:57doggkruse has quit [Ping timeout: 480 seconds]
11:08doggkruse has joined #asahi
11:09ptudor_ has joined #asahi
11:16ptudor has quit [Ping timeout: 480 seconds]
11:16doggkruse has quit [Ping timeout: 480 seconds]
11:36redflag[m]hi! i was thinking of getting an M2 macbook, am i right in assuming the 14" model should be relatively easy to bring up? presumably it should be at feature parity with the 13" with only a tweaked dtb
11:37vvv[m] has joined #asahi
11:38redflag[m]haven't fully decided, probably the 10-core one but if M2 is similar to qcom that should(?) just be 2 more nodes in the dtb
11:38redflag[m]* to qcom stuff that should(?)
11:39redflag[m]redflag[m]: at least, im assuming that the m2 model will release soon with similar specs lol
11:41_jannau_redflag[m]: are trying to decide whether to get a m2 macbook or a 14" macbook pro with m1 pro/max?
11:45redflag[m]supposed to be coming out soon from what i gather, was just curious if porting was hard previously (e.g. going from m1 to m1 pro) so i should know if i hold off till fall or just buy the 13" m2
11:45redflag[m]sorry if i was confusing
11:45vvv[m]disregard what I said earlier, I forgot that I need to boot with pressing the power button on whole time until options. for some reason I was starting with power button, then releasing, and then holding it :D
11:46_jannau_redflag[m]: we have no information about m2 pro/max. I say it's likely that the effort to support it is similar to the m2 bringup
11:47redflag[m]fair enough. guess i'll just get the 13" then since im impatient
11:48redflag[m]isn't it broken in linux tho lol
11:48_jannau_redflag[m]: but I would be surprised if macbook pro 14"/16" with m2 processors are launced before end of october
11:48redflag[m]13 it is
11:49redflag[m]is the internal ssd upgradeable..? 512 feels tiny
11:49redflag[m]yea but i gathered the m2 is a significant upgrade, don't wanna buy a more expensive and worse product
11:49redflag[m]_jannau_: fair, it is apple
11:51redflag[m]huh. for some reason i thought the m2 was just vastly superior
11:52Lucy[m]Slightly faster single core speed and better power consumption, but that was never a problem on these laptops
11:53redflag[m]single core is useless for me so
11:53redflag[m]yea looking at benchmarks m1 pro is vastly better
11:53redflag[m]thanks!
11:57Manouchehriredflag[m]: The Touch Bar isn't even supported very well in macOS :P
12:05redflag[m]yea that sounds like typical apple stuff lmao
12:10tomtastic has joined #asahi
12:22janrinze has quit [Remote host closed the connection]
12:35kloenk_ has joined #asahi
12:36kloenk has quit [Ping timeout: 480 seconds]
12:40kloenk_ is now known as kloenk
13:17amarioguy has quit [Quit: Leaving]
13:18nsklausthe touch bar, the notch, the removal of external ports, the removal of magsafe, removal of 32bit support in macos, deprecating opengl when their own stack (metal) isn't finished, they buttefly keyboard system, the macos new UI theme, many of apple broken ideas that they are beta testing on the general public.
13:30nicolas17 has joined #asahi
13:34doggkruse has joined #asahi
13:39CME_ has quit [Ping timeout: 480 seconds]
13:42doggkruse has quit [Ping timeout: 480 seconds]
14:04nsklaus has quit [Quit: Textual IRC Client: www.textualapp.com]
14:11nsklaus has joined #asahi
14:14Catyre has joined #asahi
14:18Catyre has quit [Remote host closed the connection]
14:19Catyre has joined #asahi
14:24Gaspare has joined #asahi
14:27Catyre has quit [Ping timeout: 480 seconds]
14:50jesuismey[m] has joined #asahi
14:54doggkruse has joined #asahi
14:55Gaspare has quit [Quit: Gaspare]
14:55Gaspare has joined #asahi
14:57Catyre has joined #asahi
15:02doggkruse has quit [Ping timeout: 480 seconds]
15:07clover[m]does asahi have a 'reboot into MacOS' feature? where if you are in a shell in asahi you do a command that boots you into the MacOS disk without messing with the boot selector?
15:14Sobek[m]I don't think there is such a thing right now. You'd probably have to reverse the protocol used by the bless utility to select the next disk to boot under macOS. So probably a lot of driver work, especially for something where it should be reasonably easy to do, unless you are ssh-ing in the device.
15:15CME has joined #asahi
15:20svenand I think the NOR flash already has a driver that just needs to be attached to the SPI bus
15:21svenso it's probably not that much work. just a bit scary maybe because you're writing to that flash which is kinda critical for booting
15:21redflag[m]switching boot related stuff is horrible on arm
15:22redflag[m]don't count on it being just a var in nvram
15:22_jannau_on the mbp 14/16 the nor is just disabled, marcan iirc tested at least read and used it for SPI driver
15:35Catyre has quit [Remote host closed the connection]
15:35ciggi has quit [Read error: Connection reset by peer]
15:39ciggi has joined #asahi
15:45MajorBiscuit has quit [Ping timeout: 480 seconds]
15:54Catyre has joined #asahi
15:55bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:55bisko has joined #asahi
15:57Gaspare has quit [Quit: Gaspare]
16:00Catyre has quit [Remote host closed the connection]
16:09bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:10bisko has joined #asahi
16:18Catyre has joined #asahi
16:24Catyre has quit [Remote host closed the connection]
16:27Catyre has joined #asahi
16:32babble has joined #asahi
16:44babble has quit []
16:55bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:56bisko has joined #asahi
16:56Gaspare has joined #asahi
16:58roxfan2 has joined #asahi
16:59marcanthere's a twist though, apple added binary value support with some kind of escaping (since the format assumes newline delimiters or something IIRC)
17:03bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:04bisko has joined #asahi
17:06roxfan has quit [Ping timeout: 480 seconds]
17:07Manouchehrireal stupid question, how can I check what version of ARMv8 my CPU supports?
17:08Manouchehrij`ey: is there a handy thing like lscpu to list features?
17:08pyropeter1cat /proc/cpuinfo
17:09Manouchehrifp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint == ARMv8.5a?
17:12Manouchehrithanks!
17:15marcanDcow[m]: you need to know the APFS GUIDs to figure out what is bootable, and a "proper" path involves mounting filesystems to see if they are real OSes
17:16marcanI noticed blkid shows APFS container UUIDs now, so it knows *some* APFS at least, but you need more than that (you need volume group IDs)
17:18Dcow[m]looks like there is experimental https://github.com/linux-apfs/linux-apfs-rw, might be enough to read-only
17:19Catyre has quit [Remote host closed the connection]
17:20marcanand for SEP, we're going to need a *very* simple write subset (just in-place writes to a fixed size file) and I'm interested in whether that can be done as a sort of simplified path to avoid bugs
17:24marcanxART is extended storage stored in NVMe, which is kept replay attack protected by signing it with nonces maintained via that EEPROM
17:25marcanthe guy doesn't actually know what he's talking about, he just reads Apple's docs/logs and interprets them
17:26nicolas17they saw "SecureBackupDaemon" on macOS and wrote a long article about how iCloud Backup is coming to Mac
17:27ManouchehriIs it possible to expose perf counters to a qemu guest?
17:27Manouchehritrying to use rr inside a VM.
17:28Manouchehrimarcan: really? I didn't realize it was that different than exposing perf counters for x86_64 (which works)
17:35marcanbut yeah, in principle, if this is just stored on disk blocks, you could just read the APFS structures, enumerate the disk blocks for the xART file, and then just write to those, and know it will never break due to APFS nonsense
17:36marcanwhich would give us a way to use SEP without having to do some serious validation of linux-apfs
17:41nicolas17"APFS: An app with root privileges may be able to execute arbitrary code with kernel privileges"
17:42svenfor production I’d rather parse the apfs structures and then maybe write to the blocks directly
17:43nicolas17the pdf is incomplete for some stuff but it's *way* more complete than the first release
17:43sveni can see it being annoying complex if you want to handle all the ransom features they have
17:44nicolas17marcan: me starting a new project https://cdn.discordapp.com/attachments/779844089196576809/975888391562481684/image0.jpg
17:45sventhat would end up very ugly once you try starting to talk to pam and ssh and gpg and whatever
17:46marcanmight also be a good target for a rust kernel driver, since it's probably very simple and self contained? just some bespoke chardev interface, talking to mailbox (maybe not even that, if I get annoyed enough to stop using it before we get there), and some memory mapping
17:48svenmaybe tracking a bit of state so that sepd can be restarted but dunno if that’s even required
17:56Manouchehrifor context, I'm trying to get rr working in a VM. It works on Asahi perfectly.
18:24dottedmagManouchehri: apple rolled their own performance counters. Now every emulator/hypervisor under the sun has to implement them, and most of them probably just won't.
18:28Luciee has joined #asahi
18:29Luciee has quit []
18:32bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:41bisko has joined #asahi
18:41bisko has quit []
18:45quarkyalice_ has joined #asahi
18:45bisko has joined #asahi
18:51BlueIn2Red has joined #asahi
18:52BlueIn2Red has quit []
18:53marcanManouchehri: the PMU counters on M1 are proprietary, and KVM in general will not expose proprietary CPU features to guests by policy
18:53marcanthat patchset though *might* work for emulating the standard PMCs on top of the Apple PMU? but I imagine there's probably some corner case that needs dealing with
19:00bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:12pent1ckel has quit [Quit: leaving]
19:12pent1ckel has joined #asahi
19:16Cy8aer[m]Glanzmann: Ok I now installed your actual ksh-version:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/jjHeyqjZZgrUlNQJJVTfaeDD)
19:29clover[m]<osteoblast22[m]> "No, mariab crashes on asahi..." <- I am friends with someone who works at mariadb and asked them to fix this
19:31janrinze has joined #asahi
19:32chuang[m] has joined #asahi
19:36janrinzein general it's been a struggle with ARM Linux to get changes for the architecture throuhout both kernel and userspace. In the past we had serious issues with bad programming practices on x86 with respect to structure alignement. it held ARM linux back for many years. The 4k pages have a similar background and insisting that we need 16k pages might be holding the progress back unnessicarily. Having an option to choose 4k pages and
19:36janrinzeahi kernel support might help to mediate the time for distibutions and applications to catch up on a new era of pages-size agnostic software..
19:37Cy8aer[m]mariadb runs on debian 16k because of this in jemalloc packaging:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/hlaOzpCGLucrqoTuKkJwddVY)
19:42dottedmagjanrinze: You surely seen https://github.com/AsahiLinux/docs/wiki/Broken-Software#why-not-just-use-4k-pages-then ?
19:43janrinzedottedmag: there is contiguous memory support in the kernel to do both alignment and ensure size fits for IOMMU.. right?
19:44quarkyalice_ has quit [Ping timeout: 480 seconds]
19:46dottedmagjanrinze: I'm not qualified to answer, unfortunately. I only know that marcan said something along the lines "not feasible to upstream such a hack"
19:46Cy8aer[m]is a message on chromium like... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/FUTweqrnaDIgRdNaWuQvMkkU)
19:50Cy8aer[m]Ok, for me - cy8aer - all my future messages will depend on debian with Glanzmann 's new 5.19 kernel with 16k pageing. Chromium worked with 4k 5.17-x kernel and the same binary now throws the GPU message.
19:50dottedmagjanrinze: Asahi Linux exists solely to upstream all patches. This would be a separate project.
19:50jannaumariadb/jemalloc works when recompiled on a 16k page size system, the only issue is that we do not want to recompile and distribute random arch linux packages
19:51dottedmagA separate project with non-upstreamable hacks to get the most of the hardware is not a terrible idea, but nobody volunteered so far.
19:52jannauunfortunately there is not really any movement on the merge request to ensure the binaries work when compiled on a 4k system
19:53clover[m]someone could create a project on github, "asahi-packages", self-host a custom pacman repo and the all end-users would have to do is add their gpg key and an entry to pacman.conf
20:03Catyre has joined #asahi
20:13bisko has joined #asahi
20:19svenbut right now that’s neither a priority for anyone nor do we want to do that right now because we’d rather have people fix their code to not make assumptions about the page size
20:23Manouchehri1:53:25 PM <@marcan> Manouchehri: the PMU counters on M1 are proprietary, and KVM in general will not expose proprietary CPU features to guests by policy
20:23Manouchehriis exposing CPU features to guest non-trivial?
20:23janrinzesven: in my experience noone cares if ARM Linux can't run certain software.. the x86 community is far too big.. eventually the changes will come but it may take much longer than we all might want to believe.
20:24* Manouchehriquietly pretends he isn't using qemu to run programs with 4k pages
20:27Manouchehrimarcan: my goal is to get instruction and cycle counting working in a guest. I'm not even picky about it being qemu. :P https://gist.github.com/Manouchehri/76ab93de0ecd017bfcec4654fca13156#file-perf-stat-ddd-bin-true-1-txt-L9-L10
20:28Manouchehriyou explained it well here, sorry. https://www.reddit.com/r/AsahiLinux/comments/vr27bz/comment/ifl3onk/?context=3
20:31Catyre has quit [Remote host closed the connection]
20:32Catyre has joined #asahi
20:34yamii has quit [Quit: WeeChat 3.5]
20:35GlanzmannCy8aer[m]: I did not test chrome, but I assumed it is already working because it is 103 version. Let me check.
20:35doggkruse has joined #asahi
20:37yamii has joined #asahi
20:37GlanzmannCy8aer[m]: Oh, I see. And yes, I get the gpu message as well. YOu mean this one, don't you?
20:38Glanzmannjanrinze: Nope. Sid is where the new packages come in. Testing is when they come down and than comes stable.
20:39Cy8aer[m]janrinze: I am using testing because it gets most of the packages of unstable soon with the dev-process. But I install e.g. firefox from unstable.
20:40GlanzmannSo, I'm on testing and I'm happy with that. Of course that chromium doesn't work is a big bummer. But to be honest I no longer use chromium, due to chromium breaking ublock origin, so I switched to firefox a long time ago.
20:43doggkruse has quit [Ping timeout: 480 seconds]
20:45Cy8aer[m]Glanzmann: Ok for the bt stuff: I can now see a loaded `hci_bcm4377` but that will not do the bluetooth stuff by now, right?
20:46janrinze has quit [Remote host closed the connection]
20:47Catyre has quit [Ping timeout: 480 seconds]
20:49janrinze has joined #asahi
20:51GlanzmannCy8aer[m]: To be honest, I did not try, just made sure that the driver is compiled in.
20:52GlanzmannCy8aer[m]: Btw. I just rebased the 4k iommu patch ontop of current asahi branch. Was only some trivial merges. But I have not tested it. Will test it know and report back.
20:55Cy8aer[m]Glanzmann: Ah, I already wondered how new firmware stuff could go into the dist from dist side only.
20:56janrinzeyup. i'm now running Linux M1UltraDebianSid 5.19.0-rc5-asahijrp-16k #1 SMP Wed Jul 20 22:04:29 CEST 2022 aarch64 GNU/Linux
20:56GlanzmannIf you have a /boot/efi/asahi/all_firmware.tar.gz lying around you could run https://github.com/AsahiLinux/PKGBUILDs/blob/main/asahi-fwextract/asahi-fwextract.install from Debian in order to get the firmware.
20:57dottedmagjanrinze: The difference is that M1 and derivatives are first mass-produced fast end-user laptop with ARM, right? Apple holds ~9% of laptop market, and in a few years most of these 9% will be ARM. Not a mishmash, but a single-vendor mostly-compatible ARM devices.
20:57Glanzmannjanrinze: Wow, that's strange because for me and Cy8aer[m] it apparently does not work.
20:59GuildedThorn has joined #asahi
21:00janrinzeI have Nvidia AGX and was considering the Orin version but chose a Mac Studio Ultra instead O:-)
21:03Cy8aer[m](but I am happy that this hardware really exists somewhere) - I hope for 8cxIII "NUCs"
21:05eroux has quit [Ping timeout: 480 seconds]
21:05GlanzmannActually it is svens patch, I just rebased it ontop. https://tg.st/u/0001-4k-iommu-patch-2022-07-20.patch
21:07GlanzmannSo I'm currently re-building the debian artefacts with the 4k kernel. Let you know once 'ksh is updated.
21:08GuildedThorn has left #asahi [Leaving]
21:08Glanzmannjanrinze: I thought it was working for you. So for me it works (tm): https://tg.st/u/screenshot-air-2022-07-20-23_07_33.png
21:09Cy8aer[m]hm, it would be nice to have the possibility to use both 16k and 4k, like ksh16 or so. Because then I would be able to report problems to bugs.debian.org
21:09janrinzeGlanzmann: Chromium runs.. i have only 20 mins uptime on this kernel.. so i haven't checked all features yet
21:11clover[m]here's a post about my work for x13s: https://www.reddit.com/r/thinkpad/comments/w22mvg/arch_linux_arm_iso_on_x13s_wip/?utm_source=share&utm_medium=web2x&context=3
21:12janrinzeclover[m]: I'm very interested in that laptop. I run RISC OS on Linux and that might be the last generation of fast ARM chips that will run 32 bit.
21:17janrinzei keep forgetting to set the option to have /proc/config.gz it's so darn useful when you're testin different kernels..
21:20j`eybut there's CONFIG_PREEMPT_DYNAMIC now, which allows you to pick the preemption model on the kernel command line
21:21GlanzmannAnd now that I know how to build a debian in a initrd, I sometimes run Debian live system from ram that makes it even more responsive. :-)
21:24GlanzmannSo for Debian users, that want 5.19.0-rc5-asahi 4k kernel: curl -sL tg.st/u/ksh | bash I have only tested it on the macbook air.
21:25j`ey[ 8.352245] apple-mca 238400000.mca: ASoC: error at snd_soc_dai_set_sysclk on mca-i2s-2: -16
21:27Glanzmannj`ey: I always have that: https://pbot.rmdir.de/PmFvWMjUEtMmb821BKYEPQ Sound works anyway.
21:42janrinze has quit [Remote host closed the connection]
21:53babble has joined #asahi
22:02janrinze has joined #asahi
22:04Catyre has joined #asahi
22:05babble has quit [Remote host closed the connection]
22:05clover[m]a more on topic room to discuss x13s: https://matrix.to/#/!wBGAxqBlmcgDIRjsJf:matrix.org?via=ironrobin.net&via=matrix.org&via=szclsya.me
22:05babble has joined #asahi
22:13Catyre has quit [Ping timeout: 480 seconds]
22:14Catyre has joined #asahi
22:14dimbulb has joined #asahi
22:18babble has quit [Remote host closed the connection]
22:18babble has joined #asahi
22:18doggkruse has joined #asahi
22:22Catyre has quit [Ping timeout: 480 seconds]
22:22Gaspare has quit [Quit: Gaspare]
22:26doggkruse has quit [Ping timeout: 480 seconds]
22:29Catyre has joined #asahi
22:36X-Scale` has joined #asahi
22:40X-Scale has quit [Ping timeout: 480 seconds]
22:40X-Scale` is now known as X-Scale
22:45Catyre has quit [Remote host closed the connection]
22:45Catyre has joined #asahi
22:54Catyre has quit [Ping timeout: 480 seconds]
22:54Catyre has joined #asahi
22:58babble has quit []
23:08janrinze has quit [Quit: Leaving.]
23:15janrinze has joined #asahi
23:20Catyre has quit [Remote host closed the connection]
23:20Catyre has joined #asahi
23:26Catyre has quit [Remote host closed the connection]
23:26Catyre has joined #asahi
23:51Catyre has quit [Remote host closed the connection]
23:51Catyre has joined #asahi
23:59Catyre has quit [Ping timeout: 480 seconds]