#asahi-gpu · 2022-11-27 14:10
jannaulina: it could be that's broken as it is currently merged#asahi-gpu · 2022-11-27 14:09
linaOr wait, did I break this?#asahi-gpu · 2022-11-27 14:09
linaMaybe we need to ignore/just queue backlight change requests when the display is off#asahi-gpu · 2022-11-27 14:09
linajannau: Also, somehow KDE on Wayland doesn't DPMS properly. It seems to power off then power on again when I close the lid.#asahi-gpu · 2022-11-27 14:07
joskerunning glmark2 in X is *much* slower than under wayland, about 300 FPS for most tests while getting 1000+ in wayland#asahi-gpu · 2022-11-27 13:57
joske(and all other asahi devs!)#asahi-gpu · 2022-11-27 13:56
joskethx lina, jannau!#asahi-gpu · 2022-11-27 13:56
joskeWOOHOOW! MATE desktop running on GPU!#asahi-gpu · 2022-11-27 13:53
joskejannau: I was just re-reading the IRC logs and indeed seems a bit of xorg config needed, thx, will try!#asahi-gpu · 2022-11-27 13:53
jannaujoske: there are two fixes needed. for x11 with gpu you need to place https://www.jannau.net/asahi/30-modeset.conf into /etc/X11/xorg.conf.d/#asahi-gpu · 2022-11-27 13:52
joskeI'm running lastest from gpu/rust-wip and your latest oq mesa branch #asahi-gpu · 2022-11-27 13:50
joskeGNOME on wayland still works, but lightdm doesn't start, and startx also gives same error#asahi-gpu · 2022-11-27 13:50
joskelina: thx for looking into Xorg problem. Your fix doesn't work on my system unfortunately. Still getting [ 153.858] (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices #asahi-gpu · 2022-11-27 11:35
jannauah, yes, the drm code for DRM_IOCTL_CRTC_{GET,QUEUE}_SEQUENCE made me believe that there's no support for hw without vblank irq in drm#asahi-gpu · 2022-11-27 11:34
linaThose are only supported if vblank IRQs are#asahi-gpu · 2022-11-27 11:32
linaI see XORG issuing DRM_IOCTL_CRTC_{GET,QUEUE}_SEQUENCE all the time which return -EOPNOTSUPP, I get the feeling that's related#asahi-gpu · 2022-11-27 11:31
linaE.g. the plasma splash screen spinner is too fast, glxgears claims to be vsynced but gets 600fps anyway#asahi-gpu · 2022-11-27 11:31
jannauwhat means vsync is broken? Does it run significantly faster/slower than the display refresh rate?#asahi-gpu · 2022-11-27 11:28
linaThis also never worked with simpledrm so it's not a regression#asahi-gpu · 2022-11-27 11:28
linaBut I think that's acceptable, it mostly affects some animations and is a good reason for people to eventually switch to Wayland#asahi-gpu · 2022-11-27 11:27
linaBoth with and without that patch#asahi-gpu · 2022-11-27 11:27
linaWayland does work though#asahi-gpu · 2022-11-27 11:27
linajannau: One thing that doesn't work is that Xorg's idea of vsync is broken (e.g. glxgears claims it's vsynced but isn't) but that might be expected on drivers without explicit vsync IRQ support#asahi-gpu · 2022-11-27 11:26
jannauthanks, I'll see if it's possible to remove more vblank hacks or switch back to the default drm_mode_config_helper_funcs.atomic_commit_tail#asahi-gpu · 2022-11-27 10:50
lina(Going to write the blog post now! ^^;)#asahi-gpu · 2022-11-27 10:49
linaAnd with this patchset, it even doesn't tear! ^^ https://github.com/kerneltoast/xserver/commits/tearfree-21.1.4#asahi-gpu · 2022-11-27 10:34
linafixes Xorg, Wayland still works ^^#asahi-gpu · 2022-11-27 10:34
linajannau: https://github.com/AsahiLinux/linux/commit/f0fdea884a80ecf6973da5790debc9931458e10f#asahi-gpu · 2022-11-27 10:09
linaWhat if I do both? ^^#asahi-gpu · 2022-11-27 10:07
jannaudon't you have a blog post to write? I can look after it later today#asahi-gpu · 2022-11-27 09:59
linaWorking on that ^^#asahi-gpu · 2022-11-27 09:59
jannauI think not calling drm_vblank_init() and setting drm_crtc_state.no_vblank to true during modeset and swap might do what we need#asahi-gpu · 2022-11-27 09:58
linaBut it might be a good reference#asahi-gpu · 2022-11-27 09:58
linaxen uses the simple display stuff which is too simple for DCP#asahi-gpu · 2022-11-27 09:56
linaI'm tracing through the helpers now#asahi-gpu · 2022-11-27 09:56
jannaudrivers/gpu/drm/xen seems to do something which could match what dcp needs#asahi-gpu · 2022-11-27 09:45
jannauadvise I got in #dri-devel last weekend was to synthesize vblank events but I'm not sure if the weekend is the best time to ask this#asahi-gpu · 2022-11-27 09:42
jannaunot sure there is other complex hw supporting tear free swaps without vblank interrupts#asahi-gpu · 2022-11-27 09:40
jannaualso I've never seen overlapping swap sequences in macos traces, it's swap_start, swap, swap_complete#asahi-gpu · 2022-11-27 09:38
jannauwe might need to to use timestamps for queued swap. without them they are "blocking" and dcp doesn't like it to start the next swap before the previous one completed#asahi-gpu · 2022-11-27 09:36
linaI'm not sure we even need a workaround? I think hardware without vblank is already a thing#asahi-gpu · 2022-11-27 09:35
jannauI'd rather have the the workaround affect users of the legacy kms api than the atomic kms api#asahi-gpu · 2022-11-27 09:34
linalike a completion#asahi-gpu · 2022-11-27 09:34
linayou could just use a waitqueue for that though#asahi-gpu · 2022-11-27 09:33
linaconcurrent swaps don't work? they don't queue?#asahi-gpu · 2022-11-27 09:33
jannauif we don't use vblanks after page swaps we need something else to prevent two concurrent swaps#asahi-gpu · 2022-11-27 09:31
jannauto use generated vblank events we would need at least control them to disable/enabled during modesets#asahi-gpu · 2022-11-27 09:30
jannauthe default helper waits for vblank with some large timeout (iirc 300ms)#asahi-gpu · 2022-11-27 09:26
linaI think the helpers do that?#asahi-gpu · 2022-11-27 09:26
jannaualso I think we have to do the vblank events after a swap to get fb swaps to work properly