[Intel-gfx] [PATCH 3/4] drm/i915/pmu: Fix sleep under atomic in RC6 readout

2018-02-13 Thread Tvrtko Ursulin
From: Tvrtko Ursulin We are not allowed to call intel_runtime_pm_get from the PMU counter read callback since the former can sleep, and the latter is running under IRQ context. To workaround this, we record the last known RC6 and while runtime suspended estimate its increase by querying the runt

[Intel-gfx] [PATCH 3/4] drm/i915/pmu: Fix sleep under atomic in RC6 readout

2018-02-13 Thread Tvrtko Ursulin
From: Tvrtko Ursulin We are not allowed to call intel_runtime_pm_get from the PMU counter read callback since the former can sleep, and the latter is running under IRQ context. To workaround this, we record the last known RC6 and while runtime suspended estimate its increase by querying the runt