Skip to contentSkip to conversation

Unbreak Loongson2 and r4k-generic flush icache range

3.13-rc regression Alexandre Oliva 4 participants 6 messages Jan 13, 2014 – Jan 14, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

Commit 14bd8c08, that replaced Loongson2-specific ifdefs with cpu tests, inverted the CPU test in local_r4k_flush_icache_range. Loongson2 won't boot up using the generic icache flush code. Presumably other CPUs might face other problems when presented with Loongson2-specific icache flush code too. This patch enabled my Yeeloong to boot up successfully a 3.13-rc kernel for the first time, after a long git bisect session.

---
 arch/mips/mm/c-r4k.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/mm/c-r4k.c +2 -2
index 62ffd20..1c2029d 100644
@@ -580,11 +580,11 @@ static inline void local_r4k_flush_icache_range(unsigned long start, unsigned lo
 	else {
 		switch (boot_cpu_type()) {
 		case CPU_LOONGSON2:
-			protected_blast_icache_range(start, end);
+			protected_loongson23_blast_icache_range(start, end);
 			break;
 
 		default:
-			protected_loongson23_blast_icache_range(start, end);
+			protected_blast_icache_range(start, end);
 			break;
 		}
 	}
Signature · 7 lines
1.8.3.1

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer
#1 lore raw

Hello.

Quoted 1 line · Alexandre Oliva

Commit 14bd8c08, that replaced Loongson2-specific ifdefs with cpu tests,

Please also specify that commit's summary line in parens.

Quoted 7 lines

inverted the CPU test in local_r4k_flush_icache_range. Loongson2 won't boot up using the generic icache flush code. Presumably other CPUs might face other problems when presented with Loongson2-specific icache flush code too. This patch enabled my Yeeloong to boot up successfully a 3.13-rc kernel for the first time, after a long git bisect session.

Fix for this issue has been posted long ago:

http://marc.info/?l=linux-mips&m=138575576803890

WBR, Sergei

#2 lore raw
Quoted 14 lines · Sergei Shtylyov

Hello.

Quoted 1 line · Alexandre Oliva

Commit 14bd8c08, that replaced Loongson2-specific ifdefs with cpu tests,

Please also specify that commit's summary line in parens.

Quoted 5 lines

inverted the CPU test in local_r4k_flush_icache_range. Loongson2 won't boot up using the generic icache flush code. Presumably other CPUs might face other problems when presented with Loongson2-specific icache flush code too. This patch enabled my Yeeloong to boot up successfully a 3.13-rc kernel for the first time, after a long git bisect session.

Quoted 10 lines
Quoted 1 line

Fix for this issue has been posted long ago:

http://marc.info/?l=linux-mips&m=138575576803890

WBR, Sergei

Hi,

i was under the impression that it is in rc8 but i am failing to see it there.

John

#3 lore raw

Hi,

Quoted 10 lines · John Crispin
Quoted 6 lines · Sergei Shtylyov
Quoted 1 line · Alexandre Oliva

Commit 14bd8c08, that replaced Loongson2-specific ifdefs with cpu tests,

Fix for this issue has been posted long ago:

http://marc.info/?l=linux-mips&m=138575576803890

i was under the impression that it is in rc8 but i am failing to see it there.

The patches are currently in -mm tree, and hopefully will be in the final 3.13.

A.

#4 lore raw
In reply to Sergei Shtylyov
Quoted 9 lines · Sergei Shtylyov

Hello.

Quoted 6 lines

Commit 14bd8c08, that replaced Loongson2-specific ifdefs with cpu tests, inverted the CPU test in local_r4k_flush_icache_range. Loongson2 won't boot up using the generic icache flush code. Presumably other CPUs might face other problems when presented with Loongson2-specific icache flush code too. This patch enabled my Yeeloong to boot up successfully a 3.13-rc kernel for the first time, after a long git bisect session.

Quoted 5 lines
Quoted 1 line

Fix for this issue has been posted long ago:

http://marc.info/?l=linux-mips&m=138575576803890

Thanks. As long ago as that was, I still don't see it in Torvalds's master branch. Was a pull request including this patch ever send his way? Such a trivial fix for such a show-stopper shouldn't find any difficulties making 3.13, I think.

Signature · 4 lines
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer
#5 lore raw

i think all questions were already answered

http://www.linux-mips.org/archives/linux-mips/2014-01/msg00127.html

Quoted 17 lines · Alexandre Oliva
Quoted 10 lines · Sergei Shtylyov

Hello.

Quoted 7 lines

Commit 14bd8c08, that replaced Loongson2-specific ifdefs with cpu tests, inverted the CPU test in local_r4k_flush_icache_range. Loongson2 won't boot up using the generic icache flush code. Presumably other CPUs might face other problems when presented with Loongson2-specific icache flush code too. This patch enabled my Yeeloong to boot up successfully a 3.13-rc kernel for the first time, after a long git bisect session.

Fix for this issue has been posted long ago:
http://marc.info/?l=linux-mips&m=138575576803890

Thanks. As long ago as that was, I still don't see it in Torvalds's master branch. Was a pull request including this patch ever send his way? Such a trivial fix for such a show-stopper shouldn't find any difficulties making 3.13, I think.