1. 19 6月, 2015 9 次提交
    • R
      Merge branches 'acpi-battery' and 'acpi-processor' · 763d9495
      Rafael J. Wysocki 提交于
      * acpi-battery:
        ACPI / battery: mark DMI table as __initconst
        ACPI / battery: minor tweaks to acpi_battery_units()
        ACPI / battery: constify the offset tables
        ACPI / battery: ensure acpi_battery_init() has finish
        ACPI / battery: drop useless return statements
        ACPI / battery: abort initialization earlier if acpi_disabled
      
      * acpi-processor:
        ACPI / processor: constify DMI system id table
        ACPI / processor: Introduce invalid_phys_cpuid()
        ACPI / processor: return specific error instead of -1
        ACPI / processor: remove phys_id in acpi_processor_get_info()
        ACPI / processor: remove cpu_index in acpi_processor_get_info()
        Xen / ACPI / processor: Remove unneeded NULL check
        Xen / ACPI / processor: use invalid_logical_cpuid()
        ACPI / processor: Introduce invalid_logical_cpuid()
      763d9495
    • R
      Merge branches 'acpi-ac', 'acpi-soc' and 'acpi-assorted' · 0cddc580
      Rafael J. Wysocki 提交于
      * acpi-ac:
        ACPI / AC: constify DMI system id table
      
      * acpi-soc:
        ACPI / LPSS: constify device descriptors
      
      * acpi-assorted:
        ACPI / HED: constify ACPI device ids
      0cddc580
    • R
      Merge branch 'acpi-ec' · feabe392
      Rafael J. Wysocki 提交于
      * acpi-ec:
        ACPI / EC: Fix a code coverity issue when QR_EC transactions are failed.
        ACPI / EC: Fix EC_FLAGS_QUERY_HANDSHAKE platforms using new event clearing timing.
        ACPI / EC: Add event clearing variation support.
        ACPI / EC: Convert event handling work queue into loop style.
        ACPI / EC: Cleanup transaction state transition.
        ACPI / EC: Remove non-root-caused busy polling quirks.
        ACPI / EC: Add module params for polling modes.
        ACPI / EC: Fix and clean up register access guarding logics.
        ACPI / EC: Remove irqs_disabled() check.
        ACPI / EC: Remove storming threashold enlarging quirk.
        ACPI / EC: Update acpi_ec_is_gpe_raised() with new GPE status flag.
      feabe392
    • R
      Merge branches 'acpi-pm', 'acpi-apei', 'acpi-osl' and 'acpi-pci' · 4f1fd900
      Rafael J. Wysocki 提交于
      * acpi-pm:
        ACPI / PM: Add missing pm_generic_complete() invocation
        ACPI / PM: Turn power resources on and off in the right order during resume
        ACPI / PM: Rework device power management to follow ACPI 6
        ACPI / PM: Drop stale comment from acpi_power_transition()
      
      * acpi-apei:
        GHES: Make NMI handler have a single reader
        GHES: Elliminate double-loop in the NMI handler
        GHES: Panic right after detection
        GHES: Carve out the panic functionality
        GHES: Carve out error queueing in a separate function
      
      * acpi-osl:
        ACPI / osl: use same type for acpi_predefined_names values as in definition
      
      * acpi-pci:
        ACPI / PCI: remove stale list_head in struct acpi_prt_entry
      4f1fd900
    • R
      Merge branches 'acpi-init', 'acpi-pnp', 'acpi-scan', 'acpi-proc' and 'acpi-doc' · 3a5cf05a
      Rafael J. Wysocki 提交于
      * acpi-init:
        ACPI / init: Switch over platform to the ACPI mode later
      
      * acpi-pnp:
        ACPI / PNP: Avoid conflicting resource reservations
      
      * acpi-scan:
        ACPI / scan: constify ACPI device ids
        ACPI / property: Define a symbol for PRP0001
        ACPI / property: Refine consistency check for PRP0001
      
      * acpi-proc:
        ACPI / proc: make ACPI_PROCFS_POWER X86 only
      
      * acpi-doc:
        ACPI: Constify ACPI device IDs in documentation
        ACPI / enumeration: Document the rules regarding the PRP0001 device ID
        ACPI: fix kernel-parameters ordering in Documentation
      3a5cf05a
    • R
      Merge branch 'acpica' · 9695a980
      Rafael J. Wysocki 提交于
      * acpica: (22 commits)
        ACPICA: Fix for ill-formed GUID strings for NFIT tables.
        ACPICA: acpihelp: Update for new NFIT table GUIDs.
        ACPICA: Update version to 20150515.
        ACPICA: ACPI 6.0: Add support for NFIT table.
        ACPICA: acpi_help: Add option to display all known/supported ACPI tables.
        ACPICA: iASL/disassembler - fix possible fault for -e option.
        ACPICA: ACPI 6.0: Add changes for DRTM table.
        ACPICA: ACPI 6.0: Add support for IORT table.
        ACPICA: ACPI 6.0: Add ACPI_SUB_PTR().
        ACPICA: ACPI 6.0: Add changes for MADT table.
        ACPICA: Hardware: Fix a resource leak issue in acpi_hw_build_pci_list().
        ACPICA: Dispatcher: Fix a resource leak issue in acpi_ds_auto_serialize_method().
        ACPICA: ACPI 6.0: Add changes for LPIT table.
        ACPICA: ACPI 6.0: Add changes for FADT table.
        ACPICA: ACPI 6.0: Add support for WPBT table.
        ACPICA: iASL: Enhance detection of non-ascii or corrupted input files.
        ACPICA: Parser: Move a couple externals to the proper header.
        ACPICA: ACPI 6.0: Add support for XENV table.
        ACPICA: ACPI 6.0: Add support for new predefined names.
        ACPICA: ACPI 6.0: Add support for STAO table.
        ...
      9695a980
    • M
      ACPI: Constify ACPI device IDs in documentation · 1a147ed7
      Mathias Krause 提交于
      ACPI device ID arrays normally don't need to be written to as they're
      only ever read. The common usage -- embedding pointers to acpi_device_id
      arrays in other data structures -- reference them as 'const', e.g. as in
      struct acpi_driver / acpi_scan_handler / device_driver. The matchers are
      taking const pointers, too. So it's only natural, to propose using const
      arrays. Change the documentation accordingly.
      Signed-off-by: NMathias Krause <minipli@googlemail.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1a147ed7
    • R
      ACPI / enumeration: Document the rules regarding the PRP0001 device ID · eb348664
      Rafael J. Wysocki 提交于
      Document how the ACPI device enumeration code uses the special
      PRP0001 device ID.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: NHanjun Guo <hanjun.guo@linaro.org>
      Reviewed-by: NDarren Hart <dvhart@linux.intel.com>
      eb348664
    • R
      ACPI / PNP: Avoid conflicting resource reservations · 0f1b414d
      Rafael J. Wysocki 提交于
      Commit b9a5e5e1 "ACPI / init: Fix the ordering of
      acpi_reserve_resources()" overlooked the fact that the memory
      and/or I/O regions reserved by acpi_reserve_resources() may
      conflict with those reserved by the PNP "system" driver.
      
      If that conflict actually takes place, it causes the reservations
      made by the "system" driver to fail while before commit b9a5e5e1
      all reservations made by it and by acpi_reserve_resources() would be
      successful.  In turn, that allows the resources that haven't been
      reserved by the "system" driver to be used by others (e.g. PCI) which
      sometimes leads to functional problems (up to and including boot
      failures).
      
      To fix that issue, introduce a common resource reservation routine,
      acpi_reserve_region(), to be used by both acpi_reserve_resources()
      and the "system" driver, that will track all resources reserved by
      it and avoid making conflicting requests.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=99831
      Link: http://marc.info/?t=143389402600001&r=1&w=2
      Fixes: b9a5e5e1 "ACPI / init: Fix the ordering of acpi_reserve_resources()"
      Reported-by: NRoland Dreier <roland@purestorage.com>
      Cc: All applicable <stable@vger.kernel.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      0f1b414d
  2. 15 6月, 2015 21 次提交
  3. 13 6月, 2015 8 次提交
    • J
      MPI: MIPS: Fix compilation error with GCC 5.1 · 36f58113
      Jaedon Shin 提交于
      This patch fixes mips compilation error:
      
      lib/mpi/generic_mpih-mul1.c: In function 'mpihelp_mul_1':
      lib/mpi/longlong.h:651:2: error: impossible constraint in 'asm'
      Signed-off-by: NJaedon Shin <jaedon.shin@gmail.com>
      Cc: Linux-MIPS <linux-mips@linux-mips.org>
      Patchwork: https://patchwork.linux-mips.org/patch/10546/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      36f58113
    • R
      IRQCHIP: mips-gic: Don't nest calls to do_IRQ() · 1b3ed367
      Rabin Vincent 提交于
      The GIC chained handlers use do_IRQ() to call the subhandlers.  This
      means that irq_enter() calls get nested, which leads to preempt count
      looking like we're in nested interrupts, which in turn leads to all
      system time being accounted as IRQ time in account_system_time().
      
      Fix it by using generic_handle_irq().  Since these same functions are
      used in some systems (if cpu_has_veic) from a low-level vectored
      interrupt handler which does not go throught do_IRQ(), we need to do it
      conditionally.
      Signed-off-by: NRabin Vincent <rabin.vincent@axis.com>
      Reviewed-by: NAndrew Bresticker <abrestic@chromium.org>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: linux-mips@linux-mips.org
      Cc: tglx@linutronix.de
      Cc: jason@lakedaemon.net
      Patchwork: https://patchwork.linux-mips.org/patch/10545/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      1b3ed367
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · c8d17b45
      Linus Torvalds 提交于
      Pull networking fixes from David Miller:
      
       1) Fix uninitialized struct station_info in cfg80211_wireless_stats(),
          from Johannes Berg.
      
       2) Revert commit attempt to fix ipv6 protocol resubmission, it adds
          regressions.
      
       3) Endless loops can be created in bridge port lists, fix from Nikolay
          Aleksandrov.
      
       4) Don't WARN_ON() if sk->sk_forward_alloc is non-zero in
          sk_clear_memalloc, it is a legal situation during swap deactivation.
          Fix from Mel Gorman.
      
       5) Fix order of disabling interrupts and unlocking NAPI in enic driver
          to avoid a race.  From Govindarajulu Varadarajan.
      
       6) High and low register writes are swapped when programming the start
          of periodic output in igb driver.  From Richard Cochran.
      
       7) Fix device rename handling in mpls stack, from Robert Shearman.
      
       8) Do not trigger compaction synchronously when optimistically trying
          to allocate an order 3 page in alloc_skb_with_frags() and
          skb_page_frag_refill().  From Shaohua Li.
      
       9) Authentication with COOKIE_ECHO is not handled properly in SCTP, fix
          from Marcelo Ricardo Leitner.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
        Doc: networking: Fix URL for wiki.wireshark.org in udplite.txt
        sctp: allow authenticating DATA chunks that are bundled with COOKIE_ECHO
        net: don't wait for order-3 page allocation
        mpls: handle device renames for per-device sysctls
        net: igb: fix the start time for periodic output signals
        enic: fix memory leak in rq_clean
        enic: check return value for stat dump
        enic: unlock napi busy poll before unmasking intr
        net, swap: Remove a warning and clarify why sk_mem_reclaim is required when deactivating swap
        bridge: fix multicast router rlist endless loop
        tipc: disconnect socket directly after probe failure
        Revert "ipv6: Fix protocol resubmission"
        cfg80211: wext: clear sinfo struct before calling driver
      c8d17b45
    • M
      Doc: networking: Fix URL for wiki.wireshark.org in udplite.txt · b07d4961
      Masanari Iida 提交于
      This patch fix URL (http to https) for wiki.wireshark.org.
      Signed-off-by: NMasanari Iida <standby24x7@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b07d4961
    • M
      sctp: allow authenticating DATA chunks that are bundled with COOKIE_ECHO · ae36806a
      Marcelo Ricardo Leitner 提交于
      Currently, we can ask to authenticate DATA chunks and we can send DATA
      chunks on the same packet as COOKIE_ECHO, but if you try to combine
      both, the DATA chunk will be sent unauthenticated and peer won't accept
      it, leading to a communication failure.
      
      This happens because even though the data was queued after it was
      requested to authenticate DATA chunks, it was also queued before we
      could know that remote peer can handle authenticating, so
      sctp_auth_send_cid() returns false.
      
      The fix is whenever we set up an active key, re-check send queue for
      chunks that now should be authenticated. As a result, such packet will
      now contain COOKIE_ECHO + AUTH + DATA chunks, in that order.
      Reported-by: NLiu Wei <weliu@redhat.com>
      Signed-off-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Acked-by: NNeil Horman <nhorman@tuxdriver.com>
      Acked-by: NVlad Yasevich <vyasevich@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ae36806a
    • L
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · b85dfd30
      Linus Torvalds 提交于
      Pull block layer fixes from Jens Axboe:
       "Remember about a week ago when I sent the last pull request for 4.1?
        Well, I lied.  Now, I don't want to shift the blame, but Dan, Ming,
        and Richard made a liar out of me.
      
        Here are three small patches that should go into 4.1.  More
        specifically, this pull request contains:
      
         - A Kconfig dependency for the pmem block driver, so it can't be
           selected if HAS_IOMEM isn't availble.  From Richard Weinberger.
      
         - A fix for genhd, making the ext_devt_lock softirq safe.  This makes
           lockdep happier, since we also end up grabbing this lock on release
           off the softirq path.  From Dan Williams.
      
         - A blk-mq software queue release fix from Ming Lei.
      
        Last two are headed to stable, first fixes an issue introduced in this
        cycle"
      
      * 'for-linus' of git://git.kernel.dk/linux-block:
        block: pmem: Add dependency on HAS_IOMEM
        block: fix ext_dev_lock lockdep report
        blk-mq: free hctx->ctxs in queue's release handler
      b85dfd30
    • L
      Merge tag 'md/4.1-rc7-fixes' of git://neil.brown.name/md · 7b565d9d
      Linus Torvalds 提交于
      Pull three more md fixes from Neil Brown:
       "Hasn't been a good cycle for md has it :-(
      
        The main issue fixed here is a rare race which can result in two
        reshape threads running at once, which doesn't end well.
      
        Also a minor issue with a write to a sysfs file returning the wrong
        value.  Backports to 4.0-stable are indicated"
      
      * tag 'md/4.1-rc7-fixes' of git://neil.brown.name/md:
        md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync
        md: Close race when setting 'action' to 'idle'.
        md: don't return 0 from array_state_store
      7b565d9d
    • L
      Merge git://git.infradead.org/intel-iommu · c39f3bc6
      Linus Torvalds 提交于
      Pull VT-d hardware workarounds from David Woodhouse:
       "This contains a workaround for hardware issues which I *thought* were
        never going to be seen on production hardware.  I'm glad I checked
        that before the 4.1 release...
      
        Firstly, PASID support is so broken on existing chips that we're just
        going to declare the old capability bit 28 as 'reserved' and change
        the VT-d spec to move PASID support to another bit.  So any existing
        hardware doesn't support SVM; it only sets that (now) meaningless bit
        28.
      
        That patch *wasn't* imperative for 4.1 because we don't have PASID
        support yet.  But *even* the extended context tables are broken — if
        you just enable the wider tables and use none of the new bits in them,
        which is precisely what 4.1 does, you find that translations don't
        work.  It's this problem which I thought was caught in time to be
        fixed before production, but wasn't.
      
        To avoid triggering this issue, we now *only* enable the extended
        context tables on hardware which also advertises "we have PASID
        support and we actually tested it this time" with the new PASID
        feature bit.
      
        In addition, I've added an 'intel_iommu=ecs_off' command line
        parameter to allow us to disable it manually if we need to"
      
      * git://git.infradead.org/intel-iommu:
        iommu/vt-d: Only enable extended context tables if PASID is supported
        iommu/vt-d: Change PASID support to bit 40 of Extended Capability Register
      c39f3bc6
  4. 12 6月, 2015 2 次提交
    • D
      iommu/vt-d: Only enable extended context tables if PASID is supported · c83b2f20
      David Woodhouse 提交于
      Although the extended tables are theoretically a completely orthogonal
      feature to PASID and anything else that *uses* the newly-available bits,
      some of the early hardware has problems even when all we do is enable
      them and use only the same bits that were in the old context tables.
      
      For now, there's no motivation to support extended tables unless we're
      going to use PASID support to do SVM. So just don't use them unless
      PASID support is advertised too. Also add a command-line bailout just in
      case later chips also have issues.
      
      The equivalent problem for PASID support has already been fixed with the
      upcoming VT-d spec update and commit bd00c606 ("iommu/vt-d: Change
      PASID support to bit 40 of Extended Capability Register"), because the
      problematic platforms use the old definition of the PASID-capable bit,
      which is now marked as reserved and meaningless.
      
      So with this change, we'll magically start using ECS again only when we
      see the new hardware advertising "hey, we have PASID support and we
      actually tested it this time" on bit 40.
      
      The VT-d hardware architect has promised that we are not going to have
      any reason to support ECS *without* PASID any time soon, and he'll make
      sure he checks with us before changing that.
      
      In the future, if hypothetical new features also use new bits in the
      context tables and can be seen on implementations *without* PASID support,
      we might need to add their feature bits to the ecs_enabled() macro.
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      c83b2f20
    • N
      md: make sure MD_RECOVERY_DONE is clear before starting recovery/resync · ea358cd0
      NeilBrown 提交于
      MD_RECOVERY_DONE is normally cleared by md_check_recovery after a
      resync etc finished.  However it is possible for raid5_start_reshape
      to race and start a reshape before MD_RECOVERY_DONE is cleared.  This
      can lean to multiple reshapes running at the same time, which isn't
      good.
      
      To make sure it is cleared before starting a reshape, and also clear
      it when reaping a thread, just to be safe.
      Signed-off-by: NNeilBrown  <neilb@suse.de>
      ea358cd0