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]
Message-ID: <3aa654a40806011326o2cfddfa0o6bc743041b5df8d6@mail.gmail.com>
Date:	Sun, 1 Jun 2008 13:26:26 -0700
From:	"Avuton Olrich" <avuton@...il.com>
To:	"Jay Cliburn" <jacliburn@...lsouth.net>
Cc:	"Jeff Garzik" <jgarzik@...hat.com>, netdev@...r.kernel.org,
	"Rafael J. Wysocki" <rjw@...k.pl>
Subject: Re: atl1 card hibernation regression

On Sun, Jun 1, 2008 at 11:41 AM, Jay Cliburn <jacliburn@...lsouth.net> wrote:
> On Sun, 1 Jun 2008 07:42:02 -0700
> "Avuton Olrich" <avuton@...il.com> wrote:
>
>> After resuming from hibernate, my network card refuses to get back
>> online. The bisection and much more information are below.
>
> Can you please try this patch?
>
> diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
> index 6e4c80d..1a2f93d 100644
> --- a/drivers/net/atlx/atl1.c
> +++ b/drivers/net/atlx/atl1.c
> @@ -637,22 +637,6 @@ static s32 atl1_phy_leave_power_saving(struct atl1_hw *hw)
>  }
>
>  /*
> - * Force the PHY into power saving mode using vendor magic.
> - */
> -#ifdef CONFIG_PM
> -static void atl1_phy_enter_power_saving(struct atl1_hw *hw)
> -{
> -       atl1_write_phy_reg(hw, MII_DBG_ADDR, 0);
> -       atl1_write_phy_reg(hw, MII_DBG_DATA, 0x124E);
> -       atl1_write_phy_reg(hw, MII_DBG_ADDR, 2);
> -       atl1_write_phy_reg(hw, MII_DBG_DATA, 0x3000);
> -       atl1_write_phy_reg(hw, MII_DBG_ADDR, 3);
> -       atl1_write_phy_reg(hw, MII_DBG_DATA, 0);
> -
> -}
> -#endif
> -
> -/*
>  * Resets the PHY and make all config validate
>  * hw - Struct containing variables accessed by shared code
>  *
> @@ -2859,7 +2843,6 @@ disable_wol:
>        ctrl |= PCIE_PHYMISC_FORCE_RCV_DET;
>        iowrite32(ctrl, hw->hw_addr + REG_PCIE_PHYMISC);
>        ioread32(hw->hw_addr + REG_PCIE_PHYMISC);
> -       atl1_phy_enter_power_saving(hw);
>        hw->phy_configured = false;
>        pci_enable_wake(pdev, pci_choose_state(pdev, state), 0);
>  exit:
>

Brilliant! Works as advertised, thanks for the quick fix!
-- 
avuton
--
 "I've got a fever. And the only prescription is more cowbell." --
Christopher Walken
--
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