Re: [PATCH] SCSI midlayer power management

From: James Bottomley (James.Bottomley_at_SteelEye.com)
Date: 08/12/04

  • Next message: Hollis Blanchard: "[RFC2] Host Virtual Serial Interface (HVSI) driver"
    To: Pavel Machek <pavel@suse.cz>
    Date:	12 Aug 2004 16:42:51 -0400
    
    

    On Thu, 2004-08-12 at 16:37, Pavel Machek wrote:
    > Can't you simply reuse bootup code? It will no longer be __init,
    > but it should make suspend/resume functions quite simple.

    Unfortunately, no that simply.

    Bootup is all about allocating these areas and initialising the card.
    Resume will be about initialising the card knowing the existing areas
    (and the data about the existing areas will have to be part of our
    persistent data on suspend).

    So, modifying the bootup to do something like

    if (in_resume)
            addr = read from suspend image
    else
            addr = dma_alloc_coherent(...)

    may work.

    > > to pick three drivers to do this for, that would be aic7xxx, aic79xx and
    > > sym_2?
    >
    > No idea, only SCSI host I owned was some 8-bit isa thing....

    Well, someone who's interested needs to pick a driver. It's usually
    easier to persuade everyone to add the feature if there's an example to
    copy...

    James

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


  • Next message: Hollis Blanchard: "[RFC2] Host Virtual Serial Interface (HVSI) driver"

    Relevant Pages

    • Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
      ... I bet that somebody who really really cares (hint hint) could ... and then dynamically tweak the divisor at bootup ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.8.1-mm IRQ routing problems
      ... | only happens when fsck runs at bootup because in my case ... | of the max-mount-count being reached. ... Oops is fixed by this simple patch: ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [2.6 patch] i386: always use 4k stacks
      ... Zlib remains high on the ... list, but those paths are from /lib/inflate.c, during bootup. ... The cheapest, fastest and most reliable components of a computer ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6.0-test10(-mm1)] 8139too vs. 8139cp
      ... > 8139too for increased performance and stability" message on bootup. ... > any accessable oops (I'm running X, there was nothing in the logfiles). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] Real-Time Preemption, -RT-2.6.9-mm1-V0
      ... > testsystems broke, it hangs during bootup. ... I'm working on the fix. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)