1. 01 9月, 2015 22 次提交
    • R
      Merge branches 'pm-cpuidle', 'pm-devfreq' and 'pm-clk' · 5cf896b3
      Rafael J. Wysocki 提交于
      * pm-cpuidle:
        cpuidle/coupled: Remove redundant 'dev' argument of cpuidle_state_is_coupled()
        cpuidle/coupled: Remove cpuidle_device::safe_state_index
        intel_idle: Skylake Client Support
        intel_idle: allow idle states to be freeze-mode specific
      
      * pm-devfreq:
        PM / devfreq: exynos-ppmu: Update documentation to support PPMUv2
        PM / devfreq: exynos-ppmu: Add the support of PPMUv2 for Exynos5433
        PM / devfreq: event: Remove incorrect property in exynos-ppmu DT binding
      
      * pm-clk:
        PM / clk: don't return int on __pm_clk_enable()
      5cf896b3
    • R
      Merge branch 'pm-opp' · ac2a29c8
      Rafael J. Wysocki 提交于
      * pm-opp:
        PM / OPP: Drop unlikely before IS_ERR(_OR_NULL)
        PM / OPP: Fix static checker warning (broken 64bit big endian systems)
        PM / OPP: Free resources and properly return error on failure
        cpufreq-dt: make scaling_boost_freqs sysfs attr available when boost is enabled
        cpufreq: dt: Add support for turbo/boost mode
        cpufreq: dt: Add support for operating-points-v2 bindings
        cpufreq: Allow drivers to enable boost support after registering driver
        cpufreq: Update boost flag while initializing freq table from OPPs
        PM / OPP: add dev_pm_opp_is_turbo() helper
        PM / OPP: Add helpers for initializing CPU OPPs
        PM / OPP: Add support for opp-suspend
        PM / OPP: Add OPP sharing information to OPP library
        PM / OPP: Add clock-latency-ns support
        PM / OPP: Add support to parse "operating-points-v2" bindings
        PM / OPP: Break _opp_add_dynamic() into smaller functions
        PM / OPP: Allocate dev_opp from _add_device_opp()
        PM / OPP: Create _remove_device_opp() for freeing dev_opp
        PM / OPP: Relocate few routines
        PM / OPP: Create a directory for opp bindings
        PM / OPP: Update bindings to make opp-hz a 64 bit value
      ac2a29c8
    • R
      Merge branch 'pm-cpufreq' · 4ffe18c2
      Rafael J. Wysocki 提交于
      * pm-cpufreq: (53 commits)
        cpufreq: speedstep-lib: Use monotonic clock
        cpufreq: powernv: Increase the verbosity of OCC console messages
        cpufreq: sfi: use kmemdup rather than duplicating its implementation
        cpufreq: drop !cpufreq_driver check from cpufreq_parse_governor()
        cpufreq: rename cpufreq_real_policy as cpufreq_user_policy
        cpufreq: remove redundant 'policy' field from user_policy
        cpufreq: remove redundant 'governor' field from user_policy
        cpufreq: update user_policy.* on success
        cpufreq: use memcpy() to copy policy
        cpufreq: remove redundant CPUFREQ_INCOMPATIBLE notifier event
        cpufreq: mediatek: Add MT8173 cpufreq driver
        dt-bindings: mediatek: Add MT8173 CPU DVFS clock bindings
        intel_pstate: append more Oracle OEM table id to vendor bypass list
        intel_pstate: Add SKY-S support
        intel_pstate: Fix possible overflow complained by Coverity
        cpufreq: Correct a freq check in cpufreq_set_policy()
        cpufreq: Lock CPU online/offline in cpufreq_register_driver()
        cpufreq: Replace recover_policy with new_policy in cpufreq_online()
        cpufreq: Separate CPU device registration from CPU online
        cpufreq: powernv: Restore cpu frequency to policy->cur on unthrottling
        ...
      4ffe18c2
    • A
      cpufreq: speedstep-lib: Use monotonic clock · 72e624de
      Abhilash Jindal 提交于
      Wall time obtained from do_gettimeofday is susceptible to sudden jumps due to
      user setting the time or due to NTP.
      
      Monotonic time is constantly increasing time better suited for comparing two
      timestamps.
      Signed-off-by: NAbhilash Jindal <klock.android@gmail.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      72e624de
    • S
      cpufreq: powernv: Increase the verbosity of OCC console messages · 309d0631
      Shilpasri G Bhat 提交于
      Modify the OCC reset/load/active event message to make it clearer for
      the user to understand the event and effect of the event.
      Suggested-by: NStewart Smith <stewart@linux.vnet.ibm.com>
      Signed-off-by: NShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      309d0631
    • A
      cpufreq: sfi: use kmemdup rather than duplicating its implementation · a482e556
      Andrzej Hajda 提交于
      The patch was generated using fixed coccinelle semantic patch
      scripts/coccinelle/api/memdup.cocci [1].
      
      [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320Signed-off-by: NAndrzej Hajda <a.hajda@samsung.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a482e556
    • V
      cpufreq: drop !cpufreq_driver check from cpufreq_parse_governor() · 36dfef23
      Viresh Kumar 提交于
      Driver is guaranteed to be present on a call to cpufreq_parse_governor()
      and there is no need to check for !cpufreq_driver. Drop it.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      36dfef23
    • V
      cpufreq: rename cpufreq_real_policy as cpufreq_user_policy · c7a7b418
      Viresh Kumar 提交于
      Its all about caching min/max freq requested by userspace, and
      the name 'cpufreq_real_policy' doesn't fit that well. Rename it to
      cpufreq_user_policy.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      c7a7b418
    • V
      cpufreq: remove redundant 'policy' field from user_policy · 88dc4384
      Viresh Kumar 提交于
      Its always same as policy->policy, and there is no need to keep another
      copy of it. Remove it.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      88dc4384
    • V
      cpufreq: remove redundant 'governor' field from user_policy · e27f8bd2
      Viresh Kumar 提交于
      Its always same as policy->governor, and there is no need to keep
      another copy of it. Remove it.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e27f8bd2
    • V
      cpufreq: update user_policy.* on success · 14ca0bdf
      Viresh Kumar 提交于
      'user_policy' caches properties of a policy that are set by userspace.
      And these must be updated only if cpufreq core was successful in
      updating them based on request from user space.
      
      In store_scaling_governor(), we are updating user_policy.policy and
      user_policy.governor even if cpufreq_set_policy() failed. That's
      incorrect.
      
      Fix this by updating user_policy.* only if we were successful in
      updating the properties.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      14ca0bdf
    • V
      cpufreq: use memcpy() to copy policy · 8fa5b631
      Viresh Kumar 提交于
      cpufreq_get_policy() is useful if the pointer to policy isn't available
      in advance. But if it is available, then there is no need to call
      cpufreq_get_policy(). Directly use memcpy() to copy the policy.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8fa5b631
    • V
      cpufreq: remove redundant CPUFREQ_INCOMPATIBLE notifier event · 6bfb7c74
      Viresh Kumar 提交于
      What's being done from CPUFREQ_INCOMPATIBLE, can also be done with
      CPUFREQ_ADJUST. There is nothing special with CPUFREQ_INCOMPATIBLE
      notifier.
      
      Kill CPUFREQ_INCOMPATIBLE and fix its usage sites.
      
      This also updates the numbering of notifier events to remove holes.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      6bfb7c74
    • P
      cpufreq: mediatek: Add MT8173 cpufreq driver · 1453863f
      Pi-Cheng Chen 提交于
      Mediatek MT8173 is an ARMv8 based quad-core (2*Cortex-A53 and
      2*Cortex-A72) SoC with duall clusters. For each cluster, two voltage
      inputs, Vproc and Vsram are supplied by two regulators. For the big
      cluster, two regulators come from different PMICs. In this case, when
      scaling voltage inputs of the cluster, the voltages of two regulator
      inputs need to be controlled by software explicitly under the SoC
      specific limitation:
      
      	100mV < Vsram - Vproc < 200mV
      
      which is called 'voltage tracking' mechanism. And when scaling the
      frequency of cluster clock input, the input MUX need to be parented to
      another "intermediate" stable PLL first and reparented to the original
      PLL once the original PLL is stable at the target frequency. This patch
      implements those mechanisms to enable CPU DVFS support for Mediatek
      MT8173 SoC.
      Signed-off-by: NPi-Cheng Chen <pi-cheng.chen@linaro.org>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1453863f
    • P
      dt-bindings: mediatek: Add MT8173 CPU DVFS clock bindings · c9c96ae2
      Pi-Cheng Chen 提交于
      This patch adds the clock and regulator consumer properties part of
      document for CPU DVFS clocks on Mediatek MT8173 SoC.
      Signed-off-by: NPi-Cheng Chen <pi-cheng.chen@linaro.org>
      Acked-by: NMichael Turquette <mturquette@baylibre.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      c9c96ae2
    • R
      Merge branch 'device-properties' · 49801251
      Rafael J. Wysocki 提交于
      * device-properties:
        device property: check fwnode type in to_of_node()
        device property: attach 'else if' to the proper 'if'
        device property: fallback to pset when gettng one string
        device property: fix potential NULL pointer dereference
      49801251
    • R
      Merge branches 'acpi-pci', 'acpi-soc', 'acpi-ec' and 'acpi-osl' · 5d2a1a92
      Rafael J. Wysocki 提交于
      * acpi-pci:
        ACPI, PCI: Penalize legacy IRQ used by ACPI SCI
      
      * acpi-soc:
        ACPI / LPSS: Ignore 10ms delay for Braswell
      
      * acpi-ec:
        ACPI / EC: Fix an issue caused by the serialized _Qxx evaluations
      
      * acpi-osl:
        ACPI / osl: replace custom implementation of readq / writeq
      5d2a1a92
    • R
      Merge branch 'acpi-pm' · ef5f5de0
      Rafael J. Wysocki 提交于
      * acpi-pm:
        ACPI / bus: Move duplicate code to a separate new function
        mfd: Add support for Intel Sunrisepoint LPSS devices
        dmaengine: add a driver for Intel integrated DMA 64-bit
        mfd: make mfd_remove_devices() iterate in reverse order
        driver core: implement device_for_each_child_reverse()
        klist: implement klist_prev()
        Driver core: wakeup the parent device before trying probe
        ACPI / PM: Attach ACPI power domain only once
        PM / QoS: Make it possible to expose device latency tolerance to userspace
        ACPI / PM: Update the copyright notice and description of power.c
      ef5f5de0
    • R
      Merge branches 'acpi-scan', 'acpi-processor' and 'acpi-assorted' · 73990fc8
      Rafael J. Wysocki 提交于
      * acpi-scan:
        ACPI / bus: Move ACPI bus type registration
        ACPI / scan: Move bus operations and notification routines to bus.c
        ACPI / scan: Move device matching code to bus.c
        ACPI / scan: Move sysfs-related device code to a separate file
      
      * acpi-processor:
        PCC: Disable compilation by default
        ACPI: Decouple ACPI idle and ACPI processor drivers
        ACPI: Split out ACPI PSS from ACPI Processor driver
        PCC: Initialize PCC Mailbox earlier at boot
        ACPI / processor: remove leftover __refdata annotations
      
      * acpi-assorted:
        ACPI: fix acpi_debugfs_init prototype
        ACPI: Remove FSF mailing addresses
      73990fc8
    • R
      Merge branch 'acpi-trace' · 94f2bb9b
      Rafael J. Wysocki 提交于
      * acpi-trace:
        ACPI / Documentation: Update method tracing documentation.
        ACPI / sysfs: Add support to allow leading "\" missing in trace_method_name.
        ACPI / sysfs: Update method tracing facility.
        ACPI / sysfs: Add ACPI_LV_REPAIR debug level.
      94f2bb9b
    • R
      Merge branch 'acpi-tools' · 20a20008
      Rafael J. Wysocki 提交于
      * acpi-tools:
        tools/power/acpi: Enable build for EC userspace tool
        tools/power/acpi: Add descend support in ACPI tools Makefile
      20a20008
    • R
      Merge branch 'acpica' · c91c5b27
      Rafael J. Wysocki 提交于
      * acpica: (42 commits)
        ACPICA: Update version to 20150818
        ACPICA: Debugger: Cleanup debugging outputs to dump name path without trailing underscores
        ACPICA: Disassembler: Cleanup acpi_gbl_db_opt_verbose acpiexec usage
        ACPICA: Disassembler: Cleanup acpi_gbl_db_opt_disasm
        ACPICA: Debugger: Split debugger initialization/termination APIs
        ACPICA: Header support to improve compatibility with MSVC
        ACPICA: Make the max-number-of-loops runtime configurable
        ACPICA: Debugger: Add option to display namespace summary/counts
        ACPICA: Add additional debug info/statements
        ACPICA: Table handling: Cleanup and update debug output for tools
        ACPICA: acpiexec/acpinames: Support very large number of ACPI tables
        ACPICA: acpinames: Add new options and wildcard support
        ACPICA: Headers: Fix some comments, no functional change
        ACPICA: Tables: Cleanup to reduce FACS globals
        ACPICA: Tables: Fix global table list issues by removing fixed table indexes
        ACPICA: Update info messages during ACPICA init
        ACPICA: Disassembler: Update for new listing mode
        ACPICA: Update parameter validation for data_table_region and load_table
        ACPICA: Disassembler: Remove duplicate code in _PLD processing.
        ACPICA: Correctly cleanup after a ACPI table load failure
        ...
      c91c5b27
  2. 31 8月, 2015 1 次提交
  3. 30 8月, 2015 1 次提交
  4. 29 8月, 2015 2 次提交
  5. 28 8月, 2015 14 次提交
    • V
      PM / OPP: Drop unlikely before IS_ERR(_OR_NULL) · 50a3cb04
      Viresh Kumar 提交于
      IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there
      is no need to do that again from its callers. Drop it.
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      50a3cb04
    • V
      PM / OPP: Fix static checker warning (broken 64bit big endian systems) · 68fa9f0a
      Viresh Kumar 提交于
      Dan Carpenter reported (generated with static checker):
      
      drivers/base/power/opp.c:949 _opp_add_static_v2()
      warn: passing casted pointer '&new_opp->clock_latency_ns' to
      'of_property_read_u32()' 64 vs 32.
      
      This code will break on 64 bit, big endian machines.
      
      Fix this by reading the value in a u32 type variable first and then
      assigning it to the unsigned long variable.
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Suggested-by: NStephen Boyd <sboyd@codeaurora.org>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      68fa9f0a
    • X
      cpuidle/coupled: Remove redundant 'dev' argument of cpuidle_state_is_coupled() · 4c1ed5a6
      Xunlei Pang 提交于
      For cpuidle_state_is_coupled(), 'dev' is not used, so remove it.
      Signed-off-by: NXunlei Pang <pang.xunlei@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      4c1ed5a6
    • X
      cpuidle/coupled: Remove cpuidle_device::safe_state_index · ba6a860d
      Xunlei Pang 提交于
      cpuidle_device::safe_state_index need to be initialized before
      use, it should be the same as cpuidle_driver::safe_state_index.
      
      We tackled this issue by removing the safe_state_index from the
      cpuidle_device structure and use the one in the cpuidle_driver
      structure instead.
      Suggested-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: NXunlei Pang <pang.xunlei@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ba6a860d
    • V
      PM / OPP: Free resources and properly return error on failure · 1f821ed7
      Viresh Kumar 提交于
      _of_init_opp_table_v2() isn't freeing up resources on some errors and
      the error values returned are also not correct always.
      
      This fixes following problems:
      - Return -ENOENT, if no entries are found in the table.
      - Use IS_ERR() to properly check return value of _find_device_opp().
      - Return error value with PTR_ERR() in above case.
      - Free table if _find_device_opp() fails.
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1f821ed7
    • L
      Merge tag 'powerpc-4.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 4941b8f0
      Linus Torvalds 提交于
      Pull powerpc fixes from Michael Ellerman:
       "Fix MSI/MSI-X on pseries from Guilherme"
      
      * tag 'powerpc-4.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/PCI: Disable MSI/MSI-X interrupts at PCI probe time in OF case
        PCI: Make pci_msi_setup_pci_dev() non-static for use by arch code
      4941b8f0
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · e001d708
      Linus Torvalds 提交于
      Pull networking fixes from David Miller:
       "Some straggler bug fixes here:
      
         1) Netlink_sendmsg() doesn't check iterator type properly in mmap
            case, from Ken-ichirou MATSUZAWA.
      
         2) Don't sleep in atomic context in bcmgenet driver, from Florian
            Fainelli.
      
         3) The pfkey_broadcast() code patch can't actually ever use anything
            other than GFP_ATOMIC.  And the cases that right now pass
            GFP_KERNEL or similar will currently trigger an RCU splat.  Just
            use GFP_ATOMIC unconditionally.  From David Ahern.
      
         4) Fix FD bit timings handling in pcan_usb driver, from Marc
            Kleine-Budde.
      
         5) Cache dst leaked in ip6_gre tunnel removal, fix from Huaibin Wang.
      
         6) Traversal into drivers/net/ethernet/renesas should be triggered by
            CONFIG_NET_VENDOR_RENESAS, not a particular driver's config
            option.  From Kazuya Mizuguchi.
      
         7) Fix regression in handling of igmp_join errors in vxlan, from
            Marcelo Ricardo Leitner.
      
         8) Make phy_{read,write}_mmd_indirect() properly take the mdio_lock
            mutex when programming the registers.  From Russell King.
      
         9) Fix non-forced handling in u32_destroy(), from WANG Cong.
      
        10) Test the EVENT_NO_RUNTIME_PM flag before it is cleared in
            usbnet_stop(), from Eugene Shatokhin.
      
        11) In sfc driver, don't fetch statistics firmware isn't capable of,
            from Bert Kenward.
      
        12) Verify ASCONF address parameter location in SCTP, from Xin Long"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
        sctp: donot reset the overall_error_count in SHUTDOWN_RECEIVE state
        sctp: asconf's process should verify address parameter is in the beginning
        sfc: only use vadaptor stats if firmware is capable
        net: phy: fixed: propagate fixed link values to struct
        usbnet: Get EVENT_NO_RUNTIME_PM bit before it is cleared
        drivers: net: xgene: fix: Oops in linkwatch_fire_event
        cls_u32: complete the check for non-forced case in u32_destroy()
        net: fec: use reinit_completion() in mdio accessor functions
        net: phy: add locking to phy_read_mmd_indirect()/phy_write_mmd_indirect()
        vxlan: re-ignore EADDRINUSE from igmp_join
        net: compile renesas directory if NET_VENDOR_RENESAS is configured
        ip6_gre: release cached dst on tunnel removal
        phylib: Make PHYs children of their MDIO bus, not the bus' parent.
        can: pcan_usb: don't provide CAN FD bittimings by non-FD adapters
        net: Fix RCU splat in af_key
        net: bcmgenet: fix uncleaned dma flags
        net: bcmgenet: Avoid sleeping in bcmgenet_timeout
        netlink: mmap: fix tx type check
      e001d708
    • L
      Merge branch 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 5c98bcce
      Linus Torvalds 提交于
      Pull nvdimm fixlet from Dan Williams:
       "This is a libnvdimm ABI fixup.
      
        I pushed back on this change quite hard given the late date, that it
        appears to be purely cosmetic, sysfs is not necessarily meant to be a
        user friendly UI, and the kernel interprets the reversed polarity of
        the ACPI_NFIT_MEM_ARMED flag correctly.  When this flag is set, the
        energy source of an NVDIMM is not armed and any new writes to the DIMM
        may not be preserved.
      
        However, Bob Moore warned me that it is important to get these things
        named correctly wherever they appear otherwise we run the risk of a
        less than cautious firmware engineer implementing the polarity the
        wrong way.  Once a mistake like that escapes into production platforms
        the flag becomes useless and we need to move to a new bit position.
      
        Bob has agreed to take a change through ACPICA to rename
        ACPI_NFIT_MEM_ARMED to ACPI_NFIT_MEM_NOT_ARMED, and the patch below
        from Toshi brings the sysfs representation of these flags in line with
        their respective polarities.
      
        Please pull for 4.2 as this is the first kernel to expose the ACPI
        NFIT sysfs representation, and this is likely a kernel that firmware
        developers will be using for checking out their NVDIMM enabling"
      
      * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        nfit: Clarify memory device state flags strings
      5c98bcce
    • L
      sctp: donot reset the overall_error_count in SHUTDOWN_RECEIVE state · f648f807
      lucien 提交于
      Commit f8d96052 ("sctp: Enforce retransmission limit during shutdown")
      fixed a problem with excessive retransmissions in the SHUTDOWN_PENDING by not
      resetting the association overall_error_count.  This allowed the association
      to better enforce assoc.max_retrans limit.
      
      However, the same issue still exists when the association is in SHUTDOWN_RECEIVED
      state.  In this state, HB-ACKs will continue to reset the overall_error_count
      for the association would extend the lifetime of association unnecessarily.
      
      This patch solves this by resetting the overall_error_count whenever the current
      state is small then SCTP_STATE_SHUTDOWN_PENDING.  As a small side-effect, we
      end up also handling SCTP_STATE_SHUTDOWN_ACK_SENT and SCTP_STATE_SHUTDOWN_SENT
      states, but they are not really impacted because we disable Heartbeats in those
      states.
      
      Fixes: Commit f8d96052 ("sctp: Enforce retransmission limit during shutdown")
      Signed-off-by: NXin Long <lucien.xin@gmail.com>
      Acked-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
      Acked-by: NVlad Yasevich <vyasevich@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f648f807
    • L
      sctp: asconf's process should verify address parameter is in the beginning · ce7b4ccc
      lucien 提交于
      in sctp_process_asconf(), we get address parameter from the beginning of
      the addip params. but we never check if it's really there. if the addr
      param is not there, it still can pass sctp_verify_asconf(), then to be
      handled by sctp_process_asconf(), it will not be safe.
      
      so add a code in sctp_verify_asconf() to check the address parameter is in
      the beginning, or return false to send abort.
      
      note that this can also detect multiple address parameters, and reject it.
      Signed-off-by: NXin Long <lucien.xin@gmail.com>
      Signed-off-by: NMarcelo Ricardo Leitner <mleitner@redhat.com>
      Acked-by: NVlad Yasevich <vyasevich@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ce7b4ccc
    • T
      nfit: Clarify memory device state flags strings · 402bae59
      Toshi Kani 提交于
      ACPI 6.0 NFIT Memory Device State Flags in Table 5-129 defines
      NVDIMM status as follows.  These bits indicate multiple info,
      such as failures, pending event, and capability.
      
        Bit [0] set to 1 to indicate that the previous SAVE to the
        Memory Device failed.
        Bit [1] set to 1 to indicate that the last RESTORE from the
        Memory Device failed.
        Bit [2] set to 1 to indicate that platform flush of data to
        Memory Device failed. As a result, the restored data content
        may be inconsistent even if SAVE and RESTORE do not indicate
        failure.
        Bit [3] set to 1 to indicate that the Memory Device is observed
        to be not armed prior to OSPM hand off. A Memory Device is
        considered armed if it is able to accept persistent writes.
        Bit [4] set to 1 to indicate that the Memory Device observed
        SMART and health events prior to OSPM handoff.
      
      /sys/bus/nd/devices/nmemX/nfit/flags shows this flags info.
      The output strings associated with the bits are "save", "restore",
      "smart", etc., which can be confusing as they may be interpreted
      as positive status, i.e. save succeeded.
      
      Change also the dev_info() message in acpi_nfit_register_dimms()
      to be consistent with the sysfs flags strings.
      Reported-by: NRobert Elliott <elliott@hp.com>
      Signed-off-by: NToshi Kani <toshi.kani@hp.com>
      [ross: rename 'not_arm' to 'not_armed']
      Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
      [djbw: defer adding bit5, HEALTH_ENABLED, for now]
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      402bae59
    • B
      sfc: only use vadaptor stats if firmware is capable · fbe4307e
      Bert Kenward 提交于
      Some of the stats handling code differs based on SR-IOV support,
      and SRIOV support is only available if full-featured firmware is
      used.
      Do not use vadaptor stats if firmware mode is not set to
      full-featured.
      Signed-off-by: NShradha Shah <sshah@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fbe4307e
    • M
      net: phy: fixed: propagate fixed link values to struct · 4b195360
      Madalin Bucur 提交于
      The fixed link values parsed from the device tree are stored in
      the struct fixed_phy member status. The struct phy_device members
      speed, duplex were not updated.
      Signed-off-by: NMadalin Bucur <madalin.bucur@freescale.com>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4b195360
    • L
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 95803812
      Linus Torvalds 提交于
      Pull amr64 kvm fix from Will Deacon:
       "We've uncovered a nasty bug in the arm64 KVM code which allows a badly
        behaved 32-bit guest to bring down the host.  The fix is simple (it's
        what I believe we call a "brown paper bag" bug) and I don't think it
        makes sense to sit on this, particularly as Russell ended up
        triggering this rather than just somebody noticing a potential problem
        by inspection.
      
        Usually arm64 KVM changes would go via Paolo's tree, but he's on
        holiday at the moment and the deal is that anything urgent gets
        shuffled via the arch trees, so here it is.
      
        Summary:
      
        Fix arm64 KVM issue when injecting an abort into a 32-bit guest, which
        would lead to an illegal exception return at EL2 and a subsequent host
        crash"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: KVM: Fix host crash when injecting a fault into a 32bit guest
      95803812