2022-11-06
00:00cylm has quit [Quit: WeeChat 3.7.1]
00:04as400_ is now known as as400
00:11bgb has joined #asahi-dev
00:13bgb_ has quit [Ping timeout: 480 seconds]
00:14zshrc has joined #asahi-dev
00:43bgb_ has joined #asahi-dev
00:45bgb has quit [Ping timeout: 480 seconds]
00:56Dementor has quit [Ping timeout: 480 seconds]
01:31as400 has quit [Ping timeout: 480 seconds]
01:33lachiefish has quit [Quit: Konversation terminated!]
01:35bpye has quit [Quit: Ping timeout (120 seconds)]
01:35bpye has joined #asahi-dev
01:42as400 has joined #asahi-dev
01:43lachiefish has joined #asahi-dev
01:57amarioguyalways defaulting to the pretty udev name which is problematic (if you want to tethered boot while having real uart)
02:10lachiefish has quit [Quit: Konversation terminated!]
02:12lachiefish has joined #asahi-dev
02:17amarioguyso i guess it now recognizes the variable? bit confusing but i'll take the win i guess
02:26lachiefish has quit [Quit: Konversation terminated!]
02:27lachiefish has joined #asahi-dev
02:33lachiefish has quit [Read error: Connection reset by peer]
04:56as400 has quit [Remote host closed the connection]
04:57as400 has joined #asahi-dev
05:33nicolas17 has quit [Quit: Konversation terminated!]
05:34zshrc has quit [Ping timeout: 480 seconds]
05:36bgb has joined #asahi-dev
05:43zshrc has joined #asahi-dev
05:52zshrc has quit [Ping timeout: 480 seconds]
05:57bgb has quit [Ping timeout: 480 seconds]
06:09as400 has quit [Remote host closed the connection]
06:09as400 has joined #asahi-dev
06:19ccs1 has joined #asahi-dev
06:31as400 has quit [Ping timeout: 480 seconds]
06:43as400 has joined #asahi-dev
07:13ccs1 has quit [Ping timeout: 480 seconds]
07:52SSJ_GZ has joined #asahi-dev
07:52Dementor has joined #asahi-dev
08:17chadmed has quit [Quit: Konversation terminated!]
09:01as400_ has joined #asahi-dev
09:02as400 has quit [Remote host closed the connection]
09:06as400_ is now known as as400
09:29as400_ has joined #asahi-dev
09:30yamii has quit [Quit: WeeChat 3.6]
09:30as400 has quit [Remote host closed the connection]
09:31yamii has joined #asahi-dev
09:33jannauwith the rebased tree I see "phy-apple-atc 503000000.phy: Invalid state 0 in usb3_set_phy" not sure if that's the rebase or if I missed it yesterday
09:34as400_ is now known as as400
10:02cylm has joined #asahi-dev
10:06noopwafel has joined #asahi-dev
10:35as400 has quit [Ping timeout: 480 seconds]
10:36as400 has joined #asahi-dev
10:44jannausven: should anything switch dpin0/1 to dcpext on hotplug? The only thing I see is "Switched dpin{0,1} to disconnected state" and on dcpext probe "Switched dpphy to dispext0,0"
10:45jannaufrom the devicetree that's the only thing I'd expect to happen since there's only 'mux-controls = <&atcphy1_xbar 0>;'
10:49sveni think whatever issue you have is somehow related to that display and it would be nice to confirm that
10:51sven(also, this is starting to feel like those sd card issues I kept running into for a year or so when writing bootmii. marcan surely remembers my frustration from back then…)
10:53sventhat’s weird. both of my displays and the capture card with all adapter I have work here :/
10:54gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:54gabuscus has joined #asahi-dev
10:56jannauI think the traces are taken with the cursed dell 4k display, requires MST for 4k 60Hz and tends to be a bit flakey. dcp offers only 4K 30Hz and macos seems to have no problems
10:58jannauI can retake traces with another display. it was the display I was testing when you asked for the traces
10:59gladiac has joined #asahi-dev
11:05gladiac has quit [Quit: k thx bye]
11:05as400 has quit [Ping timeout: 480 seconds]
11:08svenohhh… I think I also have two or three writes that are still hardcoded. maybe those need to change based on tunables or something
11:09sven(I.e. those should bet set32 and because I just use writel right now sone tunable setting is overwritten)
11:10as400 has joined #asahi-dev
11:42as400_ has joined #asahi-dev
11:43as400 has quit [Remote host closed the connection]
11:47as400_ is now known as as400
12:05r0ni has quit [Quit: Leaving]
12:12bgb has joined #asahi-dev
12:22sleber has joined #asahi-dev
12:25svenjannau: do you want to send a patch to fix that broken extcon (again) or should I send something?
12:30jannauI have a preliminary patch preventing calling extcon_find_edev_by_node() in dwc3_get_extcon()
12:31as400 has quit [Ping timeout: 480 seconds]
12:39sleber has quit [Remote host closed the connection]
12:39svenlet me double check that, I might've messed up ACIOPHY_CROSSBAR_DPMODE and ACIOPHY_CROSSBAR_DP_BOTH_PMA
12:40bgbjannau: sorry to bother, what is the sane way to change kernel pagesize to 4K on current asahilinux install?
12:44svenlet me actually check that entire SINGLE_PMA/BOTH_PMA again. i remember being confused by that when tracing macos
12:46sveni later matched it up with xnu debug prints and the first one was BOTH_PMA and the second one SINGLE_PMA iirc
12:50as400 has joined #asahi-dev
12:51jannauoh, I wouldn't expect that that has any effect. I assumed it queries just information. hmm, maybe it causes the modes to be propagated to drm?
12:57jannaustill doesn't work on t6001 but there's most likely something wrong with the atc tunables/fuses. usb3 doesn't work either
13:00svenmaybe try removing writel(0x10000cef, atcphy->regs.core + 0x8); and the following three lines. they're just copied from a hv trace and might not be required at all
13:05jannaumaybe something I messed up in the devicetree, atc tracer shows nothing on usb3 device insertion
13:09sventhat graph connection also needs to go the actual connector and not to the root display-subsystem
13:11jannauhmm, on atcphy1 I see at least something in the tracer (hv is on atcphy2) but still only high sped usb device
13:13Major_Biscuit has joined #asahi-dev
13:16svenessentially all that matters is that first the mux_set code does its stuff and only then dwc3 comes up and switches pipehandler over to usb3
13:19as400 has quit [Ping timeout: 480 seconds]
13:20jannauseems to be either a problem on the first time or racy. now I get superspeed in both orientations
13:22svenI think the issue is that dwc3 is already up and then atcphy goes behind its back and brings up the SS PHY
13:23as400 has joined #asahi-dev
13:36Major_Biscuit has quit [Ping timeout: 480 seconds]
13:38as400 has quit [Ping timeout: 480 seconds]
13:40as400 has joined #asahi-dev
13:48sleber has joined #asahi-dev
13:56as400_ has joined #asahi-dev
13:56as400 has quit [Remote host closed the connection]
14:01as400_ is now known as as400
14:05bgb has quit [Quit: WeeChat 3.5]
14:35Dementor has quit [Quit: Ping timeout (120 seconds)]
14:45Dementor has joined #asahi-dev
15:08jannausven: any idea where LN_TXA_CAL_CTRL and LN_TX_CAL_CODE are coming from? I see 0x7f, 7 on the mac mini and 0x1f, 5 on t6001 with macos
15:10svenpretty much everything that doesn’t have a #define is something hardcoded that has to be tracked down
15:14Graypup_ has quit [Quit: meow]
15:14Graypup_ has joined #asahi-dev
15:39kujeger has joined #asahi-dev
15:42svenjannau: just pushed something that fixes the "no usb3 on first connection after boot" for me
15:52Dementor has quit [Quit: Ping timeout (120 seconds)]
15:56jannausigh, hit quite often a NULL pointer dereference in drm_connector_set_link_status_property() from dcp_hotplug() and I don't know why
16:01jannausven: doesn't seem to work reliably. super speed on one port, high speed on first connect
16:02Dementor has joined #asahi-dev
16:04svenweird. unless i'm missing something it should defer initializing dwc3 until it gets the first role-switch notification. and at that point the SS PHY should be up an running
16:05jannauand after the first connect semi-dead (usb descriptors can be read but the device doesn't come up). I see "phy-apple-atc 703000000.phy: pipehandler lock not acked" on one port
16:12jannaureproduced without dp changes. "pipehandler lock not acked" now on the other port. Seems to be the port which came initially up as super speed (at the 2nd or 3rd reconnect)
16:18svenhrm, so something's clearly weird. at first boot it looks like everything happens in the right order in the tracer
16:18svenfirst atcphy is initialized and then dwc3 comes up and eventually switches the pipehandler thing to the SS PHY
16:20dcavalca has joined #asahi-dev
16:21Dementor has quit [Quit: Ping timeout (120 seconds)]
16:21dcavalca has quit []
16:23dcavalca has joined #asahi-dev
16:23dcavalca has quit []
16:24dcavalca has joined #asahi-dev
16:27dcavalca has quit []
16:27dcavalca has joined #asahi-dev
16:31Dementor has joined #asahi-dev
16:47jannaubroken state survived a power off and a reboot into macos. display was dead on the first connect in macos (not sure if that display is reliable with usb-c in macos)
16:49Dementor has quit [Quit: Ping timeout (120 seconds)]
16:55Dementor has joined #asahi-dev
17:16as400 has quit [Remote host closed the connection]
17:16as400 has joined #asahi-dev
17:18zshrc has joined #asahi-dev
17:19jannauplasma (x11 and wayland) doesn't seem to like dcpext, sddm (x11) seems to be confused or confuses dcp and displays dcpext's framebuffer also on the other display
17:21jannauah, it uses the same framebuffer on both displays and dcp has a problem with mirrored mode
17:31sleber_ has joined #asahi-dev
17:33sleber has quit [Ping timeout: 480 seconds]
18:22as400 has quit [Remote host closed the connection]
18:23as400 has joined #asahi-dev
18:27sleber has joined #asahi-dev
18:33sleber_ has quit [Ping timeout: 480 seconds]
18:39cylm_ has joined #asahi-dev
18:40as400 has quit [Ping timeout: 480 seconds]
18:46cylm has quit [Ping timeout: 480 seconds]
18:52as400 has joined #asahi-dev
19:11gladiac has joined #asahi-dev
19:36sleber has quit [Remote host closed the connection]
19:40sleber has joined #asahi-dev
19:46zshrc is now known as Guest645
19:46zshrc has joined #asahi-dev
19:46jannausven: crossbar_dp_single_pma seems to depend on the display. I need to use ACIOPHY_CROSSBAR_DP_SINGLE_PMA_UNK008 on t6001 with the full hd usb-c display
19:47jannauon t8103 it works with ACIOPHY_CROSSBAR_DP_SINGLE_PMA_UNK008 and ACIOPHY_CROSSBAR_DP_SINGLE_PMA_UNK100
19:47as400 has quit [Ping timeout: 480 seconds]
19:49Guest645 has quit [Ping timeout: 480 seconds]
19:51zshrc is now known as Guest647
19:52zshrc has joined #asahi-dev
19:57Guest647 has quit [Ping timeout: 480 seconds]
19:59zshrc is now known as Guest648
19:59zshrc has joined #asahi-dev
19:59as400 has joined #asahi-dev
20:02Guest648 has quit [Ping timeout: 480 seconds]
20:08zshrc has quit [Ping timeout: 480 seconds]
20:09as400_ has joined #asahi-dev
20:09as400 has quit [Remote host closed the connection]
20:10zshrc has joined #asahi-dev
20:15sleber has quit [Remote host closed the connection]
20:19svenI thought it just depended on 2 lane vs 4 lane but I guess I was just confused by the traces :/
20:19zshrc has quit [Ping timeout: 480 seconds]
20:21as400_ has quit [Ping timeout: 480 seconds]
20:22zshrc has joined #asahi-dev
20:24svenI’ll probably try to reverse engineer where that single pma actually comes from sometime this week
20:25jannauwe probably should come up with a testing document to get traces from users once it is a little more stable
20:33zshrc is now known as Guest649
20:33as400 has joined #asahi-dev
20:34zshrc has joined #asahi-dev
20:37Guest649 has quit [Ping timeout: 480 seconds]
20:38gladiac has quit [Quit: k thx bye]
20:40bisko has joined #asahi-dev
20:41jannausven: rebase ontop of current asahi-wip and with a couple of dcp fixes: https://github.com/jannau/linux/tree/asahi-6.1-rc3-1.x-dcp-altmode
20:46zshrc has quit [Ping timeout: 480 seconds]
20:48jluthra has quit [Remote host closed the connection]
20:49jluthra has joined #asahi-dev
21:09zshrc has joined #asahi-dev
21:14zshrc is now known as Guest651
21:14zshrc has joined #asahi-dev
21:19Guest651 has quit [Ping timeout: 480 seconds]
21:23zshrc has quit [Ping timeout: 480 seconds]
21:31zshrc has joined #asahi-dev
21:37chadmed has joined #asahi-dev
21:38zshrc is now known as Guest653
21:38zshrc has joined #asahi-dev
21:39kujeger has quit [Quit: ZNC 1.8.2 - https://znc.in]
21:40Guest653 has quit [Ping timeout: 480 seconds]
21:51zshrc has quit [Ping timeout: 480 seconds]
21:52zshrc has joined #asahi-dev
21:54as400 has quit [Remote host closed the connection]
21:56as400 has joined #asahi-dev
22:00zshrc is now known as Guest657
22:00zshrc has joined #asahi-dev
22:04Guest657 has quit [Ping timeout: 480 seconds]
22:09zshrc has quit [Ping timeout: 480 seconds]
22:09chadmed has quit [Ping timeout: 480 seconds]
22:11zshrc has joined #asahi-dev
22:19jannauhow did I manage to screw the email address up, dwc3 extcon fix sent: https://lore.kernel.org/linux-usb/20221106214804.2814-1-j@jannau.net/T/#u
22:19zshrc has quit [Ping timeout: 480 seconds]
22:35SSJ_GZ has quit [Ping timeout: 480 seconds]
22:38zshrc has joined #asahi-dev
22:45zzywysm has quit [Quit: Textual IRC Client: www.textualapp.com]
22:51zshrc has quit [Ping timeout: 480 seconds]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:16as400 has quit [Remote host closed the connection]
23:22as400 has joined #asahi-dev
23:33zshrc has joined #asahi-dev
23:41zshrc is now known as Guest668
23:42zshrc has joined #asahi-dev
23:42Guest668 has quit [Ping timeout: 480 seconds]
23:48chadmed has joined #asahi-dev
23:50zshrc has quit [Ping timeout: 480 seconds]
23:58Amulet has quit [Ping timeout: 480 seconds]
23:58Amulet has joined #asahi-dev