aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>2022-01-24 18:01:24 -0800
committerJohn Harrison <John.C.Harrison@Intel.com>2022-01-27 15:43:01 -0800
commit512712a824de9b856a4e61343e3e4390eba2c391 (patch)
tree9b6b5d2f9c48915f4cfe19f9dfc781301e5c78e0 /tools/perf/scripts/python/bin/stackcollapse-record
parentdrm/i915: delete shadow "ret" variable (diff)
downloadlinux-512712a824de9b856a4e61343e3e4390eba2c391.tar.gz
linux-512712a824de9b856a4e61343e3e4390eba2c391.zip
drm/i915/pmu: Fix KMD and GuC race on accessing busyness
GuC updates shared memory and KMD reads it. Since this is not synchronized, we run into a race where the value read is inconsistent. Sometimes the inconsistency is in reading the upper MSB bytes of the last_switch_in value. 2 types of cases are seen - upper 8 bits are zero and upper 24 bits are zero. Since these are non-zero values, it is not trivial to determine validity of these values. Instead we read the values multiple times until they are consistent. In test runs, 3 attempts results in consistent values. The upper bound is set to 6 attempts and may need to be tuned as per any new occurences. Since the duration that gt is parked can vary, the patch also updates the gt timestamp on unpark before starting the worker. v2: - Initialize i - Use READ_ONCE to access engine record Fixes: 77cdd054dd2c ("drm/i915/pmu: Connect engine busyness stats from GuC to pmu") Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220125020124.788679-2-umesh.nerlige.ramappa@intel.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
33fae68a06cf069d1a7e42&follow=1'>scsi: ufs: Clean up device vendor name and device quirk tableStanley Chu2-10/+7 2020-06-15scsi: ufs: Add DELAY_BEFORE_LPM quirk for Micron devicesStanley Chu2-0/+3 2020-06-15scsi: mpt3sas: Fix spelling mistakeFlavio Suligoi2-2/+2 2020-06-15scsi: Fix trivial spellingKieran Bingham4-6/+6 2020-06-15scsi: ufs: Add SPDX GPL-2.0 to replace GPL v2 boilerplateBean Huo6-157/+6 2020-06-15scsi: ufs: Add compatibility with 3.1 UFS unit descriptor lengthBean Huo2-3/+9 2020-06-15scsi: ufs: Clean up ufs initialization pathBean Huo4-161/+38 2020-06-15scsi: ufs: Fix potential NULL pointer access during memcpyBean Huo1-2/+2 2020-06-15scsi: ufs: Delete ufshcd_read_desc()Bean Huo1-19/+8 2020-06-15scsi: ufs: Remove max_t in ufs_get_device_descBean Huo1-4/+1 2020-06-15scsi: ufs-mediatek: Allow unbound mphyStanley Chu1-0/+6 2020-06-15scsi: ufs-mediatek: Fix unbalanced clock on/offStanley Chu2-23/+38 2020-06-15scsi: ufs-mediatek: Introduce low-power mode for device power supplyStanley Chu1-0/+21 2020-06-15scsi: ufs-mediatek: Do not gate clocks if auto-hibern8 is not entered yetStanley Chu1-9/+27 2020-06-15scsi: ufs-mediatek: Fix imprecise waiting time for ref-clk controlStanley Chu2-4/+5 2020-06-15scsi: ufs: ufs-exynos: Add UFS host support for Exynos SoCsAlim Akhtar5-0/+1625 2020-06-15scsi: ufs: Add quirk to fix abnormal ocs fatal errorKiwoong Kim2-0/+12 2020-06-15scsi: ufs: Introduce UFSHCD_QUIRK_PRDT_BYTE_GRAN quirkAlim Akhtar2-7/+29 2020-06-15scsi: ufs: Add quirk to enable host controller without hceAlim Akhtar2-2/+80 2020-06-15scsi: ufs: Add quirk to disallow reset of interrupt aggregationAlim Akhtar2-1/+8 2020-06-15scsi: ufs: Add quirk to fix mishandling utrlclr/utmrlclrAlim Akhtar2-2/+14 2020-06-14Linux 5.8-rc1v5.8-rc1Linus Torvalds1-2/+2 2020-06-14security: Add LSM hooks to set*gid syscallsThomas Cedeno5-1/+40 2020-06-14Revert "btrfs: switch to iomap_dio_rw() for dio"David Sterba4-166/+169 2020-06-13net: ethernet: ti: ale: fix allmulti for nu type aleGrygorii Strashko1-9/+40 2020-06-13net: ethernet: ti: am65-cpsw-nuss: fix ale parameters initGrygorii Strashko1-1/+1 2020-06-13net: atm: Remove the error message according to the atomic contextLiao Pingfang1-3/+1