#
…

2022-11-13

00:19capta1nt0ad has quit [Quit: Konversation terminated!]
00:25millenialhacker has joined #asahi-dev
00:33millenialhacker has quit [Ping timeout: 480 seconds]
00:34capta1nt0ad has joined #asahi-dev
00:35Dcow has quit [Remote host closed the connection]
00:36Dcow has joined #asahi-dev
00:36capta1nt0ad has quit []
00:39capta1nt0ad has joined #asahi-dev
00:44Dcow has quit [Ping timeout: 480 seconds]
01:08Dcow has joined #asahi-dev
01:16Dcow has quit [Ping timeout: 480 seconds]
01:21chadmed has joined #asahi-dev
01:44Dcow has joined #asahi-dev
01:52Dcow has quit [Ping timeout: 480 seconds]
02:19___nick___ has quit []
02:21___nick___ has joined #asahi-dev
02:21___nick___ has quit []
02:23___nick___ has joined #asahi-dev
03:22millenialhacker has joined #asahi-dev
03:28pthariensflame has joined #asahi-dev
03:30millenialhacker has quit [Ping timeout: 480 seconds]
03:31Dcow has joined #asahi-dev
03:39Dcow has quit [Ping timeout: 480 seconds]
03:47amarioguy has quit [Quit: Leaving]
04:08Dcow has joined #asahi-dev
04:16Dcow has quit [Ping timeout: 480 seconds]
04:29kevans91_ has quit [Remote host closed the connection]
04:46millenialhacker has joined #asahi-dev
04:54millenialhacker has quit [Ping timeout: 480 seconds]
05:04pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
05:18pthariensflame has joined #asahi-dev
05:26pthariensflame has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:28pthariensflame has joined #asahi-dev
05:28pthariensflame has quit []
05:49Dcow has joined #asahi-dev
05:57Dcow has quit [Ping timeout: 480 seconds]
06:16Dcow has joined #asahi-dev
06:24Dcow has quit [Ping timeout: 480 seconds]
06:24millenialhacker has joined #asahi-dev
06:32millenialhacker has quit [Ping timeout: 480 seconds]
06:59SSJ_GZ has joined #asahi-dev
08:14chadmedadding the equal loudness compensator to the pipewire filter chain helps a decent amount with sound quality at low volumes, as youd expect
08:14chadmedhowever now we _really_ need pipewire to hide nodes from the rest of userspace :P
08:31millenialhacker has joined #asahi-dev
08:39millenialhacker has quit [Ping timeout: 480 seconds]
08:48millenialhacker has joined #asahi-dev
09:03chadmed has quit [Remote host closed the connection]
09:18millenialhackerty ChaosPrincess
09:44millenialhacker has quit [Remote host closed the connection]
09:59gladiac has joined #asahi-dev
10:20millenialhacker has joined #asahi-dev
10:20millenialhacker has quit [Remote host closed the connection]
10:20millenialhacker has joined #asahi-dev
10:40kov has quit [Quit: Coyote finally caught me]
10:54gabuscus has quit []
10:54gabuscus has joined #asahi-dev
11:16kov has joined #asahi-dev
11:22svenjannau: hrm, so I don't have a display that actually requires 4 lanes so both pma_single seem to work for me. would be great if you can figure out the right UNK008/UNK100 setting if you have some time!
11:33svenhuh, nevermind. apparently it now negotiates four lanes again
11:33svenso I see [PhyTracer@/arm-io/atc-phy1] MMIO: W.4 ACIOPHY_CROSSBAR = 0x114 (PROTOCOL_SWAPPED=0, PROTOCOL=0xa(DP), DPMODE=0x8) for one orientation
11:33svenand [PhyTracer@/arm-io/atc-phy1] MMIO: W.4 ACIOPHY_CROSSBAR = 0x22014 (PROTOCOL_SWAPPED=0, PROTOCOL=0xa(DP), DPMODE=0x1100) for the other one
11:33svenso I guess even both_pma is only set for one of those two
11:35jannauI think I saw that as well but setting both_pma didn't seem to have an effect with UNK008
11:36svenokay, I think swapped is both_pma = false and UNK008
11:36svenand normal orientation is both_pma = true and UNK100
11:43svenlet's see if I can move the pipehandler configuration into the phy power_on callback because apparently doing phy_set_mode after xhci init breaks some intel platform *sigh*
11:45svener.. *doing it before xhci init
11:51weitcis has joined #asahi-dev
12:08svenalso, i'm blind. b'\x00\x00\x00\x000'
12:09svensee how the last byte there is 0 vs \x00? that's the DP SID Status changed interrupt
12:09svenso that's what we can use for HPD even with USB3+DP hubs
12:14jannausuperspeed detection works now but either you or I broke DP hotplug detection. rebased again and with local modifications, so it's probablyy me
12:15svencould also be me, I didn’t test the DP hotplug very well
12:15svenbut it worked at least once
12:16svenit won’t work at boot time though since there’s still this race between drm and tipd probe
12:25Dcow has joined #asahi-dev
12:32jannauit looks like it was the monitor. after power cycling it I see the hotplug. unfortunately it results in "phy-apple-atc b03000000.phy: pipehandler lock not acked, this type-c port is probably dead until the next reboot."
12:33jannauport still works though
12:36sventhat’s new, usually when the pipehandler lock thing happens the port is dead
12:37jannauyes, it was previously when usb3 was broken
12:41sven-#define PIPEHANDLER_MUX_MODE_DUMMY_PHY 0
12:41sven+#define PIPEHANDLER_MUX_MODE_DUMMY_PHY 2
12:41sven-#define PIPEHANDLER_CLK_DUMMY_PHY 2
12:41sven+#define PIPEHANDLER_CLK_DUMMY_PHY 4
12:41jannaupipehandler lock request seems to eventually succeed
12:41svenmaybe fixes that
12:41sveni may have accidentally switched pipehandler to either an invalid state or usb4 mode
12:46jannauyes. that fixes it and DP works in both plug orientations with "both_pma = true and UNK100" / "both_pma = false and UNK008"
12:53cylm has joined #asahi-dev
12:53svendoing the pipehandler stuff in power_on also works fine
12:54svenlet me verify if my new role switch reset quirk still works without a phy present. Then I’ll just have to rework those apple,dwc3 bindings before trying to upstream it
12:55svenno matter how thunderbolt eventually fits into this mess that role switch thing is good enough to bring dwc3 up/down whenever we need it
13:12beeblebrox has joined #asahi-dev
13:14svennice, let me start working on that
13:14svenwe can probably also soonish enable usb3 in asahi-dev at least. Just want to fix some minor things, move the pipehandler stuff to pwoer_on and test it a bit more
13:14svenbut it seems to be very stable here now
13:15jannauplease refetch, pushed a cosmetic fix
13:15svennot at a computer right now anyway ;)
14:09beeblebrox has quit [Quit: Konversation terminated!]
14:43__nick__ has joined #asahi-dev
14:46___nick___ has quit [Ping timeout: 480 seconds]
15:07zalyx has quit [Quit: later alligator]
15:09zalyx has joined #asahi-dev
15:13kallisti has joined #asahi-dev
15:16jannaubrightness control seems to work reliably now
15:32jannauembracing no drm atomic commits instead of trying to work around them and pretending that backlight control is a form of color management
15:34jannauassuming that the backlight changes which will integrate brightness control with drm will be ready before dcp
15:41* svendoesn’t even know what drm atomic commits are
15:42alyssajannau: I have questions
15:42svenanyway, looks like doing the pipe handler dance inside power_on works just fine as well
15:43svenlet me clean up tipd a bit, then ideally get confirmation that usb3 works on all machines out there (especially m2) and then I’ll prepare something for marcan to merge into asahi-dev to get usb3 up :>
15:44kallisti has quit [Quit: "i'll be back"]
15:45jannaualyssa: which are? color management looked like the best fit for backlight control
15:46alyssashouldn't has_alpha be !opaque and !has_alpha be opaque?
15:47c10l has quit [Quit: Bye o/]
15:49jannauopaque might not be the best name for that field. setting it to true will ignore the transparency in the buffer
15:51jannautransparency in the primary plane doesn't any sense, fbdev somehow ended up using ARGB with A=0 resulting a black screen
15:54jannausven: so I guess someone has to look up the fuses for m2
15:55svenoh.. true. we don't even have those yet
15:56c10l has joined #asahi-dev
15:57alyssajannau: right, if that's an "ignore alpha" field, why is it set whenever the format *has_alpha* instead of *!has_alpha*?
15:57alyssaseems like the logic is inverted for overlay planes?
15:57alyssa(I.e. will display XBGR overlays as ABGR and ABGR overlays as XBGR)
15:58alyssa(and cursors)
15:58jannaucurrently it's only true for the primary plane
15:59alyssa if (fb->format->has_alpha ||
15:59alyssa new_state->plane->type == DRM_PLANE_TYPE_PRIMARY)
15:59alyssa opaque = true;
15:59alyssathese are the 3 lines I'm trying ot make sense of
16:00jannauah, the '||' should be '&&'
16:00c10l has quit []
16:00alyssaRight, ok
16:00alyssaThat makes some sense
16:00alyssaBut that still doesn't match the commit message
16:01jannaubut yes, !fb->format->has_alpha || new_state->plane->type == DRM_PLANE_TYPE_PRIMARY would make sense as well
16:01alyssawhich suggests this is used to distinguish XBGR overlays from ABGR overlays
16:01alyssa"!fb->format->has_alpha || new_state->plane->type == DRM_PLANE_TYPE_PRIMARY" is what I would expect this to read
16:03jannauI don't remember, possible that I simple botched the commit and did not notice since I never tested with with that commit and multiple planes in linux
16:04alyssasure, I have far more embrassing logic errors on the agx side ... not that anyone reads the code ... ;P
16:05jannauthanks for the review
16:29c10l has joined #asahi-dev
17:38millenialhacker has quit [Remote host closed the connection]
17:43millenialhacker has joined #asahi-dev
17:45millenialhacker has quit [Remote host closed the connection]
17:45millenialhacker has joined #asahi-dev
18:34joske has joined #asahi-dev
18:34joskesven: did I hear needs testing on all devices? :-D
18:35joskeI only have a M1 MBA though (I also have a M1max MBP, but from work, not allowed to use for personal stuff)
18:35svennot yet, but soon
18:35svenat least usb3
18:35joskeok, let me know when you want to have something tested
18:36svenI’ll ping you once I’m ready
18:36pthariensflame has joined #asahi-dev
18:37joskenot always online, but I scan the IRC logs daily
18:38svensure. I’ll also need to nerd snipe someone into reverse engineering the atc fuses for m2
18:38joskeA friend of mine has an M2 MBA, and I tricked him into installing asahi on it :-D
18:39joskenext up: tricking him into rolling custom kernels :-D
18:39sventhose are annoying because they’re not a table in a kext but a function that’s like 1k lines decompiled in ghidra
18:40svenmost of that is debug crap though
18:40svenbut still... not much fun to find those fuses
18:40svenother alternative is to run the hv and intercept reads from the fuses and the atcphy regs and play with some patterns to figure out which bits go where
18:40svenalso not much fun though
18:41nsklaus_ has joined #asahi-dev
18:41svenbut if anyone wants to give it a go i'll be happy to give some pointers in #asahi-re where to find them
18:43leafpaw has joined #asahi-dev
18:45nsklaus_ has quit [Read error: Connection reset by peer]
18:45joskeha, tricked him already, he's rebooting into linux for git clone https://github.com/AsahiLinux/linux.git :-D
18:45digicyc2 has quit [Ping timeout: 480 seconds]
18:45nsklaus_ has joined #asahi-dev
18:46pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
18:46millenialhacker has quit [Remote host closed the connection]
18:46millenialhacker has joined #asahi-dev
18:46millenialhacker has quit [Remote host closed the connection]
18:46nsklaus has quit [Ping timeout: 480 seconds]
18:56millenialhacker has joined #asahi-dev
19:03svenhttps://lore.kernel.org/all/20201126121713.GO1008337@kuha.fi.intel.com/ uh oh. so maybe my current typec/tipd code isn't quite what will be acceptable upstream :/
19:04millenialhacker has quit [Ping timeout: 480 seconds]
19:04sventhat UCSI code is much more complex. guess i'll send a mail to heikki to ask if my code that bypasses all of the typec bus stuff like drivers/platform/chrome/cros_ec_typec.c does is acceptable to him as well
19:13Dcow_ has joined #asahi-dev
19:20Dcow has quit [Ping timeout: 480 seconds]
19:25gladiac has quit [Quit: k thx bye]
19:46millenialhacker has joined #asahi-dev
19:54millenialhacker has quit [Ping timeout: 480 seconds]
20:06kujeger has quit [Quit: ZNC 1.8.2 - https://znc.in]
20:09nsklaus_ has quit [Quit: Textual IRC Client: www.textualapp.com]
20:11alyssasven: womp womp
20:13svenalyssa: don't you want to get back into kernel stuff? I hear USB and type-c would be a good new project!
20:16pthariensflame has joined #asahi-dev
20:17pthariensflame has quit []
20:20alyssasven: nice try c:
20:21alyssasven: I don't even have M2 hardware
20:21alyssaI just have the M1 Mini lol
20:22svenoh, that's fine. I was more thinking about understanding that typec subsystem a bit better and cleaning up my tipd hacks!
20:42zjstraus has quit [Read error: Connection reset by peer]
20:43joskepovik: my friend has an M2 MBA (running asahi-dev with speakers enabled). After resume from s2idle, only L channel as known, but I saw this in his dmesg: [ 88.576671] tas2764 3-003b: Unable to sync registers 0x1-0x4. -6
20:43joske[ 88.576802] tas2764 3-003c: Unable to sync registers 0x1-0x4. -6
20:43joskethis may be a hint? (maybe you already know though)
20:43zjstraus has joined #asahi-dev
20:44joske has quit [Remote host closed the connection]
20:44alyssasven: I'm just a silly Mesa girl!!
20:49joske has joined #asahi-dev
20:51jluthra has quit [Remote host closed the connection]
20:51jluthra has joined #asahi-dev
20:51weitcis has quit [Quit: weitcis]
20:52weitcis has joined #asahi-dev
20:52weitcis has quit []
20:54joske has quit [Remote host closed the connection]
21:07__nick__ has quit [Ping timeout: 480 seconds]
21:58millenialhacker has joined #asahi-dev
22:06millenialhacker has quit [Ping timeout: 480 seconds]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:14jannaumarcan: https://github.com/AsahiLinux/linux/pull/65 has dcp backlight control. needs a devicetree and m1n1 update. a test on Macbook Air (2020) would be good to see if brightness is limited to 400 nits
23:15jannaukernel is a little bit noisy on backlight updates but left it there for initial testing
23:21millenialhacker has joined #asahi-dev
23:29millenialhacker has quit [Ping timeout: 480 seconds]
…