2022-11-27
00:00capta1nt0ad has quit [Quit: Konversation terminated!]
00:01capta1nt0ad has joined #asahi-gpu
00:05capta1nt0ad has quit [Remote host closed the connection]
00:08capta1nt0ad has joined #asahi-gpu
00:12capta1nt0ad has quit []
00:29capta1nt0ad has joined #asahi-gpu
00:30capta1nt0ad has quit [Remote host closed the connection]
00:53gff_ has quit [Read error: Connection reset by peer]
00:54gff_ has joined #asahi-gpu
03:24gff_ has quit [Read error: Connection reset by peer]
03:25gff_ has joined #asahi-gpu
03:50fmstrat has quit [Server closed connection]
03:50fmstrat has joined #asahi-gpu
03:54_whitelogger has joined #asahi-gpu
03:57TheLink has quit [Server closed connection]
03:57TheLink has joined #asahi-gpu
04:01cy8aer has quit [Server closed connection]
04:02cy8aer has joined #asahi-gpu
04:02Yamakaja has quit [Server closed connection]
04:03Yamakaja has joined #asahi-gpu
04:03Method_ has quit [Server closed connection]
04:04Method has joined #asahi-gpu
04:05ChaosPrincess has quit [Server closed connection]
04:05ChaosPrincess has joined #asahi-gpu
04:09jix__ has quit [Server closed connection]
04:10jix__ has joined #asahi-gpu
04:12phire has quit [Server closed connection]
04:12phire has joined #asahi-gpu
04:14chadmed has quit [Server closed connection]
04:14chadmed has joined #asahi-gpu
04:14sa1 has quit [Server closed connection]
04:14sa1 has joined #asahi-gpu
04:15robher has quit [Server closed connection]
04:15robher has joined #asahi-gpu
04:20Tramtrist has quit [Server closed connection]
04:21Tramtrist has joined #asahi-gpu
04:35balrog has quit [Server closed connection]
04:36mattgirv has quit [Server closed connection]
04:36mattgirv has joined #asahi-gpu
04:38balrog has joined #asahi-gpu
04:39FLHerne has quit [Server closed connection]
04:39FLHerne has joined #asahi-gpu
04:51cylm has joined #asahi-gpu
04:53kit_ty_kate has quit [Server closed connection]
04:53jonmasters_ has quit [Server closed connection]
04:53jonmasters_ has joined #asahi-gpu
04:53kit_ty_kate has joined #asahi-gpu
04:54_alice has quit [Server closed connection]
04:54cylm_ has joined #asahi-gpu
04:54_alice has joined #asahi-gpu
04:56jbowen has quit [Server closed connection]
04:57jbowen has joined #asahi-gpu
05:00Venemo has quit [Server closed connection]
05:00Venemo has joined #asahi-gpu
05:01cylm has quit [Ping timeout: 480 seconds]
05:06austriancoder has quit [Server closed connection]
05:06austriancoder has joined #asahi-gpu
05:06taowa__ has quit [Server closed connection]
05:07taowa__ has joined #asahi-gpu
05:19XeR has quit [Server closed connection]
05:19XeR has joined #asahi-gpu
05:20daniels has quit [Server closed connection]
05:21daniels has joined #asahi-gpu
05:36Avaflow has quit [Server closed connection]
05:36Avaflow has joined #asahi-gpu
05:43n1c has quit [Server closed connection]
05:43n1c has joined #asahi-gpu
06:01tired has quit [Server closed connection]
06:01tired has joined #asahi-gpu
06:03VinDuv has quit [Server closed connection]
06:03VinDuv has joined #asahi-gpu
06:05Swiftloke has quit [Server closed connection]
06:07Swiftloke has joined #asahi-gpu
06:16JTL has quit [Server closed connection]
06:16JTL has joined #asahi-gpu
06:28tertu has quit [Server closed connection]
06:28yuyichao has quit [Server closed connection]
06:28yuyichao has joined #asahi-gpu
06:29tertu has joined #asahi-gpu
06:32gtk2 has quit [Server closed connection]
06:33gtk2 has joined #asahi-gpu
06:33princesszoey has quit [Server closed connection]
06:33steffen[m] has quit [Server closed connection]
06:33steffen[m] has joined #asahi-gpu
06:34princesszoey has joined #asahi-gpu
06:35nuup has quit [Server closed connection]
06:36nuup has joined #asahi-gpu
06:38akemin_dayo has quit [Server closed connection]
06:38akemin_dayo has joined #asahi-gpu
06:41tumblingweed has quit [Server closed connection]
06:42tumblingweed has joined #asahi-gpu
07:13turo has quit [Server closed connection]
07:13turo has joined #asahi-gpu
07:13Graypup_ has quit [Server closed connection]
07:13Graypup_ has joined #asahi-gpu
07:47Retr0id has quit [Server closed connection]
07:47Retr0id has joined #asahi-gpu
07:48anuejn has quit [Server closed connection]
07:53SSJ_GZ has joined #asahi-gpu
07:56djorz has quit [Server closed connection]
07:58maximbaz has quit [Server closed connection]
07:58maximbaz has joined #asahi-gpu
07:59LinuxM1 has joined #asahi-gpu
08:07LinuxM1I want to congratulate with Lina and Alyssa for the great work they are doing on the GPU side. I have a MacBookAir M2 and am looking forward to using GPU acceleration on Asahi Linux. I assume it will still be months before the driver is released for everyone, but I'll wait. Thank you
08:13_jannau_ has quit [Server closed connection]
08:13_jannau_ has joined #asahi-gpu
08:20ah- has quit [Server closed connection]
08:20ah- has joined #asahi-gpu
08:28linaI'm taking a look at that xorg.conf issue... I think there's a bug or something broken somewhere, because I *think* modesetting is supposed to probe all drm devices and find one with connectors.
08:45linaWe can ship a xorg.conf OutputClass snippet that will do the right thing without having to hardcode DRI device nodes
09:10LinuxM1 has quit [Ping timeout: 480 seconds]
09:22jannauyes, it's the vblank issue. it "works" when switching the brightness quickly between 2 values
09:23linaThe DRM documentation says the DRM core handles faking vblank events for hardware without them
09:25jannauI haven't found that code yet or how I tell drm that the driver doesn't support vblank irq
09:26jannaualso I think we have to do the vblank events after a swap to get fb swaps to work properly
09:31jannauto use generated vblank events we would need at least control them to disable/enabled during modesets
09:33jannauif we don't use vblanks after page swaps we need something else to prevent two concurrent swaps
09:35jannauI'd rather have the the workaround affect users of the legacy kms api than the atomic kms api
09:38jannauwe 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
09:40jannaualso I've never seen overlapping swap sequences in macos traces, it's swap_start, swap, swap_complete
09:45jannauadvise 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
09:59jannauI think not calling drm_vblank_init() and setting drm_crtc_state.no_vblank to true during modeset and swap might do what we need
10:15chadmed_ has joined #asahi-gpu
10:34linajannau: https://github.com/AsahiLinux/linux/commit/f0fdea884a80ecf6973da5790debc9931458e10f
10:49linaAnd with this patchset, it even doesn't tear! ^^ https://github.com/kerneltoast/xserver/commits/tearfree-21.1.4
10:58chadmed_ has quit [Read error: No route to host]
11:03chadmed_ has joined #asahi-gpu
11:26jannauthanks, 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
11:27linajannau: 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
11:28linaBut I think that's acceptable, it mostly affects some animations and is a good reason for people to eventually switch to Wayland
11:31jannauwhat means vsync is broken? Does it run significantly faster/slower than the display refresh rate?
11:31linaE.g. the plasma splash screen spinner is too fast, glxgears claims to be vsynced but gets 600fps anyway
11:32linaI see XORG issuing DRM_IOCTL_CRTC_{GET,QUEUE}_SEQUENCE all the time which return -EOPNOTSUPP, I get the feeling that's related
11:33cylm_ has quit [Quit: WeeChat 3.6]
11:35jannauah, 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
11:43LinuxM1 has joined #asahi-gpu
13:04lawrence has joined #asahi-gpu
13:13chadmed_ has quit [Remote host closed the connection]
13:16chadmed_ has joined #asahi-gpu
13:18chadmed_ has quit [Remote host closed the connection]
13:46compassion has quit [Quit: lounge quit]
13:48compassion has joined #asahi-gpu
13:48joske has joined #asahi-gpu
13:50joskelina: 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
13:53jannaujoske: 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/
13:53joskejannau: I was just re-reading the IRC logs and indeed seems a bit of xorg config needed, thx, will try!
13:54joske has quit [Quit: Leaving]
13:56joske has joined #asahi-gpu
14:01compassion has quit [Quit: lounge quit]
14:01compassion has joined #asahi-gpu
14:02compassion has quit []
14:03compassion has joined #asahi-gpu
14:07joskerunning glmark2 in X is *much* slower than under wayland, about 300 FPS for most tests while getting 1000+ in wayland
14:09linajannau: Also, somehow KDE on Wayland doesn't DPMS properly. It seems to power off then power on again when I close the lid.
14:11linaI added another patch to ignore bad mode changes and I just noticed it's complaining about something when I close the lid
14:11lina(This is to work around DCP breaking if you change the resolution to one of the fake ones KDE adds without validation)
14:14jannauthe check for the fake mode has to happen in mode_fixup and not in atomic_check. at least when checking the mode against the modes known by dcp
14:16joske has quit [Remote host closed the connection]
14:19joske has joined #asahi-gpu
14:20joskelina: OOM on X11 when playing youtube video. After about 10 seconds, desktop gone and back in gdm. Looking in journalctl I see this: https://paste.debian.net/1262036/
14:31joske has quit [Remote host closed the connection]
14:32dordoka has joined #asahi-gpu
14:33joske has joined #asahi-gpu
14:34linaI've been running chromium on MATE for minutes now playing YouTube videos and RAM usage is not growing
14:36sventhe issue is that you’re wasting everyone‘s time by running random branches and then reporting issues
14:37joskeI only report issues I think would be useful for you, if you don't want me to report any issues, ok then
14:38dordoka has quit [Quit: Page closed]
14:38joskeok, point taken, will not report any issues I see in anything other than released packages
14:39linaNow I see why alyssa keeps her WIP branches private... she sends me a branch to implement occlusion queries just so I can add the UAPI and random people start running it T_T
14:40zalyx has quit [Quit: later alligator]
14:40zalyx has joined #asahi-gpu
14:43joskeI think it's great that it's in the dvelopment is in the open, and that I get to try it. I won't say anything anymore
14:45joske has quit [Quit: Leaving]
14:45LinuxM1 has quit [Quit: Leaving]
15:04ashi has joined #asahi-gpu
15:06ashimaybe you can reduce noise by renaming this channel to #asahi-dev-gpu or something, many people (including me) were not aware that it is complete unwanted to give any noob feedback
15:10jannauthere's /topic which says "GPU / 3D graphics stack black-box RE and development (NO binary reversing) | Keep things on topic"
15:33dottedmagMaybe add a semi-transparent overlay that says "do not report bugs" to all WiP branches related to GPU? Just kidding.
15:34ashi has quit [Remote host closed the connection]
15:35ashi has joined #asahi-gpu
15:38ashi has left #asahi-gpu [#asahi-gpu]
15:46marcan changed the topic of #asahi-gpu to: Asahi Linux GPU development (no user support, NO binary reversing) | Keep things on topic | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-gpu
16:05linaI think it's a firmware bug... it turns out it desyncs its idea of backlight brightness on poweroff/on
16:05linaSo we not only need to force a set on poweron, but also turn it off on poweroff, otherwise it just ignores the set as a no-op
16:06linaAlong with some cleanup patches and another thing which is probably unrelated but sounded like a good idea?
16:13jannaulina: yes, I've come to the same conclusion, seems to be bug on t8103 and t8112. I've never seen seen that on t6001
16:19jannaulina: if you chain the the requests like that there no need to use out of band for dcp_set_power_state(). the true as second parameter
16:35jannauI've also noticed that on the imac macos 12.4 shuts dcp downs completely (including a MMIO CPU_RUN=0) when it turns off the display
17:25jannaulina: still broken on the imac. I suspect we need to wait after the iomfb has finished it's callbacks after the setPowerState
17:53jannaureproducible but much more than a few seconds. more like 2-3 minutes. it complains after the poweron about idac value out of range, which has to be the 0x0 fromm the poweroff
18:05cylm has joined #asahi-gpu
18:30yamii has quit [Quit: WeeChat 3.6]
18:31yamii has joined #asahi-gpu
21:55jannaulina: pushed with small fixes to asahi-6.1-rc6-5_dcp-fixes (removed the oob setPowerState and dev_info)
21:57jannauyour fix wasn't enough on an imac (maybe m1 laptops as well). I have a fix for clients which do regular swaps but I'm not sure what to for x11
21:58jannauI'll check what macos does on other devices with integrated displays when it powers the display off
22:00jannauit looks like the brightness is restored ~3 minutes after power-off. i.e. the fix works if the display was off for at least 3 mintes
22:01jannauif it was off less than 3 minutes it comes up dark and brightness is restored ~3 minutes after poweroff
22:54fossdd has quit [Server closed connection]
22:54fossdd has joined #asahi-gpu
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:03SSJ_GZ has quit [Ping timeout: 480 seconds]
23:26le0n has quit [Server closed connection]
23:26le0n has joined #asahi-gpu
23:35near has joined #asahi-gpu
23:35near is now known as lina_
23:35lina_ has quit []
23:57Emantor_ has joined #asahi-gpu
23:57Emantor has quit [Server closed connection]