2023-04-14
00:09raveling has joined #asahi-dev
00:14amw has joined #asahi-dev
00:17raveling has quit [Ping timeout: 480 seconds]
00:27amw has quit [Ping timeout: 480 seconds]
01:55raveling has joined #asahi-dev
02:00gabuscus has quit []
02:03raveling has quit [Ping timeout: 480 seconds]
02:14gabuscus has joined #asahi-dev
02:23A_L_I_C_E has joined #asahi-dev
02:36A_L_I_C_E has quit [Remote host closed the connection]
02:38crabbedhaloablut has quit [Ping timeout: 480 seconds]
02:54yuyichao has quit [Quit: Konversation terminated!]
03:22crabbedhaloablut has joined #asahi-dev
03:29chadmed_ has quit [Remote host closed the connection]
03:30crabbedhaloablut has quit []
03:32A_L_I_C_E has joined #asahi-dev
03:33crabbedhaloablut has joined #asahi-dev
03:43raveling has joined #asahi-dev
03:51raveling has quit [Ping timeout: 480 seconds]
03:59newiz has joined #asahi-dev
04:33A_L_I_C_E has quit [Read error: Connection reset by peer]
04:37chadmed_ has joined #asahi-dev
04:51yuyichao has joined #asahi-dev
04:53A_L_I_C_E has joined #asahi-dev
04:55raveling has joined #asahi-dev
05:06raveling has quit [Ping timeout: 480 seconds]
05:17raveling has joined #asahi-dev
05:25A_L_I_C_E has quit [Ping timeout: 480 seconds]
05:26A_L_I_C_E has joined #asahi-dev
05:27raveling has quit [Ping timeout: 480 seconds]
05:38raveling has joined #asahi-dev
05:46raveling has quit [Ping timeout: 480 seconds]
05:56raveling has joined #asahi-dev
06:14chadmed_ has quit [Quit: Page closed]
06:39i509vcb has quit [Quit: Connection closed for inactivity]
07:11Mary has quit [Quit: The Lounge - https://thelounge.chat]
07:27newiz has quit [Quit: Konversation terminated!]
07:34jannauadt has "region-id-91 = [0x000000024EC00000, 0x0000000000140000]" which would cover everything
07:38kedde1 has joined #asahi-dev
07:38jannaudoubling the size of the SRAM region fixes that. still doesn't work but looks like a different error
07:40kedde has quit [Ping timeout: 480 seconds]
07:48nyilas has joined #asahi-dev
07:48ChaosPrincesswriting 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
07:52nsklaus has joined #asahi-dev
07:53jannauChaosPrincess: Xorg/modesetting driver doesn't do swaps. it will just update the framebuffer
07:55nyilas has quit [Remote host closed the connection]
07:55ChaosPrincessso, like, my hardware doesnt support that. you must do flushes for it to grab the new framebuffer contents.
07:58Mary has joined #asahi-dev
07:58nyilas has joined #asahi-dev
08:02jannaunot 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
08:02bps has joined #asahi-dev
08:03ChaosPrincessdoesnt the dcp driver have the same problem?
08:03ChaosPrincessor it can grab fb updates without a swap?
08:13jannauI 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
08:15ChaosPrincesslooks like drm_atomic_helper_dirtyfb is what i need
08:15ChaosPrincesslooking at rockchip driver
08:23ChaosPrincessalso, 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
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
08:39kettenissound plausible that the SRAM is bigger and they moved things around in a newer firmware version
09:03ChaosPrincess_jannau_: i am getting card0, and whats stranger is it does so, even though i built dcp in-kernel and touchbar as module
09:03ChaosPrincessthe text console display on primary screen
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
10:49nsklaus has quit [Quit: ZZZzzz…]
10:51nela has quit [Quit: bye!]
10:52nela has joined #asahi-dev
11:06nsklaus has joined #asahi-dev
11:08nsklaus has quit []
11:20kedde2 has joined #asahi-dev
11:21kedde1 has quit [Ping timeout: 480 seconds]
12:40unko has quit [Quit: cya]
12:52Chinese_soup has joined #asahi-dev
13:00CoolStar has quit [Remote host closed the connection]
13:47WindowPa- has joined #asahi-dev
13:52WindowPain has quit [Ping timeout: 480 seconds]
14:04nsklaus has joined #asahi-dev
14:19WindowPa- has quit [Remote host closed the connection]
14:20cylm has joined #asahi-dev
14:21WindowPain has joined #asahi-dev
14:49gabuscus has quit [Ping timeout: 480 seconds]
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
15:36ChaosPrincessok, figured out dirty framebuffers, now have a problem where hardware coordinates are rotated 90 degrees anticlockwise compared to what linux expects
15:37ChaosPrincessis there something that can already deal with that
15:39kettenissee the "rotation" property in Documentation/devicetree/bindings/display/panel/panel-common.yaml
15:40ChaosPrincessisnt that rotating the panel, not crtc coordinates?
15:42___nick___ has joined #asahi-dev
15:42_jannau_ChaosPrincess: search for panel_orientation in https://www.kernel.org/doc/html/next/gpu/drm-kms.html
15:43nicolas17 has joined #asahi-dev
15:53ChaosPrincesscalling drm_connector_set_panel_orientation(&adp->connector, DRM_MODE_PANEL_ORIENTATION_RIGHT_UP); did not help
15:53ChaosPrincessimage is still rotated
15:55nicolas17ChaosPrincess: hey I remember a while ago I tested your spi-nor patch on M2 and it didn't work
15:57_jannau_ChaosPrincess: is it reported correctly by drm_info https://gitlab.freedesktop.org/emersion/drm_info
15:57ChaosPrincessits in my tree, it works for m1, no comments on m2, i dont have them
15:57gabuscus has joined #asahi-dev
15:59ChaosPrincess_jannau_: │ └───"panel orientation" (immutable): enum {Normal, Upside Down, Left Side Up, Right Side Up} = Left Side Up
16:03WindowPa- has joined #asahi-dev
16:07WindowPa| has joined #asahi-dev
16:08WindowPain has quit [Ping timeout: 480 seconds]
16:11WindowPa- has quit [Ping timeout: 480 seconds]
16:18WindowPain has joined #asahi-dev
16:19___nick___ has quit []
16:19WindowPa| has quit [Ping timeout: 480 seconds]
16:21___nick___ has joined #asahi-dev
16:22___nick___ has quit []
16:22WindowPain has quit [Read error: Connection reset by peer]
16:24___nick___ has joined #asahi-dev
16:28WindowPain has joined #asahi-dev
16:34WindowPain has quit [Read error: Connection reset by peer]
16:51WindowPain has joined #asahi-dev
16:53dottedmagThe 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)"
16:56dottedmagAnd "DOC: standard connector properties" in drivers/gpu/drm/drm_connector.c confirms it
17:28i509vcb has joined #asahi-dev
17:52cylm has quit [Ping timeout: 480 seconds]
17:57jannaunicolas17, ChaosPrincess: spi-nor / nvram partition as in asahi-6.2-12 works as intended on m2
18:09A_L_I_C_E has quit [Quit: Quit]
18:09A_L_I_C_E has joined #asahi-dev
18:41jannaunot sure. it is still ChaosPrincess patch. I might did some minor modifications and tested it. iirc
18:43raveling has quit [Ping timeout: 480 seconds]
18:46bps has quit [Ping timeout: 480 seconds]
19:15Cyrinux9 has quit []
19:15Cyrinux9 has joined #asahi-dev
19:31kettenisas a side-effect, it should leave the controller alone if the firmware could not be loaded
19:58CoolStar has joined #asahi-dev
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:08maximbaz has quit [Quit: bye]
20:09maximbaz has joined #asahi-dev
21:22A_L_I_C_E has quit [Ping timeout: 480 seconds]
21:24A_L_I_C_E has joined #asahi-dev
21:24CME has quit [Ping timeout: 480 seconds]
21:28CME has joined #asahi-dev
21:53nsklaus has quit [Quit: ZZZzzz…]
22:32manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
22:32manawyrm has joined #asahi-dev
22:38ChaosPrincessended up rotating the buffer in software. Technically works, but very much not a solution i like
22:47nopeslide13 has quit []
22:48nyilas has quit [Remote host closed the connection]
22:50nopeslide13 has joined #asahi-dev