Re: [PATCH] add PCI ROMs to sysfs

From: Jesse Barnes (jbarnes_at_engr.sgi.com)
Date: 08/03/04

  • Next message: L A Walsh: "Re: NFS-mounted, read-only /dev unusable in 2.6"
    To: Jon Smirl <jonsmirl@yahoo.com>
    Date:	Tue, 3 Aug 2004 10:07:00 -0700
    
    

    On Monday, August 2, 2004 7:32 pm, Jon Smirl wrote:
    > My original version have this in it:
    >
    > /* assign the ROM an address if it doesn't have one */
    > if (r->parent == NULL)
    > pci_assign_resource(dev->pdev, PCI_ROM_RESOURCE);
    >
    >
    > if (r->parent) {
    > release_resource(r);
    > r->flags &= ~PCI_ROM_ADDRESS_ENABLE;
    > r->end -= r->start;
    > r->start = 0;
    > }
    >
    > I was running this code on both 2.4/2.6 but I may have needed to do
    > this for 2.4. Is it consistent to have pci_assign_resource() and then
    > use release_resource()?
    >
    > My i875P AGP controller has a ROM on it as well as my two video cards.

    So it seems there's some redundancy here--some platforms will map the ROMs at
    discovery time while on others we have to map them explicitly? Which should
    we count on? I was assuming the former in the last patch I posted, and would
    like to keep it that way unless there's some reason not to.

    Thanks,
    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: L A Walsh: "Re: NFS-mounted, read-only /dev unusable in 2.6"

    Relevant Pages

    • Re: [PATCH] add PCI ROMs to sysfs
      ... On Thursday, August 5, 2004 1:45 pm, Jon Smirl wrote: ... I think just my platform is broken (i.e. pci_assign_resource doesn't do the ... > hotpluging the original ROM address could get used by another card ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Make pipe data structure be a circular list of pages, rather than
      ... We need those "map" operations in order to handle other ... least a bigger multi-page allocation. ... architectures you can actually do a memcpy on IO space too. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Benchmarking objrmap under memory pressure
      ... I see what you mean with mem= being troublesome, I forgot you're numa=y, ... that you should find in arch/i386/kernel/setup.c, that should work w/o ... everything else numa is built on top of that map, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.11-rc3: Kylix application no longer works?
      ... > However I worry if there is some way in which we can leave unzeroed memory ... The 0xb7354 is size to map from the file, the 0x1b7354 is size to map ... Daniel Jacobowitz ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: virt_to_page/pci_map_page vs. pci_map_single
      ... If the data you have to map is> 1 Page, then the scatter gather ... interface ) is a better way to handle it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)