1. 30 8月, 2019 31 次提交
  2. 29 8月, 2019 9 次提交
    • D
      Merge branch 'mlxsw-Various-updates' · 198836fd
      David S. Miller 提交于
      Ido Schimmel says:
      
      ====================
      mlxsw: Various updates
      
      Patch #1 from Amit removes 56G speed support. The reasons for this are
      detailed in the commit message.
      
      Patch #2 from Shalom ensures that the hardware does not auto negotiate
      the number of used lanes. For example, if a four lane port supports 100G
      over both two and four lanes, it will not advertise the two lane link
      mode.
      
      Patch #3 bumps the firmware version supported by the driver.
      
      Patch #4 from Petr adds ethtool counters to help debug the internal PTP
      implementation in mlxsw. I copied Richard on this patch in case he has
      comments.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      198836fd
    • P
      mlxsw: spectrum_ptp: Add counters for GC events · dc4f3eb0
      Petr Machata 提交于
      On Spectrum-1, timestamped PTP packets and the corresponding timestamps need to
      be kept in caches until both are available, at which point they are matched up
      and packets forwarded as appropriate. However, not all packets will ever see
      their timestamp, and not all timestamps will ever see their packet. It is
      necessary to dispose of such abandoned entries, so a garbage collector was
      introduced in commit 5d23e415 ("mlxsw: spectrum: PTP: Garbage-collect
      unmatched entries").
      
      If these GC events happen often, it is a sign of a problem. However because this
      whole mechanism is taking place behind the scenes, there is no direct way to
      determine whether garbage collection took place.
      
      Therefore to fix this, on Spectrum-1 only, expose four artificial ethtool
      counters for the GC events: GCd timestamps and packets, in TX and RX directions.
      
      Cc: Richard Cochran <richardcochran@gmail.com>
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dc4f3eb0
    • I
      mlxsw: Bump firmware version to 13.2000.1886 · 45bd6341
      Ido Schimmel 提交于
      The new version supports extended error reporting from firmware via a
      new TLV in the EMAD packet. Similar to netlink extended ack.
      
      It also fixes an issue in the PCI code that can result in false AER
      errors under high Tx rate.
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      45bd6341
    • S
      mlxsw: spectrum: Prevent auto negotiation on number of lanes · 3f61967f
      Shalom Toledo 提交于
      After 50G-1-lane and 100G-2-lanes link modes were introduced, the driver
      is facing situations in which the hardware auto negotiates not only on
      speed and type, but also on number of lanes.
      
      Prevent auto negotiation on number of lanes by allowing only port speeds
      that can be supported on a given port according to its width.
      Signed-off-by: NShalom Toledo <shalomt@mellanox.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3f61967f
    • A
      mlxsw: Remove 56G speed support · b97cd891
      Amit Cohen 提交于
      Commit 275e928f ("mlxsw: spectrum: Prevent force of 56G") prevented
      the driver from setting a speed of 56G when auto-negotiation is off.
      This is the only speed supported by mlxsw that cannot be set when
      auto-negotiation is off, which makes it difficult to write generic
      tests.
      
      Further, the speed is not supported by newer ASICs such as Spectrum-2
      and to the best of our knowledge it is not used by current users.
      
      Therefore, remove 56G support from mlxsw.
      Signed-off-by: NAmit Cohen <amitc@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b97cd891
    • J
      net: phy: force phy suspend when calling phy_stop · 95fb8bb3
      Jian Shen 提交于
      Some ethernet drivers may call phy_start() and phy_stop() from
      ndo_open() and ndo_close() respectively.
      
      When network cable is unconnected, and operate like below:
      step 1: ifconfig ethX up -> ndo_open -> phy_start ->start
      autoneg, and phy is no link.
      step 2: ifconfig ethX down -> ndo_close -> phy_stop -> just stop
      phy state machine.
      
      This patch forces phy suspend even phydev->link is off.
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Reviewed-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      95fb8bb3
    • D
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 8e4a2adc
      David S. Miller 提交于
      Jeff Kirsher says:
      
      ====================
      100GbE Intel Wired LAN Driver Updates 2019-08-26
      
      This series contains updates to ice driver only.
      
      Usha fixes the statistics reported on 4 port NICs which were reporting
      the incorrect statistics due to using the incorrect port identifier.
      
      Victor fixes an issue when trying to traverse to the first node of a
      requested layer by adding a sibling head pointer for each layer per
      traffic class.
      
      Anirudh cleans up the locking and logic for enabling and disabling
      VSI's to make it more consistent.  Updates the driver to do dynamic
      allocation of queue management bitmaps and arrays, rather than
      statically allocating them which consumes more memory than required.
      Refactor the logic in ice_ena_msix_range() for clarity and add
      additional checks for when requested resources exceed what is available.
      
      Jesse updates the debugging print statements to make it more useful when
      dealing with link and PHY related issues.
      
      Krzysztof adds a local variable to the VSI rebuild path to improve
      readability.
      
      Akeem limits the reporting of MDD events from VFs so that the kernel
      log is not clogged up with MDD events which are duplicate or potentially
      false positives.  Fixed a reset issue that would result in the system
      getting into a state that could only be resolved by a reboot by
      testing if the VF is in a disabled state during a reset.
      
      Michal adds a check to avoid trying to access memory that has not be
      allocated by checking the number of queue pairs.
      
      Jake fixes a static analysis warning due to a cast of a u8 to unsigned
      long, so just update ice_is_tc_ena() to take a unsigned long so that a
      cast is not necessary.
      
      Colin Ian King fixes a potential infinite loop where a u8 is being
      compared to an int.
      
      Maciej refactors the queue handling functions that work on queue arrays
      so that the logic can be done for a single queue.
      
      Paul adds support for VFs to enable and disable single queues.
      
      Henry fixed the order of operations in ice_remove() which was trying to
      use adminq operations that were already disabled.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8e4a2adc
    • Y
      phy: mdio-sun4i: use devm_platform_ioremap_resource() to simplify code · 3894793e
      YueHaibing 提交于
      Use devm_platform_ioremap_resource() to simplify the code a bit.
      This is detected by coccinelle.
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3894793e
    • Y
      phy: mdio-mux-meson-g12a: use devm_platform_ioremap_resource() to simplify code · bd51ce05
      YueHaibing 提交于
      Use devm_platform_ioremap_resource() to simplify the code a bit.
      This is detected by coccinelle.
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bd51ce05