netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] e1000e: remove failed request for sw/fw/hw flag
@ 2008-09-23 22:46 Jeff Kirsher
  2008-09-25  0:51 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Kirsher @ 2008-09-23 22:46 UTC (permalink / raw)
  To: jeff, mingo, davem
  Cc: netdev, linux-kernel, jesse.brandeburg, john.ronciak, Bruce Allan,
	Jeff Kirsher

From: Bruce Allan <bruce.w.allan@intel.com>

When the driver fails to acquire the control flag used to serialize
NVM and PHY accesses between the driver, firmware and hardware, remove the
request for the flag otherwise the hardware might grant the flag when it
becomes available but the driver will not release the flag.  This could
cause the firmware to prevent the driver getting the flag for all future
attempts.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/e1000e/ich8lan.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c
index f47c60e..6b14ea8 100644
--- a/drivers/net/e1000e/ich8lan.c
+++ b/drivers/net/e1000e/ich8lan.c
@@ -409,6 +409,8 @@ static s32 e1000_acquire_swflag_ich8lan(struct e1000_hw *hw)
 
 	if (!timeout) {
 		hw_dbg(hw, "FW or HW has locked the resource for too long.\n");
+		extcnf_ctrl &= ~E1000_EXTCNF_CTRL_SWFLAG;
+		ew32(EXTCNF_CTRL, extcnf_ctrl);
 		return -E1000_ERR_CONFIG;
 	}
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] e1000e: remove failed request for sw/fw/hw flag
  2008-09-23 22:46 [PATCH 3/3] e1000e: remove failed request for sw/fw/hw flag Jeff Kirsher
@ 2008-09-25  0:51 ` Jeff Garzik
  2008-09-25  1:00   ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2008-09-25  0:51 UTC (permalink / raw)
  To: Jeff Kirsher
  Cc: mingo, davem, netdev, linux-kernel, jesse.brandeburg,
	john.ronciak, Bruce Allan

Jeff Kirsher wrote:
> From: Bruce Allan <bruce.w.allan@intel.com>
> 
> When the driver fails to acquire the control flag used to serialize
> NVM and PHY accesses between the driver, firmware and hardware, remove the
> request for the flag otherwise the hardware might grant the flag when it
> becomes available but the driver will not release the flag.  This could
> cause the firmware to prevent the driver getting the flag for all future
> attempts.
> 
> Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
> 
>  drivers/net/e1000e/ich8lan.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

applied



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] e1000e: remove failed request for sw/fw/hw flag
  2008-09-25  0:51 ` Jeff Garzik
@ 2008-09-25  1:00   ` Jiri Kosina
  2008-09-25  1:29     ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2008-09-25  1:00 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Jeff Kirsher, Ingo Molnar, davem, netdev, linux-kernel,
	jesse.brandeburg, john.ronciak, Bruce Allan

On Wed, 24 Sep 2008, Jeff Garzik wrote:

> > When the driver fails to acquire the control flag used to serialize
> > NVM and PHY accesses between the driver, firmware and hardware, remove the
> > request for the flag otherwise the hardware might grant the flag when it
> > becomes available but the driver will not release the flag.  This could
> > cause the firmware to prevent the driver getting the flag for all future
> > attempts.
> applied

BTW are you going to take the whole series, or just this fix?

I don't think that the other patches should be really applied to upstream 
(they could be very handy for debugging this horrible issue, once we could 
do any debugging of it, thoug), as they don't protect against anyone 
creating a new rw mapping, which can then be freely used to still 
overwrite the mmio area without any problems.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] e1000e: remove failed request for sw/fw/hw flag
  2008-09-25  1:00   ` Jiri Kosina
@ 2008-09-25  1:29     ` Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2008-09-25  1:29 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Jeff Kirsher, Ingo Molnar, davem, netdev, linux-kernel,
	jesse.brandeburg, john.ronciak, Bruce Allan

Jiri Kosina wrote:
> On Wed, 24 Sep 2008, Jeff Garzik wrote:
> 
>>> When the driver fails to acquire the control flag used to serialize
>>> NVM and PHY accesses between the driver, firmware and hardware, remove the
>>> request for the flag otherwise the hardware might grant the flag when it
>>> becomes available but the driver will not release the flag.  This could
>>> cause the firmware to prevent the driver getting the flag for all future
>>> attempts.
>> applied
> 
> BTW are you going to take the whole series, or just this fix?

Just this fix

	Jeff




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-25  1:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23 22:46 [PATCH 3/3] e1000e: remove failed request for sw/fw/hw flag Jeff Kirsher
2008-09-25  0:51 ` Jeff Garzik
2008-09-25  1:00   ` Jiri Kosina
2008-09-25  1:29     ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).