diff --git a/libs/utils/env.py b/libs/utils/env.py index bed90ee7db99558208091a6b76162684209cf932..e64b4c6f6ffd9d3805776d78ecd49d69cd4ea6f1 100644 --- a/libs/utils/env.py +++ b/libs/utils/env.py @@ -31,6 +31,7 @@ from wlgen import RTA from energy import EnergyMeter from conf import JsonConf +from devlib import TargetError from devlib.utils.misc import memoized from trappy.stats.Topology import Topology @@ -603,8 +604,13 @@ class TestEnv(ShareState): # Try loading frequencies using the cpufreq module for cluster_id in self.platform['clusters']: core_id = self.platform['clusters'][cluster_id][0] - self.platform['freqs'][cluster_id] = \ - self.target.cpufreq.list_frequencies(core_id) + try: + self.platform['freqs'][cluster_id] = \ + self.target.cpufreq.list_frequencies(core_id) + except TargetError: + # Intel plataforms do not expose the list of OPPs, + # thus let's just keep this list empty initialized. + self.platform['freqs'][cluster_id] = [] else: self._log.warning('Unable to identify cluster frequencies') diff --git a/libs/wlgen/wlgen/rta.py b/libs/wlgen/wlgen/rta.py index e779e8345ab7c8b88a278e82b919a5beaf5a2232..14200d0b2d7bebef14f97ae59d671172317e8d55 100644 --- a/libs/wlgen/wlgen/rta.py +++ b/libs/wlgen/wlgen/rta.py @@ -90,7 +90,11 @@ class RTA(Workload): log.info('CPU%d calibration...', cpu) - max_rtprio = int(target.execute('ulimit -Hr').split('\r')[0]) + try: + ulimit = target.execute('ulimit -Hr') + max_rtprio = int(ulimit.split('\r')[0]) + except TargetError: + max_rtprio = 0 log.debug('Max RT prio: %d', max_rtprio) if max_rtprio > 10: max_rtprio = 10