05 Aug, 2010

30 commits

  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • [Ralf: Remove a forgotten -Werror in Pb1200 Makefile.]

    Signed-off-by: Manuel Lauss
    To: Linux-MIPS
    Cc: Sam Ravnborg
    Cc: Manuel Lauss
    Patchwork: https://patchwork.linux-mips.org/patch/1319/
    Signed-off-by: Ralf Baechle

    Manuel Lauss
     
  • Replace deprecated DMA_32BIT_MASK with DMA_BIT_MASK. This is needed because
    the new style platform makefiles will enable -Werror.

    cc1: warnings being treated as errors
    arch/mips/alchemy/devboards/db1200/platform.c:219: error: 'DMA_nnBIT_MASK' is deprecated
    arch/mips/alchemy/devboards/db1200/platform.c:226: error: 'DMA_nnBIT_MASK' is deprecated
    arch/mips/alchemy/devboards/db1200/platform.c:388: error: 'DMA_nnBIT_MASK' is deprecated
    arch/mips/alchemy/devboards/db1200/platform.c:393: error: 'DMA_nnBIT_MASK' is deprecated

    Signed-off-by: FUJITA Tomonori
    To: linux-mips@linux-mips.org
    Acked-by: Manuel Lauss
    Patchwork: https://patchwork.linux-mips.org/patch/1427/
    Signed-off-by: Ralf Baechle

    FUJITA Tomonori
     
  • Preparatory step for moving Alchemy over to new MIPS Platform
    build system support.

    Signed-off-by: Manuel Lauss
    To: Linux-MIPS
    Patchwork: https://patchwork.linux-mips.org/patch/1318/
    Signed-off-by: Ralf Baechle

    Manuel Lauss
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • 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
     
  • Move platform specific definitions to the platfrom directories.

    Each platform shall do the following:
    1) include an entry in arch/mips/Kbuild.platforms
    2) add relevant definitions to arch/mips//Platform

    This commits changes ar7 to the new scheme as an example.

    Introducing a platform speecific Platfrom file has following advantages:
    1) decentralization of platfrom definitions
    2) simplification af arch/mips/Makefile
    3) force all platfrom to build with -Werror (done in arch/mips/Kbuild)

    [Ralf: Remove forgotten -Werror from AR7 Makefile]

    Signed-off-by: Sam Ravnborg
    To: linux-mips
    To: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/1302/
    Patchwork: http://patchwork.linux-mips.org/patch/1308/
    Signed-off-by: Ralf Baechle

    Sam Ravnborg
     
  • Adding subdirs-ccflags-y := -Werror to arch/mips/Kbuild
    let us in one go cover all files with -Werror.

    In addition this allows us to remove the
    individual -Werror definition in various Makefile.

    Adding the definition to Kbuild as a recursive
    option help us not to forget to do so.

    With this change we now compile arch/mips/kernel/cpufreq with -Werror

    One drawback:
    When specifying a subdirectory covered by the Kbuild file like this:

    make arch/mips/kernel/

    then kbuild fails to pick up the -Werror definition.

    Signed-off-by: Sam Ravnborg
    To: linux-mips
    To: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/1301/
    Signed-off-by: Ralf Baechle

    Sam Ravnborg
     
  • Signed-off-by: Sam Ravnborg
    To: linux-mips
    To: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/1300/
    Signed-off-by: Ralf Baechle

    Sam Ravnborg
     
  • arch/mips/sgi-ip27/ip27-klconfig.c:51: ERROR: "foo * bar" should be "foo *bar"
    arch/mips/sgi-ip27/ip27-klconfig.c:63: ERROR: "foo * bar" should be "foo *bar"
    arch/mips/sgi-ip27/ip27-klconfig.c:81: ERROR: "foo * bar" should be "foo *bar"
    arch/mips/sgi-ip27/ip27-klconfig.c:100: ERROR: "foo * bar" should be "foo *bar"

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1278/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/pci/ops-titan-ht.c:36: ERROR: "foo * bar" should be "foo *bar"
    arch/mips/pci/ops-titan-ht.c:68: ERROR: "foo * bar" should be "foo *bar"

    Signed-off-by: Andrea Gelmini
    Cc: Tejun Heo
    Cc: Christoph Lameter
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1277/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/math-emu/sp_tlong.c:75: ERROR: else should follow close brace '}'

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1276/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/math-emu/sp_tint.c:76: ERROR: else should follow close brace '}'

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1275/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/math-emu/sp_modf.c:32: ERROR: "foo * bar" should be "foo *bar"

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1273/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/math-emu/dp_tlong.c:75: ERROR: else should follow close brace '}'

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1272/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/math-emu/dp_tint.c:73: ERROR: else should follow close brace '}'

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1271/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/math-emu/dp_modf.c:32: ERROR: "foo * bar" should be "foo *bar"

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1269/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/dec/promcon.c:37: ERROR: that open brace { should be on the previous line

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1270/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • arch/mips/pmc-sierra/yosemite/ht-irq.c:38: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:39: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:40: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:43: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:44: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:45: ERROR: code indent should use tabs where possible

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1268/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     
  • Correct ASIC device register names and addresses for USB devices.

    Signed-off-by: David VomLehn
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1258/
    Signed-off-by: Ralf Baechle

    David VomLehn
     
  • Replace phys_to_dma()/dma_to_phys() looping algorithm with an O(1) algorithm
    The approach taken is inspired by the sparse memory implementation: take a
    certain number of high-order bits off the address them, use this as an
    index into a table containing an offset to the desired address and add
    it to the original value. There is a table for mapping physical addresses
    to DMA addresses and another one for the reverse mapping. The table sizes
    depend on how fine-grained the mappings need to be; Coarser granularity
    less to smaller tables. On a processor with 32-bit physical and DMA
    addresses, with 4 MIB granularity, memory usage is two 2048-byte arrays.
    Each 32-byte cache line thus covers 64 MiB of address space.

    Also, renames phys_to_bus() to phys_to_dma() and bus_to_phys() to
    dma_to_phys() to align with kernel usage.

    [Ralf: Fixed silly build breakage due to stackoverflow warning caused by
    huge array on stack.]

    Signed-off-by: David VomLehn
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1257/
    Signed-off-by: Ralf Baechle

    David VomLehn
     
  • CC arch/mips/alchemy/mtx-1/board_setup.o
    {standard input}: Assembler messages:
    {standard input}:263: Error: opcode not supported on this processor: mips1 (mips1) `sync'
    {standard input}:274: Error: opcode not supported on this processor: mips1 (mips1) `sync'
    {standard input}:296: Error: opcode not supported on this processor: mips1 (mips1) `sync'
    [...]

    Any .set mipsX statement other than .set mips0 at the end of inline
    assembler is a big fat bug.

    Introduced by 9482eabeca315c0276ffb50026b7482481b7097b (linux-mips.org) rsp.
    32fd6901a6d8d19f94e4de6be4e4b552ab078620 (kernel.org).

    While at it, fix the same issue in

    arch/mips/alchemy/devboards/pb1000/board_setup.c
    arch/mips/alchemy/xxs1500/board_setup.c

    as well.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • B43_pci_bridge is needed to use the b43 driver with brcm47xx. Activate it
    by default if PCI is available.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1510/
    Acked-by: Florian Fainelli
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • The previous patch 4a86f2d27733f610e642649aca3e82e86fca9e22 (lmo) rsp.
    84a6fcb368a080620d12fc4d79e07902dbee7335 (kernel.org) was wrong.

    The BCM47xx architecture maps the ram into a 128MB address space. It
    will be spaced there as often as goes into the 128MB. Detection tries to
    find the position where the same memory is found. When reading beyond
    128MB the processor will throw an exception. If 128MB RAM is installed,
    it will not find a memory alias because it tries to read beyond the 128MB
    border. Now it just assumes 128MB installed ram if it can not find an
    alias.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1508/
    Acked-by: Florian Fainelli
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • When building with a gcc-4.4.x toolchain that is configured to produce
    32-bits executables by default, we will produce __lshrti3 in sched_clock()
    which is never resolved so the kernel fails to link. Unconditionally use
    the inline assembly version as suggested by David Daney, which works around
    the issue.

    Signed-off-by: Florian Fainelli
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1514/
    Acked-by: David Daney
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     
  • Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1515/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • The 'mult' element of struct clock_event_device must never be wider
    than 32-bits. If it were, it would get truncated when used by
    clockevent_delta2ns() when this calls do_div().

    We can meet this requirement by using clockevent_set_clock() to set
    the MULT and SHIFT values.

    Signed-off-by: David Daney
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1253/
    Acked-by: Thomas Gleixner
    Signed-off-by: Ralf Baechle

    David Daney
     
  • The include is unecessary and will when building the IP35 result in
    recursive header inclusion spaghetti.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • With SLAB, it works without ARCH_KMALLOC_MINALIGN, but with SLOB/SLUB,
    ARCH_KMALLOC_MINALIGN is required to ensure alignment of kmalloced
    buffer.

    Signed-off-by: Atsushi Nemoto
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1248/
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     
  • request_region should be used with release_region, not request_mem_region.

    Geert Uytterhoeven pointed out that in the case of drivers/video/gbefb.c,
    the problem is actually the other way around; request_mem_region should be
    used instead of request_region.

    The semantic patch that finds/fixes this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @r1@
    expression start;
    @@

    request_region(start,...)

    @b1@
    expression r1.start;
    @@

    request_mem_region(start,...)

    @depends on !b1@
    expression r1.start;
    expression E;
    @@

    - release_mem_region
    + release_region
    (start,E)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Ralf Baechle

    Julia Lawall
     

02 Aug, 2010

2 commits


31 Jul, 2010

8 commits

  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    cyber2000fb: fix console in truecolor modes
    cyber2000fb: fix machine hang on module load
    SA1111: Eliminate use after free
    ARM: Fix Versatile/Realview/VExpress MMC card detection sense
    ARM: 6279/1: highmem: fix SMP preemption bug in kmap_high_l1_vipt
    ARM: Add barriers to io{read,write}{8,16,32} accessors as well
    ARM: 6273/1: Add barriers to the I/O accessors if ARM_DMA_MEM_BUFFERABLE
    ARM: 6272/1: Convert L2x0 to use the IO relaxed operations
    ARM: 6271/1: Introduce *_relaxed() I/O accessors
    ARM: 6275/1: ux500: don't use writeb() in uncompress.h
    ARM: 6270/1: clean files in arch/arm/boot/compressed/
    ARM: Fix csum_partial_copy_from_user()

    Linus Torvalds
     
  • * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
    NFS: Ensure that writepage respects the nonblock flag
    NFS: kswapd must not block in nfs_release_page
    nfs: include space for the NUL in root path

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm/edid: Fix the HDTV hack sync adjustment
    drm/radeon/kms: fix radeon mid power profile reporting

    Linus Torvalds
     
  • Debian's ia64 autobuilders have been seeing kernel freeze or reboot
    when running the gdb testsuite (Debian bug 588574): dannf bisected to
    2.6.32 62eede62dafb4a6633eae7ffbeb34c60dba5e7b1 "mm: ZERO_PAGE without
    PTE_SPECIAL"; and reproduced it with gdb's gcore on a simple target.

    I'd missed updating the gate_vma handling in __get_user_pages(): that
    happens to use vm_normal_page() (nowadays failing on the zero page),
    yet reported success even when it failed to get a page - boom when
    access_process_vm() tried to copy that to its intermediate buffer.

    Fix this, resisting cleanups: in particular, leave it for now reporting
    success when not asked to get any pages - very probably safe to change,
    but let's not risk it without testing exposure.

    Why did ia64 crash with 16kB pages, but succeed with 64kB pages?
    Because setup_gate() pads each 64kB of its gate area with zero pages.

    Reported-by: Andreas Barth
    Bisected-by: dann frazier
    Signed-off-by: Hugh Dickins
    Tested-by: dann frazier
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • Remove the __exit mark from cifs_exit_dns_resolver() as it's called by the
    module init routine in case of error, and so may have been discarded during
    linkage.

    Signed-off-by: David Howells
    Acked-by: Jeff Layton
    Signed-off-by: Linus Torvalds

    David Howells
     
  • Return value was not set to 0 in setcolreg() with truecolor modes. This causes
    fb_set_cmap() to abort after first color, resulting in blank palette - and
    blank console in 24bpp and 32bpp modes.

    Signed-off-by: Ondrej Zary
    Signed-off-by: Russell King

    Ondrej Zary
     
  • I was testing two CyberPro 2000 based PCI cards on x86 and the machine always
    hanged completely when the cyber2000fb module was loaded. It seems that the
    card hangs when some registers are accessed too quickly after writing RAMDAC
    control register. With this patch, both card work.

    Add delay after RAMDAC control register write to prevent hangs on module load.

    Signed-off-by: Ondrej Zary
    Signed-off-by: Russell King

    Ondrej Zary
     
  • __sa1111_remove always frees its argument, so the subsequent reference to
    sachip->saved_state represents a use after free. __sa1111_remove does not
    appear to use the saved_state field, so the patch simply frees it first.

    A simplified version of the semantic patch that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @@
    expression E,E2;
    @@

    __sa1111_remove(E)
    ...
    (
    E = E2
    |
    * E
    )
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Russell King

    Julia Lawall