20 Jul, 2007

1 commit

  • New arch macro STACK_TOP_MAX it gives the larges valid stack address for the
    architecture in question.

    It differs from STACK_TOP in that it will not distinguish between
    personalities but will always return the largest possible address.

    This is used to create the initial stack on execve, which we will move down to
    the proper location once the binfmt code has figured out where that is.

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Ollie Wild
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     

19 Jul, 2007

5 commits

  • These functions depend on "result" being initalized to 0, but "result"
    is not included as an input constraint to the inline assembly block
    following its initialization, only as an output constraint. Thus gcc
    thinks it doesn't need to initialize it, so result ends up undefined
    if the "unless" condition is true.

    This fixes an oops in sunrpc where the faulty atomics caused
    rpciod_up() to not start the workqueue as it should.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • This patch adds register definitions, clocks and IRQs to the platform devices.

    Signed-off-by: Hans-Christian Egtvedt
    Signed-off-by: Haavard Skinnemoen

    Hans-Christian Egtvedt
     
  • If we let unaligned word loads bypass the generic unaligned handling,
    gcc may combine it with a swap.b instruction and turn it into a ldwsp
    instruction, which does not work with unaligned addresses.

    Revert the optimization to prevent the RNDIS driver from crashing.
    Hopefully we'll figure something out later (it may be better to do the
    optimization in gcc.)

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Split the SM platform device into separate platform devices for PM,
    RTC, WDT and EIC. This is more correct according to the documentation
    and allows us to simplify the code a little.

    Also turn the EIC driver into a real platform driver.

    Signed-off-by: Haavard Skinnemoen
    Acked-by: Hans-Christian Egtvedt

    Haavard Skinnemoen
     
  • Use a more conventional implementation for unaligned access, and include
    an AT32AP-specific optimization: the CPU will handle unaligned words.

    The result is always faster and smaller for 8, 16, and 32 bit values.
    For 64 bit quantities, it's presumably larger.

    Signed-off-by: David Brownell
    Signed-off-by: Haavard Skinnemoen

    David Brownell
     

18 Jul, 2007

2 commits

  • Add function helper, fb_is_primary_device(). Given struct fb_info, it will
    return a nonzero value if the device is the primary display.

    Currently, only the i386 is supported where the function checks for the
    IORESOURCE_ROM_SHADOW flag.

    Signed-off-by: Antonino Daplas
    Cc: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Move arch-specific bits of fb_mmap() to their respective subdirectories

    [bob.picco@hp.com: efi_range_is_wc is referenced but not declared]
    [bunk@stusta.de: fix include/asm-m68k/fb.h]
    Signed-off-by: Antonino Daplas
    Acked-by: David S. Miller
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     

17 Jul, 2007

3 commits

  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (37 commits)
    forcedeth bug fix: realtek phy
    forcedeth bug fix: vitesse phy
    forcedeth bug fix: cicada phy
    atl1: reorder atl1_main functions
    atl1: fix excessively indented code
    atl1: cleanup atl1_main
    atl1: header file cleanup
    atl1: remove irq_sem
    cdc-subset to support new vendor/product ID
    8139cp: implement the missing dev->tx_timeout
    myri10ge: Remove nonsensical limit in the tx done routine
    gianfar: kill unused header
    EP93XX_ETH must select MII
    macb: Add multicast capability
    macb: Use generic PHY layer
    s390: add barriers to qeth driver
    s390: scatter-gather for inbound traffic in qeth driver
    eHEA: Introducing support vor DLPAR memory add
    Fix a potential NULL pointer dereference in free_shared_mem() in drivers/net/s2io.c
    [PATCH] softmac: Fix ESSID problem
    ...

    Linus Torvalds
     
  • Convert the macb driver to use the generic PHY layer in
    drivers/net/phy.

    Signed-off-by: Frederic RODO
    Signed-off-by: Haavard Skinnemoen
    Signed-off-by: Jeff Garzik

    frederic RODO
     
  • Kill pte_rdprotect(), pte_exprotect(), pte_mkread(), pte_mkexec(), pte_read(),
    pte_exec(), and pte_user() except where arch-specific code is making use of
    them.

    Signed-off-by: Jan Beulich
    Cc: Andi Kleen
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Beulich
     

11 Jul, 2007

