#asahi-dev · 2023-04-15 08:08
jannaudisplay code is in src/display.c#asahi-dev · 2023-04-15 08:08
jannauwith `tools/chainload.py -r ../build/m1n1.bin` from the proxyclient directory you can load you locally build m1n1#asahi-dev · 2023-04-15 08:07
jannauaccess is then available over usb. the m1n1's console output will be forwarded the first time you connect#asahi-dev · 2023-04-15 08:05
jannauif 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#asahi-dev · 2023-04-15 08:03
jannauurothis: using m1n1's proxymode and m1n1's the hypervisor. see https://github.com/AsahiLinux/docs/wiki/Tethered-Boot-Setup-(For-Developers)#asahi-dev · 2023-04-15 07:37
jannauthat'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#asahi-dev · 2023-04-15 07:22
jannauI'll try to see if I can ensure that dcp reliably is card0#asahi-dev · 2023-04-15 07:21
jannaualthough ideally we would prevent X form using the display at all, might be fixed by ensuring the touchbar daemon starts before X#asahi-dev · 2023-04-15 07:20
jannaudoes a OutputClass with PrimaryGPU false like https://github.com/AsahiLinux/PKGBUILDs/blob/main/asahi-configs/30-modeset.conf help#asahi-dev · 2023-04-15 07:03
jannauok. since we will be in the control of userspace we should also use pre-rotated surfaces#asahi-dev · 2023-04-15 06:50
jannauusing the sw rotation in the driver for is of course fine if it makes testing less annoying#asahi-dev · 2023-04-15 06:48
jannaunot sure if that will fix anything since it would then depend on user space to have SW rotation fallback #asahi-dev · 2023-04-15 06:46
jannausince you can't (yet), you proabbly have to reject plane states with rotation in atomic_check #asahi-dev · 2023-04-15 06:45
jannaudid 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#asahi-dev · 2023-04-15 06:41
jannauChaosPrincess: 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#asahi-dev · 2023-04-15 06:35
jannauI suppose having u-boot load it from ESP is not an option since it needs to be available at init#asahi-dev · 2023-04-15 06:33
jannauhow 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?#asahi-dev · 2023-04-15 06:30
jannauusb xhci works in linux without and with firmware (patched to check link status before setting up the port)#asahi-dev · 2023-04-15 06:27
jannaudeleting the linux,initrd* properties from chosen on u-boot command line fixes it#asahi-dev · 2023-04-15 06:25
jannaukettenis: 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#asahi-dev · 2023-04-14 19:45
jannaugoes off preparing the do not init port if link is already up patch#asahi-dev · 2023-04-14 18:41
jannaunot sure. it is still ChaosPrincess patch. I might did some minor modifications and tested it. iirc#asahi-dev · 2023-04-14 17:57
jannaunicolas17, ChaosPrincess: spi-nor / nvram partition as in asahi-6.2-12 works as intended on m2#asahi-dev · 2023-04-14 08:13
jannauI don't see how drivers/gpu/drm/udl handles that. maybe modeset acts differently with drm_gem_fb_create_with_dirty / damage regions / DRM_GEM_SHADOW_PLANE_FUNCS#asahi-dev · 2023-04-14 08:09
jannauif it didn't that simpledrm wouldn't work#asahi-dev · 2023-04-14 08:09
jannauno, the actual display controller scans the current fb(s) continuously out#asahi-dev · 2023-04-14 08:02
jannaunot sure if drm/kms has something for that case. it has to have though. I would look at displaylink driver or the usb display gagdet driver. those have to have the same problem. for testing you could use weston instead of X#asahi-dev · 2023-04-14 07:53
jannauChaosPrincess: Xorg/modesetting driver doesn't do swaps. it will just update the framebuffer#asahi-dev · 2023-04-14 07:38
jannaudoubling the size of the SRAM region fixes that. still doesn't work but looks like a different error#asahi-dev · 2023-04-14 07:34
jannauadt has "region-id-91 = [0x000000024EC00000, 0x0000000000140000]" which would cover everything#asahi-dev · 2023-04-14 07:29
jannaudt has <0x2 0x4ec9c000 0x0 0x8000> as SRAM#asahi-dev · 2023-04-14 07:28
jannaukettenis: those are the address and end. the device's SRAM region is not printed#asahi-dev · 2023-04-13 22:32
jannaunot global firmware. still works when booted through the 12.3 stub. It's broken when booted via the hypervisor from the macOS 13.3 install#asahi-dev · 2023-04-13 22:23
jannaubut I think the only thing I changed since yesterday is the 13.2 -> 13.3 macOS update#asahi-dev · 2023-04-13 22:22
jannau24e400000.mtp: RTKit buffer request outside SRAM region: [mem 0x24eca8000-0x24eca8fff]#asahi-dev · 2023-04-13 22:22
jannauis there anything mtp related which could be global system fw dependent? it fails here with:#asahi-dev · 2023-04-13 19:50
jannauwe use only instance 0 for dart-disp0/dispext* #asahi-dev · 2023-04-13 19:27
jannaueither don't add the second instance to the dt or if that doesn't work add both iommus to displaydfr, cmp. with dwc3#asahi-dev · 2023-04-13 19:20
jannau dart_addr = u.adt[path].get_reg(instance)[0]#asahi-dev · 2023-04-13 19:20
jannau def from_adt(cls, u, path, instance=0, **kwargs):#asahi-dev · 2023-04-13 19:19
jannaudef from_adt(cls, u, path, instance=0, **kwargs):#asahi-dev · 2023-04-13 19:15
jannauwe usually ignore the second instance. except for dwc3. you did that implicitly with the python code#asahi-dev · 2023-04-13 12:37
jannauthe isp power-domain on j474 might justify a second look#asahi-dev · 2023-04-13 12:36
jannaumarcan: there are still devicetree fixes in https://github.com/AsahiLinux/linux/pull/134#asahi-dev · 2023-04-13 12:29
jannauthis one? https://github.com/AsahiLinux/linux/pull/134/commits/5b7e7f3bddd80a1ceb153cce16c7bd042868566b#asahi-dev · 2023-04-13 12:26
jannaumaz: your use case (serial, ethernet, usb3) is already supported :)#asahi-dev · 2023-04-13 09:19
jannauthat will install a broken m1n1 +dtb + u-boot boot.bin but I assume you're able update it#asahi-dev · 2023-04-13 09:17
jannautest.sh should work locally on macos#asahi-dev · 2023-04-13 09:17
jannaukettenis: https://github.com/AsahiLinux/asahi-installer/pull/179#asahi-dev · 2023-04-13 07:56
jannaushouldn't that be still ok as long as perf doesn't aggregate counters from different PMUs? might be impossible to interpret the results but shouldn't be worse than not counting anything due to running on the wrong CPU