The BAR resize rework removed the resource assignment call that followed the BAR resize in amdgpu. The xe and i915 drivers and the PCI sysfs resize interface still make the same call. The current BAR resize code should properly assign all resources and handle fallback gracefully so a driver-side call to assign resource right after BAR resize is just duplicate work (no-op). If that isn't the case somewhere, the fix belongs either the BAR resize code or the code that left the resource unassigned (e.g. a hotplug race or whatever left an resource unassigned prior to resize).
If drm wants to take their patches out of these, it's fine with me (either drm+pci or through pci tree only works for me). Ilpo Järvinen (3): PCI/sysfs: Remove resource assignment after BAR resize drm/xe: Remove driver side resource assignment after BAR resize drm/i915: Remove driver side resource assignment after BAR resize drivers/gpu/drm/i915/gt/intel_region_lmem.c | 1 - drivers/gpu/drm/xe/xe_pci_rebar.c | 2 -- drivers/pci/pci-sysfs.c | 3 --- 3 files changed, 6 deletions(-) base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 -- 2.47.3
