08 Oct, 2009

1 commit

  • UDP_HTABLE_SIZE was initialy defined to 128, which is a bit small for
    several setups.

    4000 active UDP sockets -> 32 sockets per chain in average. An
    incoming frame has to lookup all sockets to find best match, so long
    chains hurt latency.

    Instead of a fixed size hash table that cant be perfect for every
    needs, let UDP stack choose its table size at boot time like tcp/ip
    route, using alloc_large_system_hash() helper

    Add an optional boot parameter, uhash_entries=x so that an admin can
    force a size between 256 and 65536 if needed, like thash_entries and
    rhash_entries.

    dmesg logs two new lines :
    [ 0.647039] UDP hash table entries: 512 (order: 0, 4096 bytes)
    [ 0.647099] UDP Lite hash table entries: 512 (order: 0, 4096 bytes)

    Maximal size on 64bit arches would be 65536 slots, ie 1 MBytes for non
    debugging spinlocks.

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

07 Oct, 2009

5 commits

  • On Friday 02 October 2009 20:53:51 you wrote:

    > This is good although I would have shortened the name.

    Ah, I knew I forgot something :) Here is v4.

    tavi

    >From 24d96d825b9fa832b22878cc6c990d5711968734 Mon Sep 17 00:00:00 2001
    From: Octavian Purdila
    Date: Fri, 2 Oct 2009 00:51:15 +0300
    Subject: [PATCH] ipv6: new sysctl for sending TLLAO with unicast NAs

    Neighbor advertisements responding to unicast neighbor solicitations
    did not include the target link-layer address option. This patch adds
    a new sysctl option (disabled by default) which controls whether this
    option should be sent even with unicast NAs.

    The need for this arose because certain routers expect the TLLAO in
    some situations even as a response to unicast NS packets.

    Moreover, RFC 2461 recommends sending this to avoid a race condition
    (section 4.4, Target link-layer address)

    Signed-off-by: Cosmin Ratiu
    Signed-off-by: Octavian Purdila
    Signed-off-by: David S. Miller

    Octavian Purdila
     
  • In some cases there is not desirable to switch back to primary interface when
    it's link recovers and rather stay with currently active one. We need to avoid
    packetloss as much as we can in some cases. This is solved by introducing
    primary_reselect option. Note that enslaved primary slave is set as current
    active no matter what.

    Patch modified by Jay Vosburgh as follows: fixed bug in action
    after change of option setting via sysfs, revised the documentation
    update, and bumped the bonding version number.

    Signed-off-by: Jiri Pirko
    Signed-off-by: Jay Vosburgh
    Signed-off-by: David S. Miller

    Jiri Pirko
     
  • Add a Kernel CAPI interface to the Gigaset driver.

    Impact: optional new functionality
    Signed-off-by: Tilman Schmidt
    Signed-off-by: David S. Miller

    Tilman Schmidt
     
  • David S. Miller
     
  • - Note that send_message() may be called in interrupt context.
    - Describe the storage of CAPI messages and payload data in SKBs.
    - Add more details to the description of the _cmsg structure.
    - Describe kernelcapi debugging output.

    Impact: documentation
    Signed-off-by: Tilman Schmidt
    Signed-off-by: David S. Miller

    Tilman Schmidt
     

05 Oct, 2009

8 commits

  • It is not currently possible to instruct pktgen to use one selected tx queue.

    When Robert added multiqueue support in commit 45b270f8, he added
    an interval (queue_map_min, queue_map_max), and his code doesnt take
    into account the case of min = max, to select one tx queue exactly.

    I suspect a high performance setup on a eight txqueue device wants
    to use exactly eight cpus, and assign one tx queue to each sender.

    This patchs makes pktgen select the right tx queue, not the first one.

    Also updates Documentation to reflect Robert changes.

    Signed-off-by: Eric Dumazet
    Signed-off-by: Robert Olsson
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    macintosh: Don't assume i2c device probing always succeeds
    i2c: Hide probe errors caused by ACPI resource conflicts
    i2c: Minor documentation update
    mfd: AB3100 drop unused module parameters
    Staging: IIO: tsl2561: Drop unused module parameters
    leds: leds-pca9532 - Drop unused module parameters
    ltc4215/ltc4245: Discard obsolete detect methods
    ds2482: Discard obsolete detect method
    max6875: Discard obsolete detect method
    i2c: Move misc devices documentation

    Linus Torvalds
     
  • The sysfs path to i2c adapters has changed recently, update the
    documentation to reflect that change.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • There is no point in implementing a detect callback for the LTC4215
    and LTC4245, as these devices can't be detected. It was there solely
    to handle "force" module parameters to instantiate devices, but now
    we have a better sysfs interface that can do the same.

    So we can get rid of the ugly module parameters and the detect
    callbacks. This shrinks the binary module sizes by 36% and 46%,
    respectively.

    Signed-off-by: Jean Delvare
    Cc: Ira W. Snyder

    Jean Delvare
     
  • There is no point in implementing a detect callback for the DS2482, as
    this device can't be detected. It was there solely to handle "force"
    module parameters to instantiate devices, but now we have a better sysfs
    interface that can do the same.

    So we can get rid of the ugly module parameters and the detect callback.
    This shrinks the binary module size by 21%.

    Signed-off-by: Jean Delvare
    Acked-by: Ben Gardner

    Jean Delvare
     
  • There is no point in implementing a detect callback for the MAX6875, as
    this device can't be detected. It was there solely to handle "force"
    module parameters to instantiate devices, but now we have a better sysfs
    interface that can do the same.

    So we can get rid of the ugly module parameters and the detect callback.
    This basically divides the binary module size by 2.

    Signed-off-by: Jean Delvare
    Acked-by: Wolfram Sang
    Acked-by: Ben Gardner

    Jean Delvare
     
  • Some times ago the eeprom and max6875 drivers moved to
    drivers/misc/eeprom, but their documentation did not follow. It's
    finally time to get rid of Documentation/i2c/chips.

    Signed-off-by: Jean Delvare
    Cc: Ben Gardner
    Acked-by: Wolfram Sang

    Jean Delvare
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block: (41 commits)
    Revert "Seperate read and write statistics of in_flight requests"
    cfq-iosched: don't delay async queue if it hasn't dispatched at all
    block: Topology ioctls
    cfq-iosched: use assigned slice sync value, not default
    cfq-iosched: rename 'desktop' sysfs entry to 'low_latency'
    cfq-iosched: implement slower async initiate and queue ramp up
    cfq-iosched: delay async IO dispatch, if sync IO was just done
    cfq-iosched: add a knob for desktop interactiveness
    Add a tracepoint for block request remapping
    block: allow large discard requests
    block: use normal I/O path for discard requests
    swapfile: avoid NULL pointer dereference in swapon when s_bdev is NULL
    fs/bio.c: move EXPORT* macros to line after function
    Add missing blk_trace_remove_sysfs to be in pair with blk_trace_init_sysfs
    cciss: fix build when !PROC_FS
    block: Do not clamp max_hw_sectors for stacking devices
    block: Set max_sectors correctly for stacking devices
    cciss: cciss_host_attr_groups should be const
    cciss: Dynamically allocate the drive_info_struct for each logical drive.
    cciss: Add usage_count attribute to each logical drive in /sys
    ...

    Linus Torvalds
     

04 Oct, 2009

2 commits

  • * 'for-linus' of ssh://master.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (21 commits)
    ALSA: usb - Use strlcat() correctly
    ALSA: Fix invalid __exit in sound/mips/*.c
    ALSA: hda - Fix / improve ALC66x parser
    ALSA: ctxfi: Swapped SURROUND-SIDE mute
    sound: Make keywest_driver static
    ALSA: intel8x0 - Mute External Amplifier by default for Sony VAIO VGN-B1VP
    ALSA: hda - Fix digita/analog mic auto-switching with IDT codecs
    ASoC: fix kconfig order of Blackfin drivers
    ALSA: hda - Added quirk to enable sound on Toshiba NB200
    ASoC: Fix dependency of CONFIG_SND_PXA2XX_SOC_IMOTE2
    ALSA: Don't assume i2c device probing always succeeds
    ALSA: intel8x0 - Mute External Amplifier by default for Sony VAIO VGN-T350P
    ALSA: echoaudio - Re-enable the line-out control for the Mia card
    ALSA: hda - Resurrect input-source mixer of ALC268 model=acer
    ALSA: hda - Analog Devices AD1984A add HP Touchsmart model
    ALSA: hda - Add HP Pavilion dv4t-1300 to MSI whitelist
    ALSA: hda - CD-audio sound for hda-intel conexant benq laptop
    ASoC: DaVinci: Correct McASP FIFO initialization
    ASoC: Davinci: Fix race with cpu_dai->dma_data
    ASoC: DaVinci: Fix divide by zero error during 1st execution
    ...

    Linus Torvalds
     
  • Takashi Iwai
     

03 Oct, 2009

4 commits

  • * master.kernel.org:/home/rmk/linux-2.6-arm: (25 commits)
    ARM: 5728/1: Proper prefetch abort handling on ARMv6 and ARMv7
    ARM: 5727/1: Pass IFSR register to do_PrefetchAbort()
    ARM: 5740/1: fix valid_phys_addr_range() range check
    ARM: 5739/1: ARM: allow empty ATAG_CORE
    ARM: 5735/1: sa1111: CodingStyle cleanups
    ARM: 5738/1: Correct TCM documentation
    ARM: 5734/1: arm: fix compilation of entry-common.S for older CPUs
    ARM: 5733/1: fix bcmring compile error
    ARM: 5732/1: remove redundant include file
    ARM: 5731/2: Fix U300 generic GPIO, remove ifdefs from MMCI v3
    ARM: Ensure do_cache_op takes mmap_sem
    ARM: Fix __cpuexit section mismatch warnings
    ARM: Don't allow highmem on SMP platforms without h/w TLB ops broadcast
    ARM: includecheck fix: mach-davinci, board-dm365-evm.c
    ARM: Remove unused CONFIG SA1100_H3XXX
    ARM: Fix warning: unused variable 'highmem'
    ARM: Fix warning: #warning syscall migrate_pages not implemented
    ARM: Fix SA11x0 clocksource warning
    ARM: Fix SA1100 Neponset serial section mismatch
    ARM: Fix SA1100 Assabet/Neponset PCMCIA section mismatch warnings
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (46 commits)
    cnic: Fix NETDEV_UP event processing.
    uvesafb/connector: Disallow unpliviged users to send netlink packets
    pohmelfs/connector: Disallow unpliviged users to configure pohmelfs
    dst/connector: Disallow unpliviged users to configure dst
    dm/connector: Only process connector packages from privileged processes
    connector: Removed the destruct_data callback since it is always kfree_skb()
    connector/dm: Fixed a compilation warning
    connector: Provide the sender's credentials to the callback
    connector: Keep the skb in cn_callback_data
    e1000e/igb/ixgbe: Don't report an error if devices don't support AER
    net: Fix wrong sizeof
    net: splice() from tcp to pipe should take into account O_NONBLOCK
    net: Use sk_mark for routing lookup in more places
    sky2: irqname based on pci address
    skge: use unique IRQ name
    IPv4 TCP fails to send window scale option when window scale is zero
    net/ipv4/tcp.c: fix min() type mismatch warning
    Kconfig: STRIP: Remove stale bits of STRIP help text
    NET: mkiss: Fix typo
    tg3: Remove prev_vlan_tag from struct tx_ring_info
    ...

    Linus Torvalds
     
  • Signed-off-by: Philipp Reisner
    Acked-by: Lars Ellenberg
    Acked-by: Evgeniy Polyakov
    Signed-off-by: David S. Miller

    Philipp Reisner
     
  • Which is why I have always preferred sizeof(struct foo) over
    sizeof(var).

    Signed-off-by: Jean Delvare
    Acked-by: Randy Dunlap
    Signed-off-by: David S. Miller

    Jean Delvare
     

02 Oct, 2009

5 commits


01 Oct, 2009

3 commits

  • It turns out that the TCM memory can be remap:ed by the MMU just
    like any other memory.

    Signed-off-by: Linus Walleij
    Signed-off-by: Russell King

    Linus Walleij
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    ext4: Fix time encoding with extra epoch bits
    ext4: Add a stub for mpage_da_data in the trace header
    jbd2: Use tracepoints for history file
    ext4: Use tracepoints for mb_history trace file
    ext4, jbd2: Drop unneeded printks at mount and unmount time
    ext4: Handle nested ext4_journal_start/stop calls without a journal
    ext4: Make sure ext4_dirty_inode() updates the inode in no journal mode
    ext4: Avoid updating the inode table bh twice in no journal mode
    ext4: EXT4_IOC_MOVE_EXT: Check for different original and donor inodes first
    ext4: async direct IO for holes and fallocate support
    ext4: Use end_io callback to avoid direct I/O fallback to buffered I/O
    ext4: Split uninitialized extents for direct I/O
    ext4: release reserved quota when block reservation for delalloc retry
    ext4: Adjust ext4_da_writepages() to write out larger contiguous chunks
    ext4: Fix hueristic which avoids group preallocation for closed files
    ext4: Use ext4_msg() for ext4_da_writepage() errors
    ext4: Update documentation about quota mount options

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6:
    fat: Check s_dirt in fat_sync_fs()
    vfat: change the default from shortname=lower to shortname=mixed
    fat/nls: Fix handling of utf8 invalid char

    Linus Torvalds
     

30 Sep, 2009

2 commits


29 Sep, 2009

1 commit

  • Reference: ALSA bug #0004614
    https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4614

    port-A (0x11) - front hp-out
    port-D (0x12) - rear line out
    port-E (0x1c) - front mic-in
    port-F (0x16) - Internal speakers
    digital-mic (0x17) - Internal mic

    init verbs, mixers, jack sensing and PCI_QUIRK to support this hardware

    Signed-off-by: Miguel de Barros
    Signed-off-by: Takashi Iwai

    Miguel de Barros
     

26 Sep, 2009

1 commit


25 Sep, 2009

1 commit


24 Sep, 2009

7 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    truncate: use new helpers
    truncate: new helpers
    fs: fix overflow in sys_mount() for in-kernel calls
    fs: Make unload_nls() NULL pointer safe
    freeze_bdev: grab active reference to frozen superblocks
    freeze_bdev: kill bd_mount_sem
    exofs: remove BKL from super operations
    fs/romfs: correct error-handling code
    vfs: seq_file: add helpers for data filling
    vfs: remove redundant position check in do_sendfile
    vfs: change sb->s_maxbytes to a loff_t
    vfs: explicitly cast s_maxbytes in fiemap_check_ranges
    libfs: return error code on failed attr set
    seq_file: return a negative error code when seq_path_root() fails.
    vfs: optimize touch_time() too
    vfs: optimization for touch_atime()
    vfs: split generic_forget_inode() so that hugetlbfs does not have to copy it
    fs/inode.c: add dev-id and inode number for debugging in init_special_inode()
    libfs: make simple_read_from_buffer conventional

    Linus Torvalds
     
  • * 'for-linus' of git://neil.brown.name/md: (97 commits)
    md: raid-1/10: fix RW bits manipulation
    md: remove unnecessary memset from multipath.
    md: report device as congested when suspended
    md: Improve name of threads created by md_register_thread
    md: remove sparse warnings about lock context.
    md: remove sparse waring "symbol xxx shadows an earlier one"
    async_tx/raid6: add missing dma_unmap calls to the async fail case
    ioat3: fix uninitialized var warnings
    drivers/dma/ioat/dma_v2.c: fix warnings
    raid6test: fix stack overflow
    ioat2: clarify ring size limits
    md/raid6: cleanup ops_run_compute6_2
    md/raid6: eliminate BUG_ON with side effect
    dca: module load should not be an error message
    ioat: driver version 4.0
    dca: registering requesters in multiple dca domains
    async_tx: remove HIGHMEM64G restriction
    dmaengine: sh: Add Support SuperH DMA Engine driver
    dmaengine: Move all map_sg/unmap_sg for slave channel to its client
    fsldma: Add DMA_SLAVE support
    ...

    Linus Torvalds
     
  • * 'hwpoison' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-mce-2.6: (21 commits)
    HWPOISON: Enable error_remove_page on btrfs
    HWPOISON: Add simple debugfs interface to inject hwpoison on arbitary PFNs
    HWPOISON: Add madvise() based injector for hardware poisoned pages v4
    HWPOISON: Enable error_remove_page for NFS
    HWPOISON: Enable .remove_error_page for migration aware file systems
    HWPOISON: The high level memory error handler in the VM v7
    HWPOISON: Add PR_MCE_KILL prctl to control early kill behaviour per process
    HWPOISON: shmem: call set_page_dirty() with locked page
    HWPOISON: Define a new error_remove_page address space op for async truncation
    HWPOISON: Add invalidate_inode_page
    HWPOISON: Refactor truncate to allow direct truncating of page v2
    HWPOISON: check and isolate corrupted free pages v2
    HWPOISON: Handle hardware poisoned pages in try_to_unmap
    HWPOISON: Use bitmask/action code for try_to_unmap behaviour
    HWPOISON: x86: Add VM_FAULT_HWPOISON handling to x86 page fault handler v2
    HWPOISON: Add poison check to page fault handling
    HWPOISON: Add basic support for poisoned pages in fault handler v3
    HWPOISON: Add new SIGBUS error codes for hardware poison signals
    HWPOISON: Add support for poison swap entries v2
    HWPOISON: Export some rmap vma locking to outside world
    ...

    Linus Torvalds
     
  • This driver memory maps the UV Hub RTC.

    Signed-off-by: Dimitri Sivanich
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dimitri Sivanich
     
  • Introduce core pipe limiting sysctl.

    Since we can dump cores to pipe, rather than directly to the filesystem,
    we create a condition in which a user can create a very high load on the
    system simply by running bad applications.

    If the pipe reader specified in core_pattern is poorly written, we can
    have lots of ourstandig resources and processes in the system.

    This sysctl introduces an ability to limit that resource consumption.
    core_pipe_limit defines how many in-flight dumps may be run in parallel,
    dumps beyond this value are skipped and a note is made in the kernel log.
    A special value of 0 in core_pipe_limit denotes unlimited core dumps may
    be handled (this is the default value).

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Neil Horman
    Reported-by: Earl Chew
    Cc: Oleg Nesterov
    Cc: Andi Kleen
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Neil Horman
     
  • Soft limits is a new feature for the memory resource controller, something
    similar has existed in the group scheduler in the form of shares. The CPU
    controllers interpretation of shares is very different though.

    Soft limits are the most useful feature to have for environments where the
    administrator wants to overcommit the system, such that only on memory
    contention do the limits become active. The current soft limits
    implementation provides a soft_limit_in_bytes interface for the memory
    controller and not for memory+swap controller. The implementation
    maintains an RB-Tree of groups that exceed their soft limit and starts
    reclaiming from the group that exceeds this limit by the maximum amount.

    This patch:

    Add documentation for soft limits

    Signed-off-by: Balbir Singh
    Cc: KAMEZAWA Hiroyuki
    Cc: Li Zefan
    Cc: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Balbir Singh
     
  • Change the memory cgroup to remove the overhead associated with accounting
    all pages in the root cgroup. As a side-effect, we can no longer set a
    memory hard limit in the root cgroup.

    A new flag to track whether the page has been accounted or not has been
    added as well. Flags are now set atomically for page_cgroup,
    pcg_default_flags is now obsolete and removed.

    [akpm@linux-foundation.org: fix a few documentation glitches]
    Signed-off-by: Balbir Singh
    Signed-off-by: Daisuke Nishimura
    Reviewed-by: KAMEZAWA Hiroyuki
    Cc: Daisuke Nishimura
    Cc: Li Zefan
    Cc: Paul Menage
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Balbir Singh