CVSROOT:        /cvs
Module name:    src
Changes by:     patr...@cvs.openbsd.org 2018/05/23 02:36:15

Modified files:
        sys/dev/pci    : if_bwfm_pci.c 

Log message:
Map the second bwfm(4) BAR first.  The bwfm(4) PCIe devices have two
BARs, where the second one is much larger than the first.  Both need
to be properly aligned in the given extent.  Since the first one is
smaller, it will "unalign" the next free space and thus create a gap
so that the second BAR cannot be properly aligned in the given space.
By mapping the second BAR first, it will automatically have proper
alignment.  The first BAR, which has fewer alignment requirements,
fits well after the initial allocation.  Fixes bwfm(4) on APU 1.

Debugged and solved by kettenis@

Reply via email to