From: David S. Miller <davem@sunset.davemloft.net>
Date: Fri, 17 Feb 2006 17:54:42 +0000 (-0800)
Subject: [SPARC64]: Use phys tsb address in tsb_insert() in SUN4V.
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b3ab2eb9cf07ef1bc7a676c19aab994adb41a87;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git

[SPARC64]: Use phys tsb address in tsb_insert() in SUN4V.

Signed-off-by: David S. Miller <davem@davemloft.net>
---

diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index 6f860c39db82..0137d3dc6aee 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -252,7 +252,7 @@ static inline void tsb_insert(struct tsb *ent, unsigned long tag, unsigned long
 {
 	unsigned long tsb_addr = (unsigned long) ent;
 
-	if (tlb_type == cheetah_plus)
+	if (tlb_type == cheetah_plus || tlb_type == hypervisor)
 		tsb_addr = __pa(tsb_addr);
 
 	__tsb_insert(tsb_addr, tag, pte);