LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-18-2017, 04:47 PM   #1
KeelinTy
LQ Newbie
 
Registered: Sep 2017
Posts: 2

Rep: Reputation: Disabled
MSM8998 Clock/speedbin overclock help


Copied from one of my XDA posts. I didnt get any help there. But heres the issue, for msm 8998, I want to overclock the big cores more than 2592mhz.

Probably a little badly worded since here people know more of what they are doing haha

Alright whats up guys. I need help. Ive been trying for the past few days after school to get higher overclocks on the big cores. Overclocks above 2592mhz. Dont ask "why would you want that" and questions like that. Its simply because I want to but I need help. Im lost.
Here are all of the speed bins for my kernel right now.

File im in if you didnt already know, Source/arch/arm/boot/dts/qcom/msm8998-v2.dtsi
qcom,pwrcl-speedbin0-v0 =
< 5000000 0x0004000a 0x01200020 0x1 1 >,
< 75000000 0x0004000b 0x01200020 0x1 1 >,
< 175000000 0x0004000c 0x01200020 0x1 1 >,
< 300000000 0x0004000f 0x01200020 0x1 1 >,
< 364800000 0x05040013 0x01200020 0x1 2 >,
< 441600000 0x05040017 0x02200020 0x1 3 >,
< 518400000 0x0504001b 0x02200020 0x1 4 >,
< 595200000 0x0504001f 0x02200020 0x1 5 >,
< 672000000 0x05040023 0x03200020 0x1 6 >,
< 748800000 0x05040027 0x03200020 0x1 7 >,
< 825600000 0x0404002b 0x03220022 0x1 8 >,
< 883200000 0x0404002e 0x04250025 0x1 9 >,
< 960000000 0x04040032 0x04280028 0x1 10 >,
< 1036800000 0x04040036 0x042b002b 0x1 11 >,
< 1094400000 0x04040039 0x052e002e 0x2 12 >,
< 1171200000 0x0404003d 0x05310031 0x2 13 >,
< 1248000000 0x04040041 0x05340034 0x2 14 >,
< 1324800000 0x04040045 0x06370037 0x2 15 >,
< 1401600000 0x04040049 0x063a003a 0x2 16 >,
< 1478400000 0x0404004d 0x073e003e 0x2 17 >,
< 1555200000 0x04040051 0x07410041 0x2 18 >,
< 1670400000 0x04040057 0x08460046 0x2 19 >,
< 1747200000 0x0404005b 0x08490049 0x2 20 >,
< 1824000000 0x0404005f 0x084c004c 0x3 21 >,
< 1900800000 0x04040063 0x094f004f 0x3 22 >,
< 2035200000 0x0404006a 0x09550055 0x3 22 >,
< 2112000000 0x0404006e 0x0a580058 0x3 22 >;

