A change set to land for the upcoming Linux 7.5 kernel cycle expands the mmap range size for GEM/TTM buffer objects in the kernel graphics drivers from 1TB to now up to 8TB. Increasing the limit from 1TB to 8TB was done in the name of multi-GPU setups with lots of video memory. The change was made by Intel and given the timing of this patch presumably in preparation for Crescent Island, a.k.a. the Intel GPU D Series with up to 160GB of LPDDR5X per card. Intel Linux GPU driver engineer Matthew Auld explained in the patch bumping the limit: "Every GEM/TTM buffer object, including imported dma-bufs, allocates a fake mmap offset from the per-device drm_vma_offset_manager. On multi-GPU systems with large VRAM, peer-to-peer dma-buf imports across devices and processes can exhaust the current 1 TiB 64-bit range and fail BO creation or PRIME import with -ENOSPC. Skipping mmap offset allocation for imported sg buffers is not straightforward without risking userspace regressions, as existing userspace (such as Intel compute-runtime) still queries mmap_offset on imported host dma-bufs even when mapping the dma-buf fd directly. Increase DRM_FILE_PAGE_OFFSET_SIZE on 64-bit kernels so the fake offset range spans up to 8 TiB (SZ_8T). This stays strictly below panthor's DRM_PANTHOR_USER_MMIO_OFFSET_32BIT (1ULL << 43) carveout and within 32-bit compat mmap2's pgoff limit (16 TiB with 4K pages)." The change for bumping the DRM_FILE_PAGE_OFFSET_SIZE limit to 8TB is coming to Linux 7.5 by way of this week's drm-misc-next pull request to DRM-Next.
Intel Preps Linux 7.5 Change To Better Handle Multiple GPUs With Lots Of VRAM
Full Article
Original Source
Read the full article at Phoronix →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.