<kholk>
for system sleep (cpus going down, etc), MT8173 and 8173C should be handled the very same way AFAIK - so that's pretty strange.
<kholk>
that'd be the same for MT6795 as well, and I can assure you that one sleeps like a baby :-)
<mps>
kholk: I use s2idle on mt8173, that works stable
<kholk>
hmm.. but still, I don't see why suspend deep shouldn't still work fine
<mps>
well, I tried to bisect but didn't found anything
<kholk>
if it was a firmware (deeper sleep states management) issue, I think s2idle would also fail, as we're still requesting the same states
<kholk>
so that must be "a kernel thing"
<mps>
I remember that deep sleep worked in some old 5.x kernel series but forgot exact version
<kholk>
I'm not sure what's happening, because deep should be .. deeper .. than s2idle....
<kholk>
yeah well, "some old 5.x" kernel would be too old to really try to bisect
<mps>
yes, deep is deeper ofc
<kholk>
yeah and I really don't get why deep should use more power (-> should make something fail and disallow some sleep state) than s2idle...
<kholk>
because then all of the suspend callbacks are still being called in s2i
<mps>
ime, s2idle use more power
<kholk>
for device drivers
<kholk>
the only thing that comes to mind is something with the ChromeOS EC
<mps>
for example on apple silicon only s2idle works and it drains about 10-15% battery over night
<kholk>
I had something vaguely similar with MT8195, but again vaguely - the EC would complain and resume the system immediately *unless forced to not resume it*
<kholk>
but if you force not to resume the system, it's going to keep the CPU awake anyway and drain your battery
<kholk>
.......but again, you must *force it* to do that otherwise it won't... (hence why I said "vaguely similar")....
<mps>
right
<kholk>
well, apple silicon is different, as much as qualcomm, rockchip, etc are :-)
<mps>
on macos battery drain over night is negligible
<kholk>
in any case... to resolve the MT8195 issue, that was about a clock missing from a LARB or a power domain (don't remember)
<kholk>
that would make it impossible to correctly turn off one of the LARBs for VCODEC before sleep
<kholk>
hence it was staying in this kind of error state, and the SoC would go crazy about it, EC would detect that and disallow full sleep
<kholk>
it could be possible that something like this is actually happening on 8173... I mean, I don't feel like excluding such possibility
<mps>
do you ec_tool compiled to check internals
<kholk>
oh regarding that 8195 thing, I didn't need any special tool
<kholk>
I used the SuzyQ
<kholk>
there's an EC console, and the EC clearly SCREAMS a big NO over the UART
<kholk>
there's also a way to get the EC logs from Linux, without any uart-blahblah-cable as far as I remember
<kholk>
(sysfs or debugfs)
<kholk>
you can `cat somewhere/something` and get it like that
<mps>
I use ec_tool to examine and control EC
<kholk>
(sorry about the somewhere-something, I don't really remembed what)
<kholk>
*remember
<kholk>
well yeah, that's another way of doing things :-)
<kholk>
(probably better than mine)
<mps>
for example with ec_tool I set max charge current
<kholk>
yeah, I'm sure you can do "all the cool stuff" with that one :_)
<mps>
iirc, suspend2ram worked in 5.9 or even in 5.12
<mps>
#linux-mediatek.2021-07-14.log:2021-07-14 20:46......... mps| nice, with kernel 5.13.2 now elm chromebook (mt8173) suspends fine but resume doesn't work. it crashes
psydroid has joined #linux-mediatek
ungeskriptet8 has joined #linux-mediatek
ungeskriptet has quit [Ping timeout: 246 seconds]
ungeskriptet8 is now known as ungeskriptet
adomerle has quit [Remote host closed the connection]
paricbat has quit [Quit: paricbat]
paricbat has joined #linux-mediatek
paricbat has quit [Changing host]
paricbat has joined #linux-mediatek
adomerle has joined #linux-mediatek
eballetbo has quit [Quit: Connection closed for inactivity]
paricbat has quit [Quit: paricbat]
paricbat has joined #linux-mediatek
paricbat has quit [Changing host]
paricbat has joined #linux-mediatek
paricbat has quit [Remote host closed the connection]
psydroid has quit [Read error: Connection reset by peer]