From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] perf/x86/intel/pt: Fix lockdep interaction
Date: Tue, 02 Jun 2015 12:42:33 +0100 [thread overview]
Message-ID: <556D96A9.8010300@linux.intel.com> (raw)
In-Reply-To: <1433245040-19931-1-git-send-email-tvrtko.ursulin@linux.intel.com>
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 <tvrtko.ursulin@intel.com>
>
> 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 <tvrtko.ursulin@intel.com>
> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
> Cc: x86@kernel.org
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> ---
> Not saying this is a right fix but lets say I am trying to force the issue. :)
> ---
> arch/x86/kernel/cpu/perf_event_intel_pt.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/perf_event_intel_pt.c b/arch/x86/kernel/cpu/perf_event_intel_pt.c
> index ffe666c..1cff27b 100644
> --- a/arch/x86/kernel/cpu/perf_event_intel_pt.c
> +++ b/arch/x86/kernel/cpu/perf_event_intel_pt.c
> @@ -153,9 +153,10 @@ static int __init pt_pmu_hw_init(void)
>
> sysfs_attr_init(&de_attrs->attr.attr);
>
> - de_attr->attr.attr.mode = S_IRUGO;
> - de_attr->attr.show = pt_cap_show;
> - de_attr->var = (void *)i;
> + de_attr->attr.attr.mode = S_IRUGO;
> + de_attr->attr.show = pt_cap_show;
> + de_attr->attr.attr.ignore_lockdep = 1;
> + de_attr->var = (void *)i;
>
> attrs[i] = &de_attr->attr.attr;
> }
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-06-02 11:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 11:37 [PATCH] perf/x86/intel/pt: Fix lockdep interaction Tvrtko Ursulin
2015-06-02 11:42 ` Tvrtko Ursulin [this message]
2015-06-02 20:10 ` shuang.he
2015-06-04 13:24 ` Alexander Shishkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=556D96A9.8010300@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.