diff options
author | Michal Wajdeczko <[email protected]> | 2024-07-11 21:23:19 +0200 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2024-07-18 10:25:27 -0400 |
commit | bf07ca963d4fd11c88a9d4b058f2bd62e8d46a98 (patch) | |
tree | 66d5629d1a018dab26f4656fee95a7c509a029cf /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 408c2f14a5d3d7ac4824b96e52693ab271efb738 (diff) |
drm/xe/pf: Limit fair VF LMEM provisioning
Due to the current design of the BO and VRAM manager, any object
with XE_BO_FLAG_PINNED flag, which the PF driver uses during VF
LMEM provisionining, is created with the TTM_PL_FLAG_CONTIGUOUS
flag, which may cause VRAM fragmentation that prevents subsequent
allocations of larger objects, like fair VF LMEM provisioning.
To avoid such failures, round down fair VF LMEM provisioning size
to next power of two size, to compensate what xe_ttm_vram_mgr is
doing to achieve contiguous allocations.
Fixes: ac6598aed1b3 ("drm/xe/pf: Add support to configure SR-IOV VFs")
Signed-off-by: Michal Wajdeczko <[email protected]>
Reviewed-by: Piotr Piórkowski <[email protected]>
Reviewed-by: Jonathan Cavitt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
(cherry picked from commit 4c3fe5eae46b92e2fd961b19f7779608352e5368)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions