drm/xe/bo: refactor try_add_vram
authorMatthew Auld <matthew.auld@intel.com>
Thu, 23 Mar 2023 11:59:22 +0000 (11:59 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:30:26 +0000 (18:30 -0500)
commite7dc1341f0dab3363baac28044b46237ed251802
tree8594bc10b6c02b4f02bb8257647a544f9cf85d26
parent8deba79f5deb0a751894a0cf74eff3806e7adfb4
drm/xe/bo: refactor try_add_vram

Get rid of some of the duplication here. In a future patch we need to
also consider [fpfn, lpfn], so better adjust in only one place.

Suggested-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bo.c