Lines Matching +full:mali +full:- +full:fw
3 # Use of this source code is governed by a BSD-style license that can be
99 ACPI-based thermal status.
152 if field.find('trip_point') != -1:
160 if field.find('_type') != -1:
174 if field.find('trip_point_') != -1 and field.find('_temp') != -1 \
183 hwmon-based thermal status. Excludes overlaps with thermal zones by default
249 self.max_temp = -999999999
513 'check_powerd_config --low_battery_shutdown_percent',
616 percent_initial_charge_min: float between 0 -> 1.00 of
735 return dict((k, new[k] - old.get(k, 0)) for k in new.keys())
832 path = '%s/cpu[0-9]*' % CPU_BASE_PATH
880 # Note that this is max non-turbo frequency, some CPU can run at
909 float(self._current_perf[0] - self._initial_perf[0]) / \
910 (self._current_perf[1] - self._initial_perf[1])
967 Base class for C-state residency statistics
989 # TODO (snanda): Handle changes in number of c-states due to events such
990 # as ac <-> battery transitions.
991 # TODO (snanda): Handle non-S0 states. Time spent in suspend states is
1001 super(CPUIdleStats, self).__init__(name=name, non_c0_stat='non-C0')
1024 cpuidle_stats['C0'] -= usecs
1027 # Kernel race condition that can happen while a new C-state
1028 # gets added (e.g. AC->battery). Don't know the 'name' of
1035 cpuidle_stats['non-C0'] += usecs
1042 Package C-state residency statistics for modern Intel CPUs.
1056 Helper to decide what set of microarchitecture-specific MSRs to use.
1058 Returns: dict that maps C-state name to MSR address, or None.
1077 'Ivy Bridge-E': self.SANDY_BRIDGE,
1091 non_c0_stat='non-C0_C1')
1101 stats['non-C0_C1'] = 0
1115 stats['non-C0_C1'] += ticks
1116 stats['C0_C1'] -= ticks
1163 for line in fd.readlines()[2:-1]:
1166 stats[freq.group()] = int(line.strip().split()[-1])
1189 _I915_MAX_FREQ_RE = r'Max non-overclocked \(RP0\) frequency:\s+(\d+)MHz'
1197 """Get mali clocks based on kernel version.
1199 For 3.8-3.18:
1249 self._set_gpu_type('mali')
1264 if self._gpu_type is 'mali':
1269 max_mhz = self._freqs[-1]
1342 delta = tstamp - self._prev_sample[1]
1343 logging.debug("freq:%s tstamp:%f - %f delta:%f",
1351 delta = self._trace.uptime_secs() - self._prev_sample[1]
1352 logging.debug("freq:%s tstamp:uptime - %f delta:%f",
1362 """Read Mali GPU stats
1369 kworker/u:24-5220 [000] .... 81060.329232: mali_dvfs_set_clock: frequency=400
1370 kworker/u:24-5220 [000] .... 81061.830128: mali_dvfs_set_clock: frequency=350
1384 kworker/u:0-28247 [000] .... 259391.579610: intel_gpu_freq_change: new_freq=400
1385 kworker/u:0-28247 [000] .... 259391.581797: intel_gpu_freq_change: new_freq=350
1431 usb_stats['suspended'] += total - active
1438 Parse data of form "0,2-4,9"
1446 entry_data = entry.split('-')
1477 """Return CPUFreq/CPUIdleStats groups by big-small siblings groups."""
1523 tot_secs = kernel_trace.KernelTrace.uptime_secs() - \
1594 path: /sys/class/power_supply/cros_ec-charger
1597 path: /sys/class/power_supply/sbs-9-000b
1749 checkpoint_dict[tname] = [(tstart - start_time, tend - start_time)
1942 time.sleep(next_measurement_time - current_time)
1970 """Calculate average measurement during each of the sub-tests.
2032 keyvals[prefix+'_duration'] += tend - tstart
2046 # If sub-test terminated early, avoid calculating avg, std and
2057 result = result + (tend - tstart, tstart, tend)
2072 """Save computed results in a nice tab-separated format.
2150 ret.append(wavg * count - last_wavg * (count - 1))
2257 return round(value - 273.15, 1)
2265 return round(value / 1000. - 273.15, 1)
2312 desc = match.group(1) + '-t' + match.group(2)
2340 - Number of <video> elements detected is equal to |num_video|.
2341 - All videos are played for at least 1 ms.
2363 timeout_left = timeout - (time.time() - start_time)
2371 # Not timeout exception, re-raise original exception
2379 return time.time() - start_time
2403 fps = [(b - a if b >= a else b) / self.seconds_period
2423 res = utils.run('ectool pwmgetnumfans | grep -o [0-9]', ignore_status=True)
2468 if ln.find('stalled') != -1:
2510 """Create loggers for power test that is not test-specific.
2569 result = utils.system_output('rootdev -s')
2575 re.sub('(sd[a-z]|mmcblk[0-9]+)p?[0-9]+', '\\1', result)
2590 the ATA-PASS-THROUGH command that allows SCSI-to-ATA translation (see
2591 T10 document 04-262r8). The ATA command issued is CHECKPOWERMODE1,
2600 0xa1, # SCSI opcode: ATA-PASS-THROUGH
2601 3 << 1, # protocol: Non-data
2606 1 << 6, # flags: ATA-USING-LBA
2614 -1, # data transfer direction: none (int32)
2646 if scsi_sense[7] < 14: # additional length (ATA status is 14 - 1 bytes)
2672 self._stats[state] += new_time - self._time
2674 self._stats[state] = new_time - self._time
2730 return float(utils.read_one_line(info_path)) * 1e-6
2754 return parse_pmc_s0ix_residency_info() - self._initial_residency
2806 return [s.split('/')[-1] for s in state_paths]
2851 return get_s2idle_residency_total_usecs() - self._initial_residency
2859 DC6_ENTRY_KEY = 'DC5 -> DC6 count'
2869 return self._initial_stat['fw loaded']
2885 return current_stat[key] - self._initial_stat[key]
2910 if key == 'fw loaded':
2912 elif re.match(r'DC\d -> DC\d count', key):
2928 # is in small/big-core first, follows by the uarch name. We don't
2933 # Small-core w/ GEN9 LP graphics
2936 # Big-core
2960 # Reference: Bug 94852 - [SKL] rc6_residency_ms unreliable
2973 self._accumulated_stat += current_stat + (self._max_counter -
2976 self._accumulated_stat += current_stat - self._previous_stat
3032 'PMC', 'OPI-DMI', 'SPI / eSPI', 'XHCI', 'xHCI', 'FUSE', 'Fuse',
3039 'HDA-PGD0', 'HDA-PGD1', 'HDA-PGD2', 'HDA-PGD3', 'LPSS',
3043 if len(utils.system_output('lspci -d :31dc')) > 0:
3047 if (len(utils.system_output('lspci -d :02f0')) > 0 or
3048 len(utils.system_output('lspci -d :4df0')) > 0):
3052 on_ip -= S0IX_ALLOWLIST
3059 on_ip -= S0IX_WARNLIST
3102 # PCH IP: 0 - PMC State: On
3103 # PCH IP: 1 - SATA State: Off
3105 r'- (?P<name>.*\w)\s+' \
3136 # --------------------------------------
3138 # --------------------------------------
3144 # ---------------------------------------
3146 r'-+\n' \
3149 r'\n-+\n.*'
3214 stats['RC0'] += total - msecs