ChanServ 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
brolin has quit [Ping timeout: 480 seconds]
nsklaus has quit [Ping timeout: 480 seconds]
dylanchapell has joined #asahi-dev
dylanchapell has quit [Remote host closed the connection]
brolin has joined #asahi-dev
brolin has quit [Ping timeout: 480 seconds]
baozich has quit [Quit: baozich]
baozich has joined #asahi-dev
gabuscus has quit []
gabuscus has joined #asahi-dev
stipa is now known as Guest1720
stipa has joined #asahi-dev
Guest1720 has quit [Read error: Connection reset by peer]
bps has joined #asahi-dev
bps has quit [Ping timeout: 480 seconds]
roxfan has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
roxfan has joined #asahi-dev
bps has joined #asahi-dev
bps has quit [Ping timeout: 480 seconds]
nsklaus has joined #asahi-dev
f2se has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f2se has quit [Quit: Leaving]
bps has joined #asahi-dev
Tomdownsouth has joined #asahi-dev
baozich has quit [Ping timeout: 480 seconds]
baozich has joined #asahi-dev
baozich has quit [Ping timeout: 480 seconds]
<marcan> pushed the new charge control stuff
<marcan> I think we can have a tag soon
<marcan> tagged asahi-6.3-1
gordonfreeman has joined #asahi-dev
<gordonfreeman> is there any way to know which EL0 process caused EL1 to generate an exception?
<gordonfreeman> I've printed TPIDR_EL0 and TPIDR_EL1 values during the exception but seemingly TPIDR_EL0 is set to cpu id of the process and changes
<gordonfreeman> So I cannot correlate them with the process
<mps> which mesa-asahi version is needed for asahi-6.3-1 tag
<jannau> I'm using asahi-wip since more than 3 weeks on j314c without issues
<marcan> mps: the one I just tagged
<marcan> jannau: ah yes, will be in -2
<mps> jannau: I had problem with asahi-wip, resume often reboot j293 and j316s
<mps> marcan: thanks
<jannau> mps: if booted through u-boot fixed by aa9c96857753 "watchdog: apple: Support suspend and resume"
<mps> jannau: thanks, will try again in a hour
<jannau> should be 100% reboot if s2idle for more 30 seconds
Tomdownsouth has quit [Ping timeout: 480 seconds]
<marcan> new package set pushed to asahi-dev
<mps> asahi-dev? what and where it is?
<mps> ah, new m1n1
<j`ey> marcan: so the start threshold is configurable, but the SMC calculates the end threshold from what you write to it?
<marcan> it's binary, it's either 75/80 or 100/100
<marcan> so I arbitrarily chose the start threshold to drive the actual effect
<j`ey> ah
<marcan> the UAPI spec says the driver "may round the value to a supported value" so I'm considering this an extreme case of rounding :p
<marcan> tagging -2 kernel with the PMU thing and another thing that I found is broken
<jannau> marcan: broken mtp multitouch on j493, https://paste.debian.net/1281485/
<j`ey> ah, 100/100 is CHWA=0 then, I get it now
<marcan> jannau: that was the other thing.
<marcan> it actually worked for me on j413 but it complained about the GPIOs anyway
<marcan> it's a dependency problem with SMC (because the way we do this we can't defer at that point)
gordonfreeman has quit [Remote host closed the connection]
<marcan> I moved the GPIOs to the parent OF node which I think will make the of fwnode stuff defer the probe for us
<marcan> running another build now
<marcan> nope... that didn't work. argh.
<marcan> ah, probably because the way SMC works it doesn't really do this properly
baozich has joined #asahi-dev
bisko has joined #asahi-dev
bisko has quit [Read error: Connection reset by peer]
<kettenis> marcan: I'd say using the stop value would be more intuitive since the idea is to limit the charging to a certain value
<kettenis> (this is what I do on OpenBSD)
<marcan> kettenis: I only chose the start value because the Linux UAPI only says the driver is allowed to round the stop value :D
<marcan> but yeah maybe I should do it the other way around
<marcan> let's do that
MajorBiscuit has joined #asahi-dev
<kettenis> I suspect changing the start value was a later addition and whoever documented it didn't repeat the statement about the rounding?
<marcan> could be
<marcan> doing another build...
brolin has joined #asahi-dev
<kettenis> I think some of the "consumer" laptops from lenovo have a similar mechanism to what apple does (as opposed to the mechanism on the thinkpads)
<j`ey> looks like that wording was adding specifically, so I guess you could add similar wording to the start_threshold, https://github.com/torvalds/linux/commit/18ef1bb093ab1e0a74d146cbf4a9d132d01374d8
<kettenis> but there doesn't seem to be an in-tree driver for those laptops
<j`ey> 'Unlike for example ThinkPads where this
<j`ey> control is granular here it is just off/on. When off it charges to 100%.
<j`ey> When on it charges to about 80%'
<j`ey> it's in drivers/platform/x86/toshiba_acpi.c
<marcan> ah yeah, so then we want the same thing and that driver didn't even bother to implement start_threshold
<marcan> we could probably implement that one as readonly, but at least KDE won't like that
<marcan> kettenis: ah yeah, that actually behaves better with KDE, because it clamps the start threshold to stop - 1
<marcan> which means you need to change both to flip
<kettenis> so maybe I should hide the start value on OpenBSD as well...
<marcan> I'm not hiding it, otherwise KDE's UI won't work, it wants both
<marcan> what I mean is using stop_threshold to drive the change is better
<kettenis> ah, ok
<marcan> actually it seems you need to change both anyway, lol
<marcan> I think the backend just rejects settings with start > stop or something
<marcan> KDE bug in that case
<marcan> but anyway
<marcan> jannau: gpio thing should be fixed
<jannau> broken pcie xhci on the studio (PCIe link doesn't come up), aquantia lan and everything else seems to work
<marcan> probably because no asmedia firmware yet in u-boot?
<marcan> what does u-boot do when it doesn't have that?
<kettenis> it bails and ignores the device
<marcan> but does it leave the PCIe stuff up?
<kettenis> yup
<marcan> hm, then that's weird
<kettenis> u-boot doesn't know about the smc gpio's yet
<kettenis> so if the studio needs a gpio toggle to enable xhci, u-boot won't even see the xhci
<kettenis> the m2 pro mini doesn't need a gpio toggle though
<jannau> xhci was working without asmedia fw in u-boot
<kettenis> erh, how is that possible?
<jannau> xhci smc gpio seems to be generally toogled on on boot
<jannau> kettenis: not in u-boot but linux was able to initialize the link after u-boot
<jannau> might have been the previous version with initrd firmware
<marcan> I think I'll look at this one tomorrow or something (along with the firmware extraction since it kind of goes with it)
<marcan> plus that whole asmedia thing needs hardening anyway, it was never fully reliable
<_jannau_> yes, fw load frequently timed out under HV with heavy tracing
<mps> updated all things to latest, all works fine on alpine
<mps> hope will not be hit by big problems
<mps> thank you all for great work
Tomdownsouth has joined #asahi-dev
bps has quit [Ping timeout: 480 seconds]
brolin has quit [Ping timeout: 480 seconds]
brolin has joined #asahi-dev
notapplicable has joined #asahi-dev
thelounge60 has quit [Quit: Ping timeout (120 seconds)]
thelounge60 has joined #asahi-dev
baozich has quit [Ping timeout: 480 seconds]
baozich has joined #asahi-dev
notapplicable has quit [Remote host closed the connection]
baozich has quit [Ping timeout: 480 seconds]
cylm has joined #asahi-dev
Tomdownsouth has quit [Ping timeout: 480 seconds]
Major_Biscuit has joined #asahi-dev
MajorBiscuit has quit [Ping timeout: 480 seconds]
Major_Biscuit has quit [Ping timeout: 480 seconds]
brolin has quit [Ping timeout: 480 seconds]
quarkyalice has joined #asahi-dev
brolin has joined #asahi-dev
brolin has quit [Ping timeout: 480 seconds]
SalimTer- has joined #asahi-dev
salimterryli has quit [Ping timeout: 480 seconds]
pthariensflame has joined #asahi-dev
brolin has joined #asahi-dev
maria has quit [Quit: The Lounge - https://thelounge.chat]
brolin has quit [Ping timeout: 480 seconds]
ellyq has quit [Quit: Machine shutdown requested]
pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
brolin has joined #asahi-dev
compassion1 has joined #asahi-dev
kettenis has quit [Ping timeout: 480 seconds]
compassion has quit [Ping timeout: 480 seconds]
compassion1 is now known as compassion
kettenis has joined #asahi-dev
kettenis_ has joined #asahi-dev
kettenis has quit [Ping timeout: 480 seconds]
brolin has quit [Ping timeout: 480 seconds]
kaazoo has joined #asahi-dev
brolin has joined #asahi-dev
kaazoo has left #asahi-dev [#asahi-dev]
eloy_ has quit [Ping timeout: 480 seconds]
eloy_ has joined #asahi-dev
wCPO has quit [Quit: The Lounge - https://thelounge.chat]
wCPO has joined #asahi-dev
brolin has quit [Ping timeout: 480 seconds]
compassion has quit [Quit: lounge quit]
kaazoo has joined #asahi-dev
compassion1 has joined #asahi-dev
kettenis_ has quit [Remote host closed the connection]
kettenis has joined #asahi-dev
zzywysm has joined #asahi-dev
thelounge60 has quit [Ping timeout: 480 seconds]
thelounge60 has joined #asahi-dev