<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/pci/setup-res.c, branch linux-3.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-03-19T21:00:14Z</updated>
<entry>
<title>PCI: Don't enable decoding if BAR hasn't been assigned an address</title>
<updated>2014-03-19T21:00:14Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2014-02-26T18:26:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3cedcc3621289d41bd21c5dbe0b886d57c83a1ea'/>
<id>urn:sha1:3cedcc3621289d41bd21c5dbe0b886d57c83a1ea</id>
<content type='text'>
Don't enable memory or I/O decoding if we haven't assigned or claimed the
BAR's resource.

If we enable decoding for a BAR that hasn't been assigned an address, we'll
likely cause bus conflicts.  This declines to enable decoding for resources
with IORESOURCE_UNSET.

Note that drivers can use pci_enable_device_io() or pci_enable_device_mem()
if they only care about specific types of BARs.  In that case, we don't
bother checking whether the corresponding resources are assigned or
claimed.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
</content>
</entry>
<entry>
<title>PCI: Don't try to claim IORESOURCE_UNSET resources</title>
<updated>2014-02-27T17:43:33Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2014-02-26T18:25:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29003beb7f15d3daa5a8f9afb8d007b64baa2357'/>
<id>urn:sha1:29003beb7f15d3daa5a8f9afb8d007b64baa2357</id>
<content type='text'>
If the IORESOURCE_UNSET bit is set, it means we haven't assigned an address
yet, so don't try to claim the region.

Also, make the error messages more uniform and add info about which BAR is
involved.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
</content>
</entry>
<entry>
<title>PCI: Check IORESOURCE_UNSET before updating BAR</title>
<updated>2014-02-27T17:43:32Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2014-02-26T18:25:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd8a4d3657c3f2cf9ce3780707be1debb8fea6e2'/>
<id>urn:sha1:cd8a4d3657c3f2cf9ce3780707be1debb8fea6e2</id>
<content type='text'>
Check to make sure we don't update a BAR with an address we haven't
assigned.

If we haven't assigned an address to a resource, we shouldn't write it to a
BAR.  This isn't a problem for the usual path via pci_assign_resource(),
which clears IORESOURCE_UNSET before calling pci_update_resource(), but
paths like pci_restore_bars() can call this for resources we haven't
assigned.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
</content>
</entry>
<entry>
<title>PCI: Don't clear IORESOURCE_UNSET when updating BAR</title>
<updated>2014-02-27T17:43:32Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2014-02-26T18:25:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=434aafc1aefb5eb6e8c8d15284c8f929be756521'/>
<id>urn:sha1:434aafc1aefb5eb6e8c8d15284c8f929be756521</id>
<content type='text'>
Clear IORESOURCE_UNSET when we assign an address to a resource, not when we
write the address to the BAR.

Also, drop the "BAR %d: set to %pR" message; this is mostly redundant with
the "BAR %d: assigned %pR" message from pci_assign_resource().

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
</content>
</entry>
<entry>
<title>PCI: Mark resources as IORESOURCE_UNSET if we can't assign them</title>
<updated>2014-02-27T17:43:32Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2014-02-26T18:25:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bd064f0a231af336218838474ea45a64f1672190'/>
<id>urn:sha1:bd064f0a231af336218838474ea45a64f1672190</id>
<content type='text'>
When assigning addresses to resources, mark them with IORESOURCE_UNSET
before we start and clear IORESOURCE_UNSET if assignment is successful.
That means that if we print the resource during assignment, we will show
the size, not a meaningless address.

Also, clear IORESOURCE_UNSET if we do assign an address, so we print the
address when it is valid.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
</content>
</entry>
<entry>
<title>PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev</title>
<updated>2013-12-21T17:06:10Z</updated>
<author>
<name>Yinghai Lu</name>
</author>
<published>2013-12-10T06:54:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc2798502f860b18f3c7121e4dc659d3d9d28d74'/>
<id>urn:sha1:fc2798502f860b18f3c7121e4dc659d3d9d28d74</id>
<content type='text'>
These interfaces:

  pcibios_resource_to_bus(struct pci_dev *dev, *bus_region, *resource)
  pcibios_bus_to_resource(struct pci_dev *dev, *resource, *bus_region)

took a pci_dev, but they really depend only on the pci_bus.  And we want to
use them in resource allocation paths where we have the bus but not a
device, so this patch converts them to take the pci_bus instead of the
pci_dev:

  pcibios_resource_to_bus(struct pci_bus *bus, *bus_region, *resource)
  pcibios_bus_to_resource(struct pci_bus *bus, *resource, *bus_region)

In fact, with standard PCI-PCI bridges, they only depend on the host
bridge, because that's the only place address translation occurs, but
we aren't going that far yet.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu &lt;yinghai@kernel.org&gt;
Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;</content>
</entry>
<entry>
<title>PCI: Fix whitespace, capitalization, and spelling errors</title>
<updated>2013-11-14T18:28:18Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2013-11-14T18:28:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f7625980f5820edd1a73536e1a03bcbc1f889fec'/>
<id>urn:sha1:f7625980f5820edd1a73536e1a03bcbc1f889fec</id>
<content type='text'>
Fix whitespace, capitalization, and spelling errors.  No functional change.
I know "busses" is not an error, but "buses" was more common, so I used it
consistently.

Signed-off-by: Marta Rybczynska &lt;rybczynska@gmail.com&gt; (pci_reset_bridge_secondary_bus())
Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Acked-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;</content>
</entry>
<entry>
<title>PCI: Remove unused variables</title>
<updated>2013-04-15T16:56:27Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2013-04-12T17:18:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b638d7e7b849ad402aaecfe7edb599687b5eb3a8'/>
<id>urn:sha1:b638d7e7b849ad402aaecfe7edb599687b5eb3a8</id>
<content type='text'>
This fixes "set but not used" warnings found via "make W=1".

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;</content>
</entry>
<entry>
<title>Merge branch 'pci/nikhil-big-bar-fixes' into next</title>
<updated>2012-07-18T20:06:20Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2012-07-18T20:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f9dca96696ee88f9f2b33dd6fba5877270c559c'/>
<id>urn:sha1:5f9dca96696ee88f9f2b33dd6fba5877270c559c</id>
<content type='text'>
* pci/nikhil-big-bar-fixes:
  PCI: reorder __pci_assign_resource() (no change)
  PCI: fix truncation of resource size to 32 bits
</content>
</entry>
<entry>
<title>PCI: reorder __pci_assign_resource() (no change)</title>
<updated>2012-07-11T23:05:43Z</updated>
<author>
<name>Bjorn Helgaas</name>
</author>
<published>2012-07-11T23:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe6dacdb1a31957825c0876de7cdea4c356aca30'/>
<id>urn:sha1:fe6dacdb1a31957825c0876de7cdea4c356aca30</id>
<content type='text'>
Reorder functions so __pci_assign_resource(), _pci_assign_resource(),
and pci_assign_resource() are closer together.  No code change.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;</content>
</entry>
</feed>
