stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: gregkh@linuxfoundation.org
Cc: kim.phillips@amd.com, bp@suse.de, peterz@infradead.org,
	stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] perf/amd/uncore: Replace manual sampling check with" failed to apply to 4.19-stable tree
Date: Wed, 18 Mar 2020 11:31:50 -0400	[thread overview]
Message-ID: <20200318153150.GE4189@sasha-vm> (raw)
In-Reply-To: <158436358921825@kroah.com>

On Mon, Mar 16, 2020 at 01:59:49PM +0100, gregkh@linuxfoundation.org wrote:
>
>The patch below does not apply to the 4.19-stable tree.
>If someone wants it applied there, or to any other stable or longterm
>tree, then please email the backport, including the original git commit
>id to <stable@vger.kernel.org>.
>
>thanks,
>
>greg k-h
>
>------------------ original commit in Linus's tree ------------------
>
>From f967140dfb7442e2db0868b03b961f9c59418a1b Mon Sep 17 00:00:00 2001
>From: Kim Phillips <kim.phillips@amd.com>
>Date: Wed, 11 Mar 2020 14:13:21 -0500
>Subject: [PATCH] perf/amd/uncore: Replace manual sampling check with
> CAP_NO_INTERRUPT flag
>
>Enable the sampling check in kernel/events/core.c::perf_event_open(),
>which returns the more appropriate -EOPNOTSUPP.
>
>BEFORE:
>
>  $ sudo perf record -a -e instructions,l3_request_g1.caching_l3_cache_accesses true
>  Error:
>  The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (l3_request_g1.caching_l3_cache_accesses).
>  /bin/dmesg | grep -i perf may provide additional information.
>
>With nothing relevant in dmesg.
>
>AFTER:
>
>  $ sudo perf record -a -e instructions,l3_request_g1.caching_l3_cache_accesses true
>  Error:
>  l3_request_g1.caching_l3_cache_accesses: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat'
>
>Fixes: c43ca5091a37 ("perf/x86/amd: Add support for AMD NB and L2I "uncore" counters")
>Signed-off-by: Kim Phillips <kim.phillips@amd.com>
>Signed-off-by: Borislav Petkov <bp@suse.de>
>Acked-by: Peter Zijlstra <peterz@infradead.org>
>Cc: stable@vger.kernel.org
>Link: https://lkml.kernel.org/r/20200311191323.13124-1-kim.phillips@amd.com

I've worked around not having PERF_PMU_CAP_NO_EXCLUDE on older kernels
and queued this patch for 4.19-4.4.

-- 
Thanks,
Sasha

      reply	other threads:[~2020-03-18 15:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-16 12:59 FAILED: patch "[PATCH] perf/amd/uncore: Replace manual sampling check with" failed to apply to 4.19-stable tree gregkh
2020-03-18 15:31 ` Sasha Levin [this message]

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=20200318153150.GE4189@sasha-vm \
    --to=sashal@kernel.org \
    --cc=bp@suse.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=kim.phillips@amd.com \
    --cc=peterz@infradead.org \
    --cc=stable@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).