Skip to content

tests/intel/xe_eudebug_online: Fix attention double-counting - #16

Open
smithab-intc wants to merge 1 commit into
intel-gpu:backport/mainfrom
smithab-intc:xe-eudebug-attention-fix
Open

tests/intel/xe_eudebug_online: Fix attention double-counting#16
smithab-intc wants to merge 1 commit into
intel-gpu:backport/mainfrom
smithab-intc:xe-eudebug-attention-fix

Conversation

@smithab-intc

Copy link
Copy Markdown

Fixes inflated EU thread stop counts caused by level-triggered attention events re-reporting already-stopped threads across consecutive events.

  • Add eu_attention_bitmask_is_subset helper to check if one attention bitmask is fully contained within another
  • Track the previous attention event (prev_ea) during the session check loop
  • Count only newly set bits (via XOR) when a consecutive attention event for the same context is a superset of the previous, avoiding double-counting re-reported threads
  • Fall back to counting all bits when the new event is not a superset, treating it as a distinct stop set

Suggested-by: Maciej Patelczyk maciej.patelczyk@intel.com
Signed-off-by: Jakub Legowski jakub.legowski@intel.com

Fixes inflated EU thread stop counts caused by level-triggered
attention events re-reporting already-stopped threads across consecutive events.

- Add eu_attention_bitmask_is_subset helper to check if one attention
bitmask is fully contained within another
- Track the previous attention event (prev_ea) during the session check loop
- Count only newly set bits (via XOR) when a consecutive attention event
for the same context is a superset of the previous, avoiding double-counting re-reported threads
- Fall back to counting all bits when the new event is not a superset, treating it as a distinct stop set

Suggested-by: Maciej Patelczyk maciej.patelczyk@intel.com
Signed-off-by: Jakub Legowski jakub.legowski@intel.com
Signed-off-by: Smitha Balasubramanyam <smitha.balasubramanyam@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant