23 Oct, 2008

4 commits


21 Oct, 2008

36 commits

  • We're trying to keep the !CONFIG_SHMEM tiny-shmem.c (using ramfs without
    swap) in synch with CONFIG_SHMEM shmem.c (and mpm is preparing patches
    to combine them). I was glad to see EXPORT_SYMBOL_GPL(shmem_file_setup)
    go into shmem.c, but why not support DRM-GEM when !CONFIG_SHMEM too?
    But caution says still depend on MMU, since !CONFIG_MMU is.. different.

    Signed-off-by: Hugh Dickins
    Acked-by: Matt Mackall
    Acked-by: Dave Airlie
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • __FUNCTION__ is gcc-specific, use __func__

    Signed-off-by: Harvey Harrison
    Acked-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     
  • commit 9b7530cc329eb036cfa589930c270e85031f554c ("i915: cleanup coding
    horrors in i915_gem_gtt_pwrite()")

    broke the i386 build for CONFIG_HIGHMEM=y.

    Caught by automatic testing http://www.tglx.de/autoqa-logs/000137-0006-0001.log

    Signed-off-by: Thomas Gleixner
    [ My bad. It's the same patch I sent out earlier, nobody noticed then either.. ]
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6:
    parisc: convert to generic compat_sys_ptrace
    parisc: add rtc platform driver
    parisc: initialize unwinder much earlier
    parisc: add new syscalls
    parisc: hijack jump to start_kernel
    parisc: add pdc_coproc_cfg_unlocked and set_firmware_width_unlocked
    parisc: move include/asm-parisc to arch/parisc/include/asm
    parisc: move pdc_result to real2.S
    parisc: unify CCIO_COLLECT_STATS implementation
    parisc: add arch/parisc/kernel/.gitignore
    parisc: ropes.h - fix ->
    parisc: parisc-agp - fix ->

    Resolve remove/rename conflict: include/asm-parisc/a.out.h is no longer
    relevant.

    Linus Torvalds
     
  • This gets rid of an annoying warning in ehci-hcd.c when DEBUG isn't
    enabled:

    warning: label 'err_debug' defined but not used

    by moving it inside the already-existing #ifdef DEBUG, so that it
    matches the goto. And now my regular build is warning-free again.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Yes, this will probably be switched over to a cleaner model anyway, but
    in the meantime I don't want to see the 'unused variable' warnings that
    come from the disgusting #ifdef code. Make the special case be a nice
    inlien function of its own, clean up the code, and make the warning go
    away.

    I wish people didn't write code that gets (valid) warnings from the
    compiler, but I'll limit my fixes to code that I actually care about (in
    this case just because I see the warning and it annoys me).

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Use "%zd" for size_t, and make sure to have a space between the numbers
    instead of depending on the field width.

    I don't like warnings in my default targeted build.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'bkl-removal' of git://git.lwn.net/linux-2.6:
    UIO: BKL removal

    Linus Torvalds
     
  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (41 commits)
    PCI: fix pci_ioremap_bar() on s390
    PCI: fix AER capability check
    PCI: use pci_find_ext_capability everywhere
    PCI: remove #ifdef DEBUG around dev_dbg call
    PCI hotplug: fix get_##name return value problem
    PCI: document the pcie_aspm kernel parameter
    PCI: introduce an pci_ioremap(pdev, barnr) function
    powerpc/PCI: Add legacy PCI access via sysfs
    PCI: Add ability to mmap legacy_io on some platforms
    PCI: probing debug message uniformization
    PCI: support PCIe ARI capability
    PCI: centralize the capabilities code in probe.c
    PCI: centralize the capabilities code in pci-sysfs.c
    PCI: fix 64-vbit prefetchable memory resource BARs
    PCI: replace cfg space size (256/4096) by macros.
    PCI: use resource_size() everywhere.
    PCI: use same arg names in PCI_VDEVICE comment
    PCI hotplug: rpaphp: make debug var unique
    PCI: use %pF instead of print_fn_descriptor_symbol() in quirks.c
    PCI: fix hotplug get_##name return value problem
    ...

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

    This merges branches irq/genirq, irq/sparseirq-v4, timers/hpet-percpu
    and x86/uv.

    The sparseirq branch is just preliminary groundwork: no sparse IRQs are
    actually implemented by this tree anymore - just the new APIs are added
    while keeping the old way intact as well (the new APIs map 1:1 to
    irq_desc[]). The 'real' sparse IRQ support will then be a relatively
    small patch ontop of this - with a v2.6.29 merge target.

    * 'genirq-v28-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (178 commits)
    genirq: improve include files
    intr_remapping: fix typo
    io_apic: make irq_mis_count available on 64-bit too
    genirq: fix name space collisions of nr_irqs in arch/*
    genirq: fix name space collision of nr_irqs in autoprobe.c
    genirq: use iterators for irq_desc loops
    proc: fixup irq iterator
    genirq: add reverse iterator for irq_desc
    x86: move ack_bad_irq() to irq.c
    x86: unify show_interrupts() and proc helpers
    x86: cleanup show_interrupts
    genirq: cleanup the sparseirq modifications
    genirq: remove artifacts from sparseirq removal
    genirq: revert dynarray
    genirq: remove irq_to_desc_alloc
    genirq: remove sparse irq code
    genirq: use inline function for irq_to_desc
    genirq: consolidate nr_irqs and for_each_irq_desc()
    x86: remove sparse irq from Kconfig
    genirq: define nr_irqs for architectures with GENERIC_HARDIRQS=n
    ...

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

    * 'v28-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (36 commits)
    fix documentation of sysrq-q really
    Fix documentation of sysrq-q
    timer_list: add base address to clock base
    timer_list: print cpu number of clockevents device
    timer_list: print real timer address
    NOHZ: restart tick device from irq_enter()
    NOHZ: split tick_nohz_restart_sched_tick()
    NOHZ: unify the nohz function calls in irq_enter()
    timers: fix itimer/many thread hang, fix
    timers: fix itimer/many thread hang, v3
    ntp: improve adjtimex frequency rounding
    timekeeping: fix rounding problem during clock update
    ntp: let update_persistent_clock() sleep
    hrtimer: reorder struct hrtimer to save 8 bytes on 64bit builds
    posix-timers: lock_timer: make it readable
    posix-timers: lock_timer: kill the bogus ->it_id check
    posix-timers: kill ->it_sigev_signo and ->it_sigev_value
    posix-timers: sys_timer_create: cleanup the error handling
    posix-timers: move the initialization of timer->sigq from send to create path
    posix-timers: sys_timer_create: simplify and s/tasklist/rcu/
    ...

    Fix trivial conflicts due to sysrq-q description clahes in
    Documentation/sysrq.txt and drivers/char/sysrq.c

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (36 commits)
    ide: re-add TRM290 fix lost during ide_build_dmatable() cleanup
    scc_pata: kill unused variables
    sgiioc4: kill duplicate ioremap()
    sgiioc4: kill useless address checks
    delkin_cb: add PM support
    ide: remove broken hpt34x driver
    ide-floppy: remove idefloppy_floppy_t typedef
    sgiioc4: remove maskproc() method
    hpt366: cleanup maskproc() method
    ide: mask interrupt in ide_config_drive_speed()
    hpt366: fix compile warning
    ide: remove unused macros from
    ide: remove M68K_IDE_SWAPW define from
    ide: remove dead
    ide: fix support for IDE PCI controllers using MMIO on frv
    ide-cd: remove stale comment
    ide-cd: small drive type print fix
    ide-cd: debug log enhancements
    ide: add generic ATA/ATAPI disk driver
    ide: allow device drivers to specify per-device type /proc settings
    ...

    Linus Torvalds
     
  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx:
    fsldma: allow Freescale Elo DMA driver to be compiled as a module
    fsldma: remove internal self-test from Freescale Elo DMA driver
    drivers/dma/dmatest.c: switch a GFP_ATOMIC to GFP_KERNEL
    dmatest: properly handle duplicate DMA channels
    drivers/dma/ioat_dma.c: drop code after return
    async_tx: make async_tx_run_dependencies() easier to read

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
    [WATCHDOG] ib700wdt.c - fix buffer_underflow bug

    Linus Torvalds
     
  • Update assorted email addresses and related info to point
    to a single current, valid address.

    additionally
    - trivial CREDITS entry updates. (Not that this file means much any more)
    - remove arjans dead redhat.com address from powernow driver

    Signed-off-by: Dave Jones
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • Commit 7c08c9ae0c145807c0dae4a55f240fa3d4fd5262 ("efifb/imacfb
    consolidation + hardware support") claimed to remove imacfb entirely and
    merge its DMI table into the efifb driver. So far so good, but the diff
    actually ended up just generating an empty file instead of removing it.

    [ Technical reason: the patch header looked like

    diff -puN drivers/video/imacfb.c~efifb-imacfb-consolidation-hardware-support drivers/video/imacfb.c
    --- a/drivers/video/imacfb.c~efifb-imacfb-consolidation-hardware-support
    +++ a/drivers/video/imacfb.c
    @@ -1,376 +0,0 @@

    which git will think is a truncation, not a delete. Git wants to see a
    target of /dev/null to consider it a delete. ]

    So remove it properly.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • The 'use pci_find_ext_capability everywhere' cleanup brought a new bug,
    which makes the AER stop working. Fix it by actually using find_ext_cap
    instead of just find_cap. Drop the unused config space size define while
    we're at it.

    Signed-off-by: Yu Zhao
    Signed-off-by: Jesse Barnes

    Yu Zhao
     
  • Remove some open coded (and buggy) versions of pci_find_ext_capability
    in favor of the real routine in the PCI core.

    Tested-by: Tomasz Czernecki
    Acked-by: Andrew Vasquez
    Reviewed-by: Matthew Wilcox
    Signed-off-by: Jesse Barnes

    Jesse Barnes
     
  • No longer needed since we don't use the function symbol stuff anymore.

    Signed-off-by: Jesse Barnes

    Jesse Barnes
     
  • The commit 356a9d6f3dd283f83861adf1ac909879f0e66411 (PCI: fix hotplug
    get_##name return value problem) doesn't seem to be merged properly.
    Because of this, PCI hotplug no longer works (Read/Write PCI hotplug
    files always returns -ENODEV).

    This patch fixes wrong check of try_module_get() return value check in
    get_##name().

    Signed-off-by: Kenji Kaneshige
    Signed-off-by: Jesse Barnes

    Kenji Kaneshige
     
  • This adds the ability to mmap legacy IO space to the legacy_io files
    in sysfs on platforms that support it. This will allow to clean up
    X to use this instead of /dev/mem for legacy IO accesses such as
    those performed by Int10.

    While at it I moved pci_create/remove_legacy_files() to pci-sysfs.c
    where I think they belong, thus making more things statis in there
    and cleaned up some spurrious prototypes in the ia64 pci.h file

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Jesse Barnes

    Benjamin Herrenschmidt
     
  • This patch uniformizes PCI probing debug boot messages with dev_printk()
    intead of manual printk()

    It changes adress range output from [%llx, %llx] to [%#llx-%#llx], like
    in pci_request_region().

    For example, it goes from the mixed-style:

    PCI: 0000:00:1b.0 reg 10 64bit mmio: [f4280000, f4283fff]
    pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold

    to uniform:

    pci 0000:00:1b.0: reg 10 64bit mmio: [0xf4280000-0xf4283fff]
    pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold

    This patch has been runtime tested, boot log messages diffed, everything
    looks OK.

    Acked-by: Bjorn Helgaas
    Signed-off-by: Vincent Legoll
    Signed-off-by: Jesse Barnes

    Vincent Legoll
     
  • This patch adds support for PCI Express Alternative Routing-ID
    Interpretation (ARI) capability.

    The ARI capability extends the Function Number field of the PCI Express
    Endpoint by reusing the Device Number which is otherwise hardwired to 0.
    With ARI, an Endpoint can have up to 256 functions.

    Signed-off-by: Yu Zhao
    Signed-off-by: Jesse Barnes

    Yu Zhao
     
  • This patch centralizes the initialization and release functions of
    various PCI capabilities in probe.c, which makes the introduction
    of new capability support functions cleaner in the future.

    Signed-off-by: Yu Zhao
    Signed-off-by: Jesse Barnes

    Zhao, Yu
     
  • This patch centralizes functions used to add and remove sysfs entries
    for various capabilities. With this cleanup, the code is more readable
    and easier for adding new capability related functions.

    Signed-off-by: Yu Zhao
    Signed-off-by: Jesse Barnes

    Zhao, Yu
     
  • Since patch 6ac665c63dcac8fcec534a1d224ecbb8b867ad59 my infiniband
    controller hasn't worked. This is because it has 64-bit prefetchable
    memory, which was mistakenly being taken to be 32-bit memory. The
    resource flags in this case are PCI_BASE_ADDRESS_MEM_TYPE_64 |
    PCI_BASE_ADDRESS_MEM_PREFETCH.

    This patch checks only for the PCI_BASE_ADDRESS_MEM_TYPE_64 bit; thus
    whether the region is prefetchable or not is ignored. This fixes my
    Infiniband.

    Reviewed-by: Matthew Wilcox
    Signed-off-by: Peter Chubb
    Signed-off-by: Jesse Barnes

    Peter Chubb
     
  • This is a cleanup that changes all PCI configuration space size
    representations to the macros (PCI_CFG_SPACE_SIZE and
    PCI_CFG_SPACE_EXP_SIZE). And the macros are also moved from
    drivers/pci/probe.c to drivers/pci/pci.h.

    Signed-off-by: Yu Zhao
    Signed-off-by: Jesse Barnes

    Zhao, Yu
     
  • This is a cleanup that replaces the resource calculation formula with
    resource_size().

    Signed-off-by: Yu Zhao
    Signed-off-by: Jesse Barnes

    Zhao, Yu
     
  • Change debug variable name to one more unique to this driver.

    Signed-off-by: Kristen Carlson Accardi
    Signed-off-by: Jesse Barnes

    Kristen Carlson Accardi
     
  • Use %pF instead of print_fn_descriptor_symbol() in quirks.c to get the name of
    the hook we're calling.

    Signed-off-by: Yinghai Lu
    Signed-off-by: Jesse Barnes

    Yinghai Lu
     
  • Currently, get_##name in pci_hotplug_core.c will return 0 if module
    unload wins the race between unload & reading the hotplug file. Fix
    that case to return -ENODEV like it should.

    Reviewed-by: Alex Chiang
    Reviewed-by: Matthew Wilcox
    Signed-off-by: Yu Zhao
    Signed-off-by: Jesse Barnes

    Zhao, Yu
     
  • Get rid of the second definition of dev which hides the earlier one in
    the argument list and causes a warning from sparse.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jesse Barnes

    Stephen Hemminger
     
  • Checkpatch would have complained about this but neither Bjorn nor myself
    ran it prior to pushing. Fixup the issues Andrew pointed out.

    Signed-off-by: Jesse Barnes

    Jesse Barnes
     
  • The introduction of struct pci_slot (f46753c5e354b857b20ab8e0fe7b25)
    added a struct pci_slot pointer to struct pci_dev, but we forgot to
    associate the two.

    Connect the two structs together; the interesting portions of the object
    lifetimes are:

    - when a new pci_slot is created, connect it to the appropriate
    pci_dev's. A single pci_slot may be associated with multiple
    pci_dev's, e.g. any multi-function PCI device.

    - when a pci_slot is released, look for all the pci_dev's it was
    associated with, and set their pci_slot pointers to NULL

    - when a pci_dev is created, look for slots to associate with.

    Note -- when a pci_dev is released, we don't need to do any bookkeeping,
    since pci_slot's do not have pointers to pci_dev's.

    Signed-off-by: Alex Chiang
    Signed-off-by: Jesse Barnes

    Alex Chiang
     
  • Stephen Hemminger wrote:
    > Looks like Mike created cpulistaffinty in sysfs but never completed
    > the job.

    This patch hooks things up correctly, taking care to remove the new file
    when the bus is destroyed.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Mike Travis
    Signed-off-by: Jesse Barnes

    Mike Travis
     
  • In msi_capability_init, we can make use of the calculated results
    instead of calling is_mask_bit_support and is_64bit_address twice.

    Signed-off-by: Jike Song
    Signed-off-by: Jesse Barnes

    Jike Song