]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Drop mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch
authorSasha Levin <sashal@kernel.org>
Sun, 19 Apr 2026 14:02:58 +0000 (10:02 -0400)
committerSasha Levin <sashal@kernel.org>
Sun, 19 Apr 2026 14:02:58 +0000 (10:02 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-5.10/mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch [deleted file]
queue-5.10/series
queue-5.15/mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch [deleted file]
queue-5.15/series

diff --git a/queue-5.10/mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch b/queue-5.10/mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch
deleted file mode 100644 (file)
index f3f8a0a..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From 353d17604763b2d17d7c5763272247cae0349827 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 27 Mar 2026 18:57:23 +0000
-Subject: MIPS: mm: Suppress TLB uniquification on EHINV hardware
-
-From: Maciej W. Rozycki <macro@orcam.me.uk>
-
-[ Upstream commit 74283cfe216392c7b776ebf6045b5b15ed9dffcd ]
-
-Hardware that supports the EHINV feature, mandatory for R6 ISA and FTLB
-implementation, lets software mark TLB entries invalid, which eliminates
-the need to ensure no duplicate matching entries are ever created.  This
-feature is already used by local_flush_tlb_all(), via the UNIQUE_ENTRYHI
-macro, making the preceding call to r4k_tlb_uniquify() superfluous.
-
-The next change will also modify uniquification code such that it'll
-become incompatible with the FTLB and MMID features, as well as MIPSr6
-CPUs that do not implement 4KiB pages.
-
-Therefore prevent r4k_tlb_uniquify() from being used on EHINV hardware,
-as denoted by `cpu_has_tlbinv'.
-
-Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
-Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- arch/mips/mm/tlb-r4k.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c
-index d9a5ede8869bd..8a49adfef8b86 100644
---- a/arch/mips/mm/tlb-r4k.c
-+++ b/arch/mips/mm/tlb-r4k.c
-@@ -616,7 +616,8 @@ static void r4k_tlb_configure(void)
-       temp_tlb_entry = current_cpu_data.tlbsize - 1;
-       /* From this point on the ARC firmware is dead.  */
--      r4k_tlb_uniquify();
-+      if (!cpu_has_tlbinv)
-+              r4k_tlb_uniquify();
-       local_flush_tlb_all();
-       /* Did I tell you that ARC SUCKS?  */
--- 
-2.53.0
-
index 4cab65019d273c93a7799801daf5d4c14217b062..305b8b17f8ea25b100ae8e62dd6a5b2d5f809d2f 100644 (file)
@@ -7,7 +7,6 @@ srcu-use-irq_work-to-start-gp-in-tiny-srcu.patch
 netfilter-nft_set_pipapo_avx2-don-t-return-non-match.patch
 wifi-wl1251-validate-packet-ids-before-indexing-tx_f.patch
 asoc-soc-core-call-missing-init_list_head-for-card_a.patch
-mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch
 hid-quirks-add-hid_quirk_always_poll-for-8bitdo-pro-.patch
 hid-roccat-fix-use-after-free-in-roccat_report_event.patch
 ata-ahci-force-32-bit-dma-for-jmicron-jmb582-jmb585.patch
diff --git a/queue-5.15/mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch b/queue-5.15/mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch
deleted file mode 100644 (file)
index 1a057a6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From 27961de2993d658472010c56bb7b02321685d08f Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Fri, 27 Mar 2026 18:57:23 +0000
-Subject: MIPS: mm: Suppress TLB uniquification on EHINV hardware
-
-From: Maciej W. Rozycki <macro@orcam.me.uk>
-
-[ Upstream commit 74283cfe216392c7b776ebf6045b5b15ed9dffcd ]
-
-Hardware that supports the EHINV feature, mandatory for R6 ISA and FTLB
-implementation, lets software mark TLB entries invalid, which eliminates
-the need to ensure no duplicate matching entries are ever created.  This
-feature is already used by local_flush_tlb_all(), via the UNIQUE_ENTRYHI
-macro, making the preceding call to r4k_tlb_uniquify() superfluous.
-
-The next change will also modify uniquification code such that it'll
-become incompatible with the FTLB and MMID features, as well as MIPSr6
-CPUs that do not implement 4KiB pages.
-
-Therefore prevent r4k_tlb_uniquify() from being used on EHINV hardware,
-as denoted by `cpu_has_tlbinv'.
-
-Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
-Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- arch/mips/mm/tlb-r4k.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c
-index d9a5ede8869bd..8a49adfef8b86 100644
---- a/arch/mips/mm/tlb-r4k.c
-+++ b/arch/mips/mm/tlb-r4k.c
-@@ -616,7 +616,8 @@ static void r4k_tlb_configure(void)
-       temp_tlb_entry = current_cpu_data.tlbsize - 1;
-       /* From this point on the ARC firmware is dead.  */
--      r4k_tlb_uniquify();
-+      if (!cpu_has_tlbinv)
-+              r4k_tlb_uniquify();
-       local_flush_tlb_all();
-       /* Did I tell you that ARC SUCKS?  */
--- 
-2.53.0
-
index 7e869f8acb2c1f7985d30784fe601f7b91694c7f..6b4b30fa375b295300e086ccd3aa7eac14522e94 100644 (file)
@@ -9,7 +9,6 @@ wifi-wl1251-validate-packet-ids-before-indexing-tx_f.patch
 asoc-soc-core-call-missing-init_list_head-for-card_a.patch
 alsa-usb-audio-fix-quirk-flags-for-neuraldsp-quad-co.patch
 fs-smb-client-fix-out-of-bounds-read-in-cifs_sanitiz.patch
-mips-mm-suppress-tlb-uniquification-on-ehinv-hardwar.patch
 pinctrl-intel-fix-the-revision-for-new-features-1koh.patch
 hid-quirks-add-hid_quirk_always_poll-for-8bitdo-pro-.patch
 hid-roccat-fix-use-after-free-in-roccat_report_event.patch