1. 29 10月, 2016 22 次提交
    • L
      Merge tag 'arc-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 1308fd75
      Linus Torvalds 提交于
      Pull ARC updates from Vineet Gupta:
      
       - support IDU intc for UP builds
      
       - support gz, lzma compressed uImage [Daniel Mentz]
      
       - adjust /proc/cpuinfo for non-continuous cpu ids [Noam Camus]
      
       - syscall for userspace cmpxchg assist for configs lacking hardware atomics
      
       - rework of boot log printing mainly for identifying older arc700 cores
      
       - retiring some old code, build toggles
      
      * tag 'arc-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: module: print pretty section names
        ARC: module: elide loop to save reference to .eh_frame
        ARC: mm: retire ARC_DBG_TLB_MISS_COUNT...
        ARC: build: retire old toggles
        ARC: boot log: refactor cpu name/release printing
        ARC: boot log: remove awkward space comma from MMU line
        ARC: boot log: don't assume SWAPE instruction support
        ARC: boot log: refactor printing abt features not captured in BCRs
        ARCv2: boot log: print IOC exists as well as enabled status
        ARCv2: IOC: use @ioc_enable not @ioc_exist where intended
        ARC: syscall for userspace cmpxchg assist
        ARC: fix build warning in elf.h
        ARC: Adjust cpuinfo for non-continuous cpu ids
        ARC: [build] Support gz, lzma compressed uImage
        ARCv2: intc: untangle SMP, MCIP and IDU
      1308fd75
    • L
      Merge tag 'powerpc-4.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 6fcc8cea
      Linus Torvalds 提交于
      Pull powerpc fixes from Michael Ellerman:
       "Fixes marked for stable:
         - Convert cmp to cmpd in idle enter sequence (Segher Boessenkool)
         - cxl: Fix leaking pid refs in some error paths (Vaibhav Jain)
         - Re-fix race condition between going idle and entering guest (Paul Mackerras)
         - Fix race condition in setting lock bit in idle/wakeup code (Paul Mackerras)
         - radix: Use tlbiel only if we ever ran on the current cpu (Aneesh Kumar K.V)
         - relocation, register save fixes for system reset interrupt (Nicholas Piggin)
      
        Fixes for code merged this cycle:
         - Fix CONFIG_ALIVEC typo in restore_tm_state() (Valentin Rothberg)
         - KVM: PPC: Book3S HV: Fix build error when SMP=n (Michael Ellerman)"
      
      * tag 'powerpc-4.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s: relocation, register save fixes for system reset interrupt
        powerpc/mm/radix: Use tlbiel only if we ever ran on the current cpu
        powerpc/process: Fix CONFIG_ALIVEC typo in restore_tm_state()
        powerpc/64: Fix race condition in setting lock bit in idle/wakeup code
        powerpc/64: Re-fix race condition between going idle and entering guest
        cxl: Fix leaking pid refs in some error paths
        powerpc: Convert cmp to cmpd in idle enter sequence
        KVM: PPC: Book3S HV: Fix build error when SMP=n
      6fcc8cea
    • L
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b49c3170
      Linus Torvalds 提交于
      Pull perf fixes from Ingo Molnar:
       "Misc kernel fixes: a virtualization environment related fix, an uncore
        PMU driver removal handling fix, a PowerPC fix and new events for
        Knights Landing"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/intel: Honour the CPUID for number of fixed counters in hypervisors
        perf/powerpc: Don't call perf_event_disable() from atomic context
        perf/core: Protect PMU device removal with a 'pmu_bus_running' check, to fix CONFIG_DEBUG_TEST_DRIVER_REMOVE=y kernel panic
        perf/x86/intel/cstate: Add C-state residency events for Knights Landing
      b49c3170
    • L
      Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · ed99d367
      Linus Torvalds 提交于
      Pull libnvdimm fixes from Dan Williams:
       "A build fix, a NULL de-reference found by static analysis, a misuse of
        the percpu_ref_exit() (tagged for -stable), and notification of failed
        attempts to clear media errors.
      
        These patches have received a build success notification from the
        0day- kbuild-robot and appeared in next-20161028"
      
      * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        device-dax: fix percpu_ref_exit ordering
        nvdimm: make CONFIG_NVDIMM_DAX 'bool'
        pmem: report error on clear poison failure
        libnvdimm, namespace: potential NULL deref on allocation error
      ed99d367
    • L
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · b92d9648
      Linus Torvalds 提交于
      Pull arm64 fixes from Will Deacon:
       "Three arm64 fixes for -rc3.  They're all pretty straightforward: a
        couple of NUMA issues from the Huawei folks and a thinko in
        __page_to_voff that seems to be benign, but is certainly better off
        fixed.
      
        Summary:
         - couple of NUMA fixes
         - thinko in __page_to_voff"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: mm: fix __page_to_voff definition
        arm64/numa: fix incorrect log for memory-less node
        arm64/numa: fix pcpu_cpu_distance() to get correct CPU proximity
      b92d9648
    • L
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c38c04c6
      Linus Torvalds 提交于
      Pull x86 fixes from Ingo Molnar:
       "Misc fixes: three build fixes, an unwinder fix and a microcode loader
        fix"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/microcode/AMD: Fix more fallout from CONFIG_RANDOMIZE_MEMORY=y
        x86: Fix export for mcount and __fentry__
        x86/quirks: Hide maybe-uninitialized warning
        x86/build: Fix build with older GCC versions
        x86/unwind: Fix empty stack dereference in guess unwinder
      c38c04c6
    • L
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a8006bd9
      Linus Torvalds 提交于
      Pull timer fixes from Ingo Molnar:
       "Fix four timer locking races: two were noticed by Linus while
        reviewing the code while chasing for a corruption bug, and two
        from fixing spurious USB timeouts"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        timers: Prevent base clock corruption when forwarding
        timers: Prevent base clock rewind when forwarding clock
        timers: Lock base for same bucket optimization
        timers: Plug locking race vs. timer migration
      a8006bd9
    • L
      Merge branches 'core-urgent-for-linus', 'irq-urgent-for-linus' and... · 965c4b7e
      Linus Torvalds 提交于
      Merge branches 'core-urgent-for-linus', 'irq-urgent-for-linus' and 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
      
      Pull objtool, irq and scheduler fixes from Ingo Molnar:
       "One more objtool fixlet for GCC6 code generation patterns, an irq
        DocBook fix and an unused variable warning fix in the scheduler"
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Fix rare switch jump table pattern detection
      
      * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        doc: Add missing parameter for msi_setup
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/fair: Remove unused but set variable 'rq'
      965c4b7e
    • V
      ARC: module: print pretty section names · b75dcd9c
      Vineet Gupta 提交于
      Now that we have referece to section name string table in
      apply_relocate_add(), use it to
      
       - print the name of section being relocated
       - print symbol with NULL name (since it refers to a section)
      
      before
      
      | Section to fixup 7000a060
      | =========================================================
      | rela->r_off | rela->addend | sym->st_value | ADDR | VALUE
      | =========================================================
      |	1c		0		7000e000  7000a07c 7000e000 []
      |	40		0		7000a000  7000a0a0 7000a000 []
      
      after
      
      | Section to fixup .eh_frame @7000a060
      | =========================================================
      | r_off	r_add	st_value ADDRESS  VALUE
      | =========================================================
      |    1c	0	7000e000 7000a07c 7000e000 [.init.text]
      |    40	0	7000a000 7000a0a0 7000a000 [.exit.text]
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      b75dcd9c
    • V
      ARC: module: elide loop to save reference to .eh_frame · d65283f7
      Vineet Gupta 提交于
      The loop was really needed in .debug_frame regime where wanted make it
      as SH_ALLOC so that apply_relocate_add() would process it. That's not
      needed for .eh_frame, so we check this in apply_relocate_add() which
      gets called for each section.
      
      Note that we need to save reference to "section name strings" section in
      module_frob_arch_sections() since apply_relocate_add() doesn't get that
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      d65283f7
    • V
      ARC: mm: retire ARC_DBG_TLB_MISS_COUNT... · f644e368
      Vineet Gupta 提交于
      ... given that we have perf counters abel to do the same thing non
      intrusively
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      f644e368
    • V
      ARC: build: retire old toggles · c3005475
      Vineet Gupta 提交于
      These are really ancient toggles and tools no longer require them to be
      passed. This paves way for deprecating them in long run.
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      c3005475
    • V
      ARC: boot log: refactor cpu name/release printing · d975cbc8
      Vineet Gupta 提交于
      The motivation is to identify ARC750 vs. ARC770 (we currently print
      generic "ARC700").
      
      A given ARC700 release could be 750 or 770, with same ARCNUM (or family
      identifier which is unfortunate). The existing arc_cpu_tbl[] kept a single
      concatenated string for core name and release which thus doesn't work
      for 750 vs. 770 identification.
      
      So split this into 2 tables, one with core names and other with release.
      And while we are at it, get rid of the range checking for family numbers.
      We just document the known to exist cores running Linux and ditch
      others.
      
      With this in place, we add detection of ARC750 which is
       - cores 0x33 and before
       - cores 0x34 and later with MMUv2
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      d975cbc8
    • V
      d7c46114
    • V
      ARC: boot log: don't assume SWAPE instruction support · a024fd9b
      Vineet Gupta 提交于
      This came to light when helping a customer with oldish ARC750 core who
      were getting instruction errors because of lack of SWAPE but boot log
      was incorrectly printing it as being present
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      a024fd9b
    • V
      ARC: boot log: refactor printing abt features not captured in BCRs · 73e284d2
      Vineet Gupta 提交于
      On older arc700 cores, some of the features configured were not present
      in Build config registers. To print about them at boot, we just use the
      Kconfig option i.e. whether linux is built to use them or not.
      So yes this seems bogus, but what else can be done. Moreover if linux is
      booting with these enabled, then the Kconfig info is a good indicator
      anyways.
      
      Over time these "hacks" accumulated in read_arc_build_cfg_regs() as well
      as arc_cpu_mumbojumbo(). so refactor and move all of those in a single
      place: read_arc_build_cfg_regs(). This causes some code redcution too:
      
      | bloat-o-meter2 arch/arc/kernel/setup.o.0 arch/arc/kernel/setup.o.1
      | add/remove: 0/0 grow/shrink: 2/1 up/down: 64/-132 (-68)
      | function                                     old     new   delta
      | setup_processor                              610     670     +60
      | cpuinfo_arc700                                76      80      +4
      | arc_cpu_mumbojumbo                           752     620    -132
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      73e284d2
    • L
      Merge branch 'for-linus-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · f6167514
      Linus Torvalds 提交于
      Pull btrfs fixes from Chris Mason:
       "My patch fixes the btrfs list_head abuse that we tracked down during
        Dave Jones' memory corruption investigation. With both Jens and my
        patches in place, I'm no longer able to trigger problems.
      
        Filipe is fixing a difficult old bug between snapshots, balance and
        send. Dave is cooking a few more for the next rc, but these are tested
        and ready"
      
      * 'for-linus-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
        btrfs: fix races on root_log_ctx lists
        btrfs: fix incremental send failure caused by balance
      f6167514
    • V
      ARCv2: boot log: print IOC exists as well as enabled status · 711c1f26
      Vineet Gupta 提交于
      Previously we would not print the case when IOC existed but was not
      enabled.
      
      And while at it, reduce one line off boot printing by consolidating
      the Peripheral address space and IO-Coherency which in a way
      applies to them
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      711c1f26
    • L
      Merge tag 'sound-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 2cd0b50a
      Linus Torvalds 提交于
      Pull sound fixes from Takashi Iwai:
       "This contains the usual stuff -- the fixups and quirks for HD-audio
        and USB-audio, in addition to a bad regression fix in ALSA sequencer
        timer since 4.8, and a trivial fix for asihpi PCI driver"
      
      * tag 'sound-4.9-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: usb-audio: Add quirk for Syntek STK1160
        ALSA: seq: Fix time account regression
        ALSA: hda - Fix surround output pins for ASRock B150M mobo
        ALSA: hda - Fix headset mic detection problem for two Dell laptops
        ALSA: asihpi: fix kernel memory disclosure
        ALSA: hda - Adding a new group of pin cfg into ALC295 pin quirk table
        ALSA: hda - allow 40 bit DMA mask for NVidia devices
      2cd0b50a
    • L
      Merge tag 'drm-x86-pat-regression-fix' of git://people.freedesktop.org/~airlied/linux · bdb52084
      Linus Torvalds 提交于
      Pull drm x86/pat regression fixes from Dave Airlie:
       "This is a standalone pull request for the fix for a regression
        introduced in -rc1 by a change to vm_insert_mixed to start using the
        PAT range tracking to validate page protections. With this fix in
        place, all the VRAM mappings for GPU drivers ended up at UC instead of
        WC.
      
        There are probably better ways to fix this long term, but nothing I'd
        considered for -fixes that wouldn't need more settling in time. So
        I've just created a new arch API that the drivers can reserve all
        their VRAM aperture ranges as WC"
      
      * tag 'drm-x86-pat-regression-fix' of git://people.freedesktop.org/~airlied/linux:
        drm/drivers: add support for using the arch wc mapping API.
        x86/io: add interface to reserve io memtype for a resource range. (v1.1)
      bdb52084
    • L
      Merge tag 'dm-4.9-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm · e0f3e6a7
      Linus Torvalds 提交于
      Pull device mapper fixes from Mike Snitzer:
      
       - a couple DM raid and DM mirror fixes
      
       - a couple .request_fn request-based DM NULL pointer fixes
      
       - a fix for a DM target reference count leak, on target load error,
         that prevented associated DM target kernel module(s) from being
         removed
      
      * tag 'dm-4.9-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm table: fix missing dm_put_target_type() in dm_table_add_target()
        dm rq: clear kworker_task if kthread_run() returned an error
        dm: free io_barrier after blk_cleanup_queue call
        dm raid: fix activation of existing raid4/10 devices
        dm mirror: use all available legs on multiple failures
        dm mirror: fix read error on recovery after default leg failure
        dm raid: fix compat_features validation
      e0f3e6a7
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security · 43937003
      Linus Torvalds 提交于
      Pull key fixes from James Morris:
      
       - fix a buffer overflow when displaying /proc/keys [CVE-2016-7042].
      
       - fix broken initialisation in the big_key implementation that can
         result in an oops.
      
       - make big_key depend on having a random number generator available in
         Kconfig.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        security/keys: make BIG_KEYS dependent on stdrng.
        KEYS: Sort out big_key initialisation
        KEYS: Fix short sprintf buffer in /proc/keys show function
      43937003
  2. 28 10月, 2016 18 次提交