22 Aug, 2012

1 commit

  • On many of our larger systems, CPU 0 has had all of its IRQ resources
    consumed before XPC loads. Worst cases on machines with multiple 10
    GigE cards and multiple IB cards have depleted the entire first socket
    of IRQs.

    This patch makes selecting the node upon which IRQs are allocated (as
    well as all the other GRU Message Queue structures) specifiable as a
    module load param and has a default behavior of searching all nodes/cpus
    for an available resources.

    [akpm@linux-foundation.org: fix build: include cpu.h and module.h]
    Signed-off-by: Robin Holt
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robin Holt
     

17 Aug, 2012

3 commits

  • ll_device_want_to_wakeup(): Fix the NULL pointer check on pdata->chip_awake,
    which is performed on the wrong function pointer

    Signed-off-by: Matthias Kaehlcke
    Signed-off-by: Greg Kroah-Hartman

    Matthias Kaehlcke
     
  • The main purpose of this function is to exclude ME devices
    without support for MEI/HECI interface from binding

    Currently affected systems are C600/X79 based servers
    that expose PCI device even though it doesn't supported ME Interface.
    MEI driver accessing such nonfunctional device can corrupt
    the system.

    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • After watchdog was disabled the driver would stall
    due to wrong calculation of credits reduction

    The cat&paste bug was introduced in the commit
    7bdf72d3d8059a50214069ea4b87c2174645f40f
    mei: introduce mei_data2slots wrapper

    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     

31 Jul, 2012

5 commits

  • Merge Andrew's first set of patches:
    "Non-MM patches:

    - lots of misc bits

    - tree-wide have_clk() cleanups

    - quite a lot of printk tweaks. I draw your attention to "printk:
    convert the format for KERN_ to a 2 byte pattern" which
    looks a bit scary. But afaict it's solid.

    - backlight updates

    - lib/ feature work (notably the addition and use of memweight())

    - checkpatch updates

    - rtc updates

    - nilfs updates

    - fatfs updates (partial, still waiting for acks)

    - kdump, proc, fork, IPC, sysctl, taskstats, pps, etc

    - new fault-injection feature work"

    * Merge emailed patches from Andrew Morton : (128 commits)
    drivers/misc/lkdtm.c: fix missing allocation failure check
    lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table()
    fault-injection: add tool to run command with failslab or fail_page_alloc
    fault-injection: add selftests for cpu and memory hotplug
    powerpc: pSeries reconfig notifier error injection module
    memory: memory notifier error injection module
    PM: PM notifier error injection module
    cpu: rewrite cpu-notifier-error-inject module
    fault-injection: notifier error injection
    c/r: fcntl: add F_GETOWNER_UIDS option
    resource: make sure requested range is included in the root range
    include/linux/aio.h: cpp->C conversions
    fs: cachefiles: add support for large files in filesystem caching
    pps: return PTR_ERR on error in device_create
    taskstats: check nla_reserve() return
    sysctl: suppress kmemleak messages
    ipc: use Kconfig options for __ARCH_WANT_[COMPAT_]IPC_PARSE_VERSION
    ipc: compat: use signed size_t types for msgsnd and msgrcv
    ipc: allow compat IPC version field parsing if !ARCH_WANT_OLD_COMPAT_IPC
    ipc: add COMPAT_SHMLBA support
    ...

    Linus Torvalds
     
  • Addresses https://bugzilla.kernel.org/show_bug.cgi?id=44691

    Reported-by:
    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Addresses https://bugzilla.kernel.org/show_bug.cgi?44431

    Reported-by:
    Signed-off-by: Alan Cox
    Cc: Pavan Savoy
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Pull MFD bits from Samuel Ortiz:
    "We have support for a few new drivers:
    - Samsung s2mps11
    - Wolfson Microelectronics wm5102 and wm5110
    - Marvell 88PM800 and 88PM805
    - TI twl6041

    We also have our regular driver improvements:
    - Device tree and IRQ domain support for STE AB8500
    - Regmap and devm_* API conversion for TI tps6586x
    - Device tree support for Samsung max77686
    - devm_* API conversion for STE AB3100

    Besides that, quite a lot of fixing and cleanup for mc13xxx, tps65910,
    tps65090, da9052 and twl-core."

    Fix up mostly trivial conflicts, with the exception of
    drivers/usb/host/ehci-omap.c in particular, which had some
    re-organization of the reset sequence (commit 1a49e2ac9651: "EHCI:
    centralize controller initialization") that clashed with commit
    2761a6394516 ("mfd: USB: Fix the omap-usb EHCI ULPI PHY reset fix
    issues").

    In particular, commit 2761a6394516 moved the usb_add_hcd() to the
    *middle* of the reset sequence, which clashes fairly badly with the
    reset sequence re-organization (although it could have been done inside
    the new omap_ehci_init() function).

    I left that part of commit 2761a6394516 just undone.

    * tag 'mfd-3.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (110 commits)
    mfd: Ensure AB8500 platform data is passed through db8500-prcmu to MFD Core
    mfd: Arizone core should select MFD_CORE
    mfd: Fix arizona-irq.c build by selecting REGMAP_IRQ
    mfd: Add debug trace on entering and leaving arizone runtime suspend
    mfd: Correct tps65090 cell names
    mfd: Remove gpio support from tps6586x core driver
    ARM: tegra: defconfig: Enable tps6586x gpio
    gpio: tps6586x: Add gpio support through platform driver
    mfd: Cache tps6586x register through regmap
    mfd: Use regmap for tps6586x register access.
    mfd: Use devm managed resources for tps6586x
    input: Add onkey support for 88PM80X PMIC
    mfd: Add support for twl6041
    mfd: Fix twl6040 revision information
    mfd: Matches should be NULL when populate anatop child devices
    input: ab8500-ponkey: Create AB8500 domain IRQ mapping
    mfd: Add missing out of memory check for pcf50633
    Documentation: Describe the AB8500 Device Tree bindings
    mfd: Add tps65910 32-kHz-crystal-input init
    mfd: Drop modifying mc13xxx driver's id_table in probe
    ...

    Linus Torvalds
     
  • Pull PWM subsystem from Thierry Reding:
    "The new PWM subsystem aims at collecting all implementations of the
    legacy PWM API and to eventually replace it completely.

    The subsystem has been in development for over half a year now and
    many drivers have already been converted. It has been in linux-next
    for a couple of weeks and there have been no major issues so I think
    it is ready for inclusion in your tree."

    Arnd Bergmann :
    "Very much Ack on the new subsystem. It uses the interface
    declarations as the previously separate pwm drivers, so nothing
    changes for now in the drivers using it, although it enables us to
    change those more easily in the future if we want to.

    This work is also one of the missing pieces that are required to
    eventually build ARM kernels for multiple platforms, which is
    currently prohibited (amongs other things) by the fact that you cannot
    have more than one driver exporting the pwm functions."

    Tested-and-acked-by: Alexandre Courbot
    Acked-by: Mark Brown
    Acked-by: Philip, Avinash # TI's AM33xx platforms
    Acked-By: Alexandre Pereira da Silva # LPC32XX
    Acked-by: Arnd Bergmann
    Acked-by: Sachin Kamat

    Fix up trivial conflicts with other cleanups and DT updates.

    * 'for-3.6' of git://gitorious.org/linux-pwm/linux-pwm: (36 commits)
    pwm: pwm-tiehrpwm: PWM driver support for EHRPWM
    pwm: pwm-tiecap: PWM driver support for ECAP APWM
    pwm: fix used-uninitialized warning in pwm_get()
    pwm: add lpc32xx PWM support
    pwm_backlight: pass correct brightness to callback
    pwm: Use pr_* functions in pwm-samsung.c file
    pwm: Convert pwm-samsung to use devm_* APIs
    pwm: Convert pwm-tegra to use devm_clk_get()
    pwm: pwm-mxs: Return proper error if pwmchip_remove() fails
    pwm: pwm-bfin: Return proper error if pwmchip_remove() fails
    pwm: pxa: Propagate pwmchip_remove() error
    pwm: Convert pwm-pxa to use devm_* APIs
    pwm: Convert pwm-vt8500 to use devm_* APIs
    pwm: Convert pwm-imx to use devm_* APIs
    pwm: Conflict with legacy PWM API
    pwm: pwm-mxs: add pinctrl support
    pwm: pwm-mxs: use devm_* managed functions
    pwm: pwm-mxs: use global reset function stmp_reset_block
    pwm: pwm-mxs: encode soc name in compatible string
    pwm: Take over maintainership of the PWM subsystem
    ...

    Linus Torvalds
     

27 Jul, 2012

1 commit

  • Pull char/misc patches from Greg Kroah-Hartman:
    "Here's the "big" pull request for 3.6-rc1 for the char/misc drivers.

    It's really just a few updates to the mei driver, plus 4 other tiny
    patches, nothing big at all.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'char-misc-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    mei: use module_pci_driver
    powerpc/BSR: cleanup the error path of bsr_init
    mei: mei_irq_thread_write_handler - line break fix
    mei: streamline the _mei_irq_thread_close/ioctol functions
    mei: introduce mei_data2slots wrapper
    mei: mei_wd_host_init: update the comment
    mei: remove write only wariable wd_due_counter
    mei: mei_device can be const for mei register access functions
    mei: revamp host buffer interface function
    mei: don't query HCSR for host buffer depth
    mei: group wd_interface_reg with watchdog variables within struct mei_device
    mei: mei_irq_thread_write_handler check for overflow
    mei: make mei_write_message more readable
    mei: check for error codes that mei_flow_ctrl_creds retuns
    misc: at25: Parse dt settings
    misc: hpilo: increase number of max supported channels
    mei: mei.txt: minor grammar fixes

    Linus Torvalds
     

25 Jul, 2012

1 commit

  • Pull PCI changes from Bjorn Helgaas:
    "Host bridge hotplug:
    - Add MMCONFIG support for hot-added host bridges (Jiang Liu)
    Device hotplug:
    - Move fixups from __init to __devinit (Sebastian Andrzej Siewior)
    - Call FINAL fixups for hot-added devices, too (Myron Stowe)
    - Factor out generic code for P2P bridge hot-add (Yinghai Lu)
    - Remove all functions in a slot, not just those with _EJx (Amos
    Kong)
    Dynamic resource management:
    - Track bus number allocation (struct resource tree per domain)
    (Yinghai Lu)
    - Make P2P bridge 1K I/O windows work with resource reassignment
    (Bjorn Helgaas, Yinghai Lu)
    - Disable decoding while updating 64-bit BARs (Bjorn Helgaas)
    Power management:
    - Add PCIe runtime D3cold support (Huang Ying)
    Virtualization:
    - Add VFIO infrastructure (ACS, DMA source ID quirks) (Alex
    Williamson)
    - Add quirks for devices with broken INTx masking (Jan Kiszka)
    Miscellaneous:
    - Fix some PCI Express capability version issues (Myron Stowe)
    - Factor out some arch code with a weak, generic, pcibios_setup()
    (Myron Stowe)"

    * tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (122 commits)
    PCI: hotplug: ensure a consistent return value in error case
    PCI: fix undefined reference to 'pci_fixup_final_inited'
    PCI: build resource code for M68K architecture
    PCI: pciehp: remove unused pciehp_get_max_lnk_width(), pciehp_get_cur_lnk_width()
    PCI: reorder __pci_assign_resource() (no change)
    PCI: fix truncation of resource size to 32 bits
    PCI: acpiphp: merge acpiphp_debug and debug
    PCI: acpiphp: remove unused res_lock
    sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases()
    PCI: call final fixups hot-added devices
    PCI: move final fixups from __init to __devinit
    x86/PCI: move final fixups from __init to __devinit
    MIPS/PCI: move final fixups from __init to __devinit
    PCI: support sizing P2P bridge I/O windows with 1K granularity
    PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)
    PCI: disable MEM decoding while updating 64-bit MEM BARs
    PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too
    PCI: never discard enable/suspend/resume_early/resume fixups
    PCI: release temporary reference in __nv_msi_ht_cap_quirk()
    PCI: restructure 'pci_do_fixups()'
    ...

    Linus Torvalds
     

23 Jul, 2012

1 commit

  • In order to avoid duplicate symbols with legacy PWM API implementations,
    the new PWM framework needs to conflict with any of the existing legacy
    implementations. This is done in two ways: for implementations provided
    by drivers, a conflict is added to the driver to ensure it will have to
    be ported to the PWM subsystem before it can coexist with other PWM
    providers. For architecture-specific code, the conflict is added to the
    PWM symbol to avoid confusion when a previously picked platform or
    machine can no longer be selected because of the PWM subsystem being
    included.

    Signed-off-by: Thierry Reding

    Thierry Reding
     

20 Jul, 2012

2 commits


18 Jul, 2012

1 commit


13 Jul, 2012

1 commit


12 Jul, 2012

3 commits

  • Merge random patches from Andrew Morton.

    * Merge emailed patches from Andrew Morton : (32 commits)
    memblock: free allocated memblock_reserved_regions later
    mm: sparse: fix usemap allocation above node descriptor section
    mm: sparse: fix section usemap placement calculation
    xtensa: fix incorrect memset
    shmem: cleanup shmem_add_to_page_cache
    shmem: fix negative rss in memcg memory.stat
    tmpfs: revert SEEK_DATA and SEEK_HOLE
    drivers/rtc/rtc-twl.c: fix threaded IRQ to use IRQF_ONESHOT
    fat: fix non-atomic NFS i_pos read
    MAINTAINERS: add OMAP CPUfreq driver to OMAP Power Management section
    sgi-xp: nested calls to spin_lock_irqsave()
    fs: ramfs: file-nommu: add SetPageUptodate()
    drivers/rtc/rtc-mxc.c: fix irq enabled interrupts warning
    mm/memory_hotplug.c: release memory resources if hotadd_new_pgdat() fails
    h8300/uaccess: add mising __clear_user()
    h8300/uaccess: remove assignment to __gu_val in unhandled case of get_user()
    h8300/time: add missing #include
    h8300/signal: fix typo "statis"
    h8300/pgtable: add missing #include
    drivers/rtc/rtc-ab8500.c: ensure correct probing of the AB8500 RTC when Device Tree is enabled
    ...

    Linus Torvalds
     
  • The code here has a nested spin_lock_irqsave(). It's not needed since
    IRQs are already disabled and it causes a problem because it means that
    IRQs won't be enabled again at the end. The second call to
    spin_lock_irqsave() will overwrite the value of irq_flags and we can't
    restore the proper settings.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Robin Holt
    Cc: Jack Steiner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Carpenter
     
  • This hardware never became available to normal humans. Leaving this
    driver imposes unwelcome maintenance costs for no clear benefit.

    Cc: Inaky Perez-Gonzalez
    Cc: Samuel Ortiz
    Signed-off-by: John W. Linville

    John W. Linville
     

11 Jul, 2012

7 commits


09 Jul, 2012

1 commit


27 Jun, 2012

2 commits


24 Jun, 2012

1 commit

  • PCI subsystem has not been ready for D3cold support yet. So
    PCI_D3cold should not be used as parameter for pci_set_power_state.
    This patch is needed for upcoming PCI_D3cold support.

    This patch has no functionality change, because pci_set_power_state
    will bound the parameter to PCI_D3hot too.

    CC: Michal Miroslaw
    CC: Jesse Barnes
    Reviewed-by: Rafael J. Wysocki
    Signed-off-by: Huang Ying
    Signed-off-by: Bjorn Helgaas

    Huang Ying
     

21 Jun, 2012

4 commits


15 Jun, 2012

2 commits


14 Jun, 2012

4 commits

  • mei watchdog doesn't reboot the system it only produces event
    therefore mark it as WDIOF_ALARMONLY.

    This patch depends on:
    commit 2bbeed016dd96045ec82c3a309afddcc3a0db1d2
    Author: Alan Cox
    watchdog: Add a flag to indicate the watchdog doesn't reboot things

    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • Since MSI is enabled right before that, we should disable it when
    registration fails.

    Signed-off-by: Samuel Ortiz
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Samuel Ortiz
     
  • This bug caused severe connectivity issue in the LMS application
    (LMS is described in Documentation/misc-devices/mei/mei.txt)

    The bug was introduced in patch:
    commit 1ccb7b6249f9bc50678e2a383084ed0a34cc9239
    staging/mei: propagate error codes up in the write flow

    The patch has reverted the return value logic of some fo function but
    the conditional in _mei_irq_thread_read function was not swapped
    making read always entering the error path

    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler
     
  • Since the misc device is registered only in the pci probe function
    it has to be also unregistered in the counterpart pci remove function
    and not in the module exit function.
    In case of probe failure the driver was oopsing in module exit function.

    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Tomas Winkler