20 Oct, 2008

1 commit

  • Changes mips to use the new bcd2bin/bin2bcd functions instead of the
    obsolete BCD_TO_BIN/BIN_TO_BCD/BCD2BIN/BIN2BCD macros.

    Signed-off-by: Adrian Bunk
    Cc: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

29 Apr, 2008

2 commits


29 Jan, 2008

1 commit


12 Oct, 2007

4 commits


20 Sep, 2007

1 commit


01 Aug, 2007

1 commit


11 Jul, 2007

2 commits

  • This is an optimised implementation of early printk() for the DECstation.
    After the recent conversion to a MIPS-specific generic routine using a
    character-by-character output the performance dropped significantly.
    This change reverts to the previous speed -- even at 9600 bps of the
    serial console the difference is visible with a naked eye; I presume for a
    framebuffer it is even worse (it may depend on exactly which one is used
    though).

    Additionally the change includes a fix for a problem that the old
    implementation had -- the format used would not actually limit the length
    of the string output. This new implementation uses a local buffer to deal
    with it -- even with this additional copying it is much faster than the
    generic function.

    Plus this driver is registered much earlier than the generic one,
    allowing one to see critical messages, such as one about an incorrect CPU
    setting used, that are produced beforehand. :-)

    Signed-off-by: Maciej W. Rozycki
    Signed-off-by: Ralf Baechle

    Maciej W. Rozycki
     
  • Convert old/obsolete NORET_TYPE and ATTRIB_NORET macros to use the
    newer standard of "__noreturn" as defined in compiler-gcc.h.

    Signed-off-by: Robert P. J. Day
    Signed-off-by: Ralf Baechle

    Robert P. J. Day
     

09 Mar, 2007

1 commit


05 Mar, 2007

2 commits


27 Feb, 2007

1 commit

  • Many Makefiles in arch/mips have EXTRA_AFLAGS := $(CFLAGS) line. This
    is redundant while AFLAGS contains $(cflags-y) and any options only
    listed in CFLAGS (not in cflags-y) should be unnecessary for asm
    sources.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

14 Feb, 2007

1 commit

  • When I post a patch (commit f431baa55abf8adeed0c718b51deacbc151f58f1),
    I just tried to not change behavior of existing codes, but it seems
    dec/int-handler.S had been broken since its previous commit
    937a801576f954bd030d7c4a5a94571710d87c0b.

    The caller of plat_irq_dispatch do setup/restore TI_REGS($28), so
    dec's plat_irq_dispatch should not do it, and there is no need to
    adjust RA.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

10 Feb, 2007

1 commit

  • This is the platform-specific part of TURBOchannel bus support for the
    DECstation. It implements determining whether the bus is actually there,
    getting bus parameters, IRQ assignments for devices and protected accesses
    to possibly unoccupied slots that may trigger bus error exceptions.

    Signed-off-by: Maciej W. Rozycki
    Signed-off-by: Andrew Morton
    Signed-off-by: Ralf Baechle

    Maciej W. Rozycki
     

07 Feb, 2007

3 commits

  • The "typename" field was obsoleted by the "name" field.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Current prom_free_prom_memory() implementations are almost same as
    free_init_pages(), or no-op. Make free_init_pages() extern (again)
    and make prom_free_prom_memory() use it.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • The irq_base for {mips,rm7k,rm9k}_cpu_irq_init() are constant on all
    platforms and are same value on most platforms (0 or 16, depends on
    CONFIG_I8259). Define them in asm-mips/mach-generic/irq.h and make
    them customizable. This will save a few cycle on each CPU interrupt.

    A good side effect is removing some dependencies to MALTA in generic
    SMTC code.

    Although MIPS_CPU_IRQ_BASE is customizable, this patch changes irq
    mappings on DDB5477, EMMA2RH and MIPS_SIM, since really customizing
    them might cause some header dependency problem and there seems no
    good reason to customize it. So currently only VR41XX is using custom
    MIPS_CPU_IRQ_BASE value, which is 0 regardless of CONFIG_I8259.

    Testing this patch on those platforms is greatly appreciated. Thank
    you.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

25 Jan, 2007

1 commit


07 Dec, 2006

3 commits


30 Nov, 2006

