All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Daniel Clark <dclark@pobox.com>
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>,
	Yan hua <yanh@lemote.com>, Philippe Vachon <philippe@cowpig.ca>,
	Zhang Le <r0bertz@gentoo.org>, Zhang Fuxin <zhangfx@lemote.com>,
	Arnaud Patard <apatard@mandriva.com>,
	loongson-dev@googlegroups.com, gnewsense-dev@nongnu.org,
	Nicholas Mc Guire <hofrat@hofr.at>,
	Liu Junliang <liujl@lemote.com>, Erwan Lerale <erwan@thiscow.com>,
	rms@gnu.org
Subject: Re: [loongson-support 00/27] linux PATCHes of loongson-based machines
Date: Thu, 21 May 2009 08:17:18 +0800	[thread overview]
Message-ID: <1242865038.21692.624.camel@falcon> (raw)
In-Reply-To: <4A14846A.3080006@pobox.com>

On Wed, 2009-05-20 at 18:30 -0400, Daniel Clark wrote:
> wuzhangjin@gmail.com wrote:
> > From: Wu Zhangjin <wuzhangjin@gmail.com>
> > 
> > Dear all,
> > 
> > I have cleaned up the source code of loongson-based machines support and
> > updated it to linux-2.6.29.3, the latest result is put to the following git
> > repository:
> > 
> >    git://dev.lemote.com/rt4ls.git  to-ralf
> > 	or
> >    http://dev.lemote.com/cgit/rt4ls.git/log/?h=to-ralf
> > 
> > this job is based on the to-mips branch of Yanhua's
> > git://dev.lemote.com/linux_loongson.git and the lm2e-fixes branch of Philippe's
> > git://git.linux-cisco.org/linux-mips.git. thanks goes to them.
> > 
> > and also, thanks goes to Erwen and heihaier for testing the latest branch, and
> > thanks ralf, zhangLe, john and the other guyes for reviewing the old branch and
> > giving good suggestions.
> > 
> > the most differences between this branch and the old branch include:
> > 
> >    * all of these patches are checked by script/checkpatch.pl, only a few
> >    warnings left.
> > 
> >    * the cs5536 part have been cleaned up deeply. the old pcireg.h is removed
> >    via using the include/linux/pci_regs.h instead. and the old cs5536_vsm.c is
> >    divided to several modules, one file one module.
> > 
> >    * the source code in driver/video/smi in cleaned up a lot, two trashy header
> >    files are removed, and several trashy functions are removed, lots of coding
> >    style errors and warnings are cleaned up.
> > 
> >    * gcc 4.4 support, including 32bit and 64bit, and also it is gcc 4.3
> >    compatiable
> > 
> > I have tested it in 32bit and 64bit with gcc 4.3 on fuloong(2e), fuloong(2f),
> > yeeloong(2f), all of them work well, and also test it in 32bit and 64bit with
> > gcc 4.4 on fuloong(2f), works normally. Erwen and heihaier have tested it in
> > 64bit with gcc 4.4 on a yeeloong laptop.
> 
> Wow this is great. Does this branch also include the suspend-to-disk /
> resume-from-disk code from the lemote 2.6.27 STD branch?
> 

yeap, you can find it in the PATCH: 
                                    
[loongson-PATCH-v1 22/27]
Hibernation Support in mips system

> From a user's perspective, what are the loongson-oriented improvements
> of this branch over the existing 2.6.27 branch?
> 

seems no obvious improvements to users, but a few:

   * smaller kernel image,
      
     several different changes will influence this part.

    1. [loongson-PATCH-v1 10/27] add loongson-specific
cpu-feature-overrides.h

     $ wc -c vmlinux             // before
    8054849 vmlinux
    $ wc -c vmlinux             // after
    7626936 vmlinux
    $ echo $(((8054849-7626936)/1024))  // kb
    417
    $ echo "(8054849-7626936)/8054849" | bc -l
    .05312489408553779220
     
    2. tons of source code lines have been cleaned up
     
    the most important parts include cs5536 and smi video card driver.

  * higher performance(maybe not easily feel it)
   
    1. the added cpu-feature-overrides will remove tons of branches
    2. tons of low-level cs5536 support is cleaned up, some trashy
source code lines are removed, so, the low-level response may be
quicker.

   but i think the change in this branch is more important to the
developers, the current organization is more scalable than the old one,
and tons of duplications have bee removed, magic numbers have been
substituted to understandable symbols ...

> I'd also like to know if:
> 
> (a) the ec-modules and
> 
> (b) the rtl8187b code
> 
> that is currently separate from the main lemote linux 2.6.27 git (the
> former in a git repository, the later only in a .tar.gz file as far as I
> know) is included in the 2.6.29.3 branch now.
> 

