#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:44
urothisI 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?#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:30
ChaosPrincessand, thats an X problem, wayland sees both#asahi-dev · 2023-04-15 07:28
ChaosPrincessadded https://paste.bingner.com/paste/kmr4s - now it only displays on primary, and touchbar does not even show in kde display configuration#asahi-dev · 2023-04-15 07:23
ChaosPrincessjannau: where do i put those configs again?#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:10
ChaosPrincesswhile primary stays completely black. #asahi-dev · 2023-04-15 07:09
ChaosPrincessThere is also still the issue that x thinks it is the primary screen, and tries to display sddm/kde there#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 07:00
ChaosPrincessAnd i wasnt able to find rotation registers by writing random stuff to random registers and seeing what happens#asahi-dev · 2023-04-15 06:59
ChaosPrincessjannau: macos handles this by having surfaces rotated the right way already#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 22:38
ChaosPrincessended up rotating the buffer in software. Technically works, but very much not a solution i like#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 19:31
kettenisas a side-effect, it should leave the controller alone if the firmware could not be loaded#asahi-dev · 2023-04-14 19:30
kettenisthat has code to load the asmedia controller firmware#asahi-dev · 2023-04-14 19:29
kettenishttps://github.com/AsahiLinux/u-boot/tree/t6020#asahi-dev · 2023-04-14 19:04
nicolas17ah#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 18:28
nicolas17jannau: oh so someone else implemented in the meantime?#asahi-dev · 2023-04-14 18:08
kettenissweet, my cpio/initrd based firmware loader works in u-boot#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 16:56
dottedmagAnd "DOC: standard connector properties" in drivers/gpu/drm/drm_connector.c confirms it#asahi-dev · 2023-04-14 16:53
dottedmagThe property description kinda says it's up to userspace: "Optional connector property indicating how the lcd-panel is mounted inside the casing (e.g. normal or upside-down)"#asahi-dev · 2023-04-14 16:00
_jannau_I don't know who's supposed to handle the rotation#asahi-dev · 2023-04-14 15:59
ChaosPrincess_jannau_: │ └───"panel orientation" (immutable): enum {Normal, Upside Down, Left Side Up, Right Side Up} = Left Side Up#asahi-dev · 2023-04-14 15:57
ChaosPrincessits in my tree, it works for m1, no comments on m2, i dont have them#asahi-dev · 2023-04-14 15:57
_jannau_ChaosPrincess: is it reported correctly by drm_info https://gitlab.freedesktop.org/emersion/drm_info#asahi-dev · 2023-04-14 15:55
nicolas17did you continue on that? did it even get merged for the m1 part?#asahi-dev · 2023-04-14 15:55
nicolas17ChaosPrincess: hey I remember a while ago I tested your spi-nor patch on M2 and it didn't work#asahi-dev · 2023-04-14 15:53
ChaosPrincessimage is still rotated#asahi-dev · 2023-04-14 15:53
ChaosPrincesscalling drm_connector_set_panel_orientation(&adp->connector, DRM_MODE_PANEL_ORIENTATION_RIGHT_UP); did not help#asahi-dev · 2023-04-14 15:42
_jannau_ChaosPrincess: search for panel_orientation in https://www.kernel.org/doc/html/next/gpu/drm-kms.html#asahi-dev · 2023-04-14 15:42
kettenisif the crtc coordinates don't match the panel orientation, the panel is rotated#asahi-dev · 2023-04-14 15:41
kettenisChaosPrincess: isn't that the same?#asahi-dev · 2023-04-14 15:40
_jannau_drm/kms has also panel orientation properties. Those should be used by userspace#asahi-dev · 2023-04-14 15:40
ChaosPrincessisnt that rotating the panel, not crtc coordinates?#asahi-dev · 2023-04-14 15:39
kettenissee the "rotation" property in Documentation/devicetree/bindings/display/panel/panel-common.yaml