* amd64-agp: resume but too late?
@ 2008-05-26 18:29 Pavel Machek
2008-05-27 12:18 ` Thomas Gleixner
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2008-05-26 18:29 UTC (permalink / raw)
To: kernel list, Ingo Molnar, Dave Jones, Andi Kleen; +Cc: Rafael J. Wysocki
Hi!
I don't get it:
--- a/drivers/char/agp/amd64-agp.c
+++ b/drivers/char/agp/amd64-agp.c
@@ -549,6 +549,8 @@ static int agp_amd64_suspend(struct pci_
return 0;
}
+/* FIXME: this is strange; we enable iommu translation here, but that
+ * may be too late, no? */
static int agp_amd64_resume(struct pci_dev *pdev)
{
pci_set_power_state(pdev, PCI_D0);
...but resume is normal pci device, so other devices may be resumed
before this one, and already depend on iommu running...
How is this supposed to work? Should agp_amd64_resume be called from
sysdev or something like that?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: amd64-agp: resume but too late?
2008-05-26 18:29 amd64-agp: resume but too late? Pavel Machek
@ 2008-05-27 12:18 ` Thomas Gleixner
2008-05-28 10:42 ` Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2008-05-27 12:18 UTC (permalink / raw)
To: Pavel Machek
Cc: kernel list, Ingo Molnar, Dave Jones, Andi Kleen, Rafael J. Wysocki
On Mon, 26 May 2008, Pavel Machek wrote:
> Hi!
>
> I don't get it:
>
> --- a/drivers/char/agp/amd64-agp.c
> +++ b/drivers/char/agp/amd64-agp.c
> @@ -549,6 +549,8 @@ static int agp_amd64_suspend(struct pci_
> return 0;
> }
>
> +/* FIXME: this is strange; we enable iommu translation here, but that
> + * may be too late, no? */
> static int agp_amd64_resume(struct pci_dev *pdev)
> {
> pci_set_power_state(pdev, PCI_D0);
>
> ...but resume is normal pci device, so other devices may be resumed
> before this one, and already depend on iommu running...
>
> How is this supposed to work? Should agp_amd64_resume be called from
> sysdev or something like that?
Hmm, you sent a patch some days ago to change it to
suspend_late/resume_early. Is the discussion resolved about that ?
Thanks,
tglx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: amd64-agp: resume but too late?
2008-05-27 12:18 ` Thomas Gleixner
@ 2008-05-28 10:42 ` Pavel Machek
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2008-05-28 10:42 UTC (permalink / raw)
To: Thomas Gleixner
Cc: kernel list, Ingo Molnar, Dave Jones, Andi Kleen, Rafael J. Wysocki
On Tue 2008-05-27 14:18:19, Thomas Gleixner wrote:
> On Mon, 26 May 2008, Pavel Machek wrote:
> > Hi!
> >
> > I don't get it:
> >
> > --- a/drivers/char/agp/amd64-agp.c
> > +++ b/drivers/char/agp/amd64-agp.c
> > @@ -549,6 +549,8 @@ static int agp_amd64_suspend(struct pci_
> > return 0;
> > }
> >
> > +/* FIXME: this is strange; we enable iommu translation here, but that
> > + * may be too late, no? */
> > static int agp_amd64_resume(struct pci_dev *pdev)
> > {
> > pci_set_power_state(pdev, PCI_D0);
> >
> > ...but resume is normal pci device, so other devices may be resumed
> > before this one, and already depend on iommu running...
> >
> > How is this supposed to work? Should agp_amd64_resume be called from
> > sysdev or something like that?
>
> Hmm, you sent a patch some days ago to change it to
> suspend_late/resume_early. Is the discussion resolved about that ?
I'm not aware of such patch. I don't think I sent it.
I did add suspend/resume support to pci-gart_64.c , which is
confusingly similar code. That patch needs a bit more testing, and
some de-uglyfication.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-28 10:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-26 18:29 amd64-agp: resume but too late? Pavel Machek
2008-05-27 12:18 ` Thomas Gleixner
2008-05-28 10:42 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®