Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1453197 > unrolled thread

e1000e: PHY cann't be initialized correctly on some I218 controllers

Started byDenis Turischev <denis.turischev@compulab.co.il>
First post2016-08-01 15:10 +0200
Last post2016-08-10 22:20 +0200
Articles 6 — 4 participants

Back to article view | Back to linux.kernel


Contents

  e1000e: PHY cann't be initialized correctly on some I218 controllers Denis Turischev <denis.turischev@compulab.co.il> - 2016-08-01 15:10 +0200
    Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on  some I218 controllers Raanan Avargil <raanan.avargil@intel.com> - 2016-08-04 18:20 +0200
      Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on  some I218 controllers Denis Turischev <denis.turischev@compulab.co.il> - 2016-08-07 11:00 +0200
        Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on  some I218 controllers Raanan Avargil <raanan.avargil@intel.com> - 2016-08-09 17:20 +0200
          RE: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly  on some I218 controllers "Brown, Aaron F" <aaron.f.brown@intel.com> - 2016-08-09 21:10 +0200
            RE: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly  on some I218 controllers "Neftin, Sasha" <sasha.neftin@intel.com> - 2016-08-10 22:20 +0200

#1453197 — e1000e: PHY cann't be initialized correctly on some I218 controllers

FromDenis Turischev <denis.turischev@compulab.co.il>
Date2016-08-01 15:10 +0200
Subjecte1000e: PHY cann't be initialized correctly on some I218 controllers
Message-ID<s1l8K-6J6-19@gated-at.bofh.it>
There is an error "e1000e: probe of 0000:00:19.0 failed with error -3"
that can be observed after power-on on some I218 controllers.
Hardware reset and re-initialization fixes the issue.

Signed-off-by: Denis Turischev <denis.turischev@compulab.co.il>

diff -Nru linux-4.7.orig/drivers/net/ethernet/intel/e1000e/ich8lan.c linux-4.7/drivers/net/ethernet/intel/e1000e/ich8lan.c
--- linux-4.7.orig/drivers/net/ethernet/intel/e1000e/ich8lan.c	2016-07-24 22:23:50.000000000 +0300
+++ linux-4.7/drivers/net/ethernet/intel/e1000e/ich8lan.c	2016-08-01 13:59:08.046563095 +0300
@@ -155,6 +155,7 @@
 static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force);
 static s32 e1000_setup_copper_link_pch_lpt(struct e1000_hw *hw);
 static s32 e1000_oem_bits_config_ich8lan(struct e1000_hw *hw, bool d0_state);
