#
…

2023-05-30

00:31brolin has quit [Ping timeout: 480 seconds]
00:44nsklaus has quit [Ping timeout: 480 seconds]
00:52dylanchapell has joined #asahi-dev
00:54dylanchapell has quit [Remote host closed the connection]
00:56brolin has joined #asahi-dev
01:08brolin has quit [Ping timeout: 480 seconds]
01:41baozich has quit [Quit: baozich]
01:42baozich has joined #asahi-dev
02:00gabuscus has quit []
02:17gabuscus has joined #asahi-dev
04:17stipa is now known as Guest1720
04:17stipa has joined #asahi-dev
04:17Guest1720 has quit [Read error: Connection reset by peer]
06:11bps has joined #asahi-dev
07:09bps has quit [Ping timeout: 480 seconds]
07:23roxfan has quit [Ping timeout: 480 seconds]
07:38bisko has joined #asahi-dev
07:52roxfan has joined #asahi-dev
08:19bps has joined #asahi-dev
09:28bps has quit [Ping timeout: 480 seconds]
09:40nsklaus has joined #asahi-dev
09:51f2se has joined #asahi-dev
09:53bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:57f2se has quit [Quit: Leaving]
10:00bps has joined #asahi-dev
10:21Tomdownsouth has joined #asahi-dev
10:38baozich has quit [Ping timeout: 480 seconds]
11:15baozich has joined #asahi-dev
11:23baozich has quit [Ping timeout: 480 seconds]
11:25marcanpushed the new charge control stuff
11:25marcanI think we can have a tag soon
11:34marcantagged asahi-6.3-1
11:37gordonfreeman has joined #asahi-dev
11:39gordonfreemanis there any way to know which EL0 process caused EL1 to generate an exception?
11:40gordonfreemanI'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
11:41gordonfreemanSo I cannot correlate them with the process
11:44mpswhich mesa-asahi version is needed for asahi-6.3-1 tag
11:44jannauI'm using asahi-wip since more than 3 weeks on j314c without issues
11:45marcanmps: the one I just tagged
11:46marcanjannau: ah yes, will be in -2
11:47mpsjannau: I had problem with asahi-wip, resume often reboot j293 and j316s
11:47mpsmarcan: thanks
11:50jannaumps: if booted through u-boot fixed by aa9c96857753 "watchdog: apple: Support suspend and resume"
11:51mpsjannau: thanks, will try again in a hour
11:51jannaushould be 100% reboot if s2idle for more 30 seconds
11:52Tomdownsouth has quit [Ping timeout: 480 seconds]
12:07marcannew package set pushed to asahi-dev
12:18mpsasahi-dev? what and where it is?
12:27mpsah, new m1n1
12:32j`eymarcan: so the start threshold is configurable, but the SMC calculates the end threshold from what you write to it?
12:34marcanit's binary, it's either 75/80 or 100/100
12:34marcanso I arbitrarily chose the start threshold to drive the actual effect
12:35marcanthe UAPI spec says the driver "may round the value to a supported value" so I'm considering this an extreme case of rounding :p
12:36marcantagging -2 kernel with the PMU thing and another thing that I found is broken
12:37jannaumarcan: broken mtp multitouch on j493, https://paste.debian.net/1281485/
12:37j`eyah, 100/100 is CHWA=0 then, I get it now
12:37marcanjannau: that was the other thing.
12:37marcanit actually worked for me on j413 but it complained about the GPIOs anyway
12:39marcanit's a dependency problem with SMC (because the way we do this we can't defer at that point)
12:39gordonfreeman has quit [Remote host closed the connection]
12:39marcanI moved the GPIOs to the parent OF node which I think will make the of fwnode stuff defer the probe for us
12:40marcanrunning another build now
12:56marcannope... that didn't work. argh.
12:56marcanah, probably because the way SMC works it doesn't really do this properly
12:59baozich has joined #asahi-dev
12:59bisko has joined #asahi-dev
13:03bisko has quit [Read error: Connection reset by peer]
13:05kettenismarcan: I'd say using the stop value would be more intuitive since the idea is to limit the charging to a certain value
13:05kettenis(this is what I do on OpenBSD)
13:06marcankettenis: I only chose the start value because the Linux UAPI only says the driver is allowed to round the stop value :D
13:06marcanbut yeah maybe I should do it the other way around
13:06marcanlet's do that
13:08MajorBiscuit has joined #asahi-dev
13:08kettenisI suspect changing the start value was a later addition and whoever documented it didn't repeat the statement about the rounding?
13:08marcancould be
13:10marcandoing another build...
13:12brolin has joined #asahi-dev
13:12kettenisI think some of the "consumer" laptops from lenovo have a similar mechanism to what apple does (as opposed to the mechanism on the thinkpads)
13:12j`eylooks 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
13:13kettenisbut there doesn't seem to be an in-tree driver for those laptops
13:13j`ey'Unlike for example ThinkPads where this
13:13j`eycontrol is granular here it is just off/on. When off it charges to 100%.
13:13j`eyWhen on it charges to about 80%'
13:14j`eyit's in drivers/platform/x86/toshiba_acpi.c
13:18marcanah yeah, so then we want the same thing and that driver didn't even bother to implement start_threshold
13:19marcanwe could probably implement that one as readonly, but at least KDE won't like that
13:26marcankettenis: ah yeah, that actually behaves better with KDE, because it clamps the start threshold to stop - 1
13:26marcanwhich means you need to change both to flip
13:27kettenisso maybe I should hide the start value on OpenBSD as well...
13:29marcanI'm not hiding it, otherwise KDE's UI won't work, it wants both
13:29marcanwhat I mean is using stop_threshold to drive the change is better
13:30marcanactually it seems you need to change both anyway, lol
13:30marcanI think the backend just rejects settings with start > stop or something
13:30marcanKDE bug in that case
13:30marcanbut anyway
13:31marcanjannau: gpio thing should be fixed
13:33jannaubroken pcie xhci on the studio (PCIe link doesn't come up), aquantia lan and everything else seems to work
13:33marcanprobably because no asmedia firmware yet in u-boot?
13:33marcanwhat does u-boot do when it doesn't have that?
13:34kettenisit bails and ignores the device
13:34marcanbut does it leave the PCIe stuff up?
13:34marcanhm, then that's weird
13:35kettenisu-boot doesn't know about the smc gpio's yet
13:35kettenisso if the studio needs a gpio toggle to enable xhci, u-boot won't even see the xhci
13:35kettenisthe m2 pro mini doesn't need a gpio toggle though
13:36jannauxhci was working without asmedia fw in u-boot
13:37ketteniserh, how is that possible?
13:37jannauxhci smc gpio seems to be generally toogled on on boot
13:38jannaukettenis: not in u-boot but linux was able to initialize the link after u-boot
13:39jannaumight have been the previous version with initrd firmware
13:41marcanI think I'll look at this one tomorrow or something (along with the firmware extraction since it kind of goes with it)
13:41marcanplus that whole asmedia thing needs hardening anyway, it was never fully reliable
13:43_jannau_yes, fw load frequently timed out under HV with heavy tracing
13:53mpsupdated all things to latest, all works fine on alpine
13:54mpshope will not be hit by big problems
13:54mpsthank you all for great work
14:35Tomdownsouth has joined #asahi-dev
14:57bps has quit [Ping timeout: 480 seconds]
15:15brolin has quit [Ping timeout: 480 seconds]
15:18brolin has joined #asahi-dev
15:46notapplicable has joined #asahi-dev
15:46thelounge60 has quit [Quit: Ping timeout (120 seconds)]
15:47thelounge60 has joined #asahi-dev
15:56baozich has quit [Ping timeout: 480 seconds]
16:05baozich has joined #asahi-dev
16:07notapplicable has quit [Remote host closed the connection]
16:13baozich has quit [Ping timeout: 480 seconds]
16:16cylm has joined #asahi-dev
16:29Tomdownsouth has quit [Ping timeout: 480 seconds]
16:29Major_Biscuit has joined #asahi-dev
16:31MajorBiscuit has quit [Ping timeout: 480 seconds]
17:21Major_Biscuit has quit [Ping timeout: 480 seconds]
17:29brolin has quit [Ping timeout: 480 seconds]
17:31quarkyalice has joined #asahi-dev
17:52brolin has joined #asahi-dev
18:10brolin has quit [Ping timeout: 480 seconds]
18:22SalimTer- has joined #asahi-dev
18:27salimterryli has quit [Ping timeout: 480 seconds]
18:41pthariensflame has joined #asahi-dev
18:45brolin has joined #asahi-dev
18:55maria has quit [Quit: The Lounge - https://thelounge.chat]
18:59brolin has quit [Ping timeout: 480 seconds]
19:07ellyq has quit [Quit: Machine shutdown requested]
19:11pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
19:44brolin has joined #asahi-dev
20:05compassion1 has joined #asahi-dev
20:08kettenis has quit [Ping timeout: 480 seconds]
20:08compassion has quit [Ping timeout: 480 seconds]
20:08compassion1 is now known as compassion
20:16kettenis has joined #asahi-dev
20:24kettenis_ has joined #asahi-dev
20:25kettenis has quit [Ping timeout: 480 seconds]
20:35brolin has quit [Ping timeout: 480 seconds]
20:43kaazoo has joined #asahi-dev
20:52brolin has joined #asahi-dev
21:15kaazoo has left #asahi-dev [#asahi-dev]
21:18eloy_ has quit [Ping timeout: 480 seconds]
21:23eloy_ has joined #asahi-dev
21:36wCPO has quit [Quit: The Lounge - https://thelounge.chat]
21:36wCPO has joined #asahi-dev
21:45brolin has quit [Ping timeout: 480 seconds]
22:11compassion has quit [Quit: lounge quit]
22:18kaazoo has joined #asahi-dev
22:19compassion1 has joined #asahi-dev
22:33kettenis_ has quit [Remote host closed the connection]
22:33kettenis has joined #asahi-dev
22:51zzywysm has joined #asahi-dev
23:04thelounge60 has quit [Ping timeout: 480 seconds]
23:13thelounge60 has joined #asahi-dev
…