Re: Exposing ROM's though sysfs

From: Jesse Barnes (jbarnes_at_engr.sgi.com)
Date: 07/30/04

  • Next message: Lee Revell: "Re: [patch] voluntary-preempt-2.6.8-rc2-L2 PS2 keyboard gone south"
    To: Christoph Hellwig <hch@infradead.org>
    Date:	Fri, 30 Jul 2004 10:57:12 -0700
    
    
    

    On Friday, July 30, 2004 10:24 am, Christoph Hellwig wrote:
    > On Fri, Jul 30, 2004 at 10:10:29AM -0700, Jesse Barnes wrote:
    > > + unsigned long start = dev->resource[PCI_ROM_RESOURCE].start;
    > > + int size = dev->resource[PCI_ROM_RESOURCE].end -
    > > + dev->resource[PCI_ROM_RESOURCE].start;
    >
    > pci_resource_start and pci_resource_len please.
    >
    > > + .name = "rom",
    > > + .mode = S_IRUGO | S_IWUSR,
    >
    > do we really want it world readable if a read messes with pci config
    > space?
    >
    > > + if (pdev->resource[PCI_ROM_RESOURCE].start) {
    > > + pci_rom_attr.size = pdev->resource[PCI_ROM_RESOURCE].end -
    > > + pdev->resource[PCI_ROM_RESOURCE].start;
    >
    > as above.

    Oops, forgot about those macros. Fixed. I've also fixed the perms, RO by
    root.

    willy brings up a good point though, we may want to disable the rom file
    entirely after its been read, since it can be a source of trouble. Here's
    the latest patch.

    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: Lee Revell: "Re: [patch] voluntary-preempt-2.6.8-rc2-L2 PS2 keyboard gone south"

    Relevant Pages

    • Re: [Infiniband-general] Getting an Infiniband access layer in theLinux kernel
      ... I could post a tar ball of the latest BK change set on ... | To: Christoph Hellwig ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Inspiron 6000 / ACPI S3 / PCI-X problems?
      ... inspiron 6000. ... Turns out the PCI config for the card gets trashed: ... using xorg and kernel image 2.6.11.93-1.1 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Updating our sn code in 2.6
      ... Christoph Hellwig wrote: ... > I get in reply is bad flames and random obsfucations to break that code. ... > code in the kernel it should be done properly. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.5/2.6 PCMCIA Issues
      ... > and I bet it messes up some of the register state that the yenta probe had ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4.23-pre5 bugs: depmod and Unresolved symbols
      ... Christoph Hellwig once explained us why it was bad and basically what needed ... fix it because of this annoyance, ... the comx driver will simply be disabled in my later kernels. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)