2022-11-16
01:22beeblebrox has joined #asahi-alt
02:38beeblebrox has quit [Quit: Konversation terminated!]
04:23cylm has joined #asahi-alt
04:40opticron_ is now known as opticron
05:42dcavalca has quit [Quit: Ping timeout (120 seconds)]
05:44ids1024 has joined #asahi-alt
06:34pthariensflame has joined #asahi-alt
06:34cylm has quit [Ping timeout: 480 seconds]
06:50pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
07:11pthariensflame has joined #asahi-alt
07:14pthariensflame has quit []
07:54Glanzmann has joined #asahi-alt
07:58Glanzmannjannau: This is my script that I used to build u-boot: https://pbot.rmdir.de/PlvWBZ7MT39BTsDIin_2aw
07:59GlanzmannWith the edge config option the kernel hangs for me during boot in userland and tells something about deferred probing.
08:06_jannau_that's a side effect of the usb-3 support in the devicetree. u-boot misses at least a dummy drivers atcphy driver
08:17_jannau_that is a problem for all devices with usb-3 support, in asahi-wip all except m2 but I have the patches for usb-3 on m2
08:18mpshmm, I built latest asahi-wip, latest m1n1 1.1.8 and latest u-boot, lsusb shows usb 3.2 and keyboard works in u-boot
09:32Glanzmannmps: Yes that is with the minis. The old macbooks have keyboard using spi. The new once using something else I forgot.
10:18Glanzmannjannau: With the lastest u-boot/m1n1 version the 'display=2560x1440 >> /boot/efi/m1n1/boot.bin' results in an unbootable 'boot.bin' is that expected?
10:20GlanzmannAnyway hopefully the dcp will be soon mature enough that this workaround is no longer needed.
10:31Glanzmannj`ey: At least I gzip u-boot. I wrote a script for ry darcy and send it to him via email. IIRC he replied via email to me and jannau about the 'echo' issue.
10:31_jannau_no, the problem is that the reallocated framebuffer is not reserved. So when the dart-disp0 is initialized the display processor can not access it anymore and crashes
10:33Ry_Darcy has joined #asahi-alt
10:33Glanzmannj`ey: I checked the email so for ry darcy it was different. It still booted but no xorg started. For me it crashes.
10:38Ry_DarcySome info: Hallo Thomas. I compiled the asahi-6.1-rc5-7 kernel yesterday on my M1 Mini. Compiles and starts clean. I am using Glanzmann's script. Compiles and restarts (boots) clean. However, I am not using CONFIG_DRM_APPLE in my .config. So, I cannot contribute much here. I will try this evening to incluse CONFIG_DRM_APPLE in the compile and see what happens.
10:41Ry_DarcyAlso, I am not passing "echo display=xxxx" parameter string to boot.bin as the last time I tried to inject 4K resolution using this command resulted in me having to ssh in and copying a virginal boot.bin to get my display back to normal.
10:59GlanzmannRy_Darcy: I see. Let me know who dcp works for you. I'll also try dcp again without the gpu (I have this running currently and everything is fine expect the window resize issue, however most of the time I work in full screen windows and use shortcuts for tiling that I don't notice).
11:24Glanzmannmps: I tried building the gpu driver several times. Sometimes the kernel booted but failed to probe the gpu, others it gives me a black screen and no network, sometimes I reach userland but it hangs in initrd telling me about probing stuff and never finishes. However I'll wait until it is released and try again.
11:25Glanzmannmps: I still don't understand what I have to do to get a functioning mesa userland for apple gpu.
11:25GlanzmannThere was in the irc backlog someone explaining how to to build it, maybe I wrote it down, but I never tried it.
11:26Glanzmannmps: Neither do I, but I look forward to the day we can watch a movie in fullscreen on m1 with mpv without tiering.
11:30_jannau_you would need to build mesa from lina's repo (or alyssa's), the uapi parts to speak with lina's gpu kernel driver are not upstream
11:30mpsGlanzmann: m_arcan talked about changing refresh rate between 120 and 60 Hz, and I tried but don't see any difference
11:31yukagpu driver (DRM_ASAHI) worked fine for me from the appropriate kernel/m1n1 branches, _but_ could only get it to work when booting as m1n1 guest
11:32mpsI will not yet waste time for gpu because I'm not sure how to build kernel with rust on alpine
11:32Glanzmannjannau: I saw the mouse pointer choppiness on my mini but this was ages ago and some point you fixed it. I have not seen it for ages.
11:34Glanzmannjannau: So at some point when the gpu is ready, in order to have fast mpv video playback, I need to build the asahi mesa drivers and than tell mpv to use 'gl' as 'vo'?
11:36Glanzmannmps: I have not tried that on m1. But I also used mpv on simpledrm in xorg to watch a movies for multiple hours.
11:37Glanzmannyuka: Because I always try the standard boot chain so m1n1, m1n1 stage2, u-boot, grub, kernel/initrd.
11:40mpsGlanzmann: btw, because you don't use KDE I have hacky keyboard backlight daemon which dim leds after timeout of activity of input devices, works only with xorg. I you need it
11:41GlanzmannHrhr, I always turn off my keyboard backlight unless I'm in a complete dark room. But let me see it, maybe I can use it at some point.
11:44yukaGlanzmann: no idea what is the issue when booting gpu drivers via the normal boot chain, since there is no way to debug it really
13:38Ry_Darcy has quit [Quit: Page closed]
14:55Ry_Darcy has joined #asahi-alt
15:00Ry_Darcy@Glanzmann, running on linux-asahi-6.1-rc5-9 (Debian, XFCE, x11) with DRM_Apple enabled on an M1 Mini.
15:44Ry_Darcy has quit [Remote host closed the connection]
16:46leafpaw has quit [Remote host closed the connection]
16:47leafpaw has joined #asahi-alt
16:52xcpy0 has quit [Remote host closed the connection]
17:11leafpaw has quit [Ping timeout: 480 seconds]
17:22leafpaw has joined #asahi-alt
17:23JTL has quit [Ping timeout: 480 seconds]
17:26JTL has joined #asahi-alt
17:29Glanzmann has quit [Quit: n8]
19:28Glanzmann has joined #asahi-alt
19:29Glanzmannjannau: So, after updating to Ventura, I tried the 'edge' config again. It could not find my nvme device. But when I set every config option which is '=m' to '=y' than it boots but crashes or kills usb shortly after boot. Also it does not detect the 2k resolution.
19:32GlanzmannHBuildscript: https://pbot.rmdir.de/Yi-Lf7pv0JnxSoEdO_W8ug Config: https://pbot.rmdir.de/b1YpYRx-09Ia7ptCRYYH1w
19:35jannauknown issue for devices with more than one iommu. not sure if it's a bug in our dart code or in the kernel device probing
20:36xcpy0 has joined #asahi-alt
21:41Glanzmann has quit [Quit: leaving]
22:26jamespmorgan has joined #asahi-alt
22:48jamespmorgan has quit []
22:48jamespmorgan has joined #asahi-alt
22:53cylm has joined #asahi-alt
22:56jamespmo_ has joined #asahi-alt
23:02jamespmorgan has quit [Ping timeout: 480 seconds]