lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 26 Jun 2015 14:30:45 +0000
From:	David Laight <David.Laight@...LAB.COM>
To:	'Jeff Kirsher' <jeffrey.t.kirsher@...el.com>,
	"davem@...emloft.net" <davem@...emloft.net>
CC:	Yanir Lubetkin <yanirx.lubetkin@...el.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"nhorman@...hat.com" <nhorman@...hat.com>,
	"sassmann@...hat.com" <sassmann@...hat.com>,
	"jogreene@...hat.com" <jogreene@...hat.com>
Subject: RE: [net 06/10] e1000e: i219 - increase IPG for speed 10/100 full
 duplex

From: Of Jeff Kirsher
> Sent: 26 June 2015 11:21
> In SPT/i219, there were CRC errors in speed 10/100 full duplex.
> The solution given by the HW team is to increase the IPG from 8 to 0xC
> 
> Signed-off-by: Yanir Lubetkin <yanirx.lubetkin@...el.com>
> Tested-by: Aaron Brown <aaron.f.brown@...el.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
> ---
>  drivers/net/ethernet/intel/e1000e/ich8lan.c | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c
> index c5bb1dd..983f5bf 100644
> --- a/drivers/net/ethernet/intel/e1000e/ich8lan.c
> +++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c
> @@ -1400,16 +1400,20 @@ static s32 e1000_check_for_copper_link_ich8lan(struct e1000_hw *hw)
>  	if (((hw->mac.type == e1000_pch2lan) ||
>  	     (hw->mac.type == e1000_pch_lpt) ||
>  	     (hw->mac.type == e1000_pch_spt)) && link) {
> -		u32 reg;
> +		u16 speed, duplex;
> 
> -		reg = er32(STATUS);
> +		e1000e_get_speed_and_duplex_copper(hw, &speed, &duplex);
>  		tipg_reg = er32(TIPG);
>  		tipg_reg &= ~E1000_TIPG_IPGT_MASK;
> 
> -		if (!(reg & (E1000_STATUS_FD | E1000_STATUS_SPEED_MASK))) {
> +		if (duplex == HALF_DUPLEX && speed == SPEED_10) {
>  			tipg_reg |= 0xFF;
>  			/* Reduce Rx latency in analog PHY */
>  			emi_val = 0;
> +		} else if (hw->mac.type == e1000_pch_spt &&
> +			   duplex == FULL_DUPLEX && speed != SPEED_1000) {

You really ought to have a comment here explaining why the inter-packet
gap is increased.

> +			tipg_reg |= 0xC;

Shouldn't you mask out the old IPG value - just in case it isn't 8.

> +			emi_val = 1;
>  		} else {
> 
>  			/* Roll back the default values */

	David

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