#
✕ nick:ChaosPrincess
#asahi-dev · 2023-04-15 09:25
ChaosPrincessoh, on mine it shows snow on half the screen for the first 10-ish seconds and then goes black
#asahi-dev · 2023-04-15 09:23
ChaosPrincessi dont think i clear the framebuffer memory, so aside from the actual part that shows the video, the rest is mostly garbage data
#asahi-dev · 2023-04-15 09:21
ChaosPrincesslol
#asahi-dev · 2023-04-15 09:21
ChaosPrincessyou can grab that
#asahi-dev · 2023-04-15 09:21
ChaosPrincesshttps://github.com/WhatAmISupposedToPutHere/linux/commits/adp
#asahi-dev · 2023-04-15 09:09
ChaosPrincesssend the device tree my way if you dont mind, i will be changing it so mipi is not done as just a hack
#asahi-dev · 2023-04-15 09:05
ChaosPrincessnice
#asahi-dev · 2023-04-15 08:40
ChaosPrincessrebased the touchscreen patches on display ones - whatever is processing the touchscreen events thinks they belong on the primary screen and so they end up on the wrong one
#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: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: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-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 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: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:40
ChaosPrincessisnt that rotating the panel, not crtc coordinates?
#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 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 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: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 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: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-13 19:25
ChaosPrincessYea i saw that python uses the first instance, the problem is that i am getting translation faults from second one
#asahi-dev · 2023-04-13 19:05
ChaosPrincesswhat am i doing wrong
#asahi-dev · 2023-04-13 19:05
ChaosPrincesswriting iova to register, getting a translation fault from dart at 228300000
#asahi-dev · 2023-04-13 19:04
ChaosPrincesson linux i have in adt iommus = <&displaydfr_dart_1 0>; it has reg = <0x2 0x28304000 0x0 0x4000>;
#asahi-dev · 2023-04-13 19:04
ChaosPrincesswrote iova to reg, everything works
#asahi-dev · 2023-04-13 19:04
ChaosPrincessi did dart = DART.from_adt(u, "arm-io/dart-dispdfr") in m1n1, and then iova = dart.iomap(0, buf, fb_size)
#asahi-dev · 2023-04-13 19:03
ChaosPrincessdispdfr has two, the adt shows reg = [Container:addr = 0x0000000028304000 size = 0x0000000000004000, Container:addr = 0x0000000028300000 size = 0x0000000000004000]
#asahi-dev · 2023-04-13 19:03
ChaosPrincessso, whats the deal with devices having two darts
#asahi-dev · 2023-04-12 08:03
ChaosPrincessthese machines do not have it, but on x86 dont you also have a problem that smm might come and say hello, and break all your timings.
#asahi-dev · 2023-04-12 00:15
ChaosPrincessIdk, maybe. The mipi im talking about is the one used to connect the touchbar screen.
#asahi-dev · 2023-04-11 23:03
ChaosPrincessI am doing pd_ignore_unused for now, i just hoped that i could drop it by adding all the necessary stuff to power-domains
#asahi-dev · 2023-04-11 22:59
ChaosPrincessGreat, linux manages to power gate something in the time after it starts but before it loads modules and so the mipi link explodes in a serror.
#asahi-dev · 2023-04-10 13:38
ChaosPrincessalso, from yesterday, still wouldnt mind someone with a m1 mbp running this in m1n1 console and seeing if colors look right https://github.com/WhatAmISupposedToPutHere/m1n1/blob/f4517bdaf72cb36ac8999903a5d85aecddd0ed28/proxyclient/experiments/touchbar_rainbow.py
#asahi-dev · 2023-04-09 13:20
ChaosPrincesshah, so, there is even a dumb framebuffer mode on dfr display
#asahi-dev · 2023-04-09 12:40
ChaosPrincessgot the full init sequence for dfr display in m1n1. Now to figure out which of the fifo writes we _actually_ need
#asahi-dev · 2023-04-09 09:34
ChaosPrincessthey got a new wifi/bt chip due to 6e, didnt they?
#asahi-dev · 2023-04-09 09:30
ChaosPrincessiirc

plus ›