drm/xe: Add warn when level can not be zero.
authorNirmoy Das <nirmoy.das@intel.com>
Tue, 21 May 2024 10:36:23 +0000 (12:36 +0200)
committerNirmoy Das <nirmoy.das@intel.com>
Tue, 21 May 2024 20:09:20 +0000 (22:09 +0200)
commit735940f99966a5d510c43d05c932da536b33715a
tree1b9b058d21dd355e957f2690972f6414046dccf4
parent995f7dafd110eecbeef1e02846d897d64839d838
drm/xe: Add warn when level can not be zero.

At xe_pt_zap_ptes_entry() and xe_pt_stage_unbind_entry, the level cannot
be 0. Therefore, add an independent check for the level. Since the level
cannot be zero at this point, there is no need to check for `is_compact`,
so remove that instead.

Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521103623.11645-1-nirmoy.das@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
drivers/gpu/drm/xe/xe_pt.c