public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Hagar Hemdan <hagarhem@amazon.com>, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.6] perf/x86/intel: Hide Topdown metrics events if the feature is not enumerated
Date: Fri, 29 Nov 2024 15:03:08 -0500	[thread overview]
Message-ID: <20241129142000-cf79a85efd12d7db@stable.kernel.org> (raw)
In-Reply-To: <20241129060856.26060-1-hagarhem@amazon.com>

[ Sasha's backport helper bot ]

Hi,

The upstream commit SHA1 provided is correct: 556a7c039a52c21da33eaae9269984a1ef59189b

WARNING: Author mismatch between patch and upstream commit:
Backport author: Hagar Hemdan <hagarhem@amazon.com>
Commit author: Kan Liang <kan.liang@linux.intel.com>


Status in newer kernel trees:
6.12.y | Present (exact SHA1)
6.11.y | Present (exact SHA1)
6.6.y | Not found

Note: The patch differs from the upstream commit:
---
1:  556a7c039a52c ! 1:  46084b673b37e perf/x86/intel: Hide Topdown metrics events if the feature is not enumerated
    @@ Metadata
      ## Commit message ##
         perf/x86/intel: Hide Topdown metrics events if the feature is not enumerated
     
    +    [ Upstream commit 556a7c039a52c21da33eaae9269984a1ef59189b ]
    +
         The below error is observed on Ice Lake VM.
     
         $ perf stat
    @@ Commit message
         Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
         Tested-by: Dongli Zhang <dongli.zhang@oracle.com>
         Link: https://lkml.kernel.org/r/20240708193336.1192217-2-kan.liang@linux.intel.com
    +    [ Minor changes to make it work on 6.6 ]
    +    Signed-off-by: Hagar Hemdan <hagarhem@amazon.com>
     
      ## arch/x86/events/intel/core.c ##
    -@@ arch/x86/events/intel/core.c: exra_is_visible(struct kobject *kobj, struct attribute *attr, int i)
    - 	return x86_pmu.version >= 2 ? attr->mode : 0;
    +@@ arch/x86/events/intel/core.c: default_is_visible(struct kobject *kobj, struct attribute *attr, int i)
    + 	return attr->mode;
      }
      
     +static umode_t
    @@ arch/x86/events/intel/core.c: exra_is_visible(struct kobject *kobj, struct attri
      
      static struct attribute_group group_events_mem = {
     @@ arch/x86/events/intel/core.c: static umode_t hybrid_format_is_visible(struct kobject *kobj,
    - 	return (cpu >= 0) && (pmu->pmu_type & pmu_attr->pmu_type) ? attr->mode : 0;
    + 	return (cpu >= 0) && (pmu->cpu_type & pmu_attr->pmu_type) ? attr->mode : 0;
      }
      
     +static umode_t hybrid_td_is_visible(struct kobject *kobj,
    @@ arch/x86/events/intel/core.c: static umode_t hybrid_format_is_visible(struct kob
     +
     +
     +	/* Only the big core supports perf metrics */
    -+	if (pmu->pmu_type == hybrid_big)
    ++	if (pmu->cpu_type == hybrid_big)
     +		return pmu->intel_cap.perf_metrics ? attr->mode : 0;
     +
     +	return attr->mode;
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.6.y        |  Success    |  Success   |

      parent reply	other threads:[~2024-11-29 20:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-29  6:08 [PATCH 6.6] perf/x86/intel: Hide Topdown metrics events if the feature is not enumerated Hagar Hemdan
2024-11-29  6:08 ` [PATCH 6.1] " Hagar Hemdan
2024-11-29 20:03   ` Sasha Levin
2024-11-29 20:03 ` 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=20241129142000-cf79a85efd12d7db@stable.kernel.org \
    --to=sashal@kernel.org \
    --cc=hagarhem@amazon.com \
    --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