[lkml]   [2004]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRE: [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 ROM contents came
    from the shadow memory.

    Any ideas on how to solve this problem...

    Originally I had this in the enable ROM routine
    /* assign the ROM an address if it doesn't have one */
    if (r->parent == NULL)
    pci_assign_resource(dev->pdev, PCI_ROM_RESOURCE);

    I removed the call to pci_assign_resource(). The sysfs attribute code
    builds the attributes before the pci subsystem is fully initialized.
    specifically before arch pcibios_init() has been called. If
    pci_assign_resource() is called for the ROM before pcibios_init() the
    kernel's resource maps have not been built yet. This will result in the
    ROM being located on top of the framebuffer; as soon as it is enabled
    the system will lock. Right now the code relies on the BIOS getting the
    ROM address set up right. If we can figure out how to initialize the
    sysfs attributes after pcibios_init() then I can put the assign call

    --- "Pallipadi, Venkatesh" <> wrote:

    > One issue with x86 quirk in this patch.
    > The actual sysfs entries are created during the PCI bus scan.
    > But, pci_fixup_video() gets called later during device_initcalls.
    > So, PCI_ROM_SHADOW is kind of ineffective now.
    > Thanks,
    > Venki

    Jon Smirl

    Do you Yahoo!?
    Yahoo! Mail Address AutoComplete - You start. We finish.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:05    [W:0.021 / U:8.684 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site