]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pmu: Wait longer for busyness data to be available from GuC
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Wed, 8 Dec 2021 18:33:13 +0000 (10:33 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 9 Dec 2021 17:56:14 +0000 (09:56 -0800)
commit9480b5bf4c7a4490257c240e84e0319fa58f2438
treead830b43af492a67ba5e94c95da0c96a11de920a
parent70f4e8f6c8f3cd36e226dfb45ee2b6ff7b89abed
drm/i915/pmu: Wait longer for busyness data to be available from GuC

live_engine_busy_stats waits for busyness to start ticking before
sampling busyness for the test sample duration. The wait accesses an
MMIO register and the uncore call to read it takes up to 3 ms in the
worst case. This can result in the wait timing out since the MMIO read
itself consumes up the timeout of 500us. Increase the timeout to a
larger value of 10ms to account for the MMIO read time.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/4536
Fixes: bb7418bad2ff ("drm/i915/pmu: Connect engine busyness stats from GuC to pmu")
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211208183313.13126-1-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/gt/selftest_engine_pm.c