14 Feb, 2014

4 commits


02 Feb, 2014

1 commit

  • Pull misc kbuild changes from Michal Marek:
    "The non-critical part of kbuild is small this time:
    - Three fixes for make deb-pkg
    - A new coccinelle check

    One of the deb-pkg fixes is a leftover from the last merge window,
    hence the merge commit"

    * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    deb-pkg: Fix building for MIPS big-endian or ARM OABI
    deb-pkg: Fix cross-building linux-headers package
    scripts: Coccinelle script for pm_runtime_* return checks with IS_ERR_VALUE
    deb-pkg: Inhibit initramfs builders if CONFIG_BLK_DEV_INITRD is not set

    Linus Torvalds
     

31 Jan, 2014

1 commit

  • Pull kbuild changes from Michal Marek:
    - fix make -s detection with make-4.0
    - fix for scripts/setlocalversion when the kernel repository is a
    submodule
    - do not hardcode ';' in macros that expand to assembler code, as some
    architectures' assemblers use a different character for newline
    - Fix passing --gdwarf-2 to the assembler

    * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    frv: Remove redundant debugging info flag
    mn10300: Remove redundant debugging info flag
    kbuild: Fix debugging info generation for .S files
    arch: use ASM_NL instead of ';' for assembler new line character in the macro
    kbuild: Fix silent builds with make-4
    Fix detectition of kernel git repository in setlocalversion script [take #2]

    Linus Torvalds
     

28 Jan, 2014

3 commits

  • Merge misc updates from Andrew Morton:

    - a few hotfixes

    - dynamic-debug updates

    - ipc updates

    - various other sweepings off the factory floor

    * akpm: (31 commits)
    firmware/google: drop 'select EFI' to avoid recursive dependency
    compat: fix sys_fanotify_mark
    checkpatch.pl: check for function declarations without arguments
    mm/migrate.c: fix setting of cpupid on page migration twice against normal page
    softirq: use const char * const for softirq_to_name, whitespace neatening
    softirq: convert printks to pr_
    softirq: use ffs() in __do_softirq()
    kernel/kexec.c: use vscnprintf() instead of vsnprintf() in vmcoreinfo_append_str()
    splice: fix unexpected size truncation
    ipc: fix compat msgrcv with negative msgtyp
    ipc,msg: document barriers
    ipc: delete seq_max field in struct ipc_ids
    ipc: simplify sysvipc_proc_open() return
    ipc: remove useless return statement
    ipc: remove braces for single statements
    ipc: standardize code comments
    ipc: whitespace cleanup
    ipc: change kern_ipc_perm.deleted type to bool
    ipc: introduce ipc_valid_object() helper to sort out IPC_RMID races
    ipc/sem.c: avoid overflow of semop undo (semadj) value
    ...

    Linus Torvalds
     
  • Pull powerpc updates from Ben Herrenschmidt:
    "So here's my next branch for powerpc. A bit late as I was on vacation
    last week. It's mostly the same stuff that was in next already, I
    just added two patches today which are the wiring up of lockref for
    powerpc, which for some reason fell through the cracks last time and
    is trivial.

    The highlights are, in addition to a bunch of bug fixes:

    - Reworked Machine Check handling on kernels running without a
    hypervisor (or acting as a hypervisor). Provides hooks to handle
    some errors in real mode such as TLB errors, handle SLB errors,
    etc...

    - Support for retrieving memory error information from the service
    processor on IBM servers running without a hypervisor and routing
    them to the memory poison infrastructure.

    - _PAGE_NUMA support on server processors

    - 32-bit BookE relocatable kernel support

    - FSL e6500 hardware tablewalk support

    - A bunch of new/revived board support

    - FSL e6500 deeper idle states and altivec powerdown support

    You'll notice a generic mm change here, it has been acked by the
    relevant authorities and is a pre-req for our _PAGE_NUMA support"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (121 commits)
    powerpc: Implement arch_spin_is_locked() using arch_spin_value_unlocked()
    powerpc: Add support for the optimised lockref implementation
    powerpc/powernv: Call OPAL sync before kexec'ing
    powerpc/eeh: Escalate error on non-existing PE
    powerpc/eeh: Handle multiple EEH errors
    powerpc: Fix transactional FP/VMX/VSX unavailable handlers
    powerpc: Don't corrupt transactional state when using FP/VMX in kernel
    powerpc: Reclaim two unused thread_info flag bits
    powerpc: Fix races with irq_work
    Move precessing of MCE queued event out from syscall exit path.
    pseries/cpuidle: Remove redundant call to ppc64_runlatch_off() in cpu idle routines
    powerpc: Make add_system_ram_resources() __init
    powerpc: add SATA_MV to ppc64_defconfig
    powerpc/powernv: Increase candidate fw image size
    powerpc: Add debug checks to catch invalid cpu-to-node mappings
    powerpc: Fix the setup of CPU-to-Node mappings during CPU online
    powerpc/iommu: Don't detach device without IOMMU group
    powerpc/eeh: Hotplug improvement
    powerpc/eeh: Call opal_pci_reinit() on powernv for restoring config space
    powerpc/eeh: Add restore_config operation
    ...

    Linus Torvalds
     
  • Functions like this one are evil:

    void foo()
    {
    ...
    }

    Because these functions allow variadic arguments without
    checking the arguments at all.

    Original patch by Richard Weinberger.

    Signed-off-by: Joe Perches
    Cc: Richard Weinberger
    Cc: Borislav Petkov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

25 Jan, 2014

1 commit

  • Pull ACPI and power management updates from Rafael Wysocki:
    "As far as the number of commits goes, the top spot belongs to ACPI
    this time with cpufreq in the second position and a handful of PM
    core, PNP and cpuidle updates. They are fixes and cleanups mostly, as
    usual, with a couple of new features in the mix.

    The most visible change is probably that we will create struct
    acpi_device objects (visible in sysfs) for all devices represented in
    the ACPI tables regardless of their status and there will be a new
    sysfs attribute under those objects allowing user space to check that
    status via _STA.

    Consequently, ACPI device eject or generally hot-removal will not
    delete those objects, unless the table containing the corresponding
    namespace nodes is unloaded, which is extremely rare. Also ACPI
    container hotplug will be handled quite a bit differently and cpufreq
    will support CPU boost ("turbo") generically and not only in the
    acpi-cpufreq driver.

    Specifics:

    - ACPI core changes to make it create a struct acpi_device object for
    every device represented in the ACPI tables during all namespace
    scans regardless of the current status of that device. In
    accordance with this, ACPI hotplug operations will not delete those
    objects, unless the underlying ACPI tables go away.

    - On top of the above, new sysfs attribute for ACPI device objects
    allowing user space to check device status by triggering the
    execution of _STA for its ACPI object. From Srinivas Pandruvada.

    - ACPI core hotplug changes reducing code duplication, integrating
    the PCI root hotplug with the core and reworking container hotplug.

    - ACPI core simplifications making it use ACPI_COMPANION() in the
    code "glueing" ACPI device objects to "physical" devices.

    - ACPICA update to upstream version 20131218. This adds support for
    the DBG2 and PCCT tables to ACPICA, fixes some bugs and improves
    debug facilities. From Bob Moore, Lv Zheng and Betty Dall.

    - Init code change to carry out the early ACPI initialization
    earlier. That should allow us to use ACPI during the timekeeping
    initialization and possibly to simplify the EFI initialization too.
    From Chun-Yi Lee.

    - Clenups of the inclusions of ACPI headers in many places all over
    from Lv Zheng and Rashika Kheria (work in progress).

    - New helper for ACPI _DSM execution and rework of the code in
    drivers that uses _DSM to execute it via the new helper. From
    Jiang Liu.

    - New Win8 OSI blacklist entries from Takashi Iwai.

    - Assorted ACPI fixes and cleanups from Al Stone, Emil Goode, Hanjun
    Guo, Lan Tianyu, Masanari Iida, Oliver Neukum, Prarit Bhargava,
    Rashika Kheria, Tang Chen, Zhang Rui.

    - intel_pstate driver updates, including proper Baytrail support,
    from Dirk Brandewie and intel_pstate documentation from Ramkumar
    Ramachandra.

    - Generic CPU boost ("turbo") support for cpufreq from Lukasz
    Majewski.

    - powernow-k6 cpufreq driver fixes from Mikulas Patocka.

    - cpufreq core fixes and cleanups from Viresh Kumar, Jane Li, Mark
    Brown.

    - Assorted cpufreq drivers fixes and cleanups from Anson Huang, John
    Tobias, Paul Bolle, Paul Walmsley, Sachin Kamat, Shawn Guo, Viresh
    Kumar.

    - cpuidle cleanups from Bartlomiej Zolnierkiewicz.

    - Support for hibernation APM events from Bin Shi.

    - Hibernation fix to avoid bringing up nonboot CPUs with ACPI EC
    disabled during thaw transitions from Bjørn Mork.

    - PM core fixes and cleanups from Ben Dooks, Leonardo Potenza, Ulf
    Hansson.

    - PNP subsystem fixes and cleanups from Dmitry Torokhov, Levente
    Kurusa, Rashika Kheria.

    - New tool for profiling system suspend from Todd E Brandt and a
    cpupower tool cleanup from One Thousand Gnomes"

    * tag 'pm+acpi-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (153 commits)
    thermal: exynos: boost: Automatic enable/disable of BOOST feature (at Exynos4412)
    cpufreq: exynos4x12: Change L0 driver data to CPUFREQ_BOOST_FREQ
    Documentation: cpufreq / boost: Update BOOST documentation
    cpufreq: exynos: Extend Exynos cpufreq driver to support boost
    cpufreq / boost: Kconfig: Support for software-managed BOOST
    acpi-cpufreq: Adjust the code to use the common boost attribute
    cpufreq: Add boost frequency support in core
    intel_pstate: Add trace point to report internal state.
    cpufreq: introduce cpufreq_generic_get() routine
    ARM: SA1100: Create dummy clk_get_rate() to avoid build failures
    cpufreq: stats: create sysfs entries when cpufreq_stats is a module
    cpufreq: stats: free table and remove sysfs entry in a single routine
    cpufreq: stats: remove hotplug notifiers
    cpufreq: stats: handle cpufreq_unregister_driver() and suspend/resume properly
    cpufreq: speedstep: remove unused speedstep_get_state
    platform: introduce OF style 'modalias' support for platform bus
    PM / tools: new tool for suspend/resume performance optimization
    ACPI: fix module autoloading for ACPI enumerated devices
    ACPI: add module autoloading support for ACPI enumerated devices
    ACPI: fix create_modalias() return value handling
    ...

    Linus Torvalds
     

24 Jan, 2014

15 commits

  • ether_addr_copy was added for kernel version 3.14. It's slightly
    smaller/faster for some arches. Encourage its use.

    Signed-off-by: Joe Perches
    Cc: Andy Whitcroft
    Cc: David Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • This adds a simple check that any compatible strings in DeviceTree dts
    files are present in Documentation/devicetree/bindings. Vendor prefixes
    are also checked for existing in vendor-prefixes.txt These should be
    temporary checks until we have more sophisticated binding schema
    checking.

    Signed-off-by: Rob Herring
    Signed-off-by: Joe Perches
    Cc: Grant Likely
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rob Herring
     
  • This change restricts the check for the for the FSF address in the GPL
    copyright statement so that it only flags the address, not the
    references to the gnu.org/licenses URL which appears to be used in
    numerous drivers. The idea is to still allow some reference to an
    external copy of the GPL in the event that files are copied out of the
    kernel tree without the COPYING file.

    So for example this statement will still return an error:
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

    However, this statement will not return an error after this patch:
    You should have received a copy of the GNU General Public License
    along with this program. If not, see .

    Signed-off-by: Alexander Duyck
    Cc: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexander Duyck
     
  • Kernel style uses function pointers in this form:
    "type (*funcptr)(args...)"

    Emit warnings when this function pointer form isn't used.

    Signed-off-by: Joe Perches
    Cc: Andy Whitcroft
    Cc: Derek Perrin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • The FSF address check is a bit too verbose looking for the GPL text.
    Quiet it a bit by requiring --strict for the GPL bit.

    Also make the address tests match a few uses of abbreviations for street
    names and make it case insensitive.

    Signed-off-by: Joe Perches
    Reviewed-by: Josh Triplett
    Cc: Manfred Spraul
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • If statements don't need multiple parentheses around tested comparisons
    like "if ((foo == bar))".

    An == comparison maybe a sign of an intended assignment, so emit a
    slightly different message if so.

    Signed-off-by: Joe Perches
    Reviewed-by: Josh Triplett
    Cc: Manfred Spraul
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • This test should remove all the spaces before a tab not just one space.

    Substitute a tab for each 8 space block before a tab and remove less than
    8 spaces before a tab.

    This SPACE_BEFORE_TAB test is done after CODE_INDENT.

    If there are spaces used at the beginning of a line that should be
    converted to tabs, please make sure that the CODE_INDENT test and
    conversion is done before this SPACE_BEFORE_TAB test and conversion.

    Reported-by: Manfred Spraul
    Signed-off-by: Joe Perches
    Cc: Josh Triplett
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Add the ability to fix and overwrite existing files/patches instead of
    creating a new file ".EXPERIMENTAL-checkpatch-fixes".

    Suggested-by: Manfred Spraul
    Signed-off-by: Joe Perches
    Reviewed-by: Josh Triplett
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • switch case statements missing a break statement are an unfortunately
    common error.

    e.g.:
    commit 4a2c94c9b6c0 ("HID: kye: Add report fixup for Genius Manticore Keyboard")

    case blocks should end in a break/return/goto/continue.

    If a fall-through is used, it should have a comment showing that it is
    intentional. Ideally that comment should be something like:
    "/* fall-through */"

    Add a test to look for missing break statements.

    This looks only at the context lines before an inserted case so it's
    possible to have false positives when the context contains a close brace
    and the break is before the brace and not part of the patch context.

    Looking at recent patches, this is a pretty rare occurrence. The normal
    kernel style uses a break as the last line of the previous block.

    Signed-off-by: Joe Perches
    Cc: Andy Whitcroft
    Cc: Jiri Kosina
    Cc: Benjamin Tissoires
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • gfp.h and page_alloc.c already specify that __GFP_NOFAIL is deprecated and
    no new users should be added.

    Add a warning to checkpatch to catch this.

    Signed-off-by: David Rientjes
    Cc: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • The "space before a non-naked semicolon" test has unwanted output when
    used in "for ( ;; )" loops.

    Make the test work only on end-of-line statement termination semicolons.

    Signed-off-by: Joe Perches
    Cc: Dan Carpenter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • The current checkpatch test for split strings does not find several
    cases that should be found.

    For instance:

    /* Else poor success; go back to mode in "active" table */
    } else {
    IWL_DEBUG_RATE(mvm,
    - "LQ: GOING BACK TO THE OLD TABLE suc=%d cur-tpt=%d old-tpt=%d\n",
    + "GOING BACK TO THE OLD TABLE: SR %d "
    + "cur-tpt %d old-tpt %d\n",
    window->success_ratio,
    window->average_tpt,
    lq_sta->last_tpt);

    does not currently emit a warning.

    Improve the test to find these cases.

    Add more exceptions to reduce false positives for assembly and octal/hex
    string constants.

    Signed-off-by: Joe Perches
    Reviewed-by: Josh Triplett
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • get_maintainer currently uses "Signed-off-by" style lines to find
    interested parties to send patches to when the MAINTAINERS file does not
    have a specific section entry with a matching file pattern.

    Add statistics for commit authors and lines added and deleted to the
    information provided by --rolestats.

    These statistics are also emitted whenever --rolestats and --git are
    selected even when there is a specified maintainer.

    This can have the effect of expanding the number of people that are shown
    as possible "maintainers" of a particular file because "authors",
    "added_lines", and "removed_lines" are also used as criterion for the
    --max-maintainers option separate from the "commit_signers".

    The first "--git-max-maintainers" values of each criterion
    are emitted. Any "ties" are not shown.

    For example: (forcedeth does not have a named maintainer)

    Old output:

    $ ./scripts/get_maintainer.pl -f drivers/net/ethernet/nvidia/forcedeth.c
    "David S. Miller" (commit_signer:8/10=80%)
    Jiri Pirko (commit_signer:2/10=20%)
    Patrick McHardy (commit_signer:2/10=20%)
    Larry Finger (commit_signer:1/10=10%)
    Peter Zijlstra (commit_signer:1/10=10%)
    netdev@vger.kernel.org (open list:NETWORKING DRIVERS)
    linux-kernel@vger.kernel.org (open list)

    New output:

    $ ./scripts/get_maintainer.pl -f drivers/net/ethernet/nvidia/forcedeth.c
    "David S. Miller" (commit_signer:8/10=80%)
    Jiri Pirko (commit_signer:2/10=20%,authored:2/10=20%,removed_lines:3/33=9%)
    Patrick McHardy (commit_signer:2/10=20%,authored:2/10=20%,added_lines:12/95=13%,removed_lines:10/33=30%)
    Larry Finger (commit_signer:1/10=10%,authored:1/10=10%,added_lines:35/95=37%)
    Peter Zijlstra (commit_signer:1/10=10%)
    "Peter Hüwe" (authored:1/10=10%,removed_lines:15/33=45%)
    Joe Perches (authored:1/10=10%)
    Neil Horman (added_lines:40/95=42%)
    Bill Pemberton (removed_lines:3/33=9%)
    netdev@vger.kernel.org (open list:NETWORKING DRIVERS)
    linux-kernel@vger.kernel.org (open list)

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • "make headers_check" warns about soundcard.h for (at least) five years
    now:
    [...]/usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel

    We're apparently stuck with providing OSSlib-3.8 compatibility, so let's
    special case this declaration just to silence it.

    Notes:

    0) Support for OSSlib post 3.8 was already removed in commit 43a990765a
    ("sound: Remove OSSlib stuff from linux/soundcard.h"). Five years have
    passed since that commit: do people still care about OSSlib-3.8? If
    not, quite a bit of code could be remove from soundcard.h (and probably
    ultrasound.h).

    2) By the way, what is actually meant by:
    It is no longer possible to actually link against OSSlib with this
    header, but we still provide these macros for programs using them.

    Doesn't that mean compatibility to OSSlib isn't even useful?

    3) Anyhow, a previous discussion soundcard.h, which led to that commit,
    starts at https://lkml.org/lkml/2009/1/20/349 .

    4) And, yes, I sneaked in a whitespace fix.

    Signed-off-by: Paul Bolle
    Cc: Takashi Iwai
    Acked-by: Arnd Bergmann
    Cc: Michal Marek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Bolle
     
  • Sort the exception table at build-time rather than during boot.

    Microblaze is the same case as AARCH64 that's why EM_MICROBLAZE
    conditional check was added to allow cross-compilation on machines which
    are not running the latest libc-dev.

    Inspired by AARCH64 commit adace89562c7 ("arm64: extable: sort the
    exception table at build time").

    Signed-off-by: Michal Simek
    Acked-by: David Daney
    Cc: Catalin Marinas
    Cc: Will Deacon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Simek
     

23 Jan, 2014

1 commit

  • Pull PCI updates from Bjorn Helgaas:
    "PCI changes for the v3.14 merge window:

    Resource management
    - Change pci_bus_region addresses to dma_addr_t (Bjorn Helgaas)
    - Support 64-bit AGP BARs (Bjorn Helgaas, Yinghai Lu)
    - Add pci_bus_address() to get bus address of a BAR (Bjorn Helgaas)
    - Use pci_resource_start() for CPU address of AGP BARs (Bjorn Helgaas)
    - Enforce bus address limits in resource allocation (Yinghai Lu)
    - Allocate 64-bit BARs above 4G when possible (Yinghai Lu)
    - Convert pcibios_resource_to_bus() to take pci_bus, not pci_dev (Yinghai Lu)

    PCI device hotplug
    - Major rescan/remove locking update (Rafael J. Wysocki)
    - Make ioapic builtin only (not modular) (Yinghai Lu)
    - Fix release/free issues (Yinghai Lu)
    - Clean up pciehp (Bjorn Helgaas)
    - Announce pciehp slot info during enumeration (Bjorn Helgaas)

    MSI
    - Add pci_msi_vec_count(), pci_msix_vec_count() (Alexander Gordeev)
    - Add pci_enable_msi_range(), pci_enable_msix_range() (Alexander Gordeev)
    - Deprecate "tri-state" interfaces: fail/success/fail+info (Alexander Gordeev)
    - Export MSI mode using attributes, not kobjects (Greg Kroah-Hartman)
    - Drop "irq" param from *_restore_msi_irqs() (DuanZhenzhong)

    SR-IOV
    - Clear NumVFs when disabling SR-IOV in sriov_init() (ethan.zhao)

    Virtualization
    - Add support for save/restore of extended capabilities (Alex Williamson)
    - Add Virtual Channel to save/restore support (Alex Williamson)
    - Never treat a VF as a multifunction device (Alex Williamson)
    - Add pci_try_reset_function(), et al (Alex Williamson)

    AER
    - Ignore non-PCIe error sources (Betty Dall)
    - Support ACPI HEST error sources for domains other than 0 (Betty Dall)
    - Consolidate HEST error source parsers (Bjorn Helgaas)
    - Add a TLP header print helper (Borislav Petkov)

    Freescale i.MX6
    - Remove unnecessary code (Fabio Estevam)
    - Make reset-gpio optional (Marek Vasut)
    - Report "link up" only after link training completes (Marek Vasut)
    - Start link in Gen1 before negotiating for Gen2 mode (Marek Vasut)
    - Fix PCIe startup code (Richard Zhu)

    Marvell MVEBU
    - Remove duplicate of_clk_get_by_name() call (Andrew Lunn)
    - Drop writes to bridge Secondary Status register (Jason Gunthorpe)
    - Obey bridge PCI_COMMAND_MEM and PCI_COMMAND_IO bits (Jason Gunthorpe)
    - Support a bridge with no IO port window (Jason Gunthorpe)
    - Use max_t() instead of max(resource_size_t,) (Jingoo Han)
    - Remove redundant of_match_ptr (Sachin Kamat)
    - Call pci_ioremap_io() at startup instead of dynamically (Thomas Petazzoni)

    NVIDIA Tegra
    - Disable Gen2 for Tegra20 and Tegra30 (Eric Brower)

    Renesas R-Car
    - Add runtime PM support (Valentine Barshak)
    - Fix rcar_pci_probe() return value check (Wei Yongjun)

    Synopsys DesignWare
    - Fix crash in dw_msi_teardown_irq() (Bjørn Erik Nilsen)
    - Remove redundant call to pci_write_config_word() (Bjørn Erik Nilsen)
    - Fix missing MSI IRQs (Harro Haan)
    - Add dw_pcie prefix before cfg_read/write (Pratyush Anand)
    - Fix I/O transfers by using CPU (not realio) address (Pratyush Anand)
    - Whitespace cleanup (Jingoo Han)

    EISA
    - Call put_device() if device_register() fails (Levente Kurusa)
    - Revert EISA initialization breakage ((Bjorn Helgaas)

    Miscellaneous
    - Remove unused code, including PCIe 3.0 interfaces (Stephen Hemminger)
    - Prevent bus conflicts while checking for bridge apertures (Bjorn Helgaas)
    - Stop clearing bridge Secondary Status when setting up I/O aperture (Bjorn Helgaas)
    - Use dev_is_pci() to identify PCI devices (Yijing Wang)
    - Deprecate DEFINE_PCI_DEVICE_TABLE (Joe Perches)
    - Update documentation 00-INDEX (Erik Ekman)"

    * tag 'pci-v3.14-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (119 commits)
    Revert "EISA: Initialize device before its resources"
    Revert "EISA: Log device resources in dmesg"
    vfio-pci: Use pci "try" reset interface
    PCI: Check parent kobject in pci_destroy_dev()
    xen/pcifront: Use global PCI rescan-remove locking
    powerpc/eeh: Use global PCI rescan-remove locking
    PCI: Fix pci_check_and_unmask_intx() comment typos
    PCI: Add pci_try_reset_function(), pci_try_reset_slot(), pci_try_reset_bus()
    MPT / PCI: Use pci_stop_and_remove_bus_device_locked()
    platform / x86: Use global PCI rescan-remove locking
    PCI: hotplug: Use global PCI rescan-remove locking
    pcmcia: Use global PCI rescan-remove locking
    ACPI / hotplug / PCI: Use global PCI rescan-remove locking
    ACPI / PCI: Use global PCI rescan-remove locking in PCI root hotplug
    PCI: Add global pci_lock_rescan_remove()
    PCI: Cleanup pci.h whitespace
    PCI: Reorder so actual code comes before stubs
    PCI/AER: Support ACPI HEST AER error sources for PCI domains other than 0
    ACPICA: Add helper macros to extract bus/segment numbers from HEST table.
    PCI: Make local functions static
    ...

    Linus Torvalds
     

21 Jan, 2014

2 commits

  • Pull ARM64 updates from Catalin Marinas:
    - CPU suspend support on top of PSCI (firmware Power State Coordination
    Interface)
    - jump label support
    - CMA can now be enabled on arm64
    - HWCAP bits for crypto and CRC32 extensions
    - optimised percpu using tpidr_el1 register
    - code cleanup

    * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (42 commits)
    arm64: fix typo in entry.S
    arm64: kernel: restore HW breakpoint registers in cpu_suspend
    jump_label: use defined macros instead of hard-coding for better readability
    arm64, jump label: optimize jump label implementation
    arm64, jump label: detect %c support for ARM64
    arm64: introduce aarch64_insn_gen_{nop|branch_imm}() helper functions
    arm64: move encode_insn_immediate() from module.c to insn.c
    arm64: introduce interfaces to hotpatch kernel and module code
    arm64: introduce basic aarch64 instruction decoding helpers
    arm64: dts: Reduce size of virtio block device for foundation model
    arm64: Remove unused __data_loc variable
    arm64: Enable CMA
    arm64: Warn on NULL device structure for dma APIs
    arm64: Add hwcaps for crypto and CRC32 extensions.
    arm64: drop redundant macros from read_cpuid()
    arm64: Remove outdated comment
    arm64: cmpxchg: update macros to prevent warnings
    arm64: support single-step and breakpoint handler hooks
    ARM64: fix framepointer check in unwind_frame
    ARM64: check stack pointer in get_wchan
    ...

    Linus Torvalds
     
  • …t/rostedt/linux-kconfig

    Pull localmodconfig update from Steven Rostedt:
    "While debugging the problem with localmodconfig and the ALSA codec
    modules all being set, I discovered a small bug in the dependency
    logic.

    If a config has a dependency based on its setting value,
    localmodcondig misses it.

    For example:

    config FOO
    default y if BAR || ZOO

    If FOO is needed for a module and is set to '=m', and so are BAR or
    ZOO, localmodconfig will not see that BAR or ZOO are also needed for
    the foo module, and will incorrectly disable them"

    * tag 'localmodconfig-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig:
    localmodconfig: Add config depends by default settings

    Linus Torvalds
     

17 Jan, 2014

2 commits

  • * acpi-tools:
    ACPICA: acpidump: Update MAINTAINERS file to include tools folder for ACPI/ACPICA.
    ACPICA: acpidump: Enable tools Makefile to include acpi tools.
    ACPICA: acpidump: Cleanup tools/power/acpi makefiles.

    * pm-tools:
    PM / tools: new tool for suspend/resume performance optimization
    cpupower: Fix sscanf robustness in cpufreq-set

    Rafael J. Wysocki
     
  • This tool is designed to assist kernel and OS developers in optimizing
    their linux stack's suspend/resume time. Using a kernel image built with a
    few extra options enabled, the tool will execute a suspend and will
    capture dmesg and ftrace data until resume is complete. This data is
    transformed into a device timeline and a callgraph to give a quick and
    detailed view of which devices and callbacks are taking the most time in
    suspend/resume. The output is a single html file which can be viewed in
    firefox or chrome.

    References: https://01.org/suspendresume
    Signed-off-by: Todd Brandt
    Signed-off-by: Rafael J. Wysocki

    Todd E Brandt
     

15 Jan, 2014

1 commit


08 Jan, 2014

1 commit

  • As commit a9468f30b5eac6 "ARM: 7333/2: jump label: detect %c
    support for ARM", this patch detects the same thing for ARM64
    because some ARM64 GCC versions have the same issue.

    Some versions of ARM64 GCC which do support asm goto, do not
    support the %c specifier. Since we need the %c to support jump
    labels on ARM64, detect that too in the asm goto detection script
    to avoid build errors with these versions.

    Acked-by: Will Deacon
    Signed-off-by: Jiang Liu
    Signed-off-by: Catalin Marinas

    Jiang Liu
     

04 Jan, 2014

2 commits

  • These commands will mysteriously fail:

    $ make ARCH=arm versatile_defconfig
    [...]
    $ make ARCH=arm deb-pkg
    [...]
    make[1]: *** [deb-pkg] Error 1
    make: *** [deb-pkg] Error 2

    The Debian architecture selection for these kernel architectures does
    'grep FOO=y $KCONFIG_CONFIG && echo bar', and after 'set -e' this
    aborts the script if grep does not find the given config symbol.

    Fixes: 10f26fa64200 ('build, deb-pkg: select userland architecture based on UTS_MACHINE')
    Signed-off-by: Ben Hutchings
    Signed-off-by: Michal Marek

    Ben Hutchings
     
  • builddeb generates a control file that says the linux-headers package
    can only be built for the build system primary architecture. This
    breaks cross-building configurations. We should use $debarch for this
    instead.

    Since $debarch is not yet set when generating the control file, set
    Architecture: any and use control file variables to fill in the
    description.

    Fixes: cd8d60a20a45 ('kbuild: create linux-headers package in deb-pkg')
    Reported-and-tested-by: "Niew, Sh."
    Signed-off-by: Ben Hutchings
    Signed-off-by: Michal Marek

    Ben Hutchings
     

03 Jan, 2014

2 commits

  • setlocalversion script was testing the presence of .git directory in
    order to find out if git is used as SCM to track the current kernel
    project. However in some cases, .git is not a directory but can be a
    file: when the kernel is a git submodule part of a git super project for
    example.

    This patch just fixes this by using 'git rev-parse --show-cdup' to check
    that the current directory is the kernel git topdir. This has the
    advantage to not test and rely on git internal infrastructure directly.

    Signed-off-by: Franck Bui-Huu
    Signed-off-by: Michal Marek

    Franck Bui-Huu
     
  • As indicated by Sekhar in [1], there seems to be a tendency to use
    IS_ERR_VALUE to check the error result for pm_runtime_* functions which
    make no sense considering commit c48cd65 (ARM: OMAP: use consistent
    error checking) - the error values can either be < 0 for error OR
    0, 1 in cases where we have success.

    So, setup a coccinelle script to help identify the same.

    [1] http://marc.info/?t=138472678100003&r=1&w=2

    Cc: Russell King
    Reported-by: Sekhar Nori
    Signed-off-by: Nishanth Menon
    Acked-by: Julia Lawall
    Signed-off-by: Michal Marek

    Nishanth Menon
     

02 Jan, 2014

1 commit


24 Dec, 2013

1 commit

  • Pull virtio balloon driver fixes from Rusty Russell:
    "Refactoring broke the balloon driver, and fixing kallsyms on ARM broke
    some (non-ARM) MMUless setups, so we're making that fix ARM-only for
    now.

    Unfortunately, the ARM refactoring which broke kallsyms/perf was
    CC:stable, so the fix (which broken non-ARM) was also CC:stable, so
    now the partial reversion is also CC:stable..."

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    scripts/link-vmlinux.sh: only filter kernel symbols for arm
    virtio_balloon: update_balloon_size(): update correct field

    Linus Torvalds
     

21 Dec, 2013

1 commit

  • Currently localmodconfig will miss dependencies from the default option.
    For example:

    config FOO
    default y if BAR || ZOO

    If FOO is needed for a module and is set to '=m', and so are BAR or ZOO,
    localmodconfig will not see that BOO or ZOO are also needed for the foo
    module, and will incorrectly disable them.

    Link: http://lkml.kernel.org/r/20131218175137.162937350@goodmis.org

    Signed-off-by: Steven Rostedt

    Steven Rostedt (Red Hat)
     

14 Dec, 2013

1 commit