mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Michael Frank" <mhf@linuxmail.org>
To: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Cc: "Micha Feigin" <michf@post.tau.ac.il>,
	"Software suspend" <swsusp-devel@lists.sourceforge.net>,
	"Linux Kernel list" <linux-kernel@vger.kernel.org>
Subject: Re: [Swsusp-devel] Re: Dropping CONFIG_PM_DISK?
Date: Mon, 01 Mar 2004 20:48:59 +0800	[thread overview]
Message-ID: <opr36ojxik4evsfm@smtp.pacific.net.th> (raw)
In-Reply-To: <1078141191.28288.83.camel@gaston>

On Mon, 01 Mar 2004 22:39:52 +1100, Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

>
>> >> - that 2.4 style PM got depreciated and let die before the
>> >>    "new-driver-model" PM is workin
>> >
>> > Except that it never worked
>>
>> It is actively used for ide, network, serial drivers with swsusp2.
>
> Without any proper ordering guarantee, IDE could take requests
> after beeing suspended, which could be fatal (and cause data loss)
> etc...

Appreciated, suspending a driver like sending XOFF to a tty is ideal,
but not neccessary for _most_ drivers (software suspend) purpose.

Wrt IDE, in practice all processes get frozen well before
suspending drivers. Tested and no issues were ever reported with 2.4.

>
> Moving to the new model is easy. I don't see why we should have had
> such a "compatibility" path on a major kernel version, that makes
> no sense, just help fixing the drivers that need more fixing instead.

What for write new drivers for (fast obsoleting) hardware?.

- Developer time is the most precious resource
- Testing of drivers is in practice very difficult due to lack of
     several variations of HW (one can't really test anything in one box)
- It will take _years_ for drivers to become available and reach the
   stability of 2.4 drivers.
- Many drivers will die for lack of overall resources to port them.

So, why burn resources on reinventing wheels, which end up poorly
tested and run like a disk sliced of a tree...

What is needed is a  _compatible_ infrastructure to _any_ 2.4 driver
in existence and also provideing rudimentary centralized suspend and
resume capability.

This infrastructure could even be a config option
	CONFIG_24_DRIVER_SUPPORT
and be independent of the new model.

Then one could just drop in a driver from 2.4 and use it.

People having time to make new "pretty" drivers could
also use this facility for cross checking.

>
>> >
>> >> - that perfectly good drivers were rewritten from scratch,
>> >>    but without functioning PM support
>> >
>> > Please, give names.
>> >
>>
>> A few I tested:
>>
>> AGP (sis, savage)
>> trident (Ali153x)
>> Serial (82x50)
>> Yenta (Toshiba Topic95)
>>
>> Regards
>> Michael


  reply	other threads:[~2004-03-01 12:49 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1ulUA-33w-3@gated-at.bofh.it>
2004-02-29 16:17 ` Karol Kozimor
2004-02-29 16:23   ` Pavel Machek
2004-02-29 17:32     ` Måns Rullgård
2004-02-29 18:10       ` Michael Frank
2004-02-29 21:33         ` [Swsusp-devel] " Micha Feigin
2004-03-01  2:51           ` Michael Frank
2004-03-01 11:09             ` Benjamin Herrenschmidt
2004-03-01 11:35               ` Karol Kozimor
2004-03-01 11:28                 ` Benjamin Herrenschmidt
2004-03-01 11:51                   ` Karol Kozimor
2004-03-01 12:56                     ` Martin Wickman
2004-03-01 13:22                       ` Michael Frank
2004-03-01 12:34                   ` Micha Feigin
2004-03-01 11:31                 ` Benjamin Herrenschmidt
2004-03-01 11:57                   ` Karol Kozimor
2004-03-01 22:08                     ` Benjamin Herrenschmidt
2004-03-01 11:43               ` Michael Frank
2004-03-01 11:39                 ` Benjamin Herrenschmidt
2004-03-01 12:48                   ` Michael Frank [this message]
2004-03-01 13:47                     ` Arjan van de Ven
2004-03-01 14:33                       ` Michael Frank
2004-03-01 14:38                         ` Arjan van de Ven
2004-03-01 22:10                     ` Benjamin Herrenschmidt
2004-02-29 18:10       ` Pavel Machek
2004-02-29 18:29         ` Måns Rullgård
2004-03-01  9:40           ` Pavel Machek
2004-03-01 10:08             ` Måns Rullgård
2004-03-01 10:39               ` Pavel Machek
2004-03-01  9:58                 ` Nigel Cunningham
2004-03-01 12:46                   ` Pavel Machek
2004-03-01 18:16                     ` Nigel Cunningham
2004-03-01 20:22                       ` Pavel Machek
2004-03-01 10:45               ` Michael Frank
2004-03-03  1:53 [Swsusp-devel] " John Mock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=opr36ojxik4evsfm@smtp.pacific.net.th \
    --to=mhf@linuxmail.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michf@post.tau.ac.il \
    --cc=swsusp-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®