qcom,perfcl-speedbin0-v0 =
< 300000000 0x0004000f 0x01200020 0x1 1 >,
< 345600000 0x05040012 0x01200020 0x1 2 >,
< 422400000 0x05040016 0x02200020 0x1 3 >,
< 499200000 0x0504001a 0x02200020 0x1 4 >,
< 576000000 0x0504001e 0x02200020 0x1 5 >,
< 652800000 0x05040022 0x03200020 0x1 6 >,
< 729600000 0x05040026 0x03200020 0x1 7 >,
< 806400000 0x0504002a 0x03220022 0x1 8 >,
< 902400000 0x0404002f 0x04260026 0x1 9 >,
< 979200000 0x04040033 0x04290029 0x1 10 >,
< 1056000000 0x04040037 0x052c002c 0x1 11 >,
< 1132800000 0x0404003b 0x052f002f 0x1 12 >,
< 1190400000 0x0404003e 0x05320032 0x2 13 >,
< 1267200000 0x04040042 0x06350035 0x2 14 >,
< 1344000000 0x04040046 0x06380038 0x2 15 >,
< 1420800000 0x0404004a 0x063b003b 0x2 16 >,
< 1497600000 0x0404004e 0x073e003e 0x2 17 >,
< 1574400000 0x04040052 0x07420042 0x2 18 >,
< 1651200000 0x04040056 0x07450045 0x2 19 >,
< 1728000000 0x0404005a 0x08480048 0x2 20 >,
< 1804800000 0x0404005e 0x084b004b 0x2 21 >,
< 1881600000 0x04040062 0x094e004e 0x2 22 >,
< 1958400000 0x04040066 0x09520052 0x2 23 >,
< 2035200000 0x0404006a 0x09550055 0x3 24 >,
< 2112000000 0x0404006e 0x0a580058 0x3 25 >,
< 2208000000 0x04040073 0x0a5c005c 0x3 26 >,
< 2265600000 0x04010076 0x0a5e005e 0x3 26 >,
< 2265600000 0x04040076 0x0a5e005e 0x3 27 >,
< 2342400000 0x0401007a 0x0a620062 0x3 27 >,
< 2342400000 0x0404007a 0x0a620062 0x3 28 >,
< 2419200000 0x0401007e 0x0a650065 0x3 28 >,
< 2419200000 0x0404007e 0x0a650065 0x3 29 >,
< 2496000000 0x04010082 0x0a680068 0x3 29 >,
< 2457600000 0x04040080 0x0a660066 0x3 30 >,
< 2553600000 0x04010085 0x0a6a006a 0x3 30 >,
< 2476800000 0x04040081 0x0a670067 0x3 31 >,
< 2572800000 0x04010086 0x0a6b006b 0x3 31 >,
< 2496000000 0x04040082 0x0a680068 0x3 32 >,
< 2592000000 0x04010087 0x0a6c006c 0x3 32 >;


qcom,perfcl-speedbin1-v0 =
< 300000000 0x0004000f 0x01200020 0x1 1 >,
< 345600000 0x05040012 0x01200020 0x1 2 >,
< 422400000 0x05040016 0x02200020 0x1 3 >,
< 499200000 0x0504001a 0x02200020 0x1 4 >,
< 576000000 0x0504001e 0x02200020 0x1 5 >,
< 652800000 0x05040022 0x03200020 0x1 6 >,
< 729600000 0x05040026 0x03200020 0x1 7 >,
< 806400000 0x0504002a 0x03220022 0x1 8 >,
< 902400000 0x0404002f 0x04260026 0x1 9 >,
< 979200000 0x04040033 0x04290029 0x1 10 >,
< 1056000000 0x04040037 0x052c002c 0x1 11 >,
< 1132800000 0x0404003b 0x052f002f 0x1 12 >,
< 1190400000 0x0404003e 0x05320032 0x2 13 >,
< 1267200000 0x04040042 0x06350035 0x2 14 >,
< 1344000000 0x04040046 0x06380038 0x2 15 >,
< 1420800000 0x0404004a 0x063b003b 0x2 16 >,
< 1497600000 0x0404004e 0x073e003e 0x2 17 >,
< 1574400000 0x04040052 0x07420042 0x2 18 >,
< 1651200000 0x04040056 0x07450045 0x2 19 >,
< 1728000000 0x0404005a 0x08480048 0x2 20 >,
< 1804800000 0x0404005e 0x084b004b 0x2 21 >,
< 1881600000 0x04040062 0x094e004e 0x2 22 >,
< 1958400000 0x04040066 0x09520052 0x2 23 >,
< 2035200000 0x0404006a 0x09550055 0x3 24 >,
< 2112000000 0x0404006e 0x0a580058 0x3 25 >,
< 2208000000 0x04040073 0x0a5c005c 0x3 26 >,
< 2304000000 0x04010078 0x0a600060 0x3 26 >;

