* [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
@ 2007-04-04 14:38 zhangfx
0 siblings, 0 replies; 9+ 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: 3839 bytes --]
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
arch/mips/Makefile | 8 ++++++++
arch/mips/kernel/Makefile | 1 +
arch/mips/lib-32/Makefile | 1 +
arch/mips/lib-64/Makefile | 1 +
arch/mips/mm/Makefile | 1 +
arch/mips/pci/Makefile | 1 +
6 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 92bca6a..2a6742d 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -118,6 +118,7 @@ cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap
cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap
cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap
cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
+cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
-Wa,-mips32 -Wa,--trap
cflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
@@ -298,6 +299,13 @@ cflags-$(CONFIG_WR_PPMC) += -Iinclude/asm-mips/mach-wrppmc
load-$(CONFIG_WR_PPMC) += 0xffffffff80100000
#
+# lemote fulong mini-PC board
+#
+core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/
+load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000
+cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote
+
+#
# For all MIPS, Inc. eval boards
#
core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index 4924626..40fdf79 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -31,6 +31,7 @@ obj-$(CONFIG_CPU_R10000) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_SB1) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_MIPS32) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_MIPS64) += r4k_fpu.o r4k_switch.o
+obj-$(CONFIG_CPU_LOONGSON2) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_R6000) += r6000_fpu.o r4k_switch.o
obj-$(CONFIG_SMP) += smp.o
diff --git a/arch/mips/lib-32/Makefile b/arch/mips/lib-32/Makefile
index 8b94d4c..b4be604 100644
--- a/arch/mips/lib-32/Makefile
+++ b/arch/mips/lib-32/Makefile
@@ -21,3 +21,4 @@ obj-$(CONFIG_CPU_SB1) += dump_tlb.o
obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o
obj-$(CONFIG_CPU_TX49XX) += dump_tlb.o
obj-$(CONFIG_CPU_VR41XX) += dump_tlb.o
+obj-$(CONFIG_CPU_LOONGSON2) += dump_tlb.o
diff --git a/arch/mips/lib-64/Makefile b/arch/mips/lib-64/Makefile
index 8b94d4c..b4be604 100644
--- a/arch/mips/lib-64/Makefile
+++ b/arch/mips/lib-64/Makefile
@@ -21,3 +21,4 @@ obj-$(CONFIG_CPU_SB1) += dump_tlb.o
obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o
obj-$(CONFIG_CPU_TX49XX) += dump_tlb.o
obj-$(CONFIG_CPU_VR41XX) += dump_tlb.o
+obj-$(CONFIG_CPU_LOONGSON2) += dump_tlb.o
diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile
index 293697b..b2dd42e 100644
--- a/arch/mips/mm/Makefile
+++ b/arch/mips/mm/Makefile
@@ -21,6 +21,7 @@ obj-$(CONFIG_CPU_R5432) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
obj-$(CONFIG_CPU_R8000) += c-r4k.o cex-gen.o pg-r4k.o tlb-r8k.o
obj-$(CONFIG_CPU_RM7000) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
obj-$(CONFIG_CPU_RM9000) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
+obj-$(CONFIG_CPU_LOONGSON2) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
obj-$(CONFIG_CPU_SB1) += c-sb1.o cerr-sb1.o cex-sb1.o pg-sb1.o \
tlb-r4k.o
obj-$(CONFIG_CPU_TX39XX) += c-tx39.o pg-r4k.o tlb-r3k.o
diff --git a/arch/mips/pci/Makefile b/arch/mips/pci/Makefile
index bf85995..3a77235 100644
--- a/arch/mips/pci/Makefile
+++ b/arch/mips/pci/Makefile
@@ -53,3 +53,4 @@ obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-tx4938.o ops-tx4938.o
obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o
obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o
obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o
+obj-$(CONFIG_LEMOTE_FULONG) += fixup-lm2e.o ops-lm2e.o
--
1.4.4.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-15 15:25 ` [PATCH 1/16] new files for lemote fulong mini-PC support tiansm
@ 2007-04-15 15:25 ` tiansm
2007-04-15 22:28 ` Thiemo Seufer
0 siblings, 1 reply; 9+ 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>
---
arch/mips/Makefile | 8 ++++++++
arch/mips/kernel/Makefile | 1 +
arch/mips/lib-32/Makefile | 1 +
arch/mips/lib-64/Makefile | 1 +
arch/mips/mm/Makefile | 1 +
arch/mips/pci/Makefile | 1 +
6 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 92bca6a..2a6742d 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -118,6 +118,7 @@ cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap
cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap
cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap
cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
+cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
-Wa,-mips32 -Wa,--trap
cflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
@@ -298,6 +299,13 @@ cflags-$(CONFIG_WR_PPMC) += -Iinclude/asm-mips/mach-wrppmc
load-$(CONFIG_WR_PPMC) += 0xffffffff80100000
#
+# lemote fulong mini-PC board
+#
+core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/
+load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000
+cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote
+
+#
# For all MIPS, Inc. eval boards
#
core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index 4924626..40fdf79 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -31,6 +31,7 @@ obj-$(CONFIG_CPU_R10000) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_SB1) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_MIPS32) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_MIPS64) += r4k_fpu.o r4k_switch.o
+obj-$(CONFIG_CPU_LOONGSON2) += r4k_fpu.o r4k_switch.o
obj-$(CONFIG_CPU_R6000) += r6000_fpu.o r4k_switch.o
obj-$(CONFIG_SMP) += smp.o
diff --git a/arch/mips/lib-32/Makefile b/arch/mips/lib-32/Makefile
index 8b94d4c..b4be604 100644
--- a/arch/mips/lib-32/Makefile
+++ b/arch/mips/lib-32/Makefile
@@ -21,3 +21,4 @@ obj-$(CONFIG_CPU_SB1) += dump_tlb.o
obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o
obj-$(CONFIG_CPU_TX49XX) += dump_tlb.o
obj-$(CONFIG_CPU_VR41XX) += dump_tlb.o
+obj-$(CONFIG_CPU_LOONGSON2) += dump_tlb.o
diff --git a/arch/mips/lib-64/Makefile b/arch/mips/lib-64/Makefile
index 8b94d4c..b4be604 100644
--- a/arch/mips/lib-64/Makefile
+++ b/arch/mips/lib-64/Makefile
@@ -21,3 +21,4 @@ obj-$(CONFIG_CPU_SB1) += dump_tlb.o
obj-$(CONFIG_CPU_TX39XX) += r3k_dump_tlb.o
obj-$(CONFIG_CPU_TX49XX) += dump_tlb.o
obj-$(CONFIG_CPU_VR41XX) += dump_tlb.o
+obj-$(CONFIG_CPU_LOONGSON2) += dump_tlb.o
diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile
index 293697b..ab24195 100644
--- a/arch/mips/mm/Makefile
+++ b/arch/mips/mm/Makefile
@@ -21,6 +21,7 @@ obj-$(CONFIG_CPU_R5432) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
obj-$(CONFIG_CPU_R8000) += c-r4k.o cex-gen.o pg-r4k.o tlb-r8k.o
obj-$(CONFIG_CPU_RM7000) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
obj-$(CONFIG_CPU_RM9000) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
+obj-$(CONFIG_CPU_LOONGSON2) += c-r4k.o cex-gen.o pg-r4k.o tlb-r4k.o
obj-$(CONFIG_CPU_SB1) += c-sb1.o cerr-sb1.o cex-sb1.o pg-sb1.o \
tlb-r4k.o
obj-$(CONFIG_CPU_TX39XX) += c-tx39.o pg-r4k.o tlb-r3k.o
diff --git a/arch/mips/pci/Makefile b/arch/mips/pci/Makefile
index bf85995..3a77235 100644
--- a/arch/mips/pci/Makefile
+++ b/arch/mips/pci/Makefile
@@ -53,3 +53,4 @@ obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-tx4938.o ops-tx4938.o
obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o
obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o
obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o
+obj-$(CONFIG_LEMOTE_FULONG) += fixup-lm2e.o ops-lm2e.o
--
1.4.4.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-15 15:25 ` [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC tiansm
@ 2007-04-15 22:28 ` Thiemo Seufer
2007-04-16 7:37 ` Tian
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Thiemo Seufer @ 2007-04-15 22:28 UTC (permalink / raw)
To: tiansm; +Cc: linux-mips, Fuxin Zhang
tiansm@lemote.com wrote:
[snip]
> diff --git a/arch/mips/Makefile b/arch/mips/Makefile
> index 92bca6a..2a6742d 100644
> --- a/arch/mips/Makefile
> +++ b/arch/mips/Makefile
> @@ -118,6 +118,7 @@ cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap
> cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap
> cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap
> cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
> +cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
I wonder why this is r4600. I heard the Loongson2 is MIPS IV compatible,
so r5000 / r8000 / r10000 would be better choices.
Thiemo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-15 22:28 ` Thiemo Seufer
@ 2007-04-16 7:37 ` Tian
2007-04-16 8:48 ` Fuxin Zhang
2007-04-16 8:49 ` Zhang Fuxin
2 siblings, 0 replies; 9+ messages in thread
From: Tian @ 2007-04-16 7:37 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: linux-mips, Fuxin Zhang
Thiemo Seufer wrote:
> tiansm@lemote.com wrote:
> [snip]
>
>> diff --git a/arch/mips/Makefile b/arch/mips/Makefile
>> index 92bca6a..2a6742d 100644
>> --- a/arch/mips/Makefile
>> +++ b/arch/mips/Makefile
>> @@ -118,6 +118,7 @@ cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap
>> cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap
>> cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap
>> cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
>> +cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
>>
>
> I wonder why this is r4600. I heard the Loongson2 is MIPS IV compatible,
> so r5000 / r8000 / r10000 would be better choices.
>
>
> Thiemo
>
>
I check the datasheet I have and i don't see loongson2e has implemented
mips iv instructions.
Songmao
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-15 22:28 ` Thiemo Seufer
2007-04-16 7:37 ` Tian
@ 2007-04-16 8:48 ` Fuxin Zhang
2007-04-16 8:49 ` Zhang Fuxin
2 siblings, 0 replies; 9+ messages in thread
From: Fuxin Zhang @ 2007-04-16 8:48 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: tiansm, linux-mips, Fuxin Zhang
>> +cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
>
> I wonder why this is r4600. I heard the Loongson2 is MIPS IV compatible,
> so r5000 / r8000 / r10000 would be better choices.
Presently Loongson-2E is nearly MIPS III compatible(with some
self-defined extensions), next version will be mips64 release2 compatible.
-march=r4600 is inherited from loongson-1, -march=mips3 might be a
better choice.
>
>
> Thiemo
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-15 22:28 ` Thiemo Seufer
2007-04-16 7:37 ` Tian
2007-04-16 8:48 ` Fuxin Zhang
@ 2007-04-16 8:49 ` Zhang Fuxin
2007-04-16 12:44 ` Thiemo Seufer
2 siblings, 1 reply; 9+ messages in thread
From: Zhang Fuxin @ 2007-04-16 8:49 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: tiansm, linux-mips, Fuxin Zhang
>> +cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
>
> I wonder why this is r4600. I heard the Loongson2 is MIPS IV compatible,
> so r5000 / r8000 / r10000 would be better choices.
Presently Loongson-2E is nearly MIPS III compatible(with some
self-defined extensions), next version will be mips64 release2 compatible.
-march=r4600 is inherited from loongson-1, -march=mips3 might be a
better choice.
>
>
> Thiemo
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-16 8:49 ` Zhang Fuxin
@ 2007-04-16 12:44 ` Thiemo Seufer
2007-04-16 14:01 ` Ralf Baechle
2007-04-16 15:10 ` Zhang Fuxin
0 siblings, 2 replies; 9+ messages in thread
From: Thiemo Seufer @ 2007-04-16 12:44 UTC (permalink / raw)
To: Zhang Fuxin; +Cc: tiansm, linux-mips
Zhang Fuxin wrote:
> >> +cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
> >
> > I wonder why this is r4600. I heard the Loongson2 is MIPS IV compatible,
> > so r5000 / r8000 / r10000 would be better choices.
>
> Presently Loongson-2E is nearly MIPS III compatible(with some
> self-defined extensions), next version will be mips64 release2 compatible.
I see.
> -march=r4600 is inherited from loongson-1, -march=mips3 might be a
> better choice.
Maybe. The 'mips3' maps to -march=r4000, it would assume more memory
latency and a slower integer divider then -march=r4600.
Thiemo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-16 12:44 ` Thiemo Seufer
@ 2007-04-16 14:01 ` Ralf Baechle
2007-04-16 15:10 ` Zhang Fuxin
1 sibling, 0 replies; 9+ messages in thread
From: Ralf Baechle @ 2007-04-16 14:01 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: Zhang Fuxin, tiansm, linux-mips
On Mon, Apr 16, 2007 at 01:44:22PM +0100, Thiemo Seufer wrote:
> Zhang Fuxin wrote:
> > >> +cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap
> > >
> > > I wonder why this is r4600. I heard the Loongson2 is MIPS IV compatible,
> > > so r5000 / r8000 / r10000 would be better choices.
> >
> > Presently Loongson-2E is nearly MIPS III compatible(with some
> > self-defined extensions), next version will be mips64 release2 compatible.
>
> I see.
>
> > -march=r4600 is inherited from loongson-1, -march=mips3 might be a
> > better choice.
>
> Maybe. The 'mips3' maps to -march=r4000, it would assume more memory
> latency and a slower integer divider then -march=r4600.
I don't really have an issue with that since I see it as a temporary
solution until gcc and binutils know about Loongson 2 specifics. Given
the bit I know about the Loognson 2 processor architecture I would not
expect a significant performance boost from trying different values for
-march with current toolchains.
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC
2007-04-16 12:44 ` Thiemo Seufer
2007-04-16 14:01 ` Ralf Baechle
@ 2007-04-16 15:10 ` Zhang Fuxin
1 sibling, 0 replies; 9+ messages in thread
From: Zhang Fuxin @ 2007-04-16 15:10 UTC (permalink / raw)
To: Thiemo Seufer, Linux/MIPS Development
Thiemo Seufer 写道:
> Maybe. The 'mips3' maps to -march=r4000, it would assume more memory
> latency and a slower integer divider then -march=r4600.
>
Just like Ralf has said, -march might not lead to significant
performance difference, but -mtune=
may. Two years ago, I found that adding a machine.def to descripe
pipeline and resources for loongson2
and -mtune=loongson boost many programs by 2-5%。
>
> Thiemo
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-04-16 15:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 14:38 [PATCH 2/16] arch related Makefile update for lemote fulong mini-PC 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 22:28 ` Thiemo Seufer
2007-04-16 7:37 ` Tian
2007-04-16 8:48 ` Fuxin Zhang
2007-04-16 8:49 ` Zhang Fuxin
2007-04-16 12:44 ` Thiemo Seufer
2007-04-16 14:01 ` Ralf Baechle
2007-04-16 15:10 ` Zhang Fuxin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox