Thread (8 messages) 8 messages, 2 authors, 2020-02-01

Re: [PATCH] powerpc/32s: Don't flush all TLBs when flushing one page

From: Segher Boessenkool <hidden>
Date: 2020-01-31 15:52:16
Also in: lkml

On Fri, Jan 31, 2020 at 03:37:34PM +0000, Christophe Leroy wrote:
When the range is a single page, do a page flush instead.
+	start &= PAGE_MASK;
+	end = (end - 1) | ~PAGE_MASK;
 	if (!Hash) {
-		_tlbia();
+		if (end - start == PAGE_SIZE)
+			_tlbie(start);
+		else
+			_tlbia();
 		return;
 	}
For just one page, you get  end - start == 0  actually?


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help