4 commits

  • Make clocksource_mips public and get rid of mips_hpt_read,
    mips_hpt_mask.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Now we have both function and macro version of do_IRQ() and the former
    is used only by DEC and non-preemptive kernel. This patch makes
    everyone use the macro version and removes the function version.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • Further incorporation of generic irq framework. Replacing __do_IRQ()
    by proper flow handler would make the irq handling path a bit simpler
    and faster.

    * use generic_handle_irq() instead of __do_IRQ().
    * use handle_level_irq for obvious level-type irq chips.
    * use handle_percpu_irq for irqs marked as IRQ_PER_CPU.
    * setup .eoi routine for irq chips possibly used with handle_percpu_irq.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • This is a big irq cleanup patch.

    * Use set_irq_chip() to register irq_chip.
    * Initialize .mask, .unmask, .mask_ack field. Functions for these
    method are already exist in most case.
    * Do not initialize .startup, .shutdown, .enable, .disable fields if
    default routines provided by irq_chip_set_defaults() were suitable.
    * Remove redundant irq_desc initializations.
    * Remove unnecessary local_irq_save/local_irq_restore, spin_lock.

    With this cleanup, it would be easy to switch to slightly lightwait
    irq flow handlers (handle_level_irq(), etc.) instead of __do_IRQ().

    Though whole this patch is quite large, changes in each irq_chip are
    not quite simple. Please review and test on your platform. Thanks.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

01 Nov, 2006

1 commit

  • Since we already moved to GENERIC_TIME, we should implement alternatives
    of old do_gettimeoffset routines to get sub-jiffies resolution from
    gettimeofday(). This patch includes:

    * MIPS clocksource support (based on works by Manish Lachwani).
    * remove unused gettimeoffset routines and related codes.
    * remove unised 64bit do_div64_32().
    * simplify mips_hpt_init. (no argument needed, __init tag)
    * simplify c0_hpt_timer_init. (no need to write to c0_count)
    * remove some hpt_init routines.
    * mips_hpt_mask variable to specify bitmask of hpt value.
    * convert jmr3927_do_gettimeoffset to jmr3927_hpt_read.
    * convert ip27_do_gettimeoffset to ip27_hpt_read.
    * convert bcm1480_do_gettimeoffset to bcm1480_hpt_read.
    * simplify sb1250 hpt functions. (no need to subtract and shift)

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

10 Oct, 2006

1 commit

  • Make sure that RA on top of interrupt stack is an address of ret_from_irq,
    so that dump_stack etc. can trace info interrupted context.

    Also this patch fixes except_vec_vi_handler and __smtc_ipi_vector which
    seems broken.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

09 Oct, 2006

3 commits


08 Oct, 2006

1 commit


04 Oct, 2006

4 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (39 commits)
    Add missing maintainer countries in CREDITS
    Fix bytes kilobytes typo in Kconfig for ramdisk
    fix a typo in Documentation/pi-futex.txt
    BUG_ON conversion for fs/xfs/
    BUG_ON() conversion in fs/nfsd/
    BUG_ON conversion for fs/reiserfs
    BUG_ON cleanups in arch/i386
    BUG_ON cleanup in drivers/net/tokenring/
    BUG_ON cleanup for drivers/md/
    kerneldoc-typo in led-class.c
    debugfs: spelling fix
    rcutorture: Fix incorrect description of default for nreaders parameter
    parport: Remove space in function calls
    Michal Wronski: update contact info
    Spelling fix: "control" instead of "cotrol"
    reboot parameter in Documentation/kernel-parameters.txt
    Fix copy&waste bug in comment in scripts/kernel-doc
    remove duplicate "until" from kernel/workqueue.c
    ite_gpio fix tabbage
    fix file specification in comments
    ...

    Fixed trivial path conflicts due to removed files:
    arch/mips/dec/boot/decstation.c, drivers/char/ite_gpio.c

    Linus Torvalds
     
  • Many files include the filename at the beginning, serveral used a wrong one.

    Signed-off-by: Uwe Zeisberger
    Signed-off-by: Adrian Bunk

    Uwe Zeisberger
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Code in arch/mips/dec/boot/ has been dead for long. Let's get rid of it
    before some epidemic spreads.

    Signed-off-by: Maciej W. Rozycki
    Signed-off-by: Ralf Baechle

    Maciej W. Rozycki
     

14 Jul, 2006

1 commit