08 Dec, 2011

1 commit

  • Since commit [e58aa3d2: genirq: Run irq handlers with interrupts disabled],
    We run all interrupt handlers with interrupts disabled and we even check
    and yell when an interrupt handler returns with interrupts enabled (see
    commit [b738a50a: genirq: Warn when handler enables interrupts]).

    So now this flag is a NOOP and can be removed.

    [ralf@linux-mips.org: Fixed up conflicts in
    arch/mips/alchemy/common/dbdma.c, arch/mips/cavium-octeon/smp.c and
    arch/mips/kernel/perf_event.c.]

    Signed-off-by: Yong Zhang
    To: linux-kernel@vger.kernel.org
    Cc: tglx@linutronix.de
    linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2835/
    Signed-off-by: Ralf Baechle

    Yong Zhang
     

01 Nov, 2011

1 commit

  • We need to call out inclusion of smp.h, or with the module.h cleanup
    we'll get things like:

    arch/mips/loongson/common/platform.c:21: error: implicit declaration of function 'smp_processor_id'

    arch/mips/vr41xx/common/giu.c:84: error: implicit declaration of function 'smp_processor_id'

    arch/mips/vr41xx/common/rtc.c:85: error: implicit declaration of function 'smp_processor_id'

    Signed-off-by: Paul Gortmaker

    Paul Gortmaker
     

21 Sep, 2011

1 commit

  • There are two cascade interrupts in Loongson machines, one for bonito
    northbridge, another for the 8259A controller in the southbridge. Both
    want to be non threaded.

    Signed-off-by: Wu Zhangjin
    Signed-off-by: Thomas Gleixner
    Cc: linux-mips@linux-mips.org
    Cc: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/2638/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

26 Jul, 2011

1 commit


20 May, 2011

1 commit

  • …x/kernel/git/tip/linux-2.6-tip

    * 'timers-clocksource-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    clocksource: convert mips to generic i8253 clocksource
    clocksource: convert x86 to generic i8253 clocksource
    clocksource: convert footbridge to generic i8253 clocksource
    clocksource: add common i8253 PIT clocksource
    blackfin: convert to clocksource_register_hz
    mips: convert to clocksource_register_hz/khz
    sparc: convert to clocksource_register_hz/khz
    alpha: convert to clocksource_register_hz
    microblaze: convert to clocksource_register_hz/khz
    ia64: convert to clocksource_register_hz/khz
    x86: Convert remaining x86 clocksources to clocksource_register_hz/khz
    Make clocksource name const

    Linus Torvalds
     

14 May, 2011

1 commit


11 May, 2011

1 commit

  • CC arch/mips/loongson/common/env.o
    arch/mips/loongson/common/env.c: In function 'prom_init_env':
    arch/mips/loongson/common/env.c:50:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
    arch/mips/loongson/common/env.c:51:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
    arch/mips/loongson/common/env.c:52:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
    arch/mips/loongson/common/env.c:53:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
    cc1: all warnings being treated as errors

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     

29 Mar, 2011

1 commit


26 Mar, 2011

1 commit


15 Mar, 2011

