Commit 7dc58aa
PCI: Use pbus_select_window() during BAR resize
Prior to a BAR resize, __resource_resize_store() loops through the normal
resources of the PCI device and releases those that match to the flags of
the BAR to be resized. This is necessary to allow resizing also the
upstream bridge window as only childless bridge windows can be resized.
While the flags check (mostly) works (if corner cases are ignored), the
more straightforward way is to check if the resources share the bridge
window. Change __resource_resize_store() to do the check using
pbus_select_window().
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250829131113.36754-16-ilpo.jarvinen@linux.intel.com1 parent 85796d2 commit 7dc58aa
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1562 | 1562 | | |
1563 | 1563 | | |
1564 | 1564 | | |
1565 | | - | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
1566 | 1568 | | |
1567 | 1569 | | |
1568 | 1570 | | |
1569 | 1571 | | |
1570 | 1572 | | |
1571 | 1573 | | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
1572 | 1578 | | |
1573 | 1579 | | |
1574 | 1580 | | |
| |||
1588 | 1594 | | |
1589 | 1595 | | |
1590 | 1596 | | |
1591 | | - | |
1592 | | - | |
1593 | 1597 | | |
1594 | 1598 | | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
1598 | 1604 | | |
1599 | 1605 | | |
1600 | 1606 | | |
1601 | 1607 | | |
1602 | 1608 | | |
1603 | | - | |
| 1609 | + | |
1604 | 1610 | | |
1605 | 1611 | | |
1606 | 1612 | | |
| |||
0 commit comments