drm/xe/vram: drop 2G block restriction
authorMatthew Auld <matthew.auld@intel.com>
Wed, 13 Nov 2024 17:23:47 +0000 (17:23 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 18 Nov 2024 14:04:23 +0000 (14:04 +0000)
commit678ccbf987969a6020fe95ecb4a2f568e7466821
tree44aca8f0d3e90f3157ccad67b348c775826d9a70
parent2d4993e163401c81e138c6e0e6223752c2e90402
drm/xe/vram: drop 2G block restriction

Currently we limit the max block size for all users to ensure each block
can fit within a sg entry (uint). Drop this restriction and tweak the sg
construction to instead handle this itself and break down blocks which
are too big, if needed. Most users don't need an sg list in the first
place.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Tested-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241113172346.256165-2-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c