* [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2
@ 2007-04-04 14:38 zhangfx
0 siblings, 0 replies; 5+ messages in thread
From: zhangfx @ 2007-04-04 14:38 UTC (permalink / raw)
To: linux-mips@linux-mips.org
[-- Attachment #1: Type: text/plain, Size: 625 bytes --]
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
include/asm-mips/cacheops.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/asm-mips/cacheops.h b/include/asm-mips/cacheops.h
index c4a1ec3..df7f2de 100644
--- a/include/asm-mips/cacheops.h
+++ b/include/asm-mips/cacheops.h
@@ -20,7 +20,11 @@
#define Index_Load_Tag_D 0x05
#define Index_Store_Tag_I 0x08
#define Index_Store_Tag_D 0x09
+#if defined(CONFIG_CPU_LOONGSON2)
+#define Hit_Invalidate_I 0x00
+#else
#define Hit_Invalidate_I 0x10
+#endif
#define Hit_Invalidate_D 0x11
#define Hit_Writeback_Inv_D 0x15
--
1.4.4.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2
2007-04-15 15:25 ` [PATCH 5/16] add MACH_GROUP_LEMOTE & MACH_LEMOTE_FULONG tiansm
@ 2007-04-15 15:25 ` tiansm
2007-04-18 12:11 ` Ralf Baechle
0 siblings, 1 reply; 5+ messages in thread
From: tiansm @ 2007-04-15 15:25 UTC (permalink / raw)
To: linux-mips; +Cc: Fuxin Zhang
From: Fuxin Zhang <zhangfx@lemote.com>
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
include/asm-mips/cacheops.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/asm-mips/cacheops.h b/include/asm-mips/cacheops.h
index c4a1ec3..df7f2de 100644
--- a/include/asm-mips/cacheops.h
+++ b/include/asm-mips/cacheops.h
@@ -20,7 +20,11 @@
#define Index_Load_Tag_D 0x05
#define Index_Store_Tag_I 0x08
#define Index_Store_Tag_D 0x09
+#if defined(CONFIG_CPU_LOONGSON2)
+#define Hit_Invalidate_I 0x00
+#else
#define Hit_Invalidate_I 0x10
+#endif
#define Hit_Invalidate_D 0x11
#define Hit_Writeback_Inv_D 0x15
--
1.4.4.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2
2007-04-15 15:25 ` [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2 tiansm
@ 2007-04-18 12:11 ` Ralf Baechle
2007-04-18 13:51 ` Fuxin Zhang
0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2007-04-18 12:11 UTC (permalink / raw)
To: tiansm; +Cc: linux-mips, Fuxin Zhang
On Sun, Apr 15, 2007 at 11:25:55PM +0800, tiansm@lemote.com wrote:
> +#if defined(CONFIG_CPU_LOONGSON2)
> +#define Hit_Invalidate_I 0x00
This #ifdef means Index_Invalidate_I and Hit_Invalidate_I will both be
defined as zero, is that really correct?
(This is the point where I would really like to have a CPU manual ...)
> +#else
> #define Hit_Invalidate_I 0x10
> +#endif
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2
2007-04-18 12:11 ` Ralf Baechle
@ 2007-04-18 13:51 ` Fuxin Zhang
2007-04-18 13:56 ` Fuxin Zhang
0 siblings, 1 reply; 5+ messages in thread
From: Fuxin Zhang @ 2007-04-18 13:51 UTC (permalink / raw)
To: Ralf Baechle; +Cc: tiansm, linux-mips, Fuxin Zhang
Yes, Loongson2 has no Hit_invalidate_I in fact. And although it has
4-way icache, one Index_invalidate_I will invalidate all 4 ways of the
same set.
The usermanual and datasheet can be downloaded from:
http://www.lemote.com/upfiles/godson2e-user-manual-V0.6.pdf
Ralf Baechle wrote:
> On Sun, Apr 15, 2007 at 11:25:55PM +0800, tiansm@lemote.com wrote:
>
>
>> +#if defined(CONFIG_CPU_LOONGSON2)
>> +#define Hit_Invalidate_I 0x00
>>
>
> This #ifdef means Index_Invalidate_I and Hit_Invalidate_I will both be
> defined as zero, is that really correct?
>
> (This is the point where I would really like to have a CPU manual ...)
>
>
>> +#else
>> #define Hit_Invalidate_I 0x10
>> +#endif
>>
>
> Ralf
>
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2
2007-04-18 13:51 ` Fuxin Zhang
@ 2007-04-18 13:56 ` Fuxin Zhang
0 siblings, 0 replies; 5+ messages in thread
From: Fuxin Zhang @ 2007-04-18 13:56 UTC (permalink / raw)
To: Ralf Baechle; +Cc: tiansm, linux-mips, Fuxin Zhang
Sorry, no english version of datasheet yet.
Fuxin Zhang wrote:
> Yes, Loongson2 has no Hit_invalidate_I in fact. And although it has
> 4-way icache, one Index_invalidate_I will invalidate all 4 ways of the
> same set.
>
> The usermanual and datasheet can be downloaded from:
>
> http://www.lemote.com/upfiles/godson2e-user-manual-V0.6.pdf
>
>
> Ralf Baechle wrote:
>> On Sun, Apr 15, 2007 at 11:25:55PM +0800, tiansm@lemote.com wrote:
>>
>>
>>> +#if defined(CONFIG_CPU_LOONGSON2)
>>> +#define Hit_Invalidate_I 0x00
>>>
>>
>> This #ifdef means Index_Invalidate_I and Hit_Invalidate_I will both be
>> defined as zero, is that really correct?
>>
>> (This is the point where I would really like to have a CPU manual ...)
>>
>>
>>> +#else
>>> #define Hit_Invalidate_I 0x10
>>> +#endif
>>>
>>
>> Ralf
>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-04-18 13:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 14:38 [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2 zhangfx
-- strict thread matches above, loose matches on Subject: below --
2007-04-15 15:25 lemote-fulong patch update tiansm
2007-04-15 15:25 ` [PATCH 1/16] new files for lemote fulong mini-PC support tiansm
2007-04-15 15:25 ` [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC tiansm
2007-04-15 15:25 ` [PATCH 3/16] Kconfig " tiansm
2007-04-15 15:25 ` [PATCH 4/16] TO_PHYS_MASK for loongson2 tiansm
2007-04-15 15:25 ` [PATCH 5/16] add MACH_GROUP_LEMOTE & MACH_LEMOTE_FULONG tiansm
2007-04-15 15:25 ` [PATCH 6/16] define Hit_Invalidate_I to Index_Invalidate_I for loongson2 tiansm
2007-04-18 12:11 ` Ralf Baechle
2007-04-18 13:51 ` Fuxin Zhang
2007-04-18 13:56 ` Fuxin Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox