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

13 commits

  • gcc 4.1 doesn't seem to like const variables as inline assembly
    outputs. Drop support for reading 64-bit values using get_user() so
    that we can use an unsigned long to hold the result regardless of the
    actual size. This should be safe since many architectures, including
    i386, doesn't support reading 64-bit values with get_user().

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • This int cast is superfluous since system.h cmpxchg already casts it in
    (typeof(*(ptr))).

    Signed-off-by: Mathieu Desnoyers
    Signed-off-by: Andrew Morton
    Signed-off-by: Haavard Skinnemoen

    Mathieu Desnoyers
     
  • Using readb/writeb to implement these breaks NOR flash support. I
    can't see any reason why regular memcpy and memset shouldn't work.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Since the core setup code takes care of both allocation and
    reservation of framebuffer memory, there's no need for this board-
    specific hook anymore. Replace it with two global variables,
    fbmem_start and fbmem_size, which can be used directly.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Use struct resource to specify both physical memory regions and
    reserved regions and push everything into the same framework,
    including kernel code/data and initrd memory. This allows us to get
    rid of many special cases in the bootmem initialization and will also
    make it easier to implement more robust handling of framebuffer
    memory later.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Fix the I/O access macros so that they work with externally connected
    devices accessed in little-endian mode over any bus width:

    * Use a set of macros to define I/O port- and memory operations
    borrowed from MIPS.
    * Allow subarchitecture to specify address- and data-mangling
    * Implement at32ap-specific port mangling (with build-time
    configurable bus width. Only one bus width at a time supported
    for now.)
    * Rewrite iowriteN and friends to use write[bwl] and friends
    (not the __raw counterparts.)

    This has been tested using pata_pcmcia to access a CompactFlash card
    connected to the EBI (16-bit bus width.)

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • * Use generic BUG() handling
    * Remove some useless debug statements
    * Use a common function _exception() to send signals or oops when
    an exception can't be handled. This makes sure init doesn't
    enter an infinite exception loop as well. Borrowed from powerpc.
    * Add some basic exception tracing support to the page fault code.
    * Rework dump_stack(), show_regs() and friends and move everything
    into process.c
    * Print information about configuration options and chip type when
    oopsing

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Clean up the cpu identification code, using definitions from
    instead of hardcoded constants. Also, add a features
    bitmap to struct avr32_cpuinfo to allow other code to make decisions
    based upon what the running cpu is actually capable of.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Fix indentation and remove spurious comments in asm-avr32/sysreg.h

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • This patch puts the CPU in sleep 0 when doing nothing, idle. This will
    turn of the CPU clock and thus save power. The CPU is waken again when
    an interrupt occurs.

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

    Hans-Christian Egtvedt
     
  • Due to limitation of the count-compare system timer (not able to
    count when CPU is in sleep), the system timer had to be changed to
    use a peripheral timer/counter.

    The old COUNT-COMPARE code is still present in time.c as weak
    functions. The new timer is added to the architecture directory.

    This patch sets up TC0 as system timer The new timer has been tested
    on AT32AP7000/ATSTK1000 at 100 Hz, 250 Hz, 300 Hz and 1000 Hz.

    For more details about the timer/counter see the datasheet for
    AT32AP700x available at

    http://www.atmel.com/dyn/products/product_card.asp?part_id=3903

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

    Hans-Christian Egtvedt
     
  • Complete the SMC configuration code by adding nwait and tdf
    parameter. After this change, we support the same parameters as the
    hardware.

    Signed-off-by: Haavard Skinnemoen

    Hans-Christian Egtvedt
     

26 Apr, 2007

2 commits

  • Now that network timestamps use ktime_t infrastructure, we can add a new
    SOL_SOCKET sockopt SO_TIMESTAMPNS.

    This command is similar to SO_TIMESTAMP, but permits transmission of
    a 'timespec struct' instead of a 'timeval struct' control message.
    (nanosecond resolution instead of microsecond)

    Control message is labelled SCM_TIMESTAMPNS instead of SCM_TIMESTAMP

    A socket cannot mix SO_TIMESTAMP and SO_TIMESTAMPNS : the two modes are
    mutually exclusive.

    sock_recv_timestamp() became too big to be fully inlined so I added a
    __sock_recv_timestamp() helper function.

    Signed-off-by: Eric Dumazet
    CC: linux-arch@vger.kernel.org
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Now network timestamps use ktime_t infrastructure, we can add a new
    ioctl() SIOCGSTAMPNS command to get timestamps in 'struct timespec'.
    User programs can thus access to nanosecond resolution.

    Signed-off-by: Eric Dumazet
    CC: Stephen Hemminger
    Signed-off-by: David S. Miller

    Eric Dumazet
     

17 Mar, 2007

1 commit

  • It's been pointed out that output GPIOs should have an initial value, to
    avoid signal glitching ... among other things, it can be some time before
    a driver is ready. This patch corrects that oversight, fixing

    - documentation
    - platforms supporting the GPIO interface
    - users of that call (just one for now, others are pending)

    There's only one user of this call for now since most platforms are still
    using non-generic GPIO setup code, which in most cases already couples the
    initial value with its "set output mode" request.

    Note that most platforms are clear about the hardware letting the output
    value be set before the pin direction is changed, but the s3c241x docs are
    vague on that topic ... so those chips might not avoid the glitches.

    Signed-off-by: David Brownell
    Acked-by: Andrew Victor
    Acked-by: Milan Svoboda
    Acked-by: Haavard Skinnemoen
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

07 Mar, 2007

2 commits

  • Added dma_sync_single_range_for_cpu/device to dma-mapping.h in asm-avr32 to
    call dma_sync_single_for_cpu/device. This patch enables b44 to compile on
    systems with these cpus. This patch was created with the assumption that
    another method of dma_sync_single_range_for_cpu/device does not exist on these
    architectures.

    Signed-off by: Gary Zambrano
    Signed-off-by: Andrew Morton
    Signed-off-by: Haavard Skinnemoen

    Gary Zambrano
     
  • It's header-y, not headers-y.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     

20 Feb, 2007

1 commit

  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (117 commits)
    [ARM] 4058/2: iop32x: set ->broken_parity_status on n2100 onboard r8169 ports
    [ARM] 4140/1: AACI stability add ac97 timeout and retries
    [ARM] 4139/1: AACI record support
    [ARM] 4138/1: AACI: multiple channel support for IRQ handling
    [ARM] 4211/1: Provide a defconfig for ns9xxx
    [ARM] 4210/1: base for new machine type "NetSilicon NS9360"
    [ARM] 4222/1: S3C2443: Remove reference to missing S3C2443_PM
    [ARM] 4221/1: S3C2443: DMA support
    [ARM] 4220/1: S3C24XX: DMA system initialised from sysdev
    [ARM] 4219/1: S3C2443: DMA source definitions
    [ARM] 4218/1: S3C2412: fix CONFIG_CPU_S3C2412_ONLY wrt to S3C2443
    [ARM] 4217/1: S3C24XX: remove the dma channel show at startup
    [ARM] 4090/2: avoid clash between PXA and SA1111 defines
    [ARM] 4216/1: add .gitignore entries for ARM specific files
    [ARM] 4214/2: S3C2410: Add Armzone QT2410
    [ARM] 4215/1: s3c2410 usb device: per-platform vbus_draw
    [ARM] 4213/1: S3C2410 - Update definition of ADCTSC_XY_PST
    [ARM] 4098/1: ARM: rtc_lock only used with rtc_cmos
    [ARM] 4137/1: Add kexec support
    [ARM] 4201/1: SMP barriers pair needed for the secondary boot process
    ...

    Fix up conflict due to typedef removal in sound/arm/aaci.h

    Linus Torvalds
     

16 Feb, 2007

4 commits


12 Feb, 2007

1 commit

  • The line discipline numbers N_* are currently defined for each architecture
    individually, but (except for a seeming mistake) identically, in
    asm/termios.h. There is no obvious reason why these numbers should be
    architecture specific, nor any apparent relationship with the termios
    structure. The total number of these, NR_LDISCS, is defined in linux/tty.h
    anyway. So I propose the following patch which moves the definitions of
    the individual line disciplines to linux/tty.h too.

    Three of these numbers (N_MASC, N_PROFIBUS_FDL, and N_SMSBLOCK) are unused
    in the current kernel, but the patch still keeps the complete set in case
    there are plans to use them yet.

    Signed-off-by: Tilman Schmidt
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tilman Schmidt