On Thu, Nov 13, 2025 at 06:26:26PM +0200, Ilpo Järvinen wrote:
PCI core handles releasing device's resources and their rollback in
case of failure of a BAR resizing operation. Releasing resource prior
to calling pci_resize_resource() prevents PCI core from restoring the
BARs as they were.
Remove driver-side release of BARs from the i915 driver.
Signed-off-by: Ilpo Järvinen <[email protected]>
Reviewed-by: Lucas De Marchi <[email protected]>
I also applied it to drm-tip from today and submitted for xe and i915
tests:
https://lore.kernel.org/all/[email protected]
pass by comment... the forcewake handling in the middle of BAR resizing
is insane but it's probably because it's already very late in the probe
sequence. Moving it to early probe like was done in xe would allow it to
be simplified too.
Lucas De Marchi