Jon Kliegman has posted comments on this change.
Change subject: CHROMIUM: thermal: Add debugfs metrics for fan state changes
......................................................................
Patch Set 2:
Did some brief testing:
55000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=0 on=3 mult=1 del=0
55000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=0 on=3 mult=1 del=0
55000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=0 on=3 mult=1 del=1
52000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=0 on=3 mult=1 del=1
52000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=0 on=3 mult=1 del=1
52000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=0 on=3 mult=1 del=1
52000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=0 on=3 mult=1 del=1
51000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=1 on=3 mult=1 del=0
51000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=1 on=3 mult=1 del=0
51000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=1 on=3 mult=1 del=0
51000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=1 on=3 mult=1 del=0
51000: 0=0 1=0 2=0 3=1 4=1 5=0 aborted=1 on=3 mult=1 del=0
Left number is temperature, 0-5 are the fans. For testing I set the delay period to 5 seconds and you can see the aborted count increasing when leaving delay.
For the multiple turnons, there's always 1 at startup it seems - at boot we always turn one fan on (the 0% fan) and we tend to boot up warm enough for the second fan to always trigger so we'll see the early mult=1. One boot cycle I saw aborted=1 at the start too which corresponds to me seeing us occasionally boot up hot.
I'm not sure how to report this all into UMA which is the other related bug so will look into how it does that. If its smart enough to always understand that '1' is the expected value for a machine then we don't need funky logic to ignore the boot case.
I've also chosen to ignore almost all errors with creating debugfs. If it doesn't properly create the files then we just don't have them - system should still run so no point errorring out. I can add log warnings but not sure that gains much and if we're reporting "unknown" to UMA (we should be able to do this?) that will give us information on how often we see errors with this.
Gerrit-MessageType: comment
Gerrit-Change-Id: I07368e9260f69482e16674ddab826314bde7e22b
Gerrit-PatchSet: 2
Gerrit-Project: chromiumos/third_party/kernel
Gerrit-Branch: chromeos-3.2
Gerrit-Owner: Jon Kliegman <
kli...@chromium.org>
Gerrit-Reviewer: Jon Kliegman <
kli...@chromium.org>
Gerrit-Reviewer: Olof Johansson <
ol...@chromium.org>
Gerrit-Reviewer: Sameer Nanda <
sna...@chromium.org>