Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1232848

Re: [RFC] PCI: Unassigned Expansion ROM BARs

From Bjorn Helgaas <helgaas@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC] PCI: Unassigned Expansion ROM BARs
Date 2015-09-25 16:40 +0200
Message-ID <qcCki-4ao-5@gated-at.bofh.it> (permalink)
References <qc4LD-6JU-3@gated-at.bofh.it> <qc5om-7HZ-25@gated-at.bofh.it> <qcibT-Sv-1@gated-at.bofh.it> <qckdI-3Kz-11@gated-at.bofh.it> <qcsXD-7Ma-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 24, 2015 at 09:35:20PM -0700, Yinghai Lu wrote:
> On Thu, Sep 24, 2015 at 12:01 PM, Yinghai Lu <yinghai@kernel.org> wrote:
> 
> > Or do we want to keep a white list to say which device should have
> > ROM bar as mush have, and other is optional to have ?
> 
> Subject: [RFC PATCH] PCI: Add pci_dev_need_rom_bar()
> 
> Only set that for
> 1. if BIOS/firmware already set ROM bar.
> 2. via quirks for some devices.
> 
> We assign those needed ROM bar as required
> and other ROM bars as optional resources.

I'd rather not have a whitelist if we can avoid it.  We'd be
continually adding new devices to it, and it makes the system harder
to understand because there's no consistent rule about how ROMs are
handled.

Alex mentioned the idea of ripping the ROM, and I'd like to explore
that idea a little more.  What if we could temporarily assign space
for the ROM during enumeration, read the contents, cache the contents
somewhere, then deallocate the actual BAR space?  We could hang onto
the cache and give it to anybody who later needs the ROM.

I know there are probably issues here, but I don't know what they are,
so I'd like to at least have a conversation about it.

Bjorn
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC] PCI: Unassigned Expansion ROM BARs Myron Stowe <myron.stowe@gmail.com> - 2015-09-24 04:50 +0200
  Re: [RFC] PCI: Unassigned Expansion ROM BARs Yinghai Lu <yinghai@kernel.org> - 2015-09-24 05:30 +0200
    Re: [RFC] PCI: Unassigned Expansion ROM BARs Alex Williamson <alex.williamson@redhat.com> - 2015-09-24 06:00 +0200
    Re: [RFC] PCI: Unassigned Expansion ROM BARs Myron Stowe <myron.stowe@gmail.com> - 2015-09-24 19:10 +0200
      Re: [RFC] PCI: Unassigned Expansion ROM BARs Yinghai Lu <yinghai@kernel.org> - 2015-09-24 21:20 +0200
        Re: [RFC] PCI: Unassigned Expansion ROM BARs Yinghai Lu <yinghai@kernel.org> - 2015-09-25 06:40 +0200
          Re: [RFC] PCI: Unassigned Expansion ROM BARs Myron Stowe <myron.stowe@gmail.com> - 2015-09-25 15:40 +0200
            Re: [RFC] PCI: Unassigned Expansion ROM BARs Myron Stowe <myron.stowe@gmail.com> - 2015-09-25 19:10 +0200
          Re: [RFC] PCI: Unassigned Expansion ROM BARs Bjorn Helgaas <helgaas@kernel.org> - 2015-09-25 16:40 +0200
            Re: [RFC] PCI: Unassigned Expansion ROM BARs Alex Williamson <alex.williamson@redhat.com> - 2015-09-25 18:20 +0200
              Re: [RFC] PCI: Unassigned Expansion ROM BARs Yinghai Lu <yinghai@kernel.org> - 2015-09-26 02:10 +0200
  Re: [RFC] PCI: Unassigned Expansion ROM BARs Myron Stowe <myron.stowe@gmail.com> - 2015-09-27 21:40 +0200
  Re: [RFC] PCI: Unassigned Expansion ROM BARs Myron Stowe <myron.stowe@gmail.com> - 2015-09-27 22:20 +0200

csiph-web