mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] score - New architecure port to SunplusCT S+CORE  processor
@ 2009-03-25  4:11 liqin.chen
  2009-03-25 12:01 ` Will Newton
  0 siblings, 1 reply; 4+ messages in thread
From: liqin.chen @ 2009-03-25  4:11 UTC (permalink / raw)
  To: linux-kernel, Will Newton; +Cc: torvalds

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="GB2312", Size: 3012 bytes --]

> 
> To allow people to more easily review your patches it is recommended
> to spit them up into smaller pieces and submit them to the mailing
> list.

According to the "The linux-kernel mailing list FAQ" and 
"Documentation/SubmittingPatches", 
E-mail size exceeds 40 kB, "it is preferred that you store 
your patch on an Internet-accessibleserver, and provide
 instead a URL (link) pointing to your patch."
linux/score patch size over 400 kB, so we only provide 
the URL (link) in mail.

But if other person or Linus also think we should spit them up
into smaller pieces, we will do it.

> 
> Your port looks relatively clean but it looks like it is borrowing
> heavily from the mips port and you may have a few leftovers from that
> e.g.:
> 

Yes, we use linux/mips as reference for linux/score platform.
In order to make the patch clear, we used more C code instead of 
assembler code. After patch merge to the mainline, 
we will provide optimized assembler code one by one.

> - mentions of o32 (unless S+CORE has an o32 ABI?)
> - does SCORE+ have ll/sc instructions or is that another leftover from 
MIPS?

No, I had removed these leftover code.

> - compatibility syscalls, sys_ipc, old-style signal handling. Are
> these really needed for a new arch?

Because we use glibc-2.3.6 as base library, LTP and many applications
are all running on it. so we leave many old syscall in score code,
once we are sure it's not necessary, we will remove these syscall.

> - does your port support SMP?

No, but we consider todo it next step.

We have updated the patch use the same URL(link)
http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch
if other person think it should be splited into smaller pieces, 
please let me know.

Thanks Will Newton
--
liqin

Will Newton <will.newton@gmail.com> дÓÚ 2009-03-24 19:00:05:

> On Tue, Mar 24, 2009 at 3:46 AM,  <liqin@sunnorth.com.cn> wrote:
> > Hello, Linus and folks,
> >
> > We have ported Linux to the S+CORE processor, which is a 32-bit RISC
> > embedded
> > microprocessor of Sunplus Core Technology.
> >
> > SPG29X, SPG300(score core) processor have been used in game products.
> > and score toolchain have commit to gnu in 2006. We have a team to 
maintain
> > score code for linux kernel.
> >
> > We would like to release a patch for kernel 2.6.29-rc8.
> > This patch include score header files, arch files and serial driver 
for
> > spct6600(score core) platform.
> >
> > For the other driver patches, I'll send them one by one in
> > small size latter. Thanks!
> >
> > Would you merge them to the stock kernel?
> >
> > Patch information is slightly bigger, so I placed it on our SunplusCT 
web
> > site.
> > 
http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch
> >
> > Signed off by: Chen Liqin <liqin.chen@sunplusct.com,
> > liqin@sunnorth.com.cn>
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

* Re: [PATCH] score - New architecure port to SunplusCT S+CORE  processor
  2009-03-25  4:11 [PATCH] score - New architecure port to SunplusCT S+CORE processor liqin.chen
@ 2009-03-25 12:01 ` Will Newton
  2009-03-27  1:25   ` [PATCH 0/13] " liqin.chen
  0 siblings, 1 reply; 4+ messages in thread
From: Will Newton @ 2009-03-25 12:01 UTC (permalink / raw)
  To: liqin.chen; +Cc: linux-kernel, torvalds

2009/3/25  <liqin.chen@sunplusct.com>:
>>
>> To allow people to more easily review your patches it is recommended
>> to spit them up into smaller pieces and submit them to the mailing
>> list.
>
> According to the "The linux-kernel mailing list FAQ" and
> "Documentation/SubmittingPatches",
> E-mail size exceeds 40 kB, "it is preferred that you store
> your patch on an Internet-accessibleserver, and provide
>  instead a URL (link) pointing to your patch."
> linux/score patch size over 400 kB, so we only provide
> the URL (link) in mail.

Yes, that's true. However if you split that up into 10-20 separate
emails then it's quite manageable. The advantage of posting to the
list is that many more people will review your code.

You could also cc the linux-arch mailing list.

> But if other person or Linus also think we should spit them up
> into smaller pieces, we will do it.
>
>>
>> Your port looks relatively clean but it looks like it is borrowing
>> heavily from the mips port and you may have a few leftovers from that
>> e.g.:
>>
>
> Yes, we use linux/mips as reference for linux/score platform.
> In order to make the patch clear, we used more C code instead of
> assembler code. After patch merge to the mainline,
> we will provide optimized assembler code one by one.
>
>> - mentions of o32 (unless S+CORE has an o32 ABI?)
>> - does SCORE+ have ll/sc instructions or is that another leftover from
> MIPS?
>
> No, I had removed these leftover code.
>
>> - compatibility syscalls, sys_ipc, old-style signal handling. Are
>> these really needed for a new arch?
>
> Because we use glibc-2.3.6 as base library, LTP and many applications
> are all running on it. so we leave many old syscall in score code,
> once we are sure it's not necessary, we will remove these syscall.

Once code is merged into mainline it becomes a lot harder to justify
making changes that break backwards compatibility such as removing
system calls. It's easier in the long term to make sure your system
call interface is cleaned up now rather than later.

Have you come across Arnd Bergmann's work on creating a generic arch
for porting?

http://lwn.net/Articles/307713/

It's a good reference to check which system calls are considered
current and which headers are generic in new ports etc.

>> - does your port support SMP?
>
> No, but we consider todo it next step.
>
> We have updated the patch use the same URL(link)
> http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch
> if other person think it should be splited into smaller pieces,
> please let me know.
>
> Thanks Will Newton
> --
> liqin
>
> Will Newton <will.newton@gmail.com> 写于 2009-03-24 19:00:05:
>
>> On Tue, Mar 24, 2009 at 3:46 AM,  <liqin@sunnorth.com.cn> wrote:
>> > Hello, Linus and folks,
>> >
>> > We have ported Linux to the S+CORE processor, which is a 32-bit RISC
>> > embedded
>> > microprocessor of Sunplus Core Technology.
>> >
>> > SPG29X, SPG300(score core) processor have been used in game products.
>> > and score toolchain have commit to gnu in 2006. We have a team to
> maintain
>> > score code for linux kernel.
>> >
>> > We would like to release a patch for kernel 2.6.29-rc8.
>> > This patch include score header files, arch files and serial driver
> for
>> > spct6600(score core) platform.
>> >
>> > For the other driver patches, I'll send them one by one in
>> > small size latter. Thanks!
>> >
>> > Would you merge them to the stock kernel?
>> >
>> > Patch information is slightly bigger, so I placed it on our SunplusCT
> web
>> > site.
>> >
> http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch
>> >
>> > Signed off by: Chen Liqin <liqin.chen@sunplusct.com,
>> > liqin@sunnorth.com.cn>
>

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

* Re: [PATCH 0/13] score - New architecure port to SunplusCT S+CORE processor
  2009-03-25 12:01 ` Will Newton
