#
…

2023-04-15

00:23A_L_I_C_E has quit [Ping timeout: 480 seconds]
00:24A_L_I_C_E has joined #asahi-dev
00:57A_L_I_C_E has quit [Read error: Connection reset by peer]
00:58A_L_I_C_E has joined #asahi-dev
01:17renatorabelo has joined #asahi-dev
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi-dev
02:00gabuscus has quit []
02:08UserC2 has joined #asahi-dev
02:11renatorabelo has quit [Read error: Connection reset by peer]
02:12gabuscus has joined #asahi-dev
02:41pthariensflame has joined #asahi-dev
02:54pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
02:56newiz has joined #asahi-dev
03:03apalos has quit [Quit: ZNC 1.7.2 - https://znc.in]
03:04apalos has joined #asahi-dev
03:06apalos has quit []
03:07apalos has joined #asahi-dev
04:40nicolas17 has quit [Ping timeout: 480 seconds]
04:43A_L_I_C_E has quit [Ping timeout: 480 seconds]
05:14A_L_I_C_E has joined #asahi-dev
05:27UserC2 has quit [Quit: Page closed]
05:47A_L_I_C_E has quit [Ping timeout: 480 seconds]
06:05A_L_I_C_E has joined #asahi-dev
06:25jannaukettenis: latching the firmware on as initrd breaks booting linux via grub. linux prefers the initrd from /chosen and booting with firmware.cpio doesn't work
06:27jannaudeleting the linux,initrd* properties from chosen on u-boot command line fixes it
06:30jannauusb xhci works in linux without and with firmware (patched to check link status before setting up the port)
06:33jannauhow do we want to handle the firmware? appanding it to boot.bin doesn't look very appealing to me. Do we want m1n1 to to load it from the ESP?
06:35jannauI suppose having u-boot load it from ESP is not an option since it needs to be available at init
06:41jannauChaosPrincess: I fear you won't have much luck getting the driver merged with sw rotation. How does macOS handle this. I would expect the HW to support rotation if it is an old iphone display controller
06:44chipxxx has quit [Ping timeout: 480 seconds]
06:45jannaudid rotation in struct drm_plane change after you added panel_orientation? I suppose this is the way it is supposed to work with display controllers supporting rotation in HW
06:46jannausince you can't (yet), you proabbly have to reject plane states with rotation in atomic_check
06:47newiz has quit [Remote host closed the connection]
06:48jannaunot sure if that will fix anything since it would then depend on user space to have SW rotation fallback
06:50jannauusing the sw rotation in the driver for is of course fine if it makes testing less annoying
06:59ChaosPrincessjannau: macos handles this by having surfaces rotated the right way already
07:00ChaosPrincessAnd i wasnt able to find rotation registers by writing random stuff to random registers and seeing what happens
07:03jannauok. since we will be in the control of userspace we should also use pre-rotated surfaces
07:09ChaosPrincessThere is also still the issue that x thinks it is the primary screen, and tries to display sddm/kde there
07:10ChaosPrincesswhile primary stays completely black.
07:11nsklaus has joined #asahi-dev
07:21jannaualthough ideally we would prevent X form using the display at all, might be fixed by ensuring the touchbar daemon starts before X
07:22jannauI'll try to see if I can ensure that dcp reliably is card0
07:23ChaosPrincessjannau: where do i put those configs again?
07:28ChaosPrincessadded https://paste.bingner.com/paste/kmr4s - now it only displays on primary, and touchbar does not even show in kde display configuration
07:30gabuscus has quit []
07:30ChaosPrincessand, thats an X problem, wayland sees both
07:37jannauthat's X config so it is expected to only affect X. it's a relieve that that works as it means we do not have to fix X. ensuring that various wayland compositors don't do silly things might take some time but at least we can fill bug reports
07:40gabuscus has joined #asahi-dev
07:42urothis has joined #asahi-dev
07:44urothisI have a weird issue with pikvm and the asahi bootloader. Some discussion has led me to believe this is related to the kvm wanting 50hz instead of 60. Is there any guides/data on how to check the logs or how to debug m1n1?
08:03jannauurothis: using m1n1's proxymode and m1n1's the hypervisor. see https://github.com/AsahiLinux/docs/wiki/Tethered-Boot-Setup-(For-Developers)
08:05jannauif you want a less fiddly proxy mode setup you can either do a second installation with "m1n1 proxy" or temporary replace m1n1/boot.bin on the ESP with a plain m1n1.bin
08:07jannauaccess is then available over usb. the m1n1's console output will be forwarded the first time you connect
08:08jannauwith `tools/chainload.py -r ../build/m1n1.bin` from the proxyclient directory you can load you locally build m1n1
08:08jannaudisplay code is in src/display.c
08:10jannaubut if you just want to test if it is the refresh rate you could edit the commneted display= line in /etc/m1n1.conf and run update-m1n1
08:28jannauChaosPrincess: dcp is intentionally written in a way it doesn't get card0 to be more resilient against error during initialisation. It removes simpldedrm late so simpledrm works as display if something fails during init
08:30jannaunot sure if that still makes sense. I haven't heard any complains lately and we support nomodeset should there be issues
08:40ChaosPrincessrebased the touchscreen patches on display ones - whatever is processing the touchscreen events thinks they belong on the primary screen and so they end up on the wrong one
08:40chadmedif we're going to init dcp in m1n1 going forward anyway do we even need simpledrm at all
08:50jannauI doubt we want to init dcp for devices with integrated display. dcp will be shut down when leave m1n1 so I don't see how that changes anything and distro kernels will still built-in simpledrm and have large hw specific display drivers as module
09:05jannauChaosPrincess: touchbar display works on M2 as well
09:09ChaosPrincesssend the device tree my way if you dont mind, i will be changing it so mipi is not done as just a hack
09:11mpsnice news, I could test it on weekend
09:21jannauworks with the touchbar display m1n1 experiments, not sure if there is much to test otherwise
09:21jannaucan't recommned it as video player though
09:21ChaosPrincessyou can grab that
09:22jannauis it expected that there's sometimes a white stripe at the top above '4' during bad apple?
09:23ChaosPrincessi dont think i clear the framebuffer memory, so aside from the actual part that shows the video, the rest is mostly garbage data
09:25jannauit's black but over the the 4 is sometimes a row of white pixel of various lenght
09:25j`eycan someone take a pic of it?
09:25ChaosPrincessoh, on mine it shows snow on half the screen for the first 10-ish seconds and then goes black
09:28i509vcb has quit [Quit: Connection closed for inactivity]
09:30kettenisjannau: the original idea was to append the cpio to the m1n1+u-boot+dtbs boot.bin on the ESP
09:31kettenisbut the grub initrd behaviour makes that unattractive
09:35cylm has joined #asahi-dev
09:42marcanjannau: we don't want to touch DCP for integrated panels, I don't think it's even safe to do that with an active framebuffer (e.g. might break backlight aging management)
09:42marcanDCP does a *lot* more magic stuff with integrated panels
09:43marcaneven whatever state iBoot leaves it in might not be that safe long term, it's unclear, but we've been sweeping that problem under the rug for now; hopefully we'll promote DCP to primary driver soon so we can stop worrying about that
09:46jannauj`ey: I'll make a video once the playback experience is improved
09:46j`eyjannau: cool, ty
09:55lewurm`` has quit [Ping timeout: 480 seconds]
09:55lewurm`` has joined #asahi-dev
09:58marcankettenis: I'm fine with the initrd approach, idea was to just have a subset of firmware in there for u-boot use only (we can make the installer do that)
09:58marcanwe just need something to drop that from the device tree before handing off
10:01kettenisdropping it from the device tree is a bit tricky
10:01kettenissince drivers are probed lazily in u-boot and we don't want to drop an initrd loaded by the user in u-boot
10:02kettenisI suppose I could stash the location of the initial initrd and remove from the device tree early
10:04j`eyChaosPrincess: very cool, congrats!
10:08marcanthat is hilarious :D
10:10mpsheh, I expected static image and had to repeat to understand what is happening
10:11mpsso, mpv will be able to play videos on touchbar :)
10:32jannauj`ey: m1n1 can be used as video player after some optimisation: https://www.jannau.net/asahi/touchbar_m1n1_bad_apple.mp4
10:42lewurm`` has quit [Ping timeout: 480 seconds]
10:49lewurm`` has joined #asahi-dev
11:05___nick___ has joined #asahi-dev
11:12jannaumore hilarious with 25 copies over the whole touchbar
11:14chadmedjust hard code the driver to do that, this is the absolute maximum utility for the touchbar
11:50svenlooks like the atc fuses survive a power down/reset at least for usb3 mode
11:50svenlets see about thunderbolt
12:14bluetail42why is it always bad apple :D is this a inside joke ?
12:14bluetail42I know its a touhou thing
12:35kujeger has quit [Quit: ZNC 1.8.2 - https://znc.in]
12:38kujeger has joined #asahi-dev
12:41chadmedbecause its awesome and instantly recognisable and only needs two colours to view correctly
12:42chadmedtheres probably another reason but really who needs more than that first one
13:19veloek has quit [Ping timeout: 480 seconds]
13:19roxfan2 has quit [Ping timeout: 480 seconds]
14:09jannauChaosPrincess: drm driver works on m2 too. I'll send you the dt changes
14:09jannauchadmed: I found another usecase for the touchbar: you can move the panel there
14:14jannauit's slightly broken though since you apparently can't have a full screen panel
14:16jannauand it needs a setting to always open apps on the main display
14:24dottedmagjannau: neat. sounds like something M1/M2-specific compositor/compositor plugin can utilize fully.
14:56jannauChaosPrincess: m2 dt and dcp change to register as card0. user space seems to be happy with that and uses the laptop display as default
15:15roxfan has joined #asahi-dev
16:01nsklaus has quit [Quit: ZZZzzz…]
16:05cylm_ has joined #asahi-dev
16:47pthariensflame has joined #asahi-dev
16:49cylm_ has quit [Quit: WeeChat 3.8]
16:50pthariensflame has quit []
16:54i509vcb has joined #asahi-dev
17:09pthariensflame has joined #asahi-dev
17:11pthariensflame has quit []
17:31A_L_I_C_E has quit [Remote host closed the connection]
17:37sjg1 is now known as sjg
18:00nsklaus has joined #asahi-dev
18:19___nick___ has quit []
18:21___nick___ has joined #asahi-dev
18:22___nick___ has quit []
18:24___nick___ has joined #asahi-dev
19:32drubrkletern has joined #asahi-dev
20:02ChaosPrincess has quit [Quit: WeeChat 3.8]
20:02ChaosPrincess has joined #asahi-dev
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:20Hibyehello has quit [Ping timeout: 480 seconds]
20:29darkapex1 has joined #asahi-dev
20:31darkapex has quit [Ping timeout: 480 seconds]
20:31nela has quit [Ping timeout: 480 seconds]
20:43drubrkletern has quit [Ping timeout: 480 seconds]
20:50nela has joined #asahi-dev
20:53drubrkletern has joined #asahi-dev
20:55___nick___ has joined #asahi-dev
21:42kaazoo has joined #asahi-dev
21:43Z750 has quit [Quit: bye]
21:44Z750 has joined #asahi-dev
22:09chadmedjannau: youre going to make me like the touch bar :P
23:02nsklaus has quit [Quit: ZZZzzz…]
23:30drubrkletern has quit [Remote host closed the connection]
23:54nicolas17 has joined #asahi-dev
…