Re: [linux-pm] [RFC] userland swsusp

From: Jesse Barnes (jbarnes_at_virtuousgeek.org)
Date: 11/19/05

  • Next message: Andrew Morton: "Re: dell_rbu driver depends on x86[64]"
    To: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Date:	Fri, 18 Nov 2005 20:18:21 -0800
    
    

    On Friday, November 18, 2005 2:07 pm, Alan Cox wrote:
    > On Gwe, 2005-11-18 at 22:23 +0100, Arjan van de Ven wrote:
    > > 1) accessing non-ram memory (eg PCI mmio space) by X and the likes
    > > (ideally should use sysfs but hey, changing X for this will take
    > > forever)
    >
    > Once sysfs supports the relevant capabilities fixing X actually
    > doesn't look too horrible, the PCI mapping routines are abstracted
    > and done by PCITAG (ie PCI device). You would need the ISA hole too
    > in some cases.

    It's actually partly done already (at least for ia64, but the code I put
    together works on x86 too, iirc, and should work elsewhere). The ISA
    stuff is exported on a per-bus basis in legacy_io and legacy_mem files.

    If vbetool and friends want to get at the ROM, they can use the sysfs
    rom file like everyone else. There are problems with this however, on
    systems where the ROM is unpacked at 0xc0000 or something, especially
    if the unpacked version is modified by the BIOS at startup time, not
    sure how to address that reliably.

    Jesse
    -
    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: Andrew Morton: "Re: dell_rbu driver depends on x86[64]"

    Relevant Pages

    • Re: [PATCH] add PCI ROMs to sysfs
      ... builds the attributes before the pci subsystem is fully initialized. ... ROM being located on top of the framebuffer; as soon as it is enabled ... If we can figure out how to initialize the sysfs ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: [PATCH] add PCI ROMs to sysfs
      ... Changing the quirk in fixup.c from FINAL to HEADER fixes the problem. ... Only the length was coming from the wrong place, ... The sysfs attribute code ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] document sysfs rom file interface
      ... Accessing PCI device resources through sysfs ... sysfs, usually mounted at /sys, provides access to PCI resources on platforms that support it. ... Note that some platforms don't support mmapping of certain -resources, so be sure to check the return value from any attempted mmap. ... + +The 'rom' file is special in that it provides read-only access to the device's +ROM file, ...
      (Linux-Kernel)
    • Re: [RFC] New Time of day proposal (updated 9/2/04)
      ... although I want to put the control into sysfs. ... > overhead. ... timesource management code needs to be split off into a timesource.c, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] scsi/sata write barrier support
      ... > the disc parameters and then trigger a device rescan via sysfs (I'll ... > then reading and setting it should be exported via sysfs. ... > sorts of trouble which is why we prefer asking the device what state ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)