#
…

2021-11-04

00:29yuyichao_ has quit [Ping timeout: 480 seconds]
01:23kode54they posted a reply to your review already
01:24kode54"works for me" seems to be the general point, and that it works for T2 Macs, and that they've never even tested M1
01:35marcanyeah, well... "works for me" doesn't cut it for Linux kernel submissions, unfortunately
02:03X-Scale` has joined #asahi-dev
02:09X-Scale has quit [Ping timeout: 480 seconds]
03:36kov has quit [Quit: Coyote finally caught me]
03:59PhilippvK has joined #asahi-dev
04:02phiologe has quit [Ping timeout: 480 seconds]
04:09kode54I was just stating what general bonehead said
04:09kode54I know that public contributions to pretty much any respectable project require that they work properly, not just for the submitter
04:10kode54when I saw that the patch included a function for getting mapping registers, I didn't realize it was a large switch block inside of a function that was also included in the patch
04:11kode54at least now if that person wishes to volunteer their hardware, you know you have someone who can test if T2 works
04:12kode54unfortunately, it doesn't look like any of that patch automates getting the board info from the ACPI tables, either
04:12kode54or does it?
04:12kode54guess that's another thing someone will have to implement, if a T2 owner is willing to donate a dump of their ACPI tables
04:13kode54as if it would be useful to write drivers without having hands-on with the test hardware
04:32PthariensFlame[m]I have a T2 model and would be willing to contribute, although I might have to be walked through some things.
05:46method_ has quit [Ping timeout: 480 seconds]
06:41Method has joined #asahi-dev
06:43chadmedbruh did the submitter really just answer marcan's criticism with "no its fine lol"
06:59kode54seems like it
07:02chadmedoh gosh he even defends ACPI-specific platform discovery
07:03chadmeds/he/they
07:07bps2 has quit [Ping timeout: 480 seconds]
07:37useableporthole has quit [Remote host closed the connection]
08:02sventhey are just new and not very experienced
08:13chadmedyeah, though idk how much slack is acceptable here given that its not really unique to linux that "works for me mate" isnt an acceptable QA test
08:14j_eyif no-one else is at least sending the patches...
08:14mazyou can always explain what is expected from a submission. they are of course free to ignore your suggestions, but you are also free to ignore them altogether in athat case.
08:18marcankode54: I actually have a friend with a T2 mac so I could test there fairly easily too
08:19marcanchadmed: the thing is the corellium patch was meant for M1 but doesn't do any of the DT things it should be doing, so it's actually doing neither of the M1/DT nor the ACPI stuff it should be
08:19marcana proper patch ideally needs to implement both DT and ACPI support so it works on both platforms
08:20svenat least that submission might be a good starting point for the firmware name discussion
08:21marcanyeah, I hope some other folks chip in on the firmware story
08:21marcanit was good to bring that up
08:22marcanif nobody does I'll just make something up and submit it :-)
08:23marcanbtw, does anyone know of a functional userspace ext4 implementation? It would be really convenient if the installer could poke around the linux rootfs, e.g. to deal with the firmware story
08:23marcanthe alternative is to have a firstboot thing or some firmware copy script that copies it from e.g. the ESP, but that's a bit more annoying since it needs distro integration to a greater extent
08:24marcanwonder if any of the incompatible features are common these days in default filesystems
08:26mazmarcan: fuse-ext2 ?
08:27marcanwould have to dike out the fuse part, but maybe?
08:30marcanlooking at my normal rootfs (which should've been mkfs'ed last year) all the features are compatible with lwext4 as far as I can tell
08:30marcanso that might be a good option
08:30marcanI just need to wrap it in a python module or something...
08:31marcanoh wait, but can I even hit raw block devices in 1TR?
08:31* marcantries...
08:44marcanyeah, works fine from python (at least for unmounted volumes)
08:44marcanand diskutil can create partitions without formatting and arbitrary GPT type GUIDs, so no issue there
09:21jacoxon has joined #asahi-dev
09:48kettenisread-only filesystem support is usually pretty easy, but writing is always tricky
09:51kettenisUsing the ESP has the benefit that other OSes can easily pick up things from there
09:54ketteniswouldn't pre-creating the Linux rootfs confuse a distro installer?
09:56kettenisi.e. it would see no free space, offer the user to use the existing Linux partition and wipe it?
09:56chadmedi assume it would just see an empty partition marked as a "Linux rootfs" with the correct GUID
09:57chadmedAnaconda can detect these and offer to automatically configure the rest of the filesystem automatically for you
09:58ketteniswell marcan is thinking about putting a filesystem there an pre-populate it with the wifi firmware
10:01chadmedwell that being said im not actually aware of any distros that offer arm64 installers like they do on the PC, usually you just extract a tarball of a rootfs and its up to the user (or in this case the asahi installer) to configure the rest of the system to boot and point a kernel to it
10:02chadmedso if we had the wifi firmware already dumped into the partition, youd just be adding whatever is in the tarball to /lib/firmware
10:03kettenisin my opinion that model (extract rootfs) is fundamentally broken
10:04kettenisespecially the armbian model where you have different rootfs images for each board that is supported
10:04chadmedi agree, but its what we have to work with for arm right now sadly
10:04chadmeduntil someone has the bright idea of releasing a new standard that standardises all the standards :P
10:05kettenismajor Linux distros offer proper installers for arm64 for "servers"
10:05chadmedyeah thats because those servers are usually equipped with ACPI and UEFI, so the existing amd64/PC installers work with very little modification
10:05chadmedyou cant guarantee every arm platform has both or even one of those though
10:06ketteniswell, the M1 will have UEFI ;)
10:06kettenisthat's the whole point
10:07kettenisRHEL will probably not run because they alledgedly only want to support ACPI
10:08chadmedtrue, but for the linux install experience to be "good" theyd have to boot from a live medium through the UEFI provided by u-boot and install... provided the distros release bootable arm live images that work without ACPI
10:08kettenisBut the others (Debian, Ubuntu, SuSE) should just work
10:10kettenisthere seems to be a little bit of an Arch bias here though, which I think uses the "untar rootfs" approach even on x86 isn't it?
10:10chadmedi think the benefit of supporting m1n1+uboot+edk2 is that once the rootfs is decompressed and configured (which we can make automatic via the asahi installer anyway), future updates and booting looks exactly like a PC to the end user
10:10kettenisbut that is probably because folks here tend to be tinkerers
10:11jixkettenis: not sure if it supports untar rootfs on x86 but it's not the default way to install it
10:11jixkettenis: usually you boot from USB and then use pacstrap, then chroot into that and setup more stuff
10:11sveni've only used arch because it had a convenient rootfs available fwiw
10:12chadmednah the arch install is somewhat similar to gentoo with less manual intervention. theres one command to build the rootfs once youve configured your disk
10:12kettenisanyway, I'm biased
10:13kettenisOn OpenBSD we use the same installer on all our architectures with jost some small quirks for each hardware platform
10:14chadmedthats the best way to do it imo, but im not sure you could convince the distros to rejig their arm tooling to support that on linux... yet...
10:14chadmednow that we have real arm workstations within reach of consumers that dont suck and arent $10,000 (looking at you ampere) they might be more willing to invest time in the process
10:15chadmedhell, we could really just set an example tbh
10:16kettenisas I said, Debian, Ubuntu and SuSE all offer ISO images for arm64
10:17chadmedtrue but the trick is booting them on the machine and getting them to work minus ACPI
10:17chadmedcan edk2 boot external media after its been chainloaded from u-boot? would we have to have an EFI executable that presents this as an option to the user?
10:18chadmed(im genuinely curious)
10:18kettenisthat just works as long as they don't deliberately cripple their kernel config like RHEL does
10:19kettenisand yes, both edk2 and u-boot automatically boot the removable media path thingy from external media
10:19ketteniswith my u-boot you can already boot a debian installer ISO from usb
10:19dottedmagCreating a small ext4 fs and stuffing all firmware into it would probably work, distro will only need to mount and symlink it.
10:20kettenisFAT would be better from my perspective ;)
10:20dottedmagBut then how is it different from ESP
10:21kettenisanayway, there is no reason the Asahi installer couldn't do both
10:23kettenishave a generic UEFI install option for Debian/Ubuntu/SuSE/OpenBSD and another option for the ALARM-based distro that marcan has proposed
10:42chadmedyeah i broadly agree. my one concern would be how we make this look sufficiently PC-like that even the most basic users will understand the paradigm
10:42chadmeddo we make a fake efi shim that tells them to mash F12 to boot from USB as a skeuomorph? do we let u-boot sort it out?
10:46marcankettenis: I'm talking about dumping a prepopulated rootfs
10:46marcan"proper installers" are great when distros have had a chance to do all the proper hardware enablement
10:46marcanuntil that happens images with the right things already installed are a better idea
10:47marcanproper installers won't work until everything is upstream and back downstream; I don't expect most people want to go that path for linux for at least a couple years
10:47kettenisyeah, I don't have to worry about that for OpenBSD
10:48kettenisI just commit stuff and within 24 hours Theo has built a new snapshot with it enabled ;)
10:48marcanand yeah, I think I'll dump the firmware into the ESP unconditionally so people can always rely on that being there
10:49phireI personally dislike "proper installers", I always try to install from a previous linux distro
10:49phireusb flash drives suck
10:51ketteniswell, you have to start somewhere ;)
10:51* mazinstalled his M1 by running the debian installer as a guest...
10:51phireI actually managed to install Linux on my newest laptop without a usb flash drive
10:51chadmedi havent used a gui installer in like 10 years, but the kinds of people we need to entice over are people who use gui installers...
10:52kettenisedk2 provides http boot, where you can point it directly at an ISO image and boot it
10:52chadmeddespite not wanting to use it at all, i do think its a worthwhile thing to support. that said, its mostly out of our hands as marcan said. itll be a thing the distros have to sort out themselves.
10:52phireThat was an adventure, I had to install grub from windows, then get the arch iso booting as a loopback
10:52kettenisno reason u-boot couldn't do the same
10:53yuyichao_ has joined #asahi-dev
10:54chadmedwould u-boot need to do it if edk2 can? we're chainloading that anyway, right?
10:55kettenisno, there is no edk2 involved on the m1 macs
10:55mazI don't think anyone plans to port edk2...
10:55kettenisu-boot provides its own UEFI implementation
10:56chadmedoh right yep
10:56chadmedim pretty sure i did know that, im just dumb
11:04kettenismarcan: so we need to transplant the "module-instance" property from the ADT into the device tree
11:06ketteniswe already add a "local-mac-address" property to the wifi pcie device node, so this isn't too difficult
11:06kettenisthe hard bit is to come up with a sensible property name and where to define the binding for it ;)
11:44milek7>btw, does anyone know of a functional userspace ext4 implementation?
11:44milek7maybe libguestfs?
11:46jn(hmm, i guess i should not suggest User Mode Linux or Linux in QEMU-TCG)
11:48maz has left #asahi-dev [Leaving]
11:49maz has joined #asahi-dev
11:53milek7ah, guestfs uses linux inside qemu...
11:58marcankettenis: we also need the antenna stuff
11:58marcan wifi-antenna-sku-info = [0x0000000000000001, 0x0000000000003358]
11:58marcanAIUI only the ASCII part matters
11:59kettenisthat bit isn't encoded in the OTP?
12:33gabuscus has joined #asahi-dev
12:50kettenishmm, it appears that it isn't
13:00kettenisbut at least for honshu the antenna sku doesn't seem to matter
13:41jbowen has joined #asahi-dev
13:53X-Scale has joined #asahi-dev
13:57X-Scale` has quit [Ping timeout: 480 seconds]
14:00aleasto has joined #asahi-dev
14:08yuyichao_ has quit [Quit: Konversation terminated!]
14:27yuyichao has joined #asahi-dev
14:48minecrell has quit [Quit: Ping timeout (120 seconds)]
14:48minecrell has joined #asahi-dev
15:06yuyichao_ has joined #asahi-dev
15:10yuyichao has quit [Ping timeout: 480 seconds]
15:15marcankettenis: yeah, but for other skus it might
15:16marcanso we need to pass it through anyway
15:17kettenismight as well
15:18kettenisI may have sent that message to the wrong devicetree mailing list
15:23yuyichao has joined #asahi-dev
15:27yuyichao_ has quit [Ping timeout: 480 seconds]
15:33svenmarcan: btw. does the t6000 still have that broken usb hotplugging behavior?
16:06dottedmagmarcan: Another thing to care about beyond fs is LUKS
16:37___nick___ has joined #asahi-dev
16:41___nick___ has quit []
16:43___nick___ has joined #asahi-dev
16:43___nick___ has quit []
16:45___nick___ has joined #asahi-dev
17:11jbowen has quit [Ping timeout: 480 seconds]
18:22opticrondottedmag, yeah, that was my one thought on initial setup/partitioning
18:23opticronbeyond what's been discussed
18:52kov has joined #asahi-dev
18:58jbowen has joined #asahi-dev
19:38mnurz has joined #asahi-dev
19:39mnurz has left #asahi-dev [#asahi-dev]
19:52jbowen has quit [Ping timeout: 480 seconds]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:08jacoxon has quit []
21:14jacoxon has joined #asahi-dev
21:26psykose has quit [Remote host closed the connection]
21:26psykose has joined #asahi-dev
21:33j_eykettenis: do you see any corrupted packets on the spi/kb?
21:34j_eykettenis: I always get one weird/corrupted packet on boot
21:34kettenisyes, I see some weird packets
21:34kettenisI think one of them is a proper HID report packet
21:36kettenisdon't think I'm seeing packets that fail the crc16 check unless I do something wrong
21:38jacoxon has quit []
21:42kettenisif it is a packet that starts with a 0x20 byte, I'd be interesting in seeing it fully
21:42j_eyI'll try get that to you at some point
22:42j_eymarcan: getting some (minor) warnings in new m1n1 code https://paste.gg/p/anonymous/f26f9dd2d2214b7eae4a6e0f8622f3ed
22:51aleasto has quit [Quit: Konversation terminated!]
23:55richbridger has joined #asahi-dev
…