not yet, since the main aim of this branch is pushing the basic
loongson2f-based machines' support to the mainline linux. so, these two
parts are not included in yet. after the basic support is pushed in, we
will try to push the other parts.

> I can of course check this via git when I have internet access next, but
> I'm guessing you would be able to provide context beyond just the code
> changes to the answers of these questions  :-)
> 
> Oh, and one last thing - is compilation with the lemote-patched binutils
> / "-mfix-gs2f-kernel" "-mfix-ls2f-kernel" (I'm told these did the same
> things, the name just changed for some reason - currently I'm using a
> binutils / as that understands the "-mfix-ls2f-kernel" option) still
> needed? Without this in the 2.6.27 branch, and esp. with the ec-modules,
> there were very frequent hard linux crashes (sysrq keys not working).
> 

yes, the -mfix-ls2f-kernel is needed if no other solutions for fixing
the crashes problems come out. but since the -mfix-ls2f-kernel option is
not merged in the mainline 'as' tool, so, this option will not be used
in this branch. 

sysrq keys really not work, but NMI works :-)

> BTW for me, this is interesting in the context of
> http://config.fsf.org/trac/public/wiki/RmsLinuxForYou , which I have
> several people helping me test at the moment - currently the biggest
> issue is hard crashes every day or other day, or more frequently if
> there is a lot of disk or usb I/O.
> 

perhaps Yan hua<yanh@lemote.com> can give some help on this problem.

did you compile the kernel with -mfix-ls2f-kernel option? if not, please
use it. it may give some help on reducing the hard crashes.

Best Wishes,
Wu Zhangjin

> Thanks,

  reply	other threads:[~2009-05-21  0:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-20 21:21 [loongson-support 00/27] linux PATCHes of loongson-based machines wuzhangjin
2009-05-20 21:23 ` [loongson-support 01/27] fix-warning: incompatible argument type of pci_fixup_irqs wuzhangjin
2009-05-20 21:24 ` [loongson-support 02/27] fix-warning: incompatible argument type of virt_to_phys wuzhangjin
2009-05-20 21:24 ` [loongson-support 03/27] fix-error: incompatiable argument type of clear_user wuzhangjin
2009-05-20 21:24 ` [loongson-support 04/27] change the naming methods wuzhangjin
2009-05-20 21:25 ` [loongson-support 05/27] remove reference to bonito64.h wuzhangjin
2009-05-20 21:25 ` [loongson-support 06/27] divide the files to the smallest logic unit wuzhangjin
2009-05-20 21:26 ` [loongson-support 07/27] replace tons of magic numbers by understandable symbols wuzhangjin
2009-05-20 21:26 ` [loongson-support 08/27] clean up the early printk support for fuloong(2e) wuzhangjin
2009-05-20 21:27 ` [loongson-support 09/27] enable Real Time Clock Support " wuzhangjin
2009-05-20 21:28 ` [loongson-support 10/27] add loongson-specific cpu-feature-overrides.h wuzhangjin
2009-05-20 21:28 ` [loongson-support 11/27] split the loongson-specific part out wuzhangjin
2009-05-20 21:40 ` [loongson-support 00/27] linux PATCHes of loongson-based machines Wu Zhangjin
2009-05-20 22:30 ` Daniel Clark
2009-05-20 22:30   ` Daniel Clark
2009-05-21  0:17   ` Wu Zhangjin [this message]
2009-05-21 14:37     ` Daniel Clark
2009-05-21 14:37       ` Daniel Clark
2009-05-26  2:11   ` yanh
2009-05-26 13:03     ` Daniel Clark
2009-05-26 13:03       ` Daniel Clark
2009-05-21 16:34 ` Daniel Clark
2009-05-21 16:34   ` Daniel Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1242865038.21692.624.camel@falcon \
    --to=wuzhangjin@gmail.com \
    --cc=apatard@mandriva.com \
    --cc=dclark@pobox.com \
    --cc=erwan@thiscow.com \
    --cc=gnewsense-dev@nongnu.org \
    --cc=hofrat@hofr.at \
    --cc=linux-mips@linux-mips.org \
    --cc=liujl@lemote.com \
    --cc=loongson-dev@googlegroups.com \
    --cc=philippe@cowpig.ca \
    --cc=r0bertz@gentoo.org \
    --cc=ralf@linux-mips.org \
    --cc=rms@gnu.org \
    --cc=yanh@lemote.com \
    --cc=zhangfx@lemote.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.