diff options
| author | Anshuman Gupta <[email protected]> | 2021-11-30 18:50:05 +0530 |
|---|---|---|
| committer | Anshuman Gupta <[email protected]> | 2021-12-03 13:44:13 +0530 |
| commit | 2ebc9e4af0291d2e8d14ecc0bad8f36de8cc6e62 (patch) | |
| tree | e7730e910dce23a400ae215b530554f2ad33324c /tools/perf/scripts/python/bin | |
| parent | 487970e8bb776c989013bb59d6cbb22e45b9afc6 (diff) | |
drm/i915/selftest: Disable IRQ for timestamp calculation
gt_pm selftest calculates engine ticks cycles and wall time
cycles by delta of respective engine elapsed TIMESTAMP and ktime
for period of 1000us.
It compares the engine ticks cycles with wall time cycles.
Disable local cpu interrupt so that interrupt handler does not
switch out the thread during measure_clocks() and prevent
miscalculation of engine tick cycles.
v2:
- nuke preempt_{disable,enable}, as disable_local_irq()
disable the preemption. (Chris)
Cc: Chris P Wilson <[email protected]>
Cc: Badal Nilawar <[email protected]>
Cc: Ashutosh Dixit <[email protected]>
Signed-off-by: Anshuman Gupta <[email protected]>
Reviewed-by: Ashutosh Dixit <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions