24 Jul, 2011

17 commits

  • This patch removes all the module loader hook implementations in the
    architecture specific code where the functionality is the same as that
    now provided by the recently added default hooks.

    Signed-off-by: Jonas Bonn
    Acked-by: Mike Frysinger
    Acked-by: Geert Uytterhoeven
    Tested-by: Michal Simek
    Signed-off-by: Rusty Russell

    Jonas Bonn
     
  • The module loader code allows architectures to hook into the code by
    providing a small number of entry points that each arch must implement.
    This patch provides __weakly linked generic implementations of these
    entry points for architectures that don't need to do anything special.

    Signed-off-by: Jonas Bonn
    Signed-off-by: Rusty Russell

    Jonas Bonn
     
  • In STANDARD_PARAM_DEF, param_set_* handles the case in which strtolfn
    returns -EINVAL but it may return -ERANGE. If it returns -ERANGE,
    param_set_* may set uninitialized value to the paramerter. We should handle
    both cases.

    The one of the cases in which strtolfn() returns -ERANGE is following:

    *Type of module parameter is long
    *Set the parameter more than LONG_MAX

    Signed-off-by: Satoru Moriya
    Signed-off-by: Rusty Russell

    Satoru Moriya
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin: (43 commits)
    Blackfin: spi-docs: further clarify GPIO CS behavior with various modes
    Blackfin: boards: fix pcm device name
    Blackfin: SMP: punt unused atomic_test_mask helper
    Blackfin: irqs: do not trace arch_local_{*,irq_*} functions
    Blackfin: bf526: restrict reboot workaround to 0.0 silicon
    Blackfin: bf51x: fix alternative portmux options
    Blackfin: bf54x: fix GPIO resume code
    Blackfin: dpmc: optimize SDRAM programming slightly
    Blackfin: dpmc: don't save/restore scratch registers
    Blackfin: bf538: pull gpio/port logic out of core hibernate paths
    Blackfin: dpmc: optimize hibernate/resume path
    Blackfin: dpmc: do not save/restore EVT0/EVT1/EVT4 when hibernating
    Blackfin: dpmc: relocate hibernate helper macros
    Blackfin: dpmc: omit RETE/RETN when hibernating
    Blackfin: dpmc: optimize SIC_IWR programming a little
    Blackfin: gpio/ints: generalize pint logic
    Blackfin: dpmc: bind to MMR names and not CPUs
    Blackfin: debug-mmrs: generalize pint logic
    Blackfin: bf54x: switch to common pint MMR struct
    Blackfin: bf54x: tweak MMR pint names
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
    regulator: Convert tps65023 to use regmap API
    regmap: Add SPI bus support
    regmap: Add I2C bus support
    regmap: Add generic non-memory mapped register access API

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (77 commits)
    [SCSI] fix crash in scsi_dispatch_cmd()
    [SCSI] sr: check_events() ignore GET_EVENT when TUR says otherwise
    [SCSI] bnx2i: Fixed kernel panic due to illegal usage of sc->request->cpu
    [SCSI] bfa: Update the driver version to 3.0.2.1
    [SCSI] bfa: Driver and BSG enhancements.
    [SCSI] bfa: Added support to query PHY.
    [SCSI] bfa: Added HBA diagnostics support.
    [SCSI] bfa: Added support for flash configuration
    [SCSI] bfa: Added support to obtain SFP info.
    [SCSI] bfa: Added support for CEE info and stats query.
    [SCSI] bfa: Extend BSG interface.
    [SCSI] bfa: FCS bug fixes.
    [SCSI] bfa: DMA memory allocation enhancement.
    [SCSI] bfa: Brocade-1860 Fabric Adapter vHBA support.
    [SCSI] bfa: Brocade-1860 Fabric Adapter PLL init fixes.
    [SCSI] bfa: Added Fabric Assigned Address(FAA) support
    [SCSI] bfa: IOC bug fixes.
    [SCSI] bfa: Enable ASIC block configuration and query.
    [SCSI] bnx2i: Updated copyright and bump version
    [SCSI] bnx2i: Modified to skip CNIC registration if iSCSI is not supported
    ...

    Fix up some trivial conflicts in:
    - drivers/scsi/bnx2fc/{bnx2fc.h,bnx2fc_fcoe.c}:
    Crazy broadcom version number conflicts
    - drivers/target/tcm_fc/tfc_cmd.c
    Just trivial cleanups done on adjacent lines

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (297 commits)
    ALSA: asihpi - Replace with snd_ctl_boolean_mono_info()
    ALSA: asihpi - HPI version 4.08
    ALSA: asihpi - Add volume mute controls
    ALSA: asihpi - Control name updates
    ALSA: asihpi - Use size_t for sizeof result
    ALSA: asihpi - Explicitly include mutex.h
    ALSA: asihpi - Add new node and message defines
    ALSA: asihpi - Make local function static
    ALSA: asihpi - Fix minor typos and spelling
    ALSA: asihpi - Remove unused structures, macros and functions
    ALSA: asihpi - Remove spurious adapter index check
    ALSA: asihpi - Revise snd_pcm_debug_name, get rid of DEBUG_NAME macro
    ALSA: asihpi - DSP code loader API now independent of OS
    ALSA: asihpi - Remove controlex structs and associated special data transfer code
    ALSA: asihpi - Increase request and response buffer sizes
    ALSA: asihpi - Give more meaningful name to hpi request message type
    ALSA: usb-audio - Add quirk for Roland / BOSS BR-800
    ALSA: hda - Remove a superfluous argument of via_auto_init_output()
    ALSA: hda - Fix indep-HP path (de-)activation for VT1708* codecs
    ALSA: hda - Add documentation for codec-specific mixer controls
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
    net/9p: Fix the msize calculation.
    fs/9p: add 9P2000.L unlinkat operation
    fs/9p: add 9P2000.L renameat operation
    fs/9p: Always ask new inode in create
    fs/9p: Clean-up get_protocol_version() to use strcmp
    fs/9p: Fix invalid mount options/args
    fs/9p: When doing inode lookup compare qid details and inode mode bits.
    fs/9p: Fid is not valid after a failed clunk.
    net/9p: Remove structure not used in the code
    VirtIO can transfer VIRTQUEUE_NUM of pages.
    Fix the size of receive buffer packing onto VirtIO ring.
    9p: clean up packet dump code
    fs/9p: remove rename work around in 9p
    net/9p: fix client code to fail more gracefully on protocol error

    Linus Torvalds
     
  • Refresh sysctl/kernel.txt. More specifically,

    - drop stale index entries
    - sync and sort index and entries
    - reflow sticking out paragraphs to colwidth 72
    - correct typos
    - cleanup whitespace

    Signed-off-by: Borislav Petkov
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Borislav Petkov
     
  • Only the root cpuset has cpuset.memory_pressure_enabled flag,
    but not the only one.

    Signed-off-by: Wanlong Gao
    Signed-off-by: Randy Dunlap
    Acked-by: Paul Menage
    Signed-off-by: Linus Torvalds

    Wanlong Gao
     
  • Must echo a task id to the cgroups' tasks file, but not to a directory.

    Signed-off-by: Wanlong Gao
    Acked-by: Paul Menage
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Wanlong Gao
     
  • …-linus', 'x86-platform-for-linus', 'x86-quirks-for-linus', 'x86-tsc-for-linus' and 'x86-smpboot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

    * 'x86-detect-hyper-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, hyper: Change hypervisor detection order

    * 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86-32, fpu: Fix DNA exception during check_fpu()

    * 'x86-kexec-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    kexec, x86: Fix incorrect jump back address if not preserving context

    * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, config: Introduce an INTEL_MID configuration

    * 'x86-quirks-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, quirks: Use pci_dev->revision

    * 'x86-tsc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: tsc: Remove unneeded DMI-based blacklisting

    * 'x86-smpboot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, boot: Wait for boot cpu to show up if nr_cpus limit is about to hit

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, build: Do not set the root_dev field in bzImage

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'x86-atomic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: Add support for cmpxchg_double

    Linus Torvalds
     
  • …x/kernel/git/tip/linux-2.6-tip

    * 'timers-clocksource-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    clocksource: apb: Share APB timer code with other platforms

    Linus Torvalds
     
  • …us' and 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    um: Make rwsem.S depend on CONFIG_RWSEM_XCHGADD_ALGORITHM

    * 'core-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    debug: Make CONFIG_EXPERT select CONFIG_DEBUG_KERNEL to unhide debug options

    * 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    genirq: Remove unused CHECK_IRQ_PER_CPU()

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    perf tools, x86: Fix 32-bit compile on 64-bit system

    Linus Torvalds
     
  • James Bottomley
     

23 Jul, 2011

23 commits

  • msize represents the maximum PDU size that includes P9_IOHDRSZ.

    Signed-off-by: Venkateswararao Jujjuri "
    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Venkateswararao Jujjuri (JV)
     
  • unlinkat - Remove a directory entry

    size[4] Tunlinkat tag[2] dirfid[4] name[s] flag[4]
    size[4] Runlinkat tag[2]

    older Tremove have the below request format

    size[4] Tremove tag[2] fid[4]

    The remove message is used to remove a directory entry either file or directory
    The remove opreation is actually a directory opertation and should ideally have
    dirfid, if not we cannot represent the fid on server with anything other than
    name. We will have to derive the directory name from fid in the Tremove request.

    NOTE: The operation doesn't clunk the unlink fid.

    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Aneesh Kumar K.V
     
  • renameat - change name of file or directory

    size[4] Trenameat tag[2] olddirfid[4] oldname[s] newdirfid[4] newname[s]
    size[4] Rrenameat tag[2]

    older Trename have the below request format

    size[4] Trename tag[2] fid[4] newdirfid[4] name[s]

    The rename message is used to change the name of a file, possibly moving it
    to a new directory. The rename opreation is actually a directory opertation
    and should ideally have olddirfid, if not we cannot represent the fid on server
    with anything other than name. We will have to derive the old directory name
    from fid in the Trename request.

    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Aneesh Kumar K.V
     
  • This make sure we don't end up reusing the unlinked inode object.
    The ideal way is to use inode i_generation. But i_generation is
    not available in userspace always.

    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Aneesh Kumar K.V
     
  • Signed-off-by: Prem Karat
    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Prem Karat
     
  • Without this fix, if any invalid mount options/args are passed while mouting
    the 9p fs, no error (-EINVAL) is returned and default arg value is assigned.

    This fix returns -EINVAL when an invalid arguement is found while parsing
    mount options.

    Signed-off-by: Prem Karat
    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Prem Karat
     
  • This make sure we don't use wrong inode from the inode hash. The inode number
    of the file deleted is reused by the next file system object created
    and if we only use inode number for inode hash lookup we could end up
    with wrong struct inode.

    Also compare inode generation number. Not all Linux file system provide
    st_gen in userspace. So it could be 0;

    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Aneesh Kumar K.V
     
  • free the fid even in case of failed clunk.

    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Aneesh Kumar K.V
     
  • Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Aneesh Kumar K.V
     
  • Signed-off-by: Venkateswararao Jujjuri "
    Reviewed-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    jvrao
     
  • Signed-off-by: Venkateswararao Jujjuri "
    Reviewed-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    jvrao
     
  • Switch to generic kernel hexdump library and cleanup macros to
    be more consistent with the way we do normal debug prints.

    Signed-off-by: Eric Van Hensbergen

    Eric Van Hensbergen
     
  • Now that VFS does the right thing remove the work around.

    Signed-off-by: Aneesh Kumar K.V
    Signed-off-by: Eric Van Hensbergen

    Aneesh Kumar K.V
     
  • There was a BUG_ON to protect against a bad id which could be dealt with
    more gracefully.

    Reported-by: Natalie Orlin
    Signed-off-by: Eric Van Hensbergen

    Eric Van Hensbergen
     
  • Signed-off-by: Mark Brown
    Acked-by: Liam Girdwood
    Acked-by: Grant Likely

    Mark Brown
     
  • Signed-off-by: Mark Brown
    Acked-by: Liam Girdwood
    Acked-by: Wolfram Sang
    Acked-by: Grant Likely

    Mark Brown
     
  • Signed-off-by: Mark Brown
    Acked-by: Liam Girdwood
    Acked-by: Wolfram Sang
    Acked-by: Grant Likely

    Mark Brown
     
  • There are many places in the tree where we implement register access for
    devices on non-memory mapped buses, especially I2C and SPI. Since hardware
    designers seem to have settled on a relatively consistent set of register
    interfaces this can be effectively factored out into shared code. There
    are a standard set of formats for marshalling data for exchange with the
    device, with the actual I/O mechanisms generally being simple byte
    streams.

    We create an abstraction for marshaling data into formats which can be
    sent on the control interfaces, and create a standard method for
    plugging in actual transport underneath that.

    This is mostly a refactoring and renaming of the bottom level of the
    existing code for sharing register I/O which we have in ASoC. A
    subsequent patch in this series converts ASoC to use this. The main
    difference in interface is that reads return values by writing to a
    location provided by a pointer rather than in the return value, ensuring
    we can use the full range of the type for register data. We also use
    unsigned types rather than ints for the same reason.

    As some of the devices can have very large register maps the existing
    ASoC code also contains infrastructure for managing register caches.
    This cache work will be moved over in a future stage to allow for
    separate review, the current patch only deals with the physical I/O.

    Signed-off-by: Mark Brown
    Acked-by: Liam Girdwood
    Acked-by: Greg Kroah-Hartman
    Acked-by: Wolfram Sang
    Acked-by: Grant Likely

    Mark Brown
     
  • virtio has been so far used only in the context of virtualization,
    and the virtio Kconfig was sourced directly by the relevant arch
    Kconfigs when VIRTUALIZATION was selected.

    Now that we start using virtio for inter-processor communications,
    we need to source the virtio Kconfig outside of the virtualization
    scope too.

    Moreover, some architectures might use virtio for both virtualization
    and inter-processor communications, so directly sourcing virtio
    might yield unexpected results due to conflicting selections.

    The simple solution offered by this patch is to always source virtio's
    Kconfig in drivers/Kconfig, and remove it from the appropriate arch
    Kconfigs. Additionally, a virtio menu entry has been added so virtio
    drivers don't show up in the general drivers menu.

    This way anyone can use virtio, though it's arguably less accessible
    (and neat!) for virtualization users now.

    Note: some architectures (mips and sh) seem to have a VIRTUALIZATION
    menu merely for sourcing virtio's Kconfig, so that menu is removed too.

    Signed-off-by: Ohad Ben-Cohen
    Signed-off-by: Rusty Russell

    Ohad Ben-Cohen
     
  • Signed-off-by: Mike Frysinger

    Mike Frysinger
     
  • The pcm driver name has been changed, but the device name has not.

    Signed-off-by: Scott Jiang
    Signed-off-by: Mike Frysinger

    Scott Jiang
     
  • No one uses this func, so just punt it.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     
  • Do not trace arch_local_save_flags(), arch_local_irq_*() and friends.
    Although they are marked inline, gcc may still make a function out of
    them and add it to the pool of functions that are traced by the function
    tracer. This can cause undesirable results (kernel panic, triple faults,
    etc).

    Add the notrace notation to prevent them from ever being traced.

    Signed-off-by: Steven Rostedt
    Signed-off-by: Mike Frysinger

    Steven Rostedt