Skip to content

Commit

Permalink
Merge pull request intel#254 from edwarddavidbaker/iio-fix
Browse files Browse the repository at this point in the history
create_perf_json: Drop UMaskExt depending on FCMask and PortMask
  • Loading branch information
edwarddavidbaker authored Dec 6, 2024
2 parents 01f6691 + d78e8a1 commit 2cc00da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/create_perf_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ def get(key: str) -> str:
if self.umask:
self.umask = self.umask.split(",")[0]
umask_ext = get('UMaskExt')

# Unset UMaskExt if PortMask or FCMask are set. For future platforms
# PortMask and FCMask won't be present and only UMaskExt will be available.
if umask_ext and int(umask_ext, 16):
if (self.port_mask and int(self.port_mask, 16)) or (self.fc_mask and int(self.fc_mask, 16)):
umask_ext = None

if umask_ext:
self.umask = umask_ext + self.umask[2:]
self.umask = f'0x{int(self.umask, 16):x}'
Expand Down

0 comments on commit 2cc00da

Please sign in to comment.