qcom,perfcl-speedbin2-v0 =
< 5000000 0x0004000a 0x01200020 0x1 1 >,
< 75000000 0x0004000b 0x01200020 0x1 1 >,
< 175000000 0x0004000c 0x01200020 0x1 1 >,
< 300000000 0x0004000f 0x01200020 0x1 1 >,
< 345600000 0x05040012 0x01200020 0x1 2 >,
< 422400000 0x05040016 0x02200020 0x1 3 >,
< 499200000 0x0504001a 0x02200020 0x1 4 >,
< 576000000 0x0504001e 0x02200020 0x1 5 >,
< 652800000 0x05040022 0x03200020 0x1 6 >,
< 729600000 0x05040026 0x03200020 0x1 7 >,
< 806400000 0x0504002a 0x03220022 0x1 8 >,
< 902400000 0x0404002f 0x04260026 0x1 9 >,
< 979200000 0x04040033 0x04290029 0x1 10 >,
< 1056000000 0x04040037 0x052c002c 0x1 11 >,
< 1132800000 0x0404003b 0x052f002f 0x1 12 >,
< 1190400000 0x0404003e 0x05320032 0x2 13 >,
< 1267200000 0x04040042 0x06350035 0x2 14 >,
< 1344000000 0x04040046 0x06380038 0x2 15 >,
< 1420800000 0x0404004a 0x063b003b 0x2 16 >,
< 1497600000 0x0404004e 0x073e003e 0x2 17 >,
< 1574400000 0x04040052 0x07420042 0x2 18 >,
< 1651200000 0x04040056 0x07450045 0x2 19 >,
< 1728000000 0x0404005a 0x08480048 0x2 20 >,
< 1804800000 0x0404005e 0x084b004b 0x2 21 >,
< 1881600000 0x04040062 0x094e004e 0x2 22 >,
< 1958400000 0x04040066 0x09520052 0x2 23 >,
< 2035200000 0x0404006a 0x09550055 0x3 24 >,
< 2112000000 0x0404006e 0x0a580058 0x3 25 >,
< 2208000000 0x04040073 0x0a5c005c 0x3 26 >,
< 2265600000 0x04010076 0x0a5e005e 0x3 26 >,
< 2265600000 0x04040076 0x0a5e005e 0x3 27 >,
< 2342400000 0x0401007a 0x0a620062 0x3 27 >,
< 2323200000 0x04040079 0x0a610061 0x3 28 >,
< 2419200000 0x0401007e 0x0a650065 0x3 28 >,
< 2342400000 0x0404007a 0x0a620062 0x3 29 >,
< 2438400000 0x0401007f 0x0a660066 0x3 29 >,
< 2361600000 0x0404007b 0x0a620062 0x3 30 >,
< 2457600000 0x04040080 0x0a660066 0x3 30 >,
< 2553600000 0x04010085 0x0a6a006a 0x3 30 >,
< 2592000000 0x04010087 0x0a6c006c 0x3 30 >;

qcom,perfcl-speedbin3-v0 =
< 5000000 0x0004000a 0x01200020 0x1 1 >,
< 75000000 0x0004000b 0x01200020 0x1 1 >,
< 175000000 0x0004000c 0x01200020 0x1 1 >,
< 300000000 0x0004000f 0x01200020 0x1 1 >,
< 345600000 0x05040012 0x01200020 0x1 2 >,
< 422400000 0x05040016 0x02200020 0x1 3 >,
< 499200000 0x0504001a 0x02200020 0x1 4 >,
< 576000000 0x0504001e 0x02200020 0x1 5 >,
< 652800000 0x05040022 0x03200020 0x1 6 >,
< 729600000 0x05040026 0x03200020 0x1 7 >,
< 806400000 0x0504002a 0x03220022 0x1 8 >,
< 902400000 0x0404002f 0x04260026 0x1 9 >,
< 979200000 0x04040033 0x04290029 0x1 10 >,
< 1056000000 0x04040037 0x052c002c 0x1 11 >,
< 1132800000 0x0404003b 0x052f002f 0x1 12 >,
< 1190400000 0x0404003e 0x05320032 0x2 13 >,
< 1267200000 0x04040042 0x06350035 0x2 14 >,
< 1344000000 0x04040046 0x06380038 0x2 15 >,
< 1420800000 0x0404004a 0x063b003b 0x2 16 >,
< 1497600000 0x0404004e 0x073e003e 0x2 17 >,
< 1574400000 0x04040052 0x07420042 0x2 18 >,
< 1651200000 0x04040056 0x07450045 0x2 19 >,
< 1728000000 0x0404005a 0x08480048 0x2 20 >,
< 1804800000 0x0404005e 0x084b004b 0x2 21 >,
< 1881600000 0x04040062 0x094e004e 0x2 22 >,
< 1958400000 0x04040066 0x09520052 0x2 23 >,
< 2035200000 0x0404006a 0x09550055 0x3 24 >,
< 2112000000 0x0404006e 0x0a580058 0x3 25 >,
< 2208000000 0x04040073 0x0a5c005c 0x3 26 >,
< 2265600000 0x04010076 0x0a5e005e 0x3 26 >,
< 2265600000 0x04040076 0x0a5e005e 0x3 27 >,
< 2342400000 0x0401007a 0x0a620062 0x3 27 >,
< 2323200000 0x04040079 0x0a610061 0x3 28 >,
< 2419200000 0x0401007e 0x0a650065 0x3 28 >,
< 2342400000 0x0404007a 0x0a620062 0x3 29 >,
< 2438400000 0x0401007f 0x0a660066 0x3 29 >,
< 2361600000 0x0404007b 0x0a620062 0x3 30 >,
< 2457600000 0x04040080 0x0a660066 0x3 30 >,
< 2553600000 0x04010085 0x0a6a006a 0x3 30 >,
< 2592000000 0x04010087 0x0a6c006c 0x3 30 >;
};

