All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <875yywvwcz.fsf@linux.ibm.com>

diff --git a/a/1.txt b/N1/1.txt
index 740e2e2..4814662 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -41,7 +41,7 @@ Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
 > + */
 > +static inline int cpu_first_tlb_thread_sibling(int cpu)
 > +{
-> +	if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core = 8))
+> +	if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8))
 > +		return cpu & ~0x6;	/* Big Core */
 > +	else
 > +		return cpu_first_thread_sibling(cpu);
@@ -49,7 +49,7 @@ Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
 > +
 > +static inline int cpu_last_tlb_thread_sibling(int cpu)
 > +{
-> +	if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core = 8))
+> +	if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8))
 > +		return cpu | 0x6;	/* Big Core */
 > +	else
 > +		return cpu_last_thread_sibling(cpu);
@@ -57,7 +57,7 @@ Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
 > +
 > +static inline int cpu_tlb_thread_sibling_step(void)
 > +{
-> +	if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core = 8))
+> +	if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8))
 > +		return 2;		/* Big Core */
 > +	else
 > +		return 1;
@@ -97,8 +97,10 @@ Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
 >  	 */
 >  	if (prev_cpu != pcpu) {
 >  		if (prev_cpu >= 0 &&
-> -		    cpu_first_thread_sibling(prev_cpu) !> -		    cpu_first_thread_sibling(pcpu))
-> +		    cpu_first_tlb_thread_sibling(prev_cpu) !> +		    cpu_first_tlb_thread_sibling(pcpu))
+> -		    cpu_first_thread_sibling(prev_cpu) !=
+> -		    cpu_first_thread_sibling(pcpu))
+> +		    cpu_first_tlb_thread_sibling(prev_cpu) !=
+> +		    cpu_first_tlb_thread_sibling(pcpu))
 >  			radix_flush_cpu(kvm, prev_cpu, vcpu);
 >  		if (nested)
 >  			nested->prev_cpu[vcpu->arch.nested_vcpu_id] = pcpu;
diff --git a/a/content_digest b/N1/content_digest
index 24ea310..a37bc59 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020210602040441.3984352-1-npiggin@gmail.com\0"
  "From\0Fabiano Rosas <farosas@linux.ibm.com>\0"
  "Subject\0Re: [PATCH] KVM: PPC: Book3S HV: Fix TLB management on SMT8 POWER9 and POWER10 processors\0"
- "Date\0Wed, 02 Jun 2021 20:34:52 +0000\0"
+ "Date\0Wed, 02 Jun 2021 17:34:52 -0300\0"
  "To\0Nicholas Piggin <npiggin@gmail.com>"
  " kvm-ppc@vger.kernel.org\0"
  "Cc\0linuxppc-dev@lists.ozlabs.org"
@@ -52,7 +52,7 @@
  "> + */\n"
  "> +static inline int cpu_first_tlb_thread_sibling(int cpu)\n"
  "> +{\n"
- "> +\tif (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core = 8))\n"
+ "> +\tif (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8))\n"
  "> +\t\treturn cpu & ~0x6;\t/* Big Core */\n"
  "> +\telse\n"
  "> +\t\treturn cpu_first_thread_sibling(cpu);\n"
@@ -60,7 +60,7 @@
  "> +\n"
  "> +static inline int cpu_last_tlb_thread_sibling(int cpu)\n"
  "> +{\n"
- "> +\tif (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core = 8))\n"
+ "> +\tif (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8))\n"
  "> +\t\treturn cpu | 0x6;\t/* Big Core */\n"
  "> +\telse\n"
  "> +\t\treturn cpu_last_thread_sibling(cpu);\n"
@@ -68,7 +68,7 @@
  "> +\n"
  "> +static inline int cpu_tlb_thread_sibling_step(void)\n"
  "> +{\n"
- "> +\tif (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core = 8))\n"
+ "> +\tif (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8))\n"
  "> +\t\treturn 2;\t\t/* Big Core */\n"
  "> +\telse\n"
  "> +\t\treturn 1;\n"
@@ -108,8 +108,10 @@
  ">  \t */\n"
  ">  \tif (prev_cpu != pcpu) {\n"
  ">  \t\tif (prev_cpu >= 0 &&\n"
- "> -\t\t    cpu_first_thread_sibling(prev_cpu) !> -\t\t    cpu_first_thread_sibling(pcpu))\n"
- "> +\t\t    cpu_first_tlb_thread_sibling(prev_cpu) !> +\t\t    cpu_first_tlb_thread_sibling(pcpu))\n"
+ "> -\t\t    cpu_first_thread_sibling(prev_cpu) !=\n"
+ "> -\t\t    cpu_first_thread_sibling(pcpu))\n"
+ "> +\t\t    cpu_first_tlb_thread_sibling(prev_cpu) !=\n"
+ "> +\t\t    cpu_first_tlb_thread_sibling(pcpu))\n"
  ">  \t\t\tradix_flush_cpu(kvm, prev_cpu, vcpu);\n"
  ">  \t\tif (nested)\n"
  ">  \t\t\tnested->prev_cpu[vcpu->arch.nested_vcpu_id] = pcpu;\n"
@@ -139,4 +141,4 @@
  ">  \t\tcpumask_clear_cpu(cpu, &kvm->arch.need_tlb_flush);\n"
  ">  \t}"
 
-7b35e39af920a38747d8c5e928fd54a98c389bbf8372d117b9ff4ec0924c2f01
+ae71d023dcd30fcf98b0092752a2ed0206fcd8f2ea6d2a7e943decce76ba0823

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.