From: "Jörn Heusipp" <osmanx@heusipp.de>
To: linux-kernel@vger.kernel.org, Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
stable@vger.kernel.org, x86@kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Andy Lutomirski <luto@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Adam Dunlap <acdunlap@google.com>
Subject: Re: [tip: x86/urgent] x86/cpu: Provide default cache line size if not enumerated
Date: Thu, 30 May 2024 17:05:33 +0200 [thread overview]
Message-ID: <f12ab64f-fd59-491e-a44a-6ae570a81ada@heusipp.de> (raw)
In-Reply-To: <171707898810.10875.17950546903678321366.tip-bot2@tip-bot2>
Hello Dave!
On 30/05/2024 16:23, tip-bot2 for Dave Hansen wrote:
> The following commit has been merged into the x86/urgent branch of tip:
>
> Commit-ID: b9210e56d71d9deb1ad692e405f6b2394f7baa4d
> Gitweb: https://git.kernel.org/tip/b9210e56d71d9deb1ad692e405f6b2394f7baa4d
> Author: Dave Hansen <dave.hansen@linux.intel.com>
> AuthorDate: Fri, 17 May 2024 13:05:34 -07:00
> Committer: Dave Hansen <dave.hansen@linux.intel.com>
> CommitterDate: Thu, 30 May 2024 07:14:27 -07:00
> Tested-by: Jörn Heusipp <osmanx@heusipp.de>
> diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
> index 2b170da..373b16b 100644
> --- a/arch/x86/kernel/cpu/common.c
> +++ b/arch/x86/kernel/cpu/common.c
> @@ -1070,6 +1070,10 @@ void get_cpu_address_sizes(struct cpuinfo_x86 *c)
> cpu_has(c, X86_FEATURE_PSE36))
> c->x86_phys_bits = 36;
> }
> +
> + /* Provide a sane default if not enumerated: */
> + if (!c->x86_clflush_size)
> + c->x86_clflush_size = 32;
> } else {
> cpuid(0x80000008, &eax, &ebx, &ecx, &edx);
>
That honestly looks like a mis-merge to me. This is not what I did test.
x86_clflush_size needs to get set in the top-level else branch in which
it is not already set. commit 95bfb35269b2e85cff0dd2c957b2d42ebf95ae5f
had switched the if branches around.
Best regards,
Jörn
next prev parent reply other threads:[~2024-05-30 15:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 14:23 tip-bot2 for Dave Hansen
2024-05-30 15:05 ` Jörn Heusipp [this message]
2024-05-30 15:33 ` Dave Hansen
2024-05-30 15:38 tip-bot2 for Dave Hansen
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=f12ab64f-fd59-491e-a44a-6ae570a81ada@heusipp.de \
--to=osmanx@heusipp.de \
--cc=acdunlap@google.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--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
all inboxes | Powered by JetHome®