The little cores are easy to overclock because we can copy data from the big cluster. But the big cluster can only be overclocked because the data is already there to increase the speed to 2592, you can check the stock kernel and youll see what I mean.
To get it past 2592, we need to figure out what to add and thats where im lost.
@flar2 has mentioned frequency rounding before which is confusing to me.

My main issue right now is the second and third column in the speedbins, I cant figure out what they do or what I need to add for another freq step.

Any changes I try cause what others and I call "slow boot" where the phone goes to Sh*t. Performance dies, booting is in slow motion. Apps dont recognize any cpu cores or freqs and yeah its no good.

Any help would be appreciated. I can always build and test easily.

Ive been stumped on this for a while and It would be nice to get big core overclocks

Stock kernel for the device (oneplus 5)
https://github.com/OnePlusOSS/androi...neplus_msm8998
 
Old 09-22-2017, 04:29 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It sounds like you're hitting speed limits.

Things are possible in theory, which are not possible in practise. You're limited by many hardware factors. A design decision about speed is usually taken fairly early on, and the hardware design done with that in mind. It sounds like they aimed for 2.5Ghz, missed, and detuned slightly.

Nobody wants to sell a 2.45 Ghz cpu if he can sell a 3Ghz one by clocking it faster. Back in the '90s I overclocked an AMD I586-133Mhz. It ran at 160Mhz without issue (=33Mhz --> 40Mhz on the bus, multiplied by four), but that is the exception rather than the rule. Modern chips are already running much closer to the physical device limits.

But you want to do this. So do it. You can go faster until things go wrong. That thing has a standard 2.45 Ghz clock, doesn't it? I doubt if you'll get 20% speed improvement; 10% is the max I would try for. Discover where the limit is and stay below it.
 
Old 09-22-2017, 08:47 AM   #3
KeelinTy
LQ Newbie
 
Registered: Sep 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
It's not that. To get an overclock with the big closer I need the right info for the second and third column. It can go higher. This is for a Snapdragon 835.
Little cluster is overclock to 2112mhz and big to 2592 using the provided speeds. Stock is 1900/2457

Last edited by KeelinTy; 09-22-2017 at 08:50 AM.
 
Old 09-22-2017, 01:22 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
This is your desire, your work, and your loss when it doesn't work, Remember that.

The 1st column on your files looks like a decimal number (speed?) the other two look like hex numbers. I'd work out the difference in speeds and register settings, and try to calculate settings for your speed and several lesser intermediate points. Increment up the intermediate points, so if you hit difficulties at e.g. 2.4G instead of 2.592G you will find it and can increment back. Each chip off the Assembly line can have different physical limits. Heat can also be a problem.

Can you afford to throw this away when/if it blows? If not, stop now. Have fun, and tell us whet you finally manage to do.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clock for the dock or widget clock and how to turn off automatic KDE Wallet Service? greenace92 Debian 1 02-29-2016 09:53 PM
Frequency not as expected with overclock Weapon S Linux - Hardware 6 05-23-2015 03:31 AM
overclock scoobyracer General 6 04-23-2009 06:06 AM
CPU overclock htb Linux - Hardware 10 10-25-2008 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration