public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Cc: stable@vger.kernel.org, x86@kernel.org,
	Tony Luck <tony.luck@intel.com>,
	Pawan Kumar Gupta <pawan.kumar.gupta@intel.com>,
	Zhang Rui <rui.zhang@intel.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>,
	Thomas Lindroth <thomas.lindroth@gmail.com>,
	Hans de Goede <hdegoede@redhat.com>,
	Bastien Nocera <hadess@hadess.net>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Ricardo Neri <ricardo.neri@intel.com>
Subject: Re: [PATCH 5.10.y 0/3] x86: Complete backports for x86_match_cpu()
Date: Tue, 1 Oct 2024 10:06:28 +0200	[thread overview]
Message-ID: <2024100115-pessimism-mayday-cbd9@gregkh> (raw)
In-Reply-To: <20240928162431.22129-1-ricardo.neri-calderon@linux.intel.com>

On Sat, Sep 28, 2024 at 09:24:28AM -0700, Ricardo Neri wrote:
> Hi,
> 
> Upstream commit 93022482b294 ("x86/cpu: Fix x86_match_cpu() to match just
> X86_VENDOR_INTEL") introduced a flags member to struct x86_cpu_id. Bit 0
> of x86_cpu.id.flags must be set to 1 for x86_match_cpu() to work correctly.
> This upstream commit has been backported to 5.10.y.
> 
> Callers that use the X86_MATCH_*() family of macros to compose the argument
> of x86_match_cpu() function correctly. Callers that use their own custom
> mechanisms may not work if they fail to set x86_cpu_id.flags correctly.
> 
> There are three remaining callers in 5.10.y that use their own mechanisms:
> a) setup_pcid(), b) rapl_msr_probe(), and c) goodix_add_acpi_gpio_
> mappings(). a) caused a regression that Thomas Lindroth reported in [1]. b)
> works by luck but it still populates its x86_cpu_id[] array incorrectly. I
> am not aware of any reports on c), but inspecting the code reveals that it
> will fail to identify INTEL_FAM6_ATOM_SILVERMONT for the reason described
> above.
> 
> I backported three patches that fix these bugs in mainline. Hopefully the
> authors and/or maintainers can ack the backports?
> 
> I tested patches 2/3 and 3/3 on Tiger Lake, Alder Lake, and Meteor Lake
> systems as the two involved callers behave differently on these systems.
> I wrote the testing details in each patch separately. I could not test
> patch 1/3 because I do not have access to Bay Trail hardware.

This and the 5.15 series now queued up, thanks.

greg k-h

      parent reply	other threads:[~2024-10-01  8:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-28 16:24 [PATCH 5.10.y 0/3] x86: Complete backports for x86_match_cpu() Ricardo Neri
2024-09-28 16:24 ` [PATCH 5.10.y 1/3] Input: goodix - use the new soc_intel_is_byt() helper Ricardo Neri
2024-09-28 16:24 ` [PATCH 5.10.y 2/3] powercap: RAPL: fix invalid initialization for pl4_supported field Ricardo Neri
2024-09-28 16:24 ` [PATCH 5.10.y 3/3] x86/mm: Switch to new Intel CPU model defines Ricardo Neri
2024-10-01  8:06 ` Greg KH [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=2024100115-pessimism-mayday-cbd9@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hadess@hadess.net \
    --cc=hdegoede@redhat.com \
    --cc=pawan.kumar.gupta@intel.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=ricardo.neri-calderon@linux.intel.com \
    --cc=ricardo.neri@intel.com \
    --cc=rui.zhang@intel.com \
    --cc=stable@vger.kernel.org \
    --cc=sumeet.r.pawnikar@intel.com \
    --cc=thomas.lindroth@gmail.com \
    --cc=tony.luck@intel.com \
    --cc=x86@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