#
…

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:56amarioguym1n1's proxyclient on macos is not respecting the m1n1device variable\
01:57amarioguyalways defaulting to the pretty udev name which is problematic (if you want to tethered boot while having real uart)
01:57amarioguysince macos has no udev equivalent
02:02amarioguyhmm seems like running the script with python3 resolved it?
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:40marcanany objections to making @AsahiLinux@fosstodon.org the official Asahi presence on fedi?
07:40marcanI'd probably just set up the crossposter for now and see what happens to Twitter
07:52SSJ_GZ has joined #asahi-dev
07:52Dementor has joined #asahi-dev
08:17chadmed has quit [Quit: Konversation terminated!]
08:52svenjannau: have you tried setting a different mode than the preferred one?
09:01as400_ has joined #asahi-dev
09:02as400 has quit [Remote host closed the connection]
09:06as400_ is now known as as400
09:12marcannevermind, apparently fosstodon blocks japan's two largest instances lol
09:12marcanwhy is fedi such a shitshow...
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:32jannausven: yes, no change in behavior. on dcpext side everything looks ok but still no signal
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:34svenuh, let me check that
09:34svenbut that sounds weird
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:48svenno, dpin0/1 should remain disconnected
10:48sventhose are for thunderbolt
10:49svennot at home yet but I’ll take a closer look at those traces you took later
10:49svendo you have any other display or a hdmi capture card?
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:52jannauI tried 3 different displays, 2 with usb-c/dp adapter and one direct usb-c
10:53sventhat’s weird. both of my displays and the capture card with all adapter I have work here :/
10:53svenlet me also double check later that I didn’t forget to commit anything
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:07svensure, the more traces the better
11:07svenAlso wouldn’t surprise me if this is just some hit somewhere I got wrong
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:30jannauunsure if that's the best solution
12:30sveni'd just check for usb-role-switch just before the USB PHY lookup and add a comment above
12:31jannauok that's basically what I have
12:31svenand maybe complain a bit in the commit description how this was broken twice already :D
12:31as400 has quit [Ping timeout: 480 seconds]
12:32jannauyes, I'll write a proper commit description and send it out later
12:36jannausven: I have picture
12:36svenwhat did you change?
12:37jannau.crossbar_dp = ACIOPHY_CROSSBAR_DPMODE_UNK1000 | ACIOPHY_CROSSBAR_DPMODE_UNK100,
12:37sven.... did I mess up ACIOPHY_CROSSBAR_DP_BOTH_PMA? :/
12:39sleber has quit [Remote host closed the connection]
12:39jannau#define ACIOPHY_CROSSBAR_DP_BOTH_PMA BIT(18)
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:40svenDPMODE is also actually called DP_SINGLE_PMA fwiw
12:41svenyup, ACIOPHY_CROSSBAR_DP_BOTH_PMA should be BIT(17)
12:42sven12:07:25 <sven> Also wouldn’t surprise me if this is just some [bit] somewhere I got wrong
12:44svenlet me actually check that entire SINGLE_PMA/BOTH_PMA again. i remember being confused by that when tracing macos
12:46jannauthe tracer reports it in DPMODE
12:46svenyeah, that comes from when I was confused
12:46svenmacos does two writes to it though iirc
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:47jannauthe cursed dell display still doesn't work, let me try a modeswitch
12:47svenmy slightly-less-cursed dell display sometimes just needs a modetest -M apple
12:47sven(without any mode)
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:52sveni was quite surprised as well, but somehow it made a difference
12:52svenmaybe yet another race somewhere
12:57jannaustill doesn't work on t6001 but there's most likely something wrong with the atc tunables/fuses. usb3 doesn't work either
12:58svenhm... iirc USB3 used to work
12:59svenbut maybe I broke it on t6001 while adding DP support
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:00sven*following two lines actually
13:05jannaumaybe something I messed up in the devicetree, atc tracer shows nothing on usb3 device insertion
13:07svendid you add the lpdptx reg to the phy node?
13:08jannauyes, and I adjusted the size of core register
13:08jannauthat's btw missing for atcphy0 in t8103
13:09svenyeah, i didn't touch atcphy0 at all because so far i've always been running under the hv
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:16svenI think that's guaranteed with the current code though
13:17jannaucursed, superspeed workes with the opposite plug orientation
13:18svendid I also break the orientation switching code? :D
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:21jannauand even on atcphy0. this seems to be a problem with the first connection after boot
13:21svenoh, i think I actually know about that one
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:22svenneeds a fix in the role switch reset quirk code to just not bring dwc3 up initially
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
14:57jannauhuh, usb 3 gen 2 is faster on t6001 than on t8103. 919 MB/s vs 817 MB/s
15:04jannauand working dcpext on t6001. appears a little bit flakey
15:05jannauatcphy seems to be slightly different on t600x
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:09svennot sure :(
15:09svenI hardcoded the values I saw in my traces for now
15:10svenpretty much everything that doesn’t have a #define is something hardcoded that has to be tracked down
15:10svenI know that the crossbar is also different on t6k iirc
15:11svenit sometimes uses pclk2 there
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:01svenhuh :/
16:01svenseemed to be reliable here
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:05jannaulet me try without my dp changes on t6001
16:08svenhrm, just managed to reproduce the "first connect is high-speed only" again :/
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:13svenhrm, i can't reproduce that one at all
16:14sventhis is with a usb3 device directly connected to the port?
16:14sveni.e. no usb3/dp hub?
16:17jannauyes, a usb3 gen2 device
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:18jannauconnected with a short usb-c to usb-c cable, not reproducible without 281b70768786
16:18svenand yet the device comes up at high speed :/
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:41jannauI might have killed atcphy1 on my macbook pro 14"
16:43sventhat’s possible?!
16:43svenI’ve abused mine a lot and the worst I had to do was a reboot
16:45jannauseems to be alive again after connecting a storage
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:49svenhuh, that never happened to me
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:10jannauno, that looks like X11 is simply broken
18:17jannauah, an issue of the restricted framebuffer size
18:21jannaustill strange that it resorts to overwriting it's own framebuffer
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:16svenhuh, interesting
20:18svenI wonder where it comes from then
20:18sventhat’s set long before DCP even figure out the link rate
20:18jannauthe dell dp 1.2 display works with ACIOPHY_CROSSBAR_DP_SINGLE_PMA_UNK100 on t6001
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:19jannaubut not with unk008 and it doesn't work on t8103 with either one
20:21as400_ has quit [Ping timeout: 480 seconds]
20:22svenstrange, but the display works with t8103 on macOS?
20:22zshrc has joined #asahi-dev
20:23jannaumacos uses UNK008 with the dell on t6001
20:24jannauI'll see what macos does with dell display on t8103
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:26svenyeah, good idea
20:31jannaumacos uses UNK008 with DP only on the t8103 as well
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
20:50svenNice, thanks
20:53jannaushould contain everything from you except the dwc3 usb3 on boot fix
20:57sven“Fix” ;)
20:57svenI’ll rebase on that branch and continue there tomorrow
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
…