mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
drm/xe: Print a debug message if we have no stolen for the initial FB
Inform the poor sop reading the logs why the initial FB was rejected if there is no stolen memory. Technically this should perhaps be an error since the plane is known to be enabled at this point, and if there is no stolen then it clearly can't be scanning out from anywhere. But maybe there are some virtualization passthrough cases and whatnot where we might not be able to get access to stolen, so keep it as debug (same as i915). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patch.msgid.link/20260511214122.8468-9-ville.syrjala@linux.intel.com Signed-off-by: Maarten Lankhorst <dev@lankhorst.se> Acked-by: Matthew Brost <matthew.brost@intel.com> #teams
This commit is contained in:
parent
7745c857dd
commit
1d2a6c96f6
|
|
@ -68,10 +68,14 @@ initial_plane_bo(struct xe_device *xe,
|
|||
"Using phys_base=%pa, based on initial plane programming\n",
|
||||
&phys_base);
|
||||
} else {
|
||||
struct ttm_resource_manager *stolen = ttm_manager_type(&xe->ttm, XE_PL_STOLEN);
|
||||
struct ttm_resource_manager *stolen;
|
||||
|
||||
if (!stolen)
|
||||
stolen = ttm_manager_type(&xe->ttm, XE_PL_STOLEN);
|
||||
if (!stolen) {
|
||||
drm_dbg_kms(&xe->drm, "No stolen for initial FB\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
phys_base = base;
|
||||
flags |= XE_BO_FLAG_STOLEN;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user