]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/x86/intel/pt: Fix sampling using single range output
authorAdrian Hunter <adrian.hunter@intel.com>
Sat, 12 Nov 2022 15:15:08 +0000 (17:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:27:52 +0000 (09:27 +0100)
commit531b6fcfb284fbfcc2d9fa2478b180e49fdffd06
treeea4d99946c0bd529a9eb18f0c7a1f5f3395a766e
parentf75be9885d49e3717de962345c4572ddab52b178
perf/x86/intel/pt: Fix sampling using single range output

commit ce0d998be9274dd3a3d971cbeaa6fe28fd2c3062 upstream.

Deal with errata TGL052, ADL037 and RPL017 "Trace May Contain Incorrect
Data When Configured With Single Range Output Larger Than 4KB" by
disabling single range output whenever larger than 4KB.

Fixes: 670638477aed ("perf/x86/intel/pt: Opportunistically use single range output mode")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20221112151508.13768-1-adrian.hunter@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/events/intel/pt.c