1 commit

  • Add the termios2 structure ready for enabling on most platforms. One or
    two like Sparc are plain weird so have been left alone. Most can use the
    same structure as ktermios for termios2 (ie the newer ioctl uses the
    structure matching the current kernel structure)

    Signed-off-by: Alan Cox
    Cc: Bryan Wu
    Cc: Ian Molton
    Cc: Haavard Skinnemoen
    Cc: Yoshinori Sato
    Cc: Mikael Starvik
    Cc: David Howells
    Cc: "Luck, Tony"
    Cc: Hirokazu Takata
    Cc: Geert Uytterhoeven
    Cc: Roman Zippel
    Cc: Ralf Baechle
    Cc: Kyle McMartin
    Cc: Matthew Wilcox
    Cc: Heiko Carstens
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: Kazumoto Kojima
    Cc: Richard Curnow
    Cc: Miles Bader
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     

15 Jun, 2007

2 commits


15 May, 2007

1 commit


13 May, 2007

3 commits

  • Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Avoid the costly notifier list in the pagefault path and call
    the kprobes code directly. The same change went into the 2.6.22
    cycle for powerpc, 2s390 and sparc64 already.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Haavard Skinnemoen

    Christoph Hellwig
     
  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (30 commits)
    [ARM] Use new get_irqnr_preamble
    [ARM] Ensure machine class menu is sorted alphabetically
    [ARM] 4333/2: KS8695: Micrel Development board
    [ARM] 4332/2: KS8695: Serial driver
    [ARM] 4331/3: Support for Micrel/Kendin KS8695 processor
    [ARM] 4371/1: AT91: Support for Atmel AT91SAM9RL-EK development board
    [ARM] 4372/1: Define byte sizes in asm-arm/sizes.h
    [ARM] 4370/3: AT91: Support for Atmel AT91SAM9RL processors.
    [ARM] Update mach-types
    [ARM] export symbol csum_partial_copy_from_user
    [ARM] iop13xx: msi support
    [ARM] stacktrace fix
    [ARM] Spinlock initializer cleanup
    [ARM] remove useless config option GENERIC_BUST_SPINLOCK
    [ARM] 4303/3: base kernel support for TI DaVinci
    [ARM] 4369/1: AT91: Fix circular dependency in header files
    [ARM] 4368/1: S3C24xx: build fix
    [ARM] 4364/1: AT91: LEDS on AT91SAM9261-EK
    [ARM] Fix iop32x/iop33x build
    [ARM] EBSA110: fix build errors caused by missing "const"
    ...

    Linus Torvalds
     

12 May, 2007

1 commit


11 May, 2007

1 commit

  • These files are almost all the same.

    This patch could be made even simpler if we don't mind POLLREMOVE turning
    up in a few architectures that didn't have it previously (which should be
    OK as POLLREMOVE is not used anywhere in the current tree).

    Signed-off-by: Stephen Rothwell
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     

10 May, 2007

2 commits

  • * 'for-linus' of git://www.atmel.no/~hskinnemoen/linux/kernel/avr32:
    [AVR32] Wire up sys_utimensat
    [AVR32] Fix section mismatch .taglist -> .init.text
    [AVR32] Implement dma_{alloc,free}_writecombine()
    AVR32: Spinlock initializer cleanup
    [AVR32] Use correct config symbol when setting cpuflags

    Linus Torvalds
     
  • Several drivers shared between AT91 and AVR32 chips use cpu_is_xxx()
    to handle CPU-specific differences. Currently, such code needs to be
    inside #ifdef CONFIG_ARCH_AT91 because the macros don't exist on AVR32.

    By defining the same macros on both AT91 and AVR32, these #ifdefs can
    be eliminated. Since the macros will evaluate to a constant value for
    CPUs that aren't supported by the current architecture, any code that
    is only needed on AT91 will be optimized away on AVR32 and vice versa.

    Signed-off-by: Haavard Skinnemoen
    Cc: David Brownell
    Acked-by: Andrew Victor
    Cc: Nicolas Ferre
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Haavard Skinnemoen
     

09 May, 2007

4 commits

  • Tested with a slightly hacked version of the test case included with
    the original utimensat patch. All OK.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Rename .taglist to .taglist.init to silence section mismatch warnings.
    The .taglist.init section was already placed in the .init output
    section along with .init.text, so the warning didn't indicate any real
    problems.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Most architectures defined three macros, MK_IOSPACE_PFN(), GET_IOSPACE()
    and GET_PFN() in pgtable.h. However, the only callers of any of these
    macros are in Sparc specific code, either in arch/sparc, arch/sparc64 or
    drivers/sbus.

    This patch removes the redundant macros from all architectures except
    sparc and sparc64.

    Signed-off-by: David Gibson
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Gibson
     
  • This patch moves the die notifier handling to common code. Previous
    various architectures had exactly the same code for it. Note that the new
    code is compiled unconditionally, this should be understood as an appel to
    the other architecture maintainer to implement support for it aswell (aka
    sprinkling a notify_die or two in the proper place)

    arm had a notifiy_die that did something totally different, I renamed it to
    arm_notify_die as part of the patch and made it static to the file it's
    declared and used at. avr32 used to pass slightly less information through
    this interface and I brought it into line with the other architectures.

    [akpm@linux-foundation.org: build fix]
    [akpm@linux-foundation.org: fix vmalloc_sync_all bustage]
    [bryan.wu@analog.com: fix vmalloc_sync_all in nommu]
    Signed-off-by: Christoph Hellwig
    Cc:
    Cc: Russell King
    Signed-off-by: Bryan Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

