Re: [ 00/10] [Suspend2] Modules support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/3/06, Pavel Machek <[email protected]> wrote:
> Hi!
>
> > > Video problems seem to be broken for suspend2ram, not swsusp.
> > >
> > > Not that we don't have swsusp drivers problems, but they tend to be
> > > randomly, all over the map, mostly over drivers I never heard about.
> > >
> > > suspend2ram is different fish, video and ATA are real problems
> > > there. At least there are solutions on ATA being worked on.
> >
> > What PATA problems are you talking about?
> >
> > In kernel bugzilla there are 2 bugs related to suspend/resume:
> >
> > * #5257 for 2.6.13.1 (seem to be fixed in 2.6.15.2)
> > * #5673 for 2.6.14.3 (not enough information to start debugging)
> >
> > and I don't recall any problems being reported to linux-ide ML
> > or linux-kernel ML recently.
>
> We were not calling some ACPI methods to awake IDE correctly. It did
> not properly work with disk passwords or something like that.

Ah, ACPI support, it is being worked on but ATA ACPI should be
used as last resort.  Why?  We want IDE/libata drivers to have
correct knowledge about state of controller and devices.

There are specific cases when ACPI support is required (WRT disk
passwords we can and should support this without need for ACPI)
but most of systems should work just fine without it.  Also ACPI
support can just hide bugs in core code and host drivers which still
needs to be fixed (which i.e. happened for VIA IDE bug)...

> ...ahha, have it (should be reachable from outside...):
>
> https://bugzilla.novell.com/show_bug.cgi?id=145591

Jens' question is quite important here.

> (and linked:
>
> http://bugzilla.kernel.org/show_bug.cgi?id=2039 and

VIA IDE driver had bug in tuning code which prevented
resume from working, it was fixed ages ago.

[ commented into bug entry with request for retesting
  with latest kernel ]

> http://bugzilla.kernel.org/show_bug.cgi?id=5604

ide-generic is being used instead of piix (sigh)

Any other bugreports?


While at it let me explain some confusion which I've seen
cut'n'pasted into three bugreports (RedHat bugzilla, Ubuntu
bugzilla and kernel bugzilla):

"Linux currently has no real support for setting up IDE interfaces
on resume.  Some machines are kind enough to set the IDE
interface up themselves, but on others we're doomed to failure."

This is untrue as Linux has support for setting IDE controller
and drives.  It was added by Benjamin Herrenschmidt in late
2.5.x or early 2.6.x (I don't remember exact kernel version).

> )
>
> > Most bugreports I've seen was caused by:
> > * using ide-generic instead of proper host driver
> >   (no wonder that it fails)
> > * playing with hdparm when not needed (don't do it)
> >
> > Also IIRC SATA suspend/resume support was merged into
> > mainline (?) so things should work better now.
>
> I think SATA had similar problems with ACPI methods. Patches for SATA
> seem to be in better shape in PATA side, but I don't think they are in.

They are in mainline, maybe in Jeff's git tree... still the same
comments about ACPI support not being "Holy Grail" for fixing
all ATA suspend/resume problems apply...

More general request to ACPI and PM folks - if you get bugreports
which clearly indicate that [P,S]ATA drivers to blame please narrowing
it down a bit with help of bugreporter and feel free to:

* ask on linux-ide ML about the problem
* add "me" to cc: for the bug (or asign "me" as owner)

I can't promise fixing them all but leaving bugs as they are
without _informing_ and _working_ with ATA developers is clearly
not going to help...

Thanks,
Bartlomiej
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux