Starting from DG2 we will have resizable BAR support for device local-memory, but in some cases the final BAR size might still be smaller than the total local-memory size. In such cases only part of local-memory will be CPU accessible, while the remainder is only accessible via the GPU. This series adds the basic enablers needed to ensure that the entire local-memory range is usable. Needs to be applied on top of Arun' in-progress series[1]. [1] https://patchwork.freedesktop.org/series/99430/ v2: - Various improvements and fixes as suggested by Thomas. v3: - Add some more a-b and r-b. Also tweak patch 12 slightly, as suggested by Thomas. -- 2.34.1