pci_resize_resource() assigns the resized BAR and the other BARs it released, or restores the original configuration on failure. Calling pci_assign_unassigned_bus_resources() after it is redundant. If that call manages to assign more resources in some scenario, the problem should be fixed inside pci_resize_resource() instead.
Remove the pci_assign_unassigned_bus_resources() call from i915_resize_lmem_bar(). Signed-off-by: Ilpo Järvinen <[email protected]> --- drivers/gpu/drm/i915/gt/intel_region_lmem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_region_lmem.c b/drivers/gpu/drm/i915/gt/intel_region_lmem.c index b8a39567a334..d6f5e340657c 100644 --- a/drivers/gpu/drm/i915/gt/intel_region_lmem.c +++ b/drivers/gpu/drm/i915/gt/intel_region_lmem.c @@ -104,7 +104,6 @@ static void i915_resize_lmem_bar(struct drm_i915_private *i915, resource_size_t _resize_bar(i915, GEN12_LMEM_BAR, rebar_size); - pci_assign_unassigned_bus_resources(pdev->bus); pci_write_config_dword(pdev, PCI_COMMAND, pci_cmd); intel_uncore_forcewake_put(&i915->uncore, FORCEWAKE_ALL); } -- 2.47.3
