-
Notifications
You must be signed in to change notification settings - Fork 14
Add MSM8974 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add MSM8974 #35
Conversation
APCS clocks are ignored because the logic is a bit too conditional in the downstream clock-8974.c code to be nicely integrated. Signed-off-by: Luca Weiss <[email protected]>
I think the properties should be correct now. Output below in the Details block. Generally the values look sane, but there's some where Linux's clk_rate from debugfs differs from the value printed here. For example:
But for a completely different SoC (sm6350) I have fixed the rate that Linux thought before, and given the age of the msm8974 driver I'd believe more that the Linux driver might be wrong there.
|
So according to an arcane 2012 PDF, the bus (PNoC, CNoC, SNoC, BIMC & MMSSNoC_AHB) clocks should have never been touched by Linux, as RPM is supposed to take care of them (i.e. we don't want to be stepping on one another's toes).. We won't be able to retrieve the rates of certain clocks at all because of that, but as you said above, it they may not always be useful or correct. Now I can't find a frequency plan for 8974, but taking conclusions from the rather similar 8994, the debugcc-reported rates you mentioned above are not totally impossible (although not 100% matching either..) Please also make sure (if you haven't already) that your debugcc clock map is the latest version (i.e. for 8974v2/ac depending on your hw) so we're not poking in the dark |
The kernel sources I've based this on are definitely good for MSM8974AB-AB and MSM8974AB-AA (a.k.a MSM8974PRO-AB and MSM8974PRO-AA). The device I was trying it on should be one of the AB ones. So unless there's a newer version somewhere (OnePlus One is -AC fwiw), it's definitely not one of the old MSM8974 non-pro variants (a.k.a Snapdragon 800). |
I have the APQ8074 dragonboard, so next week I should be able to cross-check it on that board |
@lumag Did you have a chance to try this? |
Need some help figuring out the remaining values marked with FIXME. I think I understand too little about debugcc and these old clock drivers :)
Downstream: https://github.com/FairphoneMirrors/android_kernel_fairphone_msm8974/blob/int/10/fp2/arch/arm/mach-msm/clock-8974.c#L4431