+static s32 e1000_reset_hw_ich8lan(struct e1000_hw *hw);
 
 static inline u16 __er16flash(struct e1000_hw *hw, unsigned long reg)
 {
@@ -459,8 +460,12 @@
 	phy->id = e1000_phy_unknown;
 
 	ret_val = e1000_init_phy_workarounds_pchlan(hw);
-	if (ret_val)
-		return ret_val;
+	if (ret_val) {
+		e1000_reset_hw_ich8lan(hw);
+		ret_val = e1000_init_phy_workarounds_pchlan(hw);
+		if (ret_val)
+			return ret_val;
+	}
 
 	if (phy->id == e1000_phy_unknown)
 		switch (hw->mac.type) {

[toc] | [next] | [standalone]


#1456527 — Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers

FromRaanan Avargil <raanan.avargil@intel.com>
Date2016-08-04 18:20 +0200
SubjectRe: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers
Message-ID<s2txg-3gC-17@gated-at.bofh.it>
In reply to#1453197

On 8/1/2016 15:28, Denis Turischev wrote:
> There is an error "e1000e: probe of 0000:00:19.0 failed with error -3"
> that can be observed after power-on on some I218 controllers.
> Hardware reset and re-initialization fixes the issue.
>
> Signed-off-by: Denis Turischev <denis.turischev@compulab.co.il>
>
> diff -Nru linux-4.7.orig/drivers/net/ethernet/intel/e1000e/ich8lan.c linux-4.7/drivers/net/ethernet/intel/e1000e/ich8lan.c
> --- linux-4.7.orig/drivers/net/ethernet/intel/e1000e/ich8lan.c	2016-07-24 22:23:50.000000000 +0300
> +++ linux-4.7/drivers/net/ethernet/intel/e1000e/ich8lan.c	2016-08-01 13:59:08.046563095 +0300
> @@ -155,6 +155,7 @@
>   static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force);
>   static s32 e1000_setup_copper_link_pch_lpt(struct e1000_hw *hw);
>   static s32 e1000_oem_bits_config_ich8lan(struct e1000_hw *hw, bool d0_state);
> +static s32 e1000_reset_hw_ich8lan(struct e1000_hw *hw);
>   
>   static inline u16 __er16flash(struct e1000_hw *hw, unsigned long reg)
>   {
> @@ -459,8 +460,12 @@
>   	phy->id = e1000_phy_unknown;
>   
>   	ret_val = e1000_init_phy_workarounds_pchlan(hw);
> -	if (ret_val)
> -		return ret_val;
> +	if (ret_val) {
> +		e1000_reset_hw_ich8lan(hw);
> +		ret_val = e1000_init_phy_workarounds_pchlan(hw);
> +		if (ret_val)
> +			return ret_val;
> +	}
>   
>   	if (phy->id == e1000_phy_unknown)
>   		switch (hw->mac.type) {
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan@lists.osuosl.org
> http://lists.osuosl.org/mailman/listinfo/intel-wired-lan
>

It is hard to determine what is exactly the problem here and what causes 
the -3 error, but this is not the place to perform hw reset and retry to 
init the phy.
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

[toc] | [prev] | [next] | [standalone]


#1457441 — Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers

FromDenis Turischev <denis.turischev@compulab.co.il>
Date2016-08-07 11:00 +0200
SubjectRe: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers
Message-ID<s3s65-1ub-3@gated-at.bofh.it>
In reply to#1456527
Hi Raanan,

On 08/04/2016 07:18 PM, Raanan Avargil wrote:
> It is hard to determine what is exactly the problem here and what causes the -3 error, but this is not the place to perform hw reset and retry to init the phy.

I agree that may be this is not the correct place for hw reset, can you advice about another solution?

It works, not only for me, for example it helps here:
http://www.linux.org.ru/forum/linux-hardware/10268216

Another fact that Windows drivers work fine with the same hw.

Denis

[toc] | [prev] | [next] | [standalone]


#1458840 — Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers

FromRaanan Avargil <raanan.avargil@intel.com>
Date2016-08-09 17:20 +0200
SubjectRe: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers
Message-ID<s4gYV-Rn-19@gated-at.bofh.it>
In reply to#1457441

On 8/7/2016 11:56, Denis Turischev wrote:
> Hi Raanan,
>
> On 08/04/2016 07:18 PM, Raanan Avargil wrote:
>> It is hard to determine what is exactly the problem here and what causes the -3 error, but this is not the place to perform hw reset and retry to init the phy.
> I agree that may be this is not the correct place for hw reset, can you advice about another solution?
>
> It works, not only for me, for example it helps here:
> http://www.linux.org.ru/forum/linux-hardware/10268216
>
> Another fact that Windows drivers work fine with the same hw.
>
> Denis
>

Hi Denis,

More suitable place to retry init the device would be in probe function.
However, we haven't seen initialization issues like this on i218.

Adding Aaron.

@Aaron - have you seen initialization errors on i218 devices?

Raanan
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

[toc] | [prev] | [next] | [standalone]


#1459070 — RE: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers

From"Brown, Aaron F" <aaron.f.brown@intel.com>
Date2016-08-09 21:10 +0200
SubjectRE: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers
Message-ID<s4kzv-3bk-21@gated-at.bofh.it>
In reply to#1458840

> -----Original Message-----
> From: Avargil, Raanan
> Sent: Tuesday, August 9, 2016 8:11 AM
> To: Denis Turischev <denis.turischev@compulab.co.il>; intel-wired-
> lan@lists.osuosl.org; Brown, Aaron F <aaron.f.brown@intel.com>; Kirsher,
> Jeffrey T <jeffrey.t.kirsher@intel.com>
> Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on
> some I218 controllers
> 
> 
> 
> On 8/7/2016 11:56, Denis Turischev wrote:
> > Hi Raanan,
> >
> > On 08/04/2016 07:18 PM, Raanan Avargil wrote:
> >> It is hard to determine what is exactly the problem here and what causes
> the -3 error, but this is not the place to perform hw reset and retry to init the
> phy.
> > I agree that may be this is not the correct place for hw reset, can you advice
> about another solution?
> >
> > It works, not only for me, for example it helps here:
> > http://www.linux.org.ru/forum/linux-hardware/10268216
> >
> > Another fact that Windows drivers work fine with the same hw.
> >
> > Denis
> >
> 
> Hi Denis,
> 
> More suitable place to retry init the device would be in probe function.
> However, we haven't seen initialization issues like this on i218.
> 
> Adding Aaron.
> 
> @Aaron - have you seen initialization errors on i218 devices?

I have not.  But I don't have many systems with i218 so all that means is my systems do not exhibit the problem.

> 
> Raanan

[toc] | [prev] | [next] | [standalone]


#1459803 — RE: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers

From"Neftin, Sasha" <sasha.neftin@intel.com>
Date2016-08-10 22:20 +0200
SubjectRE: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers
Message-ID<s4I8O-1sK-17@gated-at.bofh.it>
In reply to#1459070
Hello Denis,
In case this reset help you fix initialization error of I218 you can use it locally on your system. How many system with I218 encountered with initialization error on your side?

Thanks,
Sasha
-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces@lists.osuosl.org] On Behalf Of Brown, Aaron F
Sent: Tuesday, August 09, 2016 9:59 PM
To: Avargil, Raanan <raanan.avargil@intel.com>; Denis Turischev <denis.turischev@compulab.co.il>; intel-wired-lan@lists.osuosl.org; Kirsher, Jeffrey T <jeffrey.t.kirsher@intel.com>
Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [Intel-wired-lan] e1000e: PHY cann't be initialized correctly on some I218 controllers



> -----Original Message-----
> From: Avargil, Raanan
> Sent: Tuesday, August 9, 2016 8:11 AM
> To: Denis Turischev <denis.turischev@compulab.co.il>; intel-wired- 
> lan@lists.osuosl.org; Brown, Aaron F <aaron.f.brown@intel.com>; 
> Kirsher, Jeffrey T <jeffrey.t.kirsher@intel.com>
> Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: [Intel-wired-lan] e1000e: PHY cann't be initialized 
> correctly on some I218 controllers
> 
> 
> 
> On 8/7/2016 11:56, Denis Turischev wrote:
> > Hi Raanan,
> >
> > On 08/04/2016 07:18 PM, Raanan Avargil wrote:
> >> It is hard to determine what is exactly the problem here and what 
> >> causes
> the -3 error, but this is not the place to perform hw reset and retry 
> to init the phy.
> > I agree that may be this is not the correct place for hw reset, can 
> > you advice
> about another solution?
> >
> > It works, not only for me, for example it helps here:
> > http://www.linux.org.ru/forum/linux-hardware/10268216
> >
> > Another fact that Windows drivers work fine with the same hw.
> >
> > Denis
> >
> 
> Hi Denis,
> 
> More suitable place to retry init the device would be in probe function.
> However, we haven't seen initialization issues like this on i218.
> 
> Adding Aaron.
> 
> @Aaron - have you seen initialization errors on i218 devices?

I have not.  But I don't have many systems with i218 so all that means is my systems do not exhibit the problem.

> 
> Raanan
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@lists.osuosl.org
http://lists.osuosl.org/mailman/listinfo/intel-wired-lan
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web