2022-01-05
00:23Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:27Dcow_ has joined #asahi
00:53yuyichao has quit [Ping timeout: 480 seconds]
01:00Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:14aleasto has quit [Quit: Konversation terminated!]
01:17artpw_rules: interestingly, my 16core 2GHz a72 router (nxp lx2160a) also took 11 minutes (real 11m17.078s/user 80m58.745s/sys 11m22.666s, according to time) >Building the image requires downloading of a large amount of data and compilation of a number of packages, including the kernel. On my six core Xeon laptop, building it took about 11 minutes (90 CPU minutes).
01:19tpw_rulesa much greater portion of the build time should be the kernel if you aren't cross-compiling though
01:20Dcow_ has joined #asahi
01:29tpw_rulesar: time nix-build --check /nix/store/a6rqww6p083p59wa4bcn5xhlffds75q2-linux-5.16.0-rc5-asahi-next-20211214.drv
01:44tpw_ruleson the m1 mac mini that command is real 4m32.986s/user 25m5.629s/sys 1m31.528s . that's with all the files on the internal nvme, and i am led to believe the CPUs are not quite running at full power. it's about 10 seconds faster if /tmp is on RAM
01:44Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:58yuyichao has joined #asahi
02:27Dcow_ has joined #asahi
02:50Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:54chadmed has joined #asahi
03:02amwGlanzmann: I have gotten the u-boot nvme booting my linux via grub - but had to copy over EFI/BOOT/grubaa64.efi to bootaa64.efi
03:30kov has quit [Quit: Coyote finally caught me]
03:30kov has joined #asahi
03:41c10l1 has joined #asahi
03:41c10l has quit [Read error: Network is unreachable]
03:41phiologe has joined #asahi
03:45PhilippvK has quit [Ping timeout: 480 seconds]
04:07c10l1 is now known as c10l
04:09marvin24_ has joined #asahi
04:13marvin24 has quit [Ping timeout: 480 seconds]
06:28Guest10325 has joined #asahi
06:29Guest10325 has left #asahi [#asahi]
06:29Guest10325 has joined #asahi
06:33Guest10325 has left #asahi [#asahi]
06:41akemin_dayo has quit [Ping timeout: 480 seconds]
07:00GlanzmannThe problem is that uboot has a very basic efi implementation and expects it to be here EFI/BOOT/grubaa64.efi
07:11Glanzmannjannau: A few days I complained about my mouse jumping arround. I can't reproduce the issue with your kernel tree. Just that you know, you did a very good job on your kernel tree. Whatever you did. (USB hot plug works, trackpad is very good, wifi take 5 applys on top of it with one minor rej).
07:12GlanzmannOnly thing thta is missing for me is that nvme does not come up with u-boot. I tried two things to fix that: Copy the dts from your tree over to u-boot and recompile and revert u-boots shutdown nvme patch, but no luck.
07:12akemin_dayo has joined #asahi
07:14GlanzmannBut I also have some new messages in my xorg.log: https://tg.st/u/xorg-log-2022-01-05.txt
07:18Glanzmannjannau: I just did a typing speed test on 10fastfingers.com with 84 wpm, the mouse did not move.
07:28the_lanetly_052 has joined #asahi
07:28jeffmiw has quit [Ping timeout: 480 seconds]
07:43amwGlanzmann: I did the "dpkg-reconfigure grub-efi-arm64" and answered yes to the force install to removable partition and it put the smaller 864K shim as /boot/efi/EFI/BOOT/BOOTAA64.EFI
07:46eroux has joined #asahi
07:50the_lanetly_052 has quit [Ping timeout: 480 seconds]
08:05Glanzmannamw: I see, but does it boot for you? I tested with the symlink and also with the --removable and both booted for me.
08:13dcol542 has joined #asahi
08:14dcol542Hey all. So I managed to get wifi working last night however the adapter only appears 1050s after boot (seems pretty consistently 1050 seconds). Devices show in `lspci -k` but no adapter showing in `ip link show` nor `iwctl device list`. I took a dmesg log from when it started working: https://pbot.rmdir.de/rqqQedM_7ry_lL5C74uopA
08:17jannauGlanzmann: https://gist.github.com/jannau/b17cb2efcf7e443d49292d40b78a4247 should make u-boot compatible with the updated nvme ranch
08:19jannaudcol542: disable CONFIG_FW_LOADER_USER_HELPER_FALLBACK and possibly CONFIG_FW_LOADER_USER_HELPER
08:22jannauGlanzmann: I'm not aware any kernel changes which would change the trackpad behavior, is it possible that there are user space changes on your system which makes disabling the trackpad while typing work?
08:25Major_Biscuit has joined #asahi
08:29Major_Biscuit has quit []
08:29MajorBiscuit has joined #asahi
08:31mpsGlanzmann: kettenis: last night I talked on irc with an alpine developer who understand grub a lot better than and he explained what was my issue with grub can't find /boot/grub on proper partition
08:32mpsfact is, grub embeds partition number in bootaa64.efi during grub-install, so it can't be simply copied from somewhere
08:40tertu has quit [Ping timeout: 480 seconds]
08:49mpsjannau: you didn't comment my question about keyboard patch which add function keys with Fn+number_keys
08:51jannauI guess it's an acceptable workaround until we have basic touchbar support. any reason to exclude '-' and '=' for F11/F12?
09:23jannauhas anyone a 16-inch macbook pro? I'm interested in its keyboard/trackpad product id. reported in macos by `ioreg -l | grep -A5 "Apple Internal Keyboard / Trackpad" | grep ProductID`
09:44eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:49eroux has joined #asahi
10:16Glanzmannjannau: I tried your u-boot patch (https://gist.github.com/jannau/b17cb2efcf7e443d49292d40b78a4247), I copied the dts from your tree to the u-boot tree but it still does not find the nvme. :-( https://tg.st/u/screenshot-nuc-2022-01-05-11_16_14.png
10:17kettenismps: I don't think it is true that the partition number is embedded in the gurb binary for EFI
10:20Hotswap has quit []
10:21Hotswap has joined #asahi
10:28GlanzmannTo show you the effects. With your kernel the mouse holds still while I'm typing. With the asahi take 5 wifi it jumps all over the place when I'm typing.
10:31Glanzmannmps: On Debian testing, I can not confirm: https://pbot.rmdir.de/WJAFS0QReFKrtXeAB5NNJg
10:32dcol542 has quit [Remote host closed the connection]
10:33jannauGlanzmann: no video necessary, I'm not aware of any kernel change I would make responsible for this but I integrated a later dev state of the HID patches in my patchset
10:38mpskettenis: whatever it is but that was fix for me, I don't know much about how grub efi works, this is first time I had to look at its behaviour
10:39mpskettenis: https://unix.stackexchange.com/questions/267765/how-does-the-grub-efi-loader-find-the-correct-grub-cfg-and-boot-directory
10:56Major_Biscuit has joined #asahi
11:02MajorBiscuit has quit [Ping timeout: 480 seconds]
11:47Genbuchan[m] has joined #asahi
11:48aleasto has joined #asahi
12:44jannaulol, Dell's newest xps13 has a 1st gen touchbar without physical Esc button. I wonder if they add support in Ubuntu
12:46ChaosPrincessi thought that is not a toucscreen like in macos, just a bunch of fixed-function capacitive buttons
12:46ChaosPrincessthey will probably just connect it to the kb controller and not do snowflake stuff like apple
13:00ChaosPrincessthat dell laptop looks like 'lets take the worst parts of the macbook and add them to out product'
13:02opticronI have mixed feelings about the touch bar. I could be ok with TB+ESC, but I'd really need the OS/apps to integrate it which I feel like just won't happen
13:03lanodan_ has joined #asahi
13:04mpsnow I think I made mistake to select mb pro instead of air and reason is touchbar, but pro looked somewhat better
13:05lanodan has quit [Ping timeout: 480 seconds]
13:10mpsI'm using it with linux, just for some short (about month) used macos to run linux in qemu, nothing else on macos
13:11svenopticron: yeah, i sounded interesting at first but then a few years passed and nothing useful came out of it for me
13:40Glanzmannlandscape15[m]: But, you won't have usb-c hot plug and you will not have the new anti jump trackpad code in the current rc kernel.
13:41Glanzmannmps / jannau: I noticed that when I run the air on Linux the frame gets warmer than my hands. Probably the missing power management.
13:42mpsGlanzmann: on my machine cursor is stable all the time, that could be some problem in your userspace
13:43mpsGlanzmann: if I'm in cold room frame is also cold but when in warm it is warmer ;) (sorry, couldn't resist)
13:46mpssven: it works first time when I plug my external usb hub, but after I unplug it and try again to plug kernel doesn't detect it
13:46svenasahi has this commit here https://github.com/AsahiLinux/linux/commit/4d8a0a2c146a6dae81dde6d6cc40ae53f362e719
13:46Glanzmannmps: I see. So when I run the air with macos it is colder than my hands. When I run Linux it is hoter than my hands.
13:46* jannautoo. there should be no difference regarding usb-c hotplug. the same commit is in my patchset
13:47svenas long as the i2c nodes, the usb-pd and the dwc3 nodes in the device tree are present and you use that commit usb hotplug should work
13:48GlanzmannMight be. I can send you my kernel config. And tree is there, maybe you can reproduce.
13:57chadmed has quit [Remote host closed the connection]
13:57Glanzmannmps: I look forward to marcan rebasing the asahi tree on the latest rc. Than we will have u-boot, wifi, usb-c.
14:00j`eyGlanzmann: are you sure youre using the same config between janna's kernel and the wifi/take5?
14:01Glanzmannj`ey: No, I'm not. good point. I'll try to use jannau's config on take5 and see if the trackpad still jumps around.
14:02jannaudefconfig is not nice though since we have to at least change the page size for PCIe support
14:03j`eyGlanzmann: and USB hotplug, since it seems maybe youre missing CONFIG_USB_DWC3_DUAL_ROLE too?
14:07jannauGlanzmann: make sure SPI_HID_APPLE and HID_APPLEFT are enabled otherwise you will be end up without keyboard and/or trackpad
14:07landscape15[m]Glanzmann: thanks. Also, after installing a module the kernel should be compiled with ```make Image modules dtbs``` right?
14:10Glanzmannlandscape15[m]: Are you using Debian or another Distro? If you're Using Debian I always build a kernel package: make -j $(( 2* `nproc`)) V=0 bindeb-pkg; For another Distro, what you said. And don't forget to do 'make install' or at least 'make modules_install' and copy the kernel where it belongs to.
14:10jannauwould it make sense to have a apple_defconfig in linux-asahi? not intended to submitted upstream
14:10svenjannau: yeah.. i'll also have to get back to that series that will allow PCIe with 4k pages
14:15eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:23Glanzmannjannau: So with the asahi tree and you config, wifi works, u-boot works, usb-c hotplug works. But the trackpad is jumping around.
14:35pent1ckel has quit [Ping timeout: 480 seconds]
14:36___nick___ has joined #asahi
14:36___nick___ has quit []
14:38___nick___ has joined #asahi
14:47yuyichao has quit [Ping timeout: 480 seconds]
14:47Glanzmannmps: I could. But to be honest, I'll try to get back to Debian stable. Currently I'm on testing.
14:48Glanzmannmps: What is strange with jannaus kernel it is not jumping with the asahi tree it is. So either it is a config option or something went into rc4,rc5, or rc6 that makes it behave better.
14:58Bai-Chiang[m] has left #asahi [#asahi]
15:01jannauGlanzmann: https://gitlab.freedesktop.org/libinput/libinput/-/blob/main/quirks/50-system-apple.quirks should match with the new keyboard/trackpad patches
15:01pent1ckel has joined #asahi
15:02yuyichao has joined #asahi
15:16Dcow_ has joined #asahi
15:25Glanzmannjannau: Perfect. I just checked, my Debian testing as that exact file. I just tried debian stable but there is libinput so old. That I can't move the trackpad, but only press the left key. So I'll stay on testing.
15:28povik> apple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)
15:34mpspovik: let me see, I think I did already posted it here, have to look where is the file, give 10 minutes
15:57off^ has quit [Remote host closed the connection]
16:34malvo has quit [Ping timeout: 480 seconds]
16:51malvo has joined #asahi
16:56maztpw_rules: M1 doesn't implement the ARMv8 PMU. instead, it has a home grown PMU that doesn't work like the standard one, and doesn't count the same things.
16:59tpw_rulesis it something that eventually can be wired into `perf`? (or maybe has and i haven't turned on the appropriate kernel options?)
17:03maztpw_rules: yes. I have a driver on the list that does exactly that. the main issue is that the documentation for the various events is extremely sparse.
17:04mazwhat we don't (and won't) have is direct access to the counter from userspace (that'd be a new ABI, and I'm not going there), nor PMUs being exposed to KVM guests (for the same reasons).
17:06the_lanetly_052 has joined #asahi
17:25loki_val has joined #asahi
17:27crabbedhaloablut has quit [Ping timeout: 480 seconds]
17:35malvo has quit [Remote host closed the connection]
17:35malvo has joined #asahi
17:42Major_Biscuit has quit [Ping timeout: 480 seconds]
17:43jkkm has joined #asahi
18:04Major_Biscuit has joined #asahi
18:16Major_Biscuit has quit [Ping timeout: 480 seconds]
18:30the_lanetly_052 has quit [Ping timeout: 480 seconds]
18:34mazbut given that my mini draws less than a 20th of my normal box for half the speed, I see an immediate benefit.
19:30landscape15[m]<Glanzmann> "landscape15: Are you using..." <- Thanks a lot. So first I should do ```make modules_install``` before or after compiling the kernel?
19:37Glanzmannafter, it install the modules you have compiled into your system so that modprobe, insmod and friends can load them on demand.
19:57as400[m]Glanzmann: heh, wait for marcan releasing installer :) You will have to create database for keeping such a list.
20:07Glanzmannmps: I should have done that a long time ago. Also I should backup my linux m1 installation, instead I wipe the system every other month and don't recall how I got the trackpad working ...
20:16joske has joined #asahi
20:16joskedoes anyone have a patch for vscode to work with 16k pages? I recall someone had one for chromium?
20:23darkapex1 has joined #asahi
20:29darkapex has quit [Ping timeout: 480 seconds]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:11joske has quit [Remote host closed the connection]
21:12jeffmiw has joined #asahi
21:45roxfan has quit [Read error: Connection reset by peer]
21:46roxfan has joined #asahi
21:46Nspace has quit []
21:47Nspace has joined #asahi
21:47jochum_ has quit [Remote host closed the connection]
21:48jochum has joined #asahi
22:20Glanzmannmps: I see, maybe, I have to retry then. Can you post your git repository link or config somewhere?
22:55Glanzmannmps: Btw. tpaste.us is strange for download with wget (in a browser it works): https://pbot.rmdir.de/u/1hbDUUmD5AoMMtZqXBSt5A
23:00mpsGlanzmann: I usually use curl instead of wget when want to see something 'curl https://tpaste.us/xxx | less'
23:03GlanzmannWhen I download with wget or curl, it cuts the connection after 747k or so: https://pbot.rmdir.de/JaUV2ZXE3xQD3flKCeSbTw
23:03Glanzmannmps: So I always download with a browser, than upload it again and than upload it to somewhere else.
23:09hellstabber[m] has joined #asahi
23:09hellstabber[m] is now known as Eren[m]
23:17yuyichao has quit [Ping timeout: 480 seconds]
23:17jannauhttps://github.com/jannau/linux/tree/asahi-defconfig - not yet tested but should enable 16k page size and drivers for all supported HW, based on the arm64 defconfig so there are still tons of drivers which are not useful