Skip to contentSkip to conversation

MIPS: lib: csum_partial: use wsbh/movn on ls3

PATCH chenj 6 participants 7 messages May 18, 2014 – May 24, 2014 MIPS

lore
Share & tools
lore

chenj

author
#0 lore raw

[PATCH] MIPS: Loongson 3: Select CPU_MIPS64_R2

To chenhc: Please review this.

#1 lore raw

Due to Wang Rui's tests, Loongson-3's EI/DI instructions don't have correct behaviors, its Status.FR is also different with MIPS64R2. So, I don't want to select CPU_MIPS64_R2.

Quoted 4 lines · chenj

[PATCH] MIPS: Loongson 3: Select CPU_MIPS64_R2

To chenhc: Please review this.

#2 lore raw
Quoted 3 lines · Huacai Chen

Due to Wang Rui's tests, Loongson-3's EI/DI instructions don't have correct behaviors, its Status.FR is also different with MIPS64R2. So, I don't want to select CPU_MIPS64_R2.

Out of curiosity, how do ei & di misbehave? There are still a number of other areas in the kernel which special case >= R2, so if the 3A isn't too incompatible it may still make sense to select R2 & special case those incompatibilities.

Thanks,
Paul

Quoted 6 lines · chenj
Quoted 4 lines

[PATCH] MIPS: Loongson 3: Select CPU_MIPS64_R2

To chenhc: Please review this.

author
#3 lore raw

2014-05-19 18:02 GMT+08:00 Paul Burton <[email protected]>:

Quoted 6 lines · Huacai Chen
Quoted 3 lines

Due to Wang Rui's tests, Loongson-3's EI/DI instructions don't have correct behaviors, its Status.FR is also different with MIPS64R2. So, I don't want to select CPU_MIPS64_R2.

Out of curiosity, how do ei & di misbehave?

In our test, it may cause machine stall if use ei&di in kernel, especially in smp case.

#4 lore raw
Quoted 9 lines · Chen Jie

2014-05-19 18:02 GMT+08:00 Paul Burton <[email protected]>:

Quoted 6 lines · Huacai Chen
Quoted 3 lines

Due to Wang Rui's tests, Loongson-3's EI/DI instructions don't have correct behaviors, its Status.FR is also different with MIPS64R2. So, I don't want to select CPU_MIPS64_R2.

Out of curiosity, how do ei & di misbehave?

In our test, it may cause machine stall if use ei&di in kernel, especially in smp case.

In that case we could make the use of DI/EI depend on a new errata flag in war.h or similar.

Ralf

#5 lore raw

2014-05-20 1:06 GMT+08:00 Ralf Baechle <[email protected]>:

Quoted 8 lines · Chen Jie
Quoted 7 lines

2014-05-19 18:02 GMT+08:00 Paul Burton <[email protected]>:

Quoted 5 lines · Huacai Chen
Quoted 3 lines

Due to Wang Rui's tests, Loongson-3's EI/DI instructions don't have correct behaviors, its Status.FR is also different with MIPS64R2. So, I don't want to select CPU_MIPS64_R2.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Out of curiosity, how do ei & di misbehave?

In our test, it may cause machine stall if use ei&di in kernel, especially in smp case.

In that case we could make the use of DI/EI depend on a new errata flag in war.h or similar.

Thanks for the suggest!
Huacai,I think we would try to select MIPS64_R2 for loongson3 processor, and take care of the above bits to see whether it works.

Signature · 3 lines
Regards,

- cee1
#6 lore raw

No, I think we need more experiments to test the compatiability of Loongson-3. So, ralf, I suggest to merge the first patch and drop this one.

Quoted 25 lines · On Tue, May 20, 2014 at 8:33 PM, cee1 <[email protected]> wrote:

2014-05-20 1:06 GMT+08:00 Ralf Baechle <[email protected]>:

Quoted 8 lines · Chen Jie
Quoted 7 lines

2014-05-19 18:02 GMT+08:00 Paul Burton <[email protected]>:

Quoted 5 lines · Huacai Chen
Quoted 3 lines

Due to Wang Rui's tests, Loongson-3's EI/DI instructions don't have correct behaviors, its Status.FR is also different with MIPS64R2. So, I don't want to select CPU_MIPS64_R2.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Out of curiosity, how do ei & di misbehave?

In our test, it may cause machine stall if use ei&di in kernel, especially in smp case.

In that case we could make the use of DI/EI depend on a new errata flag in war.h or similar.

Thanks for the suggest!
Huacai,I think we would try to select MIPS64_R2 for loongson3 processor, and take care of the above bits to see whether it works.

--
Regards,

- cee1