Skip to contentSkip to conversation

x86/mm/64: Fix an incorrect warning with CONFIG_DEBUG_VM=y, !PCID

PATCH In review Andy Lutomirski 2 participants 4 messages Sep 10, 2017

Subsystems (2)
lore
Share & tools
lore

Andy Lutomirski

author maintainer
#0 lore raw

PATCH 1/1 x86/mm/64: Fix an incorrect warning with CONFIG_DEBUG_VM=y, !PCID

I've been staring at the word PCID too long.

Fixes f13c8e8c58ba ("x86/mm: Reinitialize TLB state on hotplug and resume")
---
 arch/x86/mm/tlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/tlb.c +1 -1
index 158acdad2773..1ab3821f9e26 100644
@@ -261,7 +261,7 @@ void initialize_tlbstate_and_flush(void)
 	 * doesn't work like other CR4 bits because it can only be set from
 	 * long mode.)
 	 */
-	WARN_ON(boot_cpu_has(X86_CR4_PCIDE) &&
+	WARN_ON(boot_cpu_has(X86_FEATURE_PCID) &&
 		!(cr4_read_shadow() & X86_CR4_PCIDE));
 
 	/* Force ASID 0 and force a TLB flush. */
Signature · 1 line
2.13.5
author maintainer
#1 lore raw
Quoted 23 lines · Andy Lutomirski

I've been staring at the word PCID too long.

Fixes f13c8e8c58ba ("x86/mm: Reinitialize TLB state on hotplug and resume")
---
 arch/x86/mm/tlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/tlb.c +1 -2
index 158acdad2773..1ab3821f9e26 100644
@@ -261,7 +261,7 @@ void initialize_tlbstate_and_flush(void)
         * doesn't work like other CR4 bits because it can only be set from
         * long mode.)
         */
-       WARN_ON(boot_cpu_has(X86_CR4_PCIDE) &&
+       WARN_ON(boot_cpu_has(X86_FEATURE_PCID) &&
                !(cr4_read_shadow() & X86_CR4_PCIDE));
 
        /* Force ASID 0 and force a TLB flush. */
--
Quoted 2 lines

2.13.5

Ugh, don't apply this. There's a somewhat deeper problem here.

#2 lore raw
Quoted 2 lines · Andy Lutomirski

Ugh, don't apply this. There's a somewhat deeper problem here.

Too late. Commit 7898f7965469 ("x86/mm/64: Fix an incorrect warning with CONFIG_DEBUG_VM=y, !PCID").

Linus

author maintainer
#3 lore raw
Quoted 7 lines · Linus Torvalds
Quoted 2 lines · Andy Lutomirski

Ugh, don't apply this. There's a somewhat deeper problem here.

Too late. Commit 7898f7965469 ("x86/mm/64: Fix an incorrect warning with CONFIG_DEBUG_VM=y, !PCID").

OK, no biggie. I'll rebase.

--Andy