* 2.6.25 -- long standing bug with usb after resume with 4GB ram
@ 2008-03-13 11:01 Pavel Machek
2008-03-13 20:27 ` Rafael J. Wysocki
2008-03-13 21:58 ` Greg KH
0 siblings, 2 replies; 4+ messages in thread
From: Pavel Machek @ 2008-03-13 11:01 UTC (permalink / raw)
To: kernel list, Greg KH; +Cc: stern, linux-usb, oliver
Hi!
There are problems with usb after suspend/resume... it works as long
as memory is limited to 3G -- probably because iommu/agpgart/something
is not used in such case.
rmmod/insmod of ehci_hcd & ohci_hcd fixes that.
For testing with 2.6.25, you'll need aperture_64.c patch that makes
iommu as nosave (or it oopses).
Problem is also present in opensuse10.3.
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] 4+ messages in thread
* Re: 2.6.25 -- long standing bug with usb after resume with 4GB ram
2008-03-13 11:01 2.6.25 -- long standing bug with usb after resume with 4GB ram Pavel Machek
@ 2008-03-13 20:27 ` Rafael J. Wysocki
2008-03-13 21:58 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2008-03-13 20:27 UTC (permalink / raw)
To: Pavel Machek; +Cc: kernel list, Greg KH, stern, linux-usb, oliver
On Thursday, 13 of March 2008, Pavel Machek wrote:
> Hi!
>
> There are problems with usb after suspend/resume... it works as long
> as memory is limited to 3G -- probably because iommu/agpgart/something
> is not used in such case.
>
> rmmod/insmod of ehci_hcd & ohci_hcd fixes that.
>
> For testing with 2.6.25, you'll need aperture_64.c patch that makes
> iommu as nosave (or it oopses).
Any chance to push that one upstream?
Rafael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.25 -- long standing bug with usb after resume with 4GB ram
2008-03-13 11:01 2.6.25 -- long standing bug with usb after resume with 4GB ram Pavel Machek
2008-03-13 20:27 ` Rafael J. Wysocki
@ 2008-03-13 21:58 ` Greg KH
2008-03-13 22:05 ` Pavel Machek
1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2008-03-13 21:58 UTC (permalink / raw)
To: Pavel Machek; +Cc: kernel list, stern, linux-usb, oliver
On Thu, Mar 13, 2008 at 12:01:41PM +0100, Pavel Machek wrote:
> Hi!
>
> There are problems with usb after suspend/resume... it works as long
> as memory is limited to 3G -- probably because iommu/agpgart/something
> is not used in such case.
>
> rmmod/insmod of ehci_hcd & ohci_hcd fixes that.
>
> For testing with 2.6.25, you'll need aperture_64.c patch that makes
> iommu as nosave (or it oopses).
Any pointer to where this patch is?
Can it go into 2.6.25?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.25 -- long standing bug with usb after resume with 4GB ram
2008-03-13 21:58 ` Greg KH
@ 2008-03-13 22:05 ` Pavel Machek
0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2008-03-13 22:05 UTC (permalink / raw)
To: Greg KH; +Cc: kernel list, stern, linux-usb, oliver
Hi!
> > There are problems with usb after suspend/resume... it works as long
> > as memory is limited to 3G -- probably because iommu/agpgart/something
> > is not used in such case.
> >
> > rmmod/insmod of ehci_hcd & ohci_hcd fixes that.
> >
> > For testing with 2.6.25, you'll need aperture_64.c patch that makes
> > iommu as nosave (or it oopses).
>
> Any pointer to where this patch is?
>
> Can it go into 2.6.25?
Here it is: Yes, I guess it could go into 2.6.25...
Pavel
diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c
index 608152a..88747f3 100644
--- a/arch/x86/kernel/aperture_64.c
+++ b/arch/x86/kernel/aperture_64.c
@@ -18,6 +18,7 @@ #include <linux/pci_ids.h>
#include <linux/pci.h>
#include <linux/bitops.h>
#include <linux/ioport.h>
+#include <linux/suspend.h>
#include <asm/e820.h>
#include <asm/io.h>
#include <asm/gart.h>
@@ -76,6 +77,7 @@ static u32 __init allocate_aperture(void
printk(KERN_INFO "Mapping aperture over %d KB of RAM @ %lx\n",
aper_size >> 10, __pa(p));
insert_aperture_resource((u32)__pa(p), aper_size);
+ register_nosave_region((u32)__pa(p) >> PAGE_SHIFT, (u32)__pa(p+aper_size) >> PAGE_SHIFT);
return (u32)__pa(p);
}
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
pomozte zachranit klanovicky les: http://www.ujezdskystrom.info/
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-13 22:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-13 11:01 2.6.25 -- long standing bug with usb after resume with 4GB ram Pavel Machek
2008-03-13 20:27 ` Rafael J. Wysocki
2008-03-13 21:58 ` Greg KH
2008-03-13 22:05 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox