1. 25 8月, 2012 7 次提交
  2. 23 8月, 2012 2 次提交
    • A
      mdio: translation of MMD EEE registers to/from ethtool settings · b32607dd
      Allan, Bruce W 提交于
      The helper functions which translate IEEE MDIO Manageable Device (MMD)
      Energy-Efficient Ethernet (EEE) registers 3.20, 7.60 and 7.61 to and from
      the comparable ethtool supported/advertised settings will be needed by
      drivers other than those in PHYLIB (e.g. e1000e in a follow-on patch).
      
      In the same fashion as similar translation functions in linux/mii.h, move
      these functions from the PHYLIB core to the linux/mdio.h header file so the
      code will not have to be duplicated in each driver needing MMD-to-ethtool
      (and vice-versa) translations.  The function and some variable names have
      been renamed to be more descriptive.
      
      Not tested on the only hardware that currently calls the related functions,
      stmmac, because I don't have access to any.  Has been compile tested and
      the translations have been tested on a locally modified version of e1000e.
      Signed-off-by: NBruce Allan <bruce.w.allan@intel.com>
      Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b32607dd
    • J
      bonding: support for IPv6 transmit hashing · 6b923cb7
      John Eaglesham 提交于
      Currently the "bonding" driver does not support load balancing outgoing
      traffic in LACP mode for IPv6 traffic. IPv4 (and TCP or UDP over IPv4)
      are currently supported; this patch adds transmit hashing for IPv6 (and
      TCP or UDP over IPv6), bringing IPv6 up to par with IPv4 support in the
      bonding driver. In addition, bounds checking has been added to all
      transmit hashing functions.
      
      The algorithm chosen (xor'ing the bottom three quads of the source and
      destination addresses together, then xor'ing each byte of that result into
      the bottom byte, finally xor'ing with the last bytes of the MAC addresses)
      was selected after testing almost 400,000 unique IPv6 addresses harvested
      from server logs. This algorithm had the most even distribution for both
      big- and little-endian architectures while still using few instructions. Its
      behavior also attempts to closely match that of the IPv4 algorithm.
      
      The IPv6 flow label was intentionally not included in the hash as it appears
      to be unset in the vast majority of IPv6 traffic sampled, and the current
      algorithm not using the flow label already offers a very even distribution.
      
      Fragmented IPv6 packets are handled the same way as fragmented IPv4 packets,
      ie, they are not balanced based on layer 4 information. Additionally,
      IPv6 packets with intermediate headers are not balanced based on layer
      4 information. In practice these intermediate headers are not common and
      this should not cause any problems, and the alternative (a packet-parsing
      loop and look-up table) seemed slow and complicated for little gain.
      Tested-by: NJohn Eaglesham <linux@8192.net>
      Signed-off-by: NJohn Eaglesham <linux@8192.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b923cb7
  3. 22 8月, 2012 8 次提交
  4. 21 8月, 2012 9 次提交
    • J
      igb: update to allow reading/setting MDI state · 8376dad0
      Jesse Brandeburg 提交于
      This is the implementation for igb to allow forcing MDI state
      via ethtool, allowing users to work around some improperly
      behaving switches.
      
      Forcing in this driver is for now only allowed when auto-neg is
      enabled.
      Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      CC: Carolyn Wyborny <carolyn.wyborny@intel.com>
      Tested-by: Aaron Brown aaron.f.brown@intel.com
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      8376dad0
    • J
      e1000e: implement MDI/MDI-X control · 4e8186b6
      Jesse Brandeburg 提交于
      Some users report issues with link failing when connected to certain
      switches.  This gives the user the ability to control the MDI state
      from the driver, allowing users to work around some improperly
      behaving switches.
      
      Forcing in this driver is for now only allowed when auto-neg is
      enabled.
      
      This is in regards to the related ethtool app patch and
      bugzilla.kernel.org bug 11998
      Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      CC: bruce.w.allan@intel.com
      CC: n.poppelier@xs4all.nl
      CC: bastien@durel.org
      CC: jsveiga@it.eng.br
      Tested-by: Aaron Brown aaron.f.brown@intel.com
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      4e8186b6
    • J
      e1000: configure and read MDI settings · c819bbd5
      Jesse Brandeburg 提交于
      This is the implementation in e1000 to allow ethtool to force
      MDI state, allowing users to work around some improperly
      behaving switches.
      
      Forcing in this driver is for now only allowed when auto-neg is enabled.
      
      To use must have the matching version of ethtool app that supports
      this functionality.
      Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      CC: Tushar Dave <tushar.n.dave@intel.com>
      Tested-by: Aaron Brown aaron.f.brown@intel.com
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      c819bbd5
    • J
      igb: implement 580 MDI setting support · 1b556783
      Jesse Brandeburg 提交于
      In order for igb to support MDI setting support via
      ethtool this code is needed to allow setting the MDI state
      via software.
      
      This is in regards to the related ethtool patch
      Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: Aaron Brown aaron.f.brown@intel.com
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      1b556783
    • B
      e1000e: implement 82577/579 MDI setting support · e86fd891
      Bruce W Allan 提交于
      In order for e1000e to support MDI setting support via
      ethtool this code is needed to allow setting the MDI state
      via software.
      
      This is in regards to the related ethtool patch and
      fixes bugzilla.kernel.org bug 11998
      Signed-off-by: NBruce W Allan <bruce.w.allan@intel.com>
      Signed-off-by: NJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: Aaron Brown aaron.f.brown@intel.com
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      e86fd891
    • G
      gpu/mfd/usb: Fix USB randconfig problems · 8f057d7b
      Guenter Roeck 提交于
      Fix config warning:
      
      warning: ( ... && DRM_USB) selects USB which has unmet direct dependencies
      (USB_SUPPORT && USB_ARCH_HAS_HCD)
      
      and build error:
      ERROR: "usb_speed_string" [drivers/usb/core/usbcore.ko] undefined!
      
      by adding the missing dependency on USB_ARCH_HAS_HCD to DRM_UDL and DRM_USB.
      
      This exposes:
      drivers/video/Kconfig:36:error: recursive dependency detected!
      drivers/video/Kconfig:36:       symbol FB is selected by DRM_KMS_HELPER
      drivers/gpu/drm/Kconfig:28:     symbol DRM_KMS_HELPER is selected by DRM_UDL
      drivers/gpu/drm/udl/Kconfig:1:  symbol DRM_UDL depends on USB_ARCH_HAS_HCD
      drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
      drivers/usb/Kconfig:16: symbol USB_ARCH_HAS_OHCI depends on I2C
      drivers/i2c/Kconfig:5:  symbol I2C is selected by FB_DDC
      drivers/video/Kconfig:86:       symbol FB_DDC is selected by FB_CYBER2000_DDC
      drivers/video/Kconfig:385:      symbol FB_CYBER2000_DDC depends on FB_CYBER2000
      drivers/video/Kconfig:373:      symbol FB_CYBER2000 depends on FB
      
      which is due to drivers/usb/Kconfig:
      config USB_ARCH_HAS_OHCI
      	...
      	default y if ARCH_PNX4008 && I2C
      
      Fix by dropping I2C from the above dependency; logic is that this is not a
      platform dependency but a configuration dependency: the _architecture_ still
      supports USB even is I2C is not selected.
      
      This exposes:
      drivers/video/Kconfig:36:error: recursive dependency detected!
      drivers/video/Kconfig:36:       symbol FB is selected by DRM_KMS_HELPER
      drivers/gpu/drm/Kconfig:28:     symbol DRM_KMS_HELPER is selected by DRM_UDL
      drivers/gpu/drm/udl/Kconfig:1:  symbol DRM_UDL depends on USB_ARCH_HAS_HCD
      drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
      drivers/usb/Kconfig:17: symbol USB_ARCH_HAS_OHCI depends on MFD_TC6393XB
      drivers/mfd/Kconfig:396:        symbol MFD_TC6393XB depends on GPIOLIB
      drivers/gpio/Kconfig:35:        symbol GPIOLIB is selected by FB_VIA
      drivers/video/Kconfig:1560:     symbol FB_VIA depends on FB
      
      which can be fixed by having MFD_TC6393XB select GPIOLIB instead of depending on
      it.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8f057d7b
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 3) · 0c7bbeb9
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is the part 3 for fan control
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      0c7bbeb9
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 2) · 07a4a4fc
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is part 2 for touchpad toggle
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      07a4a4fc
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 1) · 296f9fe0
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is part 1 for special button handling.
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      296f9fe0
  5. 20 8月, 2012 10 次提交
  6. 19 8月, 2012 2 次提交
  7. 18 8月, 2012 2 次提交