marcan changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
capta1nt0ad has quit [Quit: Konversation terminated!]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
capta1nt0ad has joined #asahi-dev
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
capta1nt0ad has quit []
capta1nt0ad has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-dev
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
___nick___ has quit []
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
millenialhacker has joined #asahi-dev
pthariensflame has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
amarioguy has quit [Quit: Leaving]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
kevans91_ has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
pthariensflame has joined #asahi-dev
pthariensflame has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pthariensflame has joined #asahi-dev
pthariensflame has quit []
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
SSJ_GZ has joined #asahi-dev
<chadmed> adding the equal loudness compensator to the pipewire filter chain helps a decent amount with sound quality at low volumes, as youd expect
<chadmed> however now we _really_ need pipewire to hide nodes from the rest of userspace :P
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
chadmed has quit [Remote host closed the connection]
<millenialhacker> ty
<millenialhacker> ty ChaosPrincess
millenialhacker has quit [Remote host closed the connection]
gladiac has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
kov has quit [Quit: Coyote finally caught me]
gabuscus has quit []
gabuscus has joined #asahi-dev
kov has joined #asahi-dev
<sven> jannau: 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!
<sven> huh, nevermind. apparently it now negotiates four lanes again
<sven> so I see [PhyTracer@/arm-io/atc-phy1] MMIO: W.4 ACIOPHY_CROSSBAR = 0x114 (PROTOCOL_SWAPPED=0, PROTOCOL=0xa(DP), DPMODE=0x8) for one orientation
<sven> and [PhyTracer@/arm-io/atc-phy1] MMIO: W.4 ACIOPHY_CROSSBAR = 0x22014 (PROTOCOL_SWAPPED=0, PROTOCOL=0xa(DP), DPMODE=0x1100) for the other one
<sven> so I guess even both_pma is only set for one of those two
<jannau> I think I saw that as well but setting both_pma didn't seem to have an effect with UNK008
<sven> okay, I think swapped is both_pma = false and UNK008
<sven> and normal orientation is both_pma = true and UNK100
<sven> let'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*
<sven> er.. *doing it before xhci init
weitcis has joined #asahi-dev
<sven> also, i'm blind. b'\x00\x00\x00\x000'
<sven> see how the last byte there is 0 vs \x00? that's the DP SID Status changed interrupt
<sven> so that's what we can use for HPD even with USB3+DP hubs
<jannau> superspeed detection works now but either you or I broke DP hotplug detection. rebased again and with local modifications, so it's probablyy me
<sven> could also be me, I didn’t test the DP hotplug very well
<sven> but it worked at least once
<sven> it won’t work at boot time though since there’s still this race between drm and tipd probe
Dcow has joined #asahi-dev
<jannau> it 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."
<jannau> port still works though
<sven> uh oh
<sven> that’s new, usually when the pipehandler lock thing happens the port is dead
<jannau> yes, it was previously when usb3 was broken
<sven> -#define PIPEHANDLER_MUX_MODE_DUMMY_PHY 0
<sven> +#define PIPEHANDLER_MUX_MODE_DUMMY_PHY 2
<sven> and
<sven> -#define PIPEHANDLER_CLK_DUMMY_PHY 2
<sven> +#define PIPEHANDLER_CLK_DUMMY_PHY 4
<jannau> pipehandler lock request seems to eventually succeed
<sven> maybe fixes that
<sven> i may have accidentally switched pipehandler to either an invalid state or usb4 mode
<jannau> yes. that fixes it and DP works in both plug orientations with "both_pma = true and UNK100" / "both_pma = false and UNK008"
<sven> \o/
cylm has joined #asahi-dev
<sven> doing the pipehandler stuff in power_on also works fine
<sven> let 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
<sven> no matter how thunderbolt eventually fits into this mess that role switch thing is good enough to bring dwc3 up/down whenever we need it
<jannau> \o/
beeblebrox has joined #asahi-dev
<sven> nice, let me start working on that
<sven> we 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
<sven> but it seems to be very stable here now
<jannau> please refetch, pushed a cosmetic fix
<sven> not at a computer right now anyway ;)
beeblebrox has quit [Quit: Konversation terminated!]
__nick__ has joined #asahi-dev
___nick___ has quit [Ping timeout: 480 seconds]
zalyx has quit [Quit: later alligator]
zalyx has joined #asahi-dev
kallisti has joined #asahi-dev
<jannau> brightness control seems to work reliably now
<sven> nice!
<jannau> embracing no drm atomic commits instead of trying to work around them and pretending that backlight control is a form of color management
<jannau> assuming that the backlight changes which will integrate brightness control with drm will be ready before dcp
* sven doesn’t even know what drm atomic commits are
<alyssa> jannau: I have questions
<sven> anyway, looks like doing the pipe handler dance inside power_on works just fine as well
<sven> let 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 :>
kallisti has quit [Quit: "i'll be back"]
<jannau> alyssa: which are? color management looked like the best fit for backlight control
<alyssa> shouldn't has_alpha be !opaque and !has_alpha be opaque?
c10l has quit [Quit: Bye o/]
<jannau> opaque might not be the best name for that field. setting it to true will ignore the transparency in the buffer
<jannau> transparency in the primary plane doesn't any sense, fbdev somehow ended up using ARGB with A=0 resulting a black screen
<jannau> sven: so I guess someone has to look up the fuses for m2
<sven> oh.. true. we don't even have those yet
c10l has joined #asahi-dev
<alyssa> jannau: right, if that's an "ignore alpha" field, why is it set whenever the format *has_alpha* instead of *!has_alpha*?
<alyssa> seems like the logic is inverted for overlay planes?
<alyssa> (I.e. will display XBGR overlays as ABGR and ABGR overlays as XBGR)
<alyssa> (and cursors)
<jannau> currently it's only true for the primary plane
<alyssa> if (fb->format->has_alpha ||
<alyssa> new_state->plane->type == DRM_PLANE_TYPE_PRIMARY)
<alyssa> opaque = true;
<alyssa> these are the 3 lines I'm trying ot make sense of
<jannau> ah, the '||' should be '&&'
c10l has quit []
<alyssa> Right, ok
<alyssa> That makes some sense
<alyssa> But that still doesn't match the commit message
<jannau> but yes, !fb->format->has_alpha || new_state->plane->type == DRM_PLANE_TYPE_PRIMARY would make sense as well
<alyssa> which suggests this is used to distinguish XBGR overlays from ABGR overlays
<alyssa> "!fb->format->has_alpha || new_state->plane->type == DRM_PLANE_TYPE_PRIMARY" is what I would expect this to read
<jannau> I 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
<alyssa> sure, I have far more embrassing logic errors on the agx side ... not that anyone reads the code ... ;P
<jannau> thanks for the review
c10l has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
joske has joined #asahi-dev
<joske> sven: did I hear needs testing on all devices? :-D
<joske> I only have a M1 MBA though (I also have a M1max MBP, but from work, not allowed to use for personal stuff)
<sven> not yet, but soon
<sven> at least usb3
<joske> ok, let me know when you want to have something tested
<sven> I’ll ping you once I’m ready
pthariensflame has joined #asahi-dev
<joske> not always online, but I scan the IRC logs daily
<sven> sure. I’ll also need to nerd snipe someone into reverse engineering the atc fuses for m2
<joske> A friend of mine has an M2 MBA, and I tricked him into installing asahi on it :-D
<joske> next up: tricking him into rolling custom kernels :-D
<sven> those are annoying because they’re not a table in a kext but a function that’s like 1k lines decompiled in ghidra
<sven> most of that is debug crap though
<sven> but still... not much fun to find those fuses
<sven> other 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
<sven> also not much fun though
nsklaus_ has joined #asahi-dev
<sven> but if anyone wants to give it a go i'll be happy to give some pointers in #asahi-re where to find them
leafpaw has joined #asahi-dev
nsklaus_ has quit [Read error: Connection reset by peer]
<joske> ha, tricked him already, he's rebooting into linux for git clone https://github.com/AsahiLinux/linux.git :-D
digicyc2 has quit [Ping timeout: 480 seconds]
nsklaus_ has joined #asahi-dev
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
nsklaus has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
<sven> https://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 :/
millenialhacker has quit [Ping timeout: 480 seconds]
<joske> :/
<sven> that 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
Dcow_ has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
gladiac has quit [Quit: k thx bye]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
kujeger has quit [Quit: ZNC 1.8.2 - https://znc.in]
nsklaus_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<alyssa> sven: womp womp
<sven> alyssa: don't you want to get back into kernel stuff? I hear USB and type-c would be a good new project!
pthariensflame has joined #asahi-dev
pthariensflame has quit []
<alyssa> sven: nice try c:
<sven> :<
<alyssa> sven: I don't even have M2 hardware
<alyssa> I just have the M1 Mini lol
<sven> oh, that's fine. I was more thinking about understanding that typec subsystem a bit better and cleaning up my tipd hacks!
zjstraus has quit [Read error: Connection reset by peer]
<joske> povik: 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
<joske> [ 88.576802] tas2764 3-003c: Unable to sync registers 0x1-0x4. -6
<joske> this may be a hint? (maybe you already know though)
zjstraus has joined #asahi-dev
joske has quit [Remote host closed the connection]
<alyssa> sven: I'm just a silly Mesa girl!!
joske has joined #asahi-dev
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi-dev
weitcis has quit [Quit: weitcis]
weitcis has joined #asahi-dev
weitcis has quit []
joske has quit [Remote host closed the connection]
__nick__ has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
yrlf has joined #asahi-dev
<jannau> marcan: 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
<jannau> kernel is a little bit noisy on backlight updates but left it there for initial testing
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]