Skip to content

Commit 87c0b9c

Browse files
virtuosogregkh
authored andcommitted
intel_th: gth: Fix the window switching sequence
Commit 8116db5 ("intel_th: Add switch triggering support") added a trigger assertion of the CTS, but forgot to de-assert it at the end of the sequence. This results in window switches randomly not happening. Fix that by de-asserting the trigger at the end of the window switch sequence. Signed-off-by: Alexander Shishkin <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Fixes: 8116db5 ("intel_th: Add switch triggering support") Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 106901a commit 87c0b9c

File tree

1 file changed

+3
-0
lines changed
  • drivers/hwtracing/intel_th

1 file changed

+3
-0
lines changed

drivers/hwtracing/intel_th/gth.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ static void intel_th_gth_switch(struct intel_th_device *thdev,
626626
if (!count)
627627
dev_dbg(&thdev->dev, "timeout waiting for CTS Trigger\n");
628628

629+
/* De-assert the trigger */
630+
iowrite32(0, gth->base + REG_CTS_CTL);
631+
629632
intel_th_gth_stop(gth, output, false);
630633
intel_th_gth_start(gth, output);
631634
}

0 commit comments

Comments
 (0)