Bug 1549843 - implement jitter reduction for Motorola G5 r=jmaher,rwood
authorEdwin Gao <egao@mozilla.com>
Fri, 10 May 2019 21:15:20 +0000
changeset 532285 1af537f969cbdf7d9d4676c8cb30c88777289113
parent 532284 dc36541fb06201f266cf9b329bb78c6180bdc082
child 532286 cb4e5f7609686f3255646b9a3904e4737e7bcebf
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher, rwood
bugs1549843
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1549843 - implement jitter reduction for Motorola G5 r=jmaher,rwood Changes: - implement cpu, gpu, memory bus and other kernel tweaks for Motorola G5 to complement D30116 Differential Revision: https://phabricator.services.mozilla.com/D30715
testing/raptor/raptor/raptor.py
--- a/testing/raptor/raptor/raptor.py
+++ b/testing/raptor/raptor/raptor.py
@@ -765,17 +765,26 @@ class RaptorAndroid(Raptor):
             #   /sys/devices/system/cpu/cpufreq/policy4/scaling_available_frequencies
             commands.update({
                 '/sys/devices/system/cpu/cpufreq/policy0/scaling_governor': 'performance',
                 '/sys/devices/system/cpu/cpufreq/policy4/scaling_governor': 'performance',
                 '/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq': '1900800',
                 '/sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq': '2457600',
             })
         elif device_name == 'Moto G (5)':
-            pass
+            # MSM8937(8x 1.4GHz)
+            # values obtained from:
+            #   /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
+            for x in xrange(0, 8):
+                commands.update({
+                    '/sys/devices/system/cpu/cpu{}/'
+                    'cpufreq/scaling_governor'.format(x): 'performance',
+                    '/sys/devices/system/cpu/cpu{}/'
+                    'cpufreq/scaling_min_freq'.format(x): '1401000'
+                })
         else:
             pass
 
         for key, value in commands.items():
             self._set_value_and_check_exitcode(key, value)
 
     def set_gpu_performance_parameters(self, device_name):
         self.log.info('setting gpu performance parameters')
@@ -795,17 +804,24 @@ class RaptorAndroid(Raptor):
             commands.update({
                 '/sys/devices/soc/5000000.qcom,kgsl-3d0/devfreq/'
                 '5000000.qcom,kgsl-3d0/governor': 'performance',
                 '/sys/devices/soc/soc:qcom,kgsl-busmon/devfreq/'
                 'soc:qcom,kgsl-busmon/governor': 'performance',
                 '/sys/devices/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/min_clock_mhz': '710',
             })
         elif device_name == 'Moto G (5)':
-            pass
+            # Adreno 505 (450MHz)
+            # values obtained from:
+            #   /sys/devices/soc/1c00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/max_clock_mhz
+            commands.update({
+                '/sys/devices/soc/1c00000.qcom,kgsl-3d0/devfreq/'
+                '1c00000.qcom,kgsl-3d0/governor': 'performance',
+                '/sys/devices/soc/1c00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/min_clock_mhz': '450',
+            })
         else:
             pass
         for key, value in commands.items():
             self._set_value_and_check_exitcode(key, value)
 
     def set_kernel_performance_parameters(self):
         self.log.info('setting kernel performance parameters')
         commands = {