[Intel-gfx] [PATCH] perf/core: Only copy-to-user after completely unlocking all locks, v3.

2020-04-22 Thread Maarten Lankhorst
We inadvertently create a dependency on mmap_sem with a whole chain. This breaks any user who wants to take a lock and call rcu_barrier(), while also taking that lock inside mmap_sem: <4> [604.892532] == <4> [604.892534] WARNING: possible circul

[Intel-gfx] [PATCH] perf/core: Only copy-to-user after completely unlocking all locks, v2.

2020-04-02 Thread Maarten Lankhorst
We inadvertently create a dependency on mmap_sem with a whole chain. This breaks any user who wants to take a lock and call rcu_barrier(), while also taking that lock inside mmap_sem: <4> [604.892532] == <4> [604.892534] WARNING: possible circul

Re: [Intel-gfx] [PATCH] perf/x86/intel/pt: Fix lockdep interaction

2015-06-04 Thread Alexander Shishkin
Tvrtko Ursulin writes: > From: Tvrtko Ursulin > > Since this drivers creates attributes on the heap, lockdep > gets upset and disabled itself. > > Fix by setting ignore_lockdep flags for problematic attributes. > > Signed-off-by: Tvrtko Ursulin > Cc: Alexander Shishkin > Cc: Ingo Molnar > Cc:

Re: [Intel-gfx] [PATCH] perf/x86/intel/pt: Fix lockdep interaction

2015-06-02 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6523 -Summary- Platform Delta drm-intel-nightly Series Applied PNV

Re: [Intel-gfx] [PATCH] perf/x86/intel/pt: Fix lockdep interaction

2015-06-02 Thread Tvrtko Ursulin
Oops, didn't mean to send this here since it is not graphics related. But it does happen on SKL so maybe it will be useful for someone. Tvrtko On 06/02/2015 12:37 PM, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Since this drivers creates attributes on the heap, lockdep gets upset and disable

[Intel-gfx] [PATCH] perf/x86/intel/pt: Fix lockdep interaction

2015-06-02 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Since this drivers creates attributes on the heap, lockdep gets upset and disabled itself. Fix by setting ignore_lockdep flags for problematic attributes. Signed-off-by: Tvrtko Ursulin Cc: Alexander Shishkin Cc: Ingo Molnar Cc: Peter Zijlstra (Intel) Cc: x...@kernel.org

Re: [Intel-gfx] [PATCH] perf

2014-07-04 Thread Chris Wilson
Wrong patch escaped. -Chris -- Chris Wilson, Intel Open Source Technology Centre ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH] perf

2014-07-04 Thread Chris Wilson
--- drivers/gpu/drm/i915/i915_perf.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c index 7345b507a9dc..3741f69bc36f 100644 --- a/drivers/gpu/drm/i915/i915_perf.c +++ b/drivers/gpu/drm/i915/i915_perf.c @@ -46,6 +4