]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:31 +0000 (13:59 +0100)
commit5640facebb4897b1893d8fb6bcfb6d0dde8e7baf
tree4393fbee300eac4546ade1a44cdd904347918605
parent1fd09bbdfdf90136c8fb10cbfd7c06986746d02f
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>
(cherry picked from commit 8cddb0d96b9cfe93852dfefca9fd67be149c379d)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
arch/x86/events/intel/pt.c