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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 26 Feb 2008 00:15:04 +0200
From:	"Michael S. Tsirkin" <m.s.tsirkin@...il.com>
To:	"Pavel Machek" <pavel@....cz>
Cc:	"Rafael J. Wysocki" <rjw@...k.pl>,
	"Andrew Morton" <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>,
	"Alexey Starikovskiy" <astarikovskiy@...e.de>,
	"Len Brown" <len.brown@...el.com>, linux-acpi@...r.kernel.org,
	"Jeff Garzik" <jeff@...zik.org>
Subject: Re: broken suspend in .2.6.25-rc3 on T61p (was Re: new regression in 2.6.25-rc3: no keyboard/lid acpi events on thinkpad T61p)

On Mon, Feb 25, 2008 at 11:50 PM, Pavel Machek <pavel@....cz> wrote:
> Hi!
>
>
>  > >  > commit 559bbe6cbd0d8c68d40076a5f7dc98e3bf5864b2
>  > >  > Author: Pavel Machek <pavel@....cz>
>  > >  > Date:   Thu Feb 21 13:56:55 2008 +0100
>  > >  >
>  > >  >     power_state: get rid of write-only variable in SATA
>  > >
>  > >  This is pretty unlikely to be it. Can you double check that this patch
>  > >  really breaks something?
>  >
>  > I did and it seems to: just reverting
>  > 559bbe6cbd0d8c68d40076a5f7dc98e3bf5864b2 fixes resume for me.
>  > 635adc28087ced0c843d2ecb6d4ae474d0e611cd which is
>  > 559bbe6cbd0d8c68d40076a5f7dc98e3bf5864b2~1
>  > also resumes fine.
>
>  Hmm, I guess that should teach me about "simple cleanups".
>
>  Do you use any of:
>
>  ata/sata_inic162x.c
>  ata/sata_nv.c
>  ata/sata_sil24.c
>
>  by chance?

I don't think so.
Here are the only 3 ata modules I have built:
drivers/ata/ahci.ko
drivers/ata/ata_piix.ko
drivers/ata/libata.ko


ahci.c seems to look at power_state.

static int ahci_pci_device_resume(struct pci_dev *pdev)
{
        struct ata_host *host = dev_get_drvdata(&pdev->dev);
        int rc;

        rc = ata_pci_device_do_resume(pdev);
        if (rc)
                return rc;

        if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
                rc = ahci_reset_controller(host);
                if (rc)
                        return rc;

                ahci_init_controller(host);
        }

        ata_host_resume(host);

        return 0;
}

Right?

>  (Ok, the patch is very safe to revert, it was "cleanup", it fixes
>  nothing).
>
>
>                                                                         Pavel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