#
#asahi-dev · 2023-04-14 15:37
kettenisthere is the panel orientation stuff
#asahi-dev · 2023-04-14 15:37
ChaosPrincessis there something that can already deal with that
#asahi-dev · 2023-04-14 15:36
ChaosPrincessok, figured out dirty framebuffers, now have a problem where hardware coordinates are rotated 90 degrees anticlockwise compared to what linux expects
#asahi-dev · 2023-04-14 15:03
_jannau_ok for now but ideally it should be only non-fatal for the framebuffer. Should be easily possible after we handle the other reserved regions via the "segments" ADT property
#asahi-dev · 2023-04-14 14:54
kettenisjannau, marcan: https://github.com/AsahiLinux/m1n1/pull/303
#asahi-dev · 2023-04-14 09:12
_jannau_dcp fails to take over card0 from simpledrm. I didn't care enough to check if we can ensure that it works. so card0 might be available after gpu and dcp driver are loaded. The next loaded driver (your module) gets it on init time then
#asahi-dev · 2023-04-14 09:03
ChaosPrincess+S
#asahi-dev · 2023-04-14 09:03
ChaosPrincessthe text console display on primary screen
#asahi-dev · 2023-04-14 09:03
ChaosPrincess_jannau_: i am getting card0, and whats stranger is it does so, even though i built dcp in-kernel and touchbar as module
#asahi-dev · 2023-04-14 09:00
kettenismarcan: https://github.com/AsahiLinux/asahi-installer/pull/188
#asahi-dev · 2023-04-14 08:39
kettenissound plausible that the SRAM is bigger and they moved things around in a newer firmware version
#asahi-dev · 2023-04-14 08:39
kettenisjannau: ah, misread the code then
#asahi-dev · 2023-04-14 08:34
_jannau_does the fb console use the touchbar display as well?
#asahi-dev · 2023-04-14 08:33
_jannau_only solution in practice will be to ensure the touchbar daemon is started early
#asahi-dev · 2023-04-14 08:32
_jannau_I don't think so. does your driver gets card0? If so I need to see if there is a way the apple driver can ensure it gets card0 from simpledrm. That of course only helps if simpledrm is built-in and the other drivers are modules
#asahi-dev · 2023-04-14 08:23
ChaosPrincessalso, is there a way to specify the primary display in the dt? sddm attempts to render to the touchbar display when it starts up, which is undesirable
#asahi-dev · 2023-04-14 08:15
ChaosPrincesslooking at rockchip driver
#asahi-dev · 2023-04-14 08:15
ChaosPrincesslooks like drm_atomic_helper_dirtyfb is what i need
#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:03
ChaosPrincessor it can grab fb updates without a swap?
#asahi-dev · 2023-04-14 08:03
ChaosPrincessdoesnt the dcp driver have the same problem?
#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:55
ChaosPrincessso, like, my hardware doesnt support that. you must do flushes for it to grab the new framebuffer contents.
#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:48
ChaosPrincesswriting a drm kms driver, the atomic_flush callback only gets called two times, despite x seeming to grab that screen. any suggestions on what i might be doing wrong? https://github.com/WhatAmISupposedToPutHere/linux/blob/adp/drivers/gpu/drm/adp/adp_drv.c
#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-14 07:24
kettenisjannau: that RTKit message should be changed to mention the actual address
#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 20:45
kettenismanaged to work around it
#asahi-dev · 2023-04-13 20:45
kettenisthe model names for the M2 and M2 Pro mini in the dev installer are wrong
#asahi-dev · 2023-04-13 19:54
svencould just be a dart debug interface that’s not synthesized for each dart
#asahi-dev · 2023-04-13 19:54
svenSo it’s somehow related to the dart itself but no idea what exactly it does or why it’s separate
#asahi-dev · 2023-04-13 19:54
svenI never figured out exactly what it is but it seems to expose the most recently accessed pagetable entries inside it’s MMIO
#asahi-dev · 2023-04-13 19:53
svenjust look at that instance property in the ADT. It’d a bit weird but if that thing contains the SMMU fourcc and the two regs of the dart are separated by 0x4000 the second thing isn’t a DART
#asahi-dev · 2023-04-13 19:52
sventhat also seems to be dart plus smmu
#asahi-dev · 2023-04-13 19:50
jannauwe use only instance 0 for dart-disp0/dispext*
#asahi-dev · 2023-04-13 19:50
svenjust ignore it
#asahi-dev · 2023-04-13 19:50
svenso that second thing is that apple SMMU (not to be confused with arm‘s architectural SMMU)
#asahi-dev · 2023-04-13 19:50
svenfor that dispdfr thingy it claims dart and smmu
#asahi-dev · 2023-04-13 19:49
svenLook at the dart node, there’s an instance property
#asahi-dev · 2023-04-13 19:47
svenare you sure they are darts and not dart plus what apple calls SMMU or something like that?
#asahi-dev · 2023-04-13 19:47
sventhose two darts are very suspicious because they’re just next to each other

plus ›