1. 07 10月, 2017 2 次提交
  2. 06 10月, 2017 1 次提交
    • J
      dm raid: fix incorrect status output at the end of a "recover" process · 41dcf197
      Jonathan Brassow 提交于
      There are three important fields that indicate the overall health and
      status of an array: dev_health, sync_ratio, and sync_action.  They tell
      us the condition of the devices in the array, and the degree to which
      the array is synchronized.
      
      This commit fixes a condition that is reported incorrectly.  When a member
      of the array is being rebuilt or a new device is added, the "recover"
      process is used to synchronize it with the rest of the array.  When the
      process is complete, but the sync thread hasn't yet been reaped, it is
      possible for the state of MD to be:
       mddev->recovery = [ MD_RECOVERY_RUNNING MD_RECOVERY_RECOVER MD_RECOVERY_DONE ]
       curr_resync_completed = <max dev size> (but not MaxSector)
       and all rdevs to be In_sync.
      This causes the 'array_in_sync' output parameter that is passed to
      rs_get_progress() to be computed incorrectly and reported as 'false' --
      or not in-sync.  This in turn causes the dev_health status characters to
      be reported as all 'a', rather than the proper 'A'.
      
      This can cause erroneous output for several seconds at a time when tools
      will want to be checking the condition due to events that are raised at
      the end of a sync process.  Fix this by properly calculating the
      'array_in_sync' return parameter in rs_get_progress().
      
      Also, remove an unnecessary intermediate 'recovery_cp' variable in
      rs_get_progress().
      Signed-off-by: NJonathan Brassow <jbrassow@redhat.com>
      Signed-off-by: NMike Snitzer <snitzer@redhat.com>
      41dcf197
  3. 05 10月, 2017 1 次提交
  4. 04 10月, 2017 1 次提交
  5. 03 10月, 2017 2 次提交
    • A
      net: Add support for networking over Thunderbolt cable · e69b6c02
      Amir Levy 提交于
      ThunderboltIP is a protocol created by Apple to tunnel IP/ethernet
      traffic over a Thunderbolt cable. The protocol consists of configuration
      phase where each side sends ThunderboltIP login packets (the protocol is
      determined by UUID in the XDomain packet header) over the configuration
      channel. Once both sides get positive acknowledgment to their login
      packet, they configure high-speed DMA path accordingly. This DMA path is
      then used to transmit and receive networking traffic.
      
      This patch creates a virtual ethernet interface the host software can
      use in the same way as any other networking interface. Once the
      interface is brought up successfully network packets get tunneled over
      the Thunderbolt cable to the remote host and back.
      
      The connection is terminated by sending a ThunderboltIP logout packet
      over the configuration channel. We do this when the network interface is
      brought down by user or the driver is unloaded.
      Signed-off-by: NAmir Levy <amir.jer.levy@intel.com>
      Signed-off-by: NMichael Jamet <michael.jamet@intel.com>
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: NYehezkel Bernat <yehezkel.bernat@intel.com>
      Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e69b6c02
    • M
      thunderbolt: Add support for XDomain discovery protocol · d1ff7024
      Mika Westerberg 提交于
      When two hosts are connected over a Thunderbolt cable, there is a
      protocol they can use to communicate capabilities supported by the host.
      The discovery protocol uses automatically configured control channel
      (ring 0) and is build on top of request/response transactions using
      special XDomain primitives provided by the Thunderbolt base protocol.
      
      The capabilities consists of a root directory block of basic properties
      used for identification of the host, and then there can be zero or more
      directories each describing a Thunderbolt service and its capabilities.
      
      Once both sides have discovered what is supported the two hosts can
      setup high-speed DMA paths and transfer data to the other side using
      whatever protocol was agreed based on the properties. The software
      protocol used to communicate which DMA paths to enable is service
      specific.
      
      This patch adds support for the XDomain discovery protocol to the
      Thunderbolt bus. We model each remote host connection as a Linux XDomain
      device. For each Thunderbolt service found supported on the XDomain
      device, we create Linux Thunderbolt service device which Thunderbolt
      service drivers can then bind to based on the protocol identification
      information retrieved from the property directory describing the
      service.
      
      This code is based on the work done by Amir Levy and Michael Jamet.
      Signed-off-by: NMichael Jamet <michael.jamet@intel.com>
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: NYehezkel Bernat <yehezkel.bernat@intel.com>
      Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d1ff7024
  6. 02 10月, 2017 1 次提交
  7. 28 9月, 2017 1 次提交
  8. 24 9月, 2017 2 次提交
  9. 22 9月, 2017 1 次提交
  10. 20 9月, 2017 3 次提交
    • M
      ipv6: fix net.ipv6.conf.all interface DAD handlers · 35e015e1
      Matteo Croce 提交于
      Currently, writing into
      net.ipv6.conf.all.{accept_dad,use_optimistic,optimistic_dad} has no effect.
      Fix handling of these flags by:
      
      - using the maximum of global and per-interface values for the
        accept_dad flag. That is, if at least one of the two values is
        non-zero, enable DAD on the interface. If at least one value is
        set to 2, enable DAD and disable IPv6 operation on the interface if
        MAC-based link-local address was found
      
      - using the logical OR of global and per-interface values for the
        optimistic_dad flag. If at least one of them is set to one, optimistic
        duplicate address detection (RFC 4429) is enabled on the interface
      
      - using the logical OR of global and per-interface values for the
        use_optimistic flag. If at least one of them is set to one,
        optimistic addresses won't be marked as deprecated during source address
        selection on the interface.
      
      While at it, as we're modifying the prototype for ipv6_use_optimistic_addr(),
      drop inline, and let the compiler decide.
      
      Fixes: 7fd2561e ("net: ipv6: Add a sysctl to make optimistic addresses useful candidates")
      Signed-off-by: NMatteo Croce <mcroce@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      35e015e1
    • R
      PM: docs: Drop an excess character from devices.rst · b247c211
      Rafael J. Wysocki 提交于
      Drop an excess "`" from Documentation/driver-api/pm/devices.rst.
      
      Fixes: 2728b2d2 (PM / core / docs: Convert sleep states API document to reST)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b247c211
    • A
      dt-bindings: fix vendor prefix for Abracon · a6899e90
      Alexandre Belloni 提交于
      Commit 446810f2 ("of: add vendor prefix for Abracon Corporation")
      claimed that "abcn" was used as the vendor prefix while in fact "abracon"
      was used in the subsequent commits. It is also the only prefix used in the
      tree.
      Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
      [robh: fix alphabetical order]
      Signed-off-by: NRob Herring <robh@kernel.org>
      a6899e90
  11. 19 9月, 2017 6 次提交
  12. 18 9月, 2017 2 次提交
  13. 17 9月, 2017 2 次提交
  14. 15 9月, 2017 1 次提交
  15. 14 9月, 2017 2 次提交
  16. 11 9月, 2017 1 次提交
  17. 10 9月, 2017 5 次提交
  18. 09 9月, 2017 6 次提交