3 commits

  • Signed-off-by: Yoichi Yuasa
    Cc: linux-mips
    Patchwork: https://patchwork.linux-mips.org/patch/2055/
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • This error was reported by cppcheck:
    arch/mips/loongson/common/machtype.c:56: error: Dangerous usage of 'str' (strncpy doesn't always 0-terminate it)

    If strncpy copied MACHTYPE_LEN bytes, the destination string str
    was not terminated.

    The patch adds one more byte to str and makes sure that this byte is
    always 0.

    Signed-off-by: Stefan Weil
    Cc: Wu Zhangjin
    Cc: Arnaud Patard
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/2053/
    Signed-off-by: Ralf Baechle

    Stefan Weil
     
  • Loongson builds have an ad-hoc cmdline default of "console=ttyS0,115200
    root=/dev/hda1". These settings come from a vendor; I remember builds
    from Lemote branch requiring a "console=tty" override in order to get a
    working console.

    At least on Yeeloong, they're particularly useless: there's no external
    serial port, and the IDE drive is now recognised as /dev/sda.

    Signed-off-by: Robert Millan
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1759/
    Signed-off-by: Ralf Baechle

    Robert Millan
     

22 Feb, 2011

1 commit


23 Dec, 2010

1 commit


17 Dec, 2010

1 commit

  • cc1: warnings being treated as errors
    arch/mips/loongson/common/env.c: In function 'prom_init_env':
    arch/mips/loongson/common/env.c:49: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
    arch/mips/loongson/common/env.c:50: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
    arch/mips/loongson/common/env.c:51: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
    arch/mips/loongson/common/env.c:52: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips
    Patchwork: https://patchwork.linux-mips.org/patch/1762/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

16 Nov, 2010

1 commit

  • While at it, fix two checkpatch errors.
    Several non-const struct instances constified by this patch were added after
    the introduction of platform_suspend_ops in checkpatch.pl's list of "should
    be const" structs (79404849e90a41ea2109bd0e2f7c7164b0c4ce73).

    Patch against mainline.
    Inspired by hunks of the grsecurity patch, updated for newer kernels.

    Signed-off-by: Lionel Debroux
    Acked-by: Ingo Molnar
    Signed-off-by: Jiri Kosina

    Lionel Debroux
     

30 Oct, 2010

1 commit

  • arch/mips/Kconfig already sets GENERIC_HARDIRQS_NO__DO_IRQ unconditionally.
    Remove the redundant select from the Loongson Kconfig.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ralf Baechle

    Thomas Gleixner
     

05 Aug, 2010

5 commits

  • LOONGSON2_PERFCNT_IRQ is used for the irq number of the performance
    overflow interrupts; LOONGSON_PERFCNT_IRQ is unused so remove it.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1494/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • On FuLoong-2F IP6 is shared by the performance counter overflow interrupt
    and the Bonito northbridge interrupt. To reduce overhead only call
    do_IRQ() when oprofile is enabled to reduce overhead.

    This patch adds an inline function do_perfcnt_IRQ() to hide the #if's ,
    which can be shared by the other Loongson machines, i.e. gdium.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1492/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • set_irq_trigger_mode() is not needed on all platforms so remove it
    and move the related source code to mach_init_irq().

    This will allow gdium to share the common irq.c without adding an empty
    set_irq_trigger_mode().

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1493/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • * Remove unnecessary 'if (int_status & (1 <<< i);' line

    Signed-off-by: Shinya Kuribayashi
    To: wuzhangjin@gmail.com
    CC: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1433/
    Acked-by: Wu Zhangjin
    Signed-off-by: Ralf Baechle

    Shinya Kuribayashi
     
  • Signed-off-by: Wu Zhangjin
    To: linux-mips
    Cc: Alexander Clouter
    Cc: Manuel Lauss
    Cc: Sam Ravnborg ,
    Patchwork: https://patchwork.linux-mips.org/patch/1313/
    Patchwork: https://patchwork.linux-mips.org/patch/1326/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

06 Jul, 2010

4 commits

  • This patch declare the rtc device present on systems with clock compatible
    with the mc146818 and handled by rtc-cmos. Introduce a new Kconfig entry
    because there are some systems without rtc_cmos compatible clock.

    Signed-off-by: Arnaud Patard
    To: linux-mips@linux-mips.org
    Cc: aba@not.so.argh.org
    Patchwork: http://patchwork.linux-mips.org/patch/1320/
    Signed-off-by: Ralf Baechle

    Arnaud Patard
     
  • The function _wrmsr() called by divil_lbar_disable()/enable() should be
    called with the offset as the argument.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: Zhang Le
    Patchwork: http://patchwork.linux-mips.org/patch/1252/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: Zhang Le
    Cc: Hu Hongbing
    Patchwork: http://patchwork.linux-mips.org/patch/1251/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Add several missing RDMSRs for IDE and USB are missing to avoid the
    agressive modification of the high 32 bits of the MSR.

    Without this patch some usb devices may fail after printing "reset ehci
    host ....." when reading the partition information.

    Signed-off-by: Hu Hongbing
    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: Zhang Le
    Cc: Hu Hongbing
    Patchwork: http://patchwork.linux-mips.org/patch/1250/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

22 May, 2010

1 commit


01 May, 2010

6 commits

  • The -mfix-loongson2f-jump option provided by latest CVS binutils have fixed
    the out-of-order issue of Loongson-2F described in chapter 15 of the
    Loongson2F User Manual [1, 2], but introduced some problems.

    The option changes all of the jump target to "addr & 0xcfffffff" through the
    at($1) register, but for the reboot address of Loongson 2F 0xbfc00000 this is
    wrong. Avoids the problem via telling the assembler to not use the $at
    register.

    [1] Loongson2F User Manual (Chinese Version)
    http://www.loongson.cn/uploadfile/file/200808211
    [2] English Version of Chapter 15:
    http://groups.google.com.hk/group/loongson-dev/msg/e0d2e220958f10a6?dmode=source

    Reported-and-tested-by: Liu Shiwei
    Signed-off-by: Wu Zhangjin
    Cc: linux-mips
    Patchwork: http://patchwork.linux-mips.org/patch/1109/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • When the oprofile is compiled as a module do_IRQ() is not called in
    arch/mips/loongson/lemote-2f/irq.c due to a wrong #ifdef there.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1143/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • The check used to determine if uncached accelerated should be used or not
    is wrong. The parenthesis are misplaced and making the test fail.

    Signed-off-by: Arnaud Patard
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1161/
    Signed-off-by: Ralf Baechle

    Arnaud Patard
     
  • This allows to use all display device for instance DISPLAY_OTHER like SM501.

    Signed-off-by: Arnaud Patard
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1160/
    Signed-off-by: Ralf Baechle

    Richard LIU
     
  • It's not "gidum" but "gdium".

    Signed-off-by: Arnaud Patard
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1159/
    Signed-off-by: Ralf Baechle

    Arnaud Patard
     
  • |arch/mips/sibyte/swarm/setup.c:153:
    | warning: large integer implicitly truncated to unsigned type

    The field was changed in d9b26352 aka ("x86, setup: Store the boot
    cursor state"). This patch changes the values back they way they were
    before this extra field got introduced.

    While here, the other two boards are also converted to C99 initializer.

    Signed-off-by: Sebastian Andrzej Siewior
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1137/
    Signed-off-by: Ralf Baechle

    Sebastian Andrzej Siewior
     

27 Feb, 2010

7 commits

  • No point in protecting them and printks are sloow.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • In the old source code, I have let halt and poweroff do the same action,
    but in reality, they have different meanings.

    As the manpage of shutdown shows:

    -r Reboot after shutdown.
    -H Halt action is to halt or drop into boot monitor on systems that support it.
    -P Halt action is to turn off the power.

    and in the real world, some machines(e.g. NAS) did not provide a power
    button and the shutdown works as reset, so, we need to provide a
    mechanism to let the users turn off the power safely without breaking
    the system, such a mechanism is "halt", which only put the system into a
    dead loop or a power-save mode and print some information to the screen
    to tell the users to turn off the power safely.

    $ shutdown -hH now /* loongson_halt, not turn off the power */
    $ shutdown -hP now /* loongson_poweroff, work as poweroff */

    Signed-off-by: Wu Zhangjin
    Tested-by: Liu Shiwei
    Cc: Liu Shiwei
    Cc: linux-mips
    Patchwork: http://patchwork.linux-mips.org/patch/883/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Currently wuzj@lemote.com is not usable; change it to wuzhangjin@gmail.com.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: yanh@lemote.com
    Cc: huhb@lemote.com
    Cc: zhangfx@lemote.com
    Patchwork: http://patchwork.linux-mips.org/patch/829/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Replace whitespace by tabs.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: yanh@lemote.com
    Cc: huhb@lemote.com
    Cc: zhangfx@lemote.com
    Patchwork: http://patchwork.linux-mips.org/patch/828/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Changes:

    o Move bus_clock into prom_init_env()
    o Initialize the cpu_clock_freq to the default values for the
    correspoding processor revisions if no such environment variable
    passed by BIOS/Bootloader.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: yanh@lemote.com
    Cc: huhb@lemote.com
    Cc: zhangfx@lemote.com
    Patchwork: http://patchwork.linux-mips.org/patch/826/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • prom_argc and prom_argv are only used by prom_init_cmdline(), move them
    into the function.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Cc: yanh@lemote.com
    Cc: huhb@lemote.com
    Cc: zhangfx@lemote.com
    Patchwork: http://patchwork.linux-mips.org/patch/825/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin