drm/xe: Fix hidden gotcha regression with bo create
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 12 Jan 2023 22:25:36 +0000 (17:25 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 12 Dec 2023 19:06:00 +0000 (14:06 -0500)
commitc343bacfad5db03c4156ff3a44e3a5547afb246f
treee857cf71da63a286712416799b50d0761aea754d
parent5e37266307df08f981d929c267bab6bfae8c4d53
drm/xe: Fix hidden gotcha regression with bo create

The bo_create ioctl relied on the internal ordering of memory regions to
be the same, make sure we don't allocate stolen instead of VRAM0.

Also remove a debug warning left in.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Philippe Lecluse <philippe.lecluse1@gmail.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bo.h
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c