Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: CPU_LOONGSON2EF need software to maintain cache consistency
@ 2020-05-26 11:14 Lichao Liu
  2020-05-26 11:38 ` Jiaxun Yang
  2020-05-27 10:49 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 16+ messages in thread
From: Lichao Liu @ 2020-05-26 11:14 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Paul Burton, Robin Murphy, Geert Uytterhoeven, Max Filippov,
	Lichao Liu, yuanjunqing, linux-mips

CPU_LOONGSON2EF need software to maintain cache consistency,
so modify the 'cpu_needs_post_dma_flush' function to return true
when the cpu type is CPU_LOONGSON2EF.
---
 arch/mips/mm/dma-noncoherent.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/mm/dma-noncoherent.c b/arch/mips/mm/dma-noncoherent.c
index fcea92d95d86..563c2c0d0c81 100644
--- a/arch/mips/mm/dma-noncoherent.c
+++ b/arch/mips/mm/dma-noncoherent.c
@@ -33,6 +33,7 @@ static inline bool cpu_needs_post_dma_flush(void)
 	case CPU_R10000:
 	case CPU_R12000:
 	case CPU_BMIPS5000:
+	case CPU_LOONGSON2EF:
 		return true;
 	default:
 		/*
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread
* [PATCH] MIPS: CPU_LOONGSON2EF need software to maintain cache consistency
@ 2020-05-28  1:10 Lichao Liu
  2020-05-28  6:05 ` Jiaxun Yang
  2020-05-28  7:44 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 16+ messages in thread
From: Lichao Liu @ 2020-05-28  1:10 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Paul Burton, Robin Murphy, Geert Uytterhoeven, Max Filippov,
	Lichao Liu, jiaxun.yang, yuanjunqing, linux-mips, stable

CPU_LOONGSON2EF need software to maintain cache consistency,
so modify the 'cpu_needs_post_dma_flush' function to return true
when the cpu type is CPU_LOONGSON2EF.

Cc: stable@vger.kernel.org
Signed-off-by: Lichao Liu <liulichao@loongson.cn>
---
 arch/mips/mm/dma-noncoherent.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/mm/dma-noncoherent.c b/arch/mips/mm/dma-noncoherent.c
index fcea92d95d86..563c2c0d0c81 100644
--- a/arch/mips/mm/dma-noncoherent.c
+++ b/arch/mips/mm/dma-noncoherent.c
@@ -33,6 +33,7 @@ static inline bool cpu_needs_post_dma_flush(void)
 	case CPU_R10000:
 	case CPU_R12000:
 	case CPU_BMIPS5000:
+	case CPU_LOONGSON2EF:
 		return true;
 	default:
 		/*
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-05-28  7:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-26 11:14 [PATCH] MIPS: CPU_LOONGSON2EF need software to maintain cache consistency Lichao Liu
2020-05-26 11:38 ` Jiaxun Yang
2020-05-26 12:40   ` Lichao Liu
2020-05-26 13:01     ` Thomas Bogendoerfer
2020-05-26 13:29       ` Robin Murphy
2020-05-26 15:01         ` Lichao Liu
2020-05-26 15:25         ` Jiaxun Yang
2020-05-26 16:00           ` Thomas Bogendoerfer
2020-05-26 16:42             ` Jiaxun Yang
2020-05-26 16:16         ` Thomas Bogendoerfer
2020-05-26 13:25     ` Jiaxun Yang
2020-05-26 14:50       ` Lichao Liu
2020-05-27 10:49 ` Thomas Bogendoerfer
  -- strict thread matches above, loose matches on Subject: below --
2020-05-28  1:10 Lichao Liu
2020-05-28  6:05 ` Jiaxun Yang
2020-05-28  7:44 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox