]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Don't set BAR to zero if dma_addr_t is too small
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Apr 2014 00:37:47 +0000 (18:37 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 May 2014 16:47:20 +0000 (10:47 -0600)
commit7914ef6d99b5ed9856dec08c67ec8d1a39e893b0
tree7d3eefcac66a13eab42540e4a491b67dedde0b95
parent1dc2d4d412a6c5c2d043341c7d74cf5be7bc27f1
PCI: Don't set BAR to zero if dma_addr_t is too small

If a BAR is above 4GB and our dma_addr_t is too small, don't clear the BAR
to zero: that doesn't disable the BAR, and it makes it more likely that the
BAR will conflict with things if we turn on the memory enable bit (as we
will at "out:" if the device was already enabled at the handoff).

We should also print the BAR info and its original size so we can follow
the process when we try to assign space to it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c