06 May, 2007

1 commit

  • * 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6: (231 commits)
    [PATCH] i386: Don't delete cpu_devs data to identify different x86 types in late_initcall
    [PATCH] i386: type may be unused
    [PATCH] i386: Some additional chipset register values validation.
    [PATCH] i386: Add missing !X86_PAE dependincy to the 2G/2G split.
    [PATCH] x86-64: Don't exclude asm-offsets.c in Documentation/dontdiff
    [PATCH] i386: avoid redundant preempt_disable in __unlazy_fpu
    [PATCH] i386: white space fixes in i387.h
    [PATCH] i386: Drop noisy e820 debugging printks
    [PATCH] x86-64: Fix allnoconfig error in genapic_flat.c
    [PATCH] x86-64: Shut up warnings for vfat compat ioctls on other file systems
    [PATCH] x86-64: Share identical video.S between i386 and x86-64
    [PATCH] x86-64: Remove CONFIG_REORDER
    [PATCH] x86-64: Print type and size correctly for unknown compat ioctls
    [PATCH] i386: Remove copy_*_user BUG_ONs for (size < 0)
    [PATCH] i386: Little cleanups in smpboot.c
    [PATCH] x86-64: Don't enable NUMA for a single node in K8 NUMA scanning
    [PATCH] x86: Use RDTSCP for synchronous get_cycles if possible
    [PATCH] i386: Add X86_FEATURE_RDTSCP
    [PATCH] i386: Implement X86_FEATURE_SYNC_RDTSC on i386
    [PATCH] i386: Implement alternative_io for i386
    ...

    Fix up trivial conflict in include/linux/highmem.h manually.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

03 May, 2007

2 commits

  • Most architectures' scatterlist.h use the type dma_addr_t, but omit to
    include which defines it. This could lead to build failures,
    so let's add the missing includes.

    Signed-off-by: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Add hooks to allow a paravirt implementation to track the lifetime of
    an mm. Paravirtualization requires three hooks, but only two are
    needed in common code. They are:

    arch_dup_mmap, which is called when a new mmap is created at fork

    arch_exit_mmap, which is called when the last process reference to an
    mm is dropped, which typically happens on exit and exec.

    The third hook is activate_mm, which is called from the arch-specific
    activate_mm() macro/function, and so doesn't need stub versions for
    other architectures. It's called when an mm is first used.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Andi Kleen
    Cc: linux-arch@vger.kernel.org
    Cc: James Bottomley
    Acked-by: Ingo Molnar

    Jeremy Fitzhardinge
     

28 Apr, 2007

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (448 commits)
    [IPV4] nl_fib_lookup: Initialise res.r before fib_res_put(&res)
    [IPV6]: Fix thinko in ipv6_rthdr_rcv() changes.
    [IPV4]: Add multipath cached to feature-removal-schedule.txt
    [WIRELESS] cfg80211: Clarify locking comment.
    [WIRELESS] cfg80211: Fix locking in wiphy_new.
    [WEXT] net_device: Don't include wext bits if not required.
    [WEXT]: Misc code cleanups.
    [WEXT]: Reduce inline abuse.
    [WEXT]: Move EXPORT_SYMBOL statements where they belong.
    [WEXT]: Cleanup early ioctl call path.
    [WEXT]: Remove options.
    [WEXT]: Remove dead debug code.
    [WEXT]: Clean up how wext is called.
    [WEXT]: Move to net/wireless
    [AFS]: Eliminate cmpxchg() usage in vlocation code.
    [RXRPC]: Fix pointers passed to bitops.
    [RXRPC]: Remove bogus atomic_* overrides.
    [AFS]: Fix u64 printing in debug logging.
    [AFS]: Add "directory write" support.
    [AFS]: Implement the CB.InitCallBackState3 operation.
    ...

    Linus Torvalds
     

27 Apr, 2007

10 commits