@ 2009-03-27  1:25   ` liqin.chen
  2009-03-27 10:29     ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: liqin.chen @ 2009-03-27  1:25 UTC (permalink / raw)
  To: Will Newton, linux-arch; +Cc: linux-kernel, torvalds

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="GB2312", Size: 4321 bytes --]

Will Newton <will.newton@gmail.com> дÓÚ 2009-03-25 20:01:02:

> 2009/3/25  <liqin.chen@sunplusct.com>:
> >>
> >> To allow people to more easily review your patches it is recommended
> >> to spit them up into smaller pieces and submit them to the mailing
> >> list.
> >
> > According to the "The linux-kernel mailing list FAQ" and
> > "Documentation/SubmittingPatches",
> > E-mail size exceeds 40 kB, "it is preferred that you store
> > your patch on an Internet-accessibleserver, and provide
> >  instead a URL (link) pointing to your patch."
> > linux/score patch size over 400 kB, so we only provide
> > the URL (link) in mail.
> 
> Yes, that's true. However if you split that up into 10-20 separate
> emails then it's quite manageable. The advantage of posting to the
> list is that many more people will review your code.
> 
> You could also cc the linux-arch mailing list.
> 
> > But if other person or Linus also think we should spit them up
> > into smaller pieces, we will do it.
> >
> >>
> >> Your port looks relatively clean but it looks like it is borrowing
> >> heavily from the mips port and you may have a few leftovers from that
> >> e.g.:
> >>
> >
> > Yes, we use linux/mips as reference for linux/score platform.
> > In order to make the patch clear, we used more C code instead of
> > assembler code. After patch merge to the mainline,
> > we will provide optimized assembler code one by one.
> >
> >> - mentions of o32 (unless S+CORE has an o32 ABI?)
> >> - does SCORE+ have ll/sc instructions or is that another leftover 
from
> > MIPS?
> >
> > No, I had removed these leftover code.
> >
> >> - compatibility syscalls, sys_ipc, old-style signal handling. Are
> >> these really needed for a new arch?
> >
> > Because we use glibc-2.3.6 as base library, LTP and many applications
> > are all running on it. so we leave many old syscall in score code,
> > once we are sure it's not necessary, we will remove these syscall.
> 
> Once code is merged into mainline it becomes a lot harder to justify
> making changes that break backwards compatibility such as removing
> system calls. It's easier in the long term to make sure your system
> call interface is cleaned up now rather than later.
> 
> Have you come across Arnd Bergmann's work on creating a generic arch
> for porting?
> 
> http://lwn.net/Articles/307713/
> 
> It's a good reference to check which system calls are considered
> current and which headers are generic in new ports etc.
> 

Had removed compatibility syscalls from the code.
last patch still placed at
http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch

> >> - does your port support SMP?
> >
> > No, but we consider todo it next step.
> >
> > We have updated the patch use the same URL(link)
> > 
http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch
> > if other person think it should be splited into smaller pieces,
> > please let me know.
> >
> > Thanks Will Newton
> > --
> > liqin
> >
> > Will Newton <will.newton@gmail.com> дÓÚ 2009-03-24 19:00:05:
> >
> >> On Tue, Mar 24, 2009 at 3:46 AM,  <liqin@sunnorth.com.cn> wrote:
> >> > Hello, Linus and folks,
> >> >
> >> > We have ported Linux to the S+CORE processor, which is a 32-bit 
RISC
> >> > embedded
> >> > microprocessor of Sunplus Core Technology.
> >> >
> >> > SPG29X, SPG300(score core) processor have been used in game 
products.
> >> > and score toolchain have commit to gnu in 2006. We have a team to
> > maintain
> >> > score code for linux kernel.
> >> >
> >> > We would like to release a patch for kernel 2.6.29-rc8.
> >> > This patch include score header files, arch files and serial driver
> > for
> >> > spct6600(score core) platform.
> >> >
> >> > For the other driver patches, I'll send them one by one in
> >> > small size latter. Thanks!
> >> >
> >> > Would you merge them to the stock kernel?
> >> >
> >> > Patch information is slightly bigger, so I placed it on our 
SunplusCT
> > web
> >> > site.
> >> >
> > 
http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch
> >> >
> >> > Signed off by: Chen Liqin <liqin.chen@sunplusct.com,
> >> > liqin@sunnorth.com.cn>
> >

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

* Re: [PATCH 0/13] score - New architecure port to SunplusCT S+CORE processor
  2009-03-27  1:25   ` [PATCH 0/13] " liqin.chen
@ 2009-03-27 10:29     ` Thomas Gleixner
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2009-03-27 10:29 UTC (permalink / raw)
  To: liqin.chen; +Cc: Will Newton, linux-arch, linux-kernel, torvalds

On Fri, 27 Mar 2009, liqin.chen@sunplusct.com wrote:
> > >> > We would like to release a patch for kernel 2.6.29-rc8.
> > >> > This patch include score header files, arch files and serial driver
> > > for
> > >> > spct6600(score core) platform.
> > >> >
> > >> > For the other driver patches, I'll send them one by one in
> > >> > small size latter. Thanks!
> > >> >
> > >> > Would you merge them to the stock kernel?
> > >> >
> > >> > Patch information is slightly bigger, so I placed it on our 
> SunplusCT
> > > web
> > >> > site.
> > >> >
> > > 
> http://www.sunplusct.com/images/linux-score-patch/linux-score-20090324.patch

Please split the patches further into logical and reviewable
pieces. Also each patch needs a patch description which will be the
change log in the git repository and your Signed-off-by line. Also
each patch needs a unique and useful subject line in the mail.

Download references for such patches are useless.

See Documentation/SubmittingPatches

Thanks,

	tglx

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

end of thread, other threads:[~2009-03-27 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25  4:11 [PATCH] score - New architecure port to SunplusCT S+CORE processor liqin.chen
2009-03-25 12:01 ` Will Newton
2009-03-27  1:25   ` [PATCH 0/13] " liqin.chen
2009-03-27 10:29     ` Thomas Gleixner

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

all inboxes | Powered by JetHome®