#
#asahi-dev · 2023-05-30 13:41
marcanplus that whole asmedia thing needs hardening anyway, it was never fully reliable
#asahi-dev · 2023-05-30 13:41
marcanI think I'll look at this one tomorrow or something (along with the firmware extraction since it kind of goes with it)
#asahi-dev · 2023-05-30 13:39
jannaumight have been the previous version with initrd firmware
#asahi-dev · 2023-05-30 13:38
jannaukettenis: not in u-boot but linux was able to initialize the link after u-boot
#asahi-dev · 2023-05-30 13:37
jannauxhci smc gpio seems to be generally toogled on on boot
#asahi-dev · 2023-05-30 13:37
ketteniserh, how is that possible?
#asahi-dev · 2023-05-30 13:36
jannauxhci was working without asmedia fw in u-boot
#asahi-dev · 2023-05-30 13:35
kettenisthe m2 pro mini doesn't need a gpio toggle though
#asahi-dev · 2023-05-30 13:35
kettenisso if the studio needs a gpio toggle to enable xhci, u-boot won't even see the xhci
#asahi-dev · 2023-05-30 13:35
kettenisu-boot doesn't know about the smc gpio's yet
#asahi-dev · 2023-05-30 13:34
marcanhm, then that's weird
#asahi-dev · 2023-05-30 13:34
kettenisyup
#asahi-dev · 2023-05-30 13:34
marcanbut does it leave the PCIe stuff up?
#asahi-dev · 2023-05-30 13:34
kettenisit bails and ignores the device
#asahi-dev · 2023-05-30 13:33
marcanwhat does u-boot do when it doesn't have that?
#asahi-dev · 2023-05-30 13:33
marcanprobably because no asmedia firmware yet in u-boot?
#asahi-dev · 2023-05-30 13:33
jannaubroken pcie xhci on the studio (PCIe link doesn't come up), aquantia lan and everything else seems to work
#asahi-dev · 2023-05-30 13:31
marcanjannau: gpio thing should be fixed
#asahi-dev · 2023-05-30 13:30
marcanbut anyway
#asahi-dev · 2023-05-30 13:30
marcanKDE bug in that case
#asahi-dev · 2023-05-30 13:30
marcanI think the backend just rejects settings with start > stop or something
#asahi-dev · 2023-05-30 13:30
marcanactually it seems you need to change both anyway, lol
#asahi-dev · 2023-05-30 13:30
kettenisah, ok
#asahi-dev · 2023-05-30 13:29
marcanwhat I mean is using stop_threshold to drive the change is better
#asahi-dev · 2023-05-30 13:29
marcanI'm not hiding it, otherwise KDE's UI won't work, it wants both
#asahi-dev · 2023-05-30 13:27
kettenisso maybe I should hide the start value on OpenBSD as well...
#asahi-dev · 2023-05-30 13:26
marcanwhich means you need to change both to flip
#asahi-dev · 2023-05-30 13:26
marcankettenis: ah yeah, that actually behaves better with KDE, because it clamps the start threshold to stop - 1
#asahi-dev · 2023-05-30 13:19
marcanwe could probably implement that one as readonly, but at least KDE won't like that
#asahi-dev · 2023-05-30 13:18
marcanah yeah, so then we want the same thing and that driver didn't even bother to implement start_threshold
#asahi-dev · 2023-05-30 13:14
j`eyit's in drivers/platform/x86/toshiba_acpi.c
#asahi-dev · 2023-05-30 13:13
j`eyWhen on it charges to about 80%'
#asahi-dev · 2023-05-30 13:13
j`eycontrol is granular here it is just off/on. When off it charges to 100%.
#asahi-dev · 2023-05-30 13:13
j`ey'Unlike for example ThinkPads where this
#asahi-dev · 2023-05-30 13:13
kettenisbut there doesn't seem to be an in-tree driver for those laptops
#asahi-dev · 2023-05-30 13:12
j`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
#asahi-dev · 2023-05-30 13:12
kettenisI think some of the "consumer" laptops from lenovo have a similar mechanism to what apple does (as opposed to the mechanism on the thinkpads)
#asahi-dev · 2023-05-30 13:10
marcandoing another build...
#asahi-dev · 2023-05-30 13:08
marcancould be
#asahi-dev · 2023-05-30 13:08
kettenisI suspect changing the start value was a later addition and whoever documented it didn't repeat the statement about the rounding?
#asahi-dev · 2023-05-30 13:06
marcanlet's do that
#asahi-dev · 2023-05-30 13:06
marcanbut yeah maybe I should do it the other way around
#asahi-dev · 2023-05-30 13:06
marcankettenis: I only chose the start value because the Linux UAPI only says the driver is allowed to round the stop value :D
#asahi-dev · 2023-05-30 13:05
kettenis(this is what I do on OpenBSD)
#asahi-dev · 2023-05-30 13:05
kettenismarcan: I'd say using the stop value would be more intuitive since the idea is to limit the charging to a certain value
#asahi-dev · 2023-05-30 12:56
marcanah, probably because the way SMC works it doesn't really do this properly
#asahi-dev · 2023-05-30 12:56
marcannope... that didn't work. argh.
#asahi-dev · 2023-05-30 12:40
marcanrunning another build now
#asahi-dev · 2023-05-30 12:39
marcanI moved the GPIOs to the parent OF node which I think will make the of fwnode stuff defer the probe for us
#asahi-dev · 2023-05-30 12:39
marcanit's a dependency problem with SMC (because the way we do this we can't defer at that point)

plus ›