Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

intel_th: gth: Fix the window switching sequence

Commit 8116db57cf16 ("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 <alexander.shishkin@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Fixes: 8116db57cf16 ("intel_th: Add switch triggering support")
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191028070651.9770-2-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Shishkin and committed by
Greg Kroah-Hartman
87c0b9c7 106901ad

+3
+3
drivers/hwtracing/intel_th/gth.c
··· 626 626 if (!count) 627 627 dev_dbg(&thdev->dev, "timeout waiting for CTS Trigger\n"); 628 628 629 + /* De-assert the trigger */ 630 + iowrite32(0, gth->base + REG_CTS_CTL); 631 + 629 632 intel_th_gth_stop(gth, output, false); 630 633 intel_th_gth_start(gth, output); 631 634 }