Re: [PATCH v2 09/11] drm/i915: Remove driver side BAR release before resize
From: Lucas De Marchi
Date: Fri Nov 14 2025 - 10:55:31 EST
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 <ilpo.jarvinen@xxxxxxxxxxxxxxx>
Reviewed-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
I also applied it to drm-tip from today and submitted for xe and i915
tests: https://lore.kernel.org/all/20251114154338.4161137-2-lucas.demarchi@xxxxxxxxx
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