drm/xe/vf: Don't check CTC_MODE[0] if VF
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 11 Mar 2025 11:40:41 +0000 (12:40 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 26 Mar 2025 03:51:09 +0000 (20:51 -0700)
commit4fa752a3bddaad1e94a67668cb6fea15883f24b6
tree92c0880e00b86e779d8e6f292220d2960272c82a
parent488975c2d3e171bd07ec5caaf3c9cbc6a0746e2d
drm/xe/vf: Don't check CTC_MODE[0] if VF

Starting from commit 18778b5fdd01 ("drm/xe: Eliminate usage of
TIMESTAMP_OVERRIDE") we access the CTC_MODE register only to warn
if it has undocumented value.  There is no point in doing that on
the VF driver.  While here, move this check to a helper function.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250311114042.1954-2-michal.wajdeczko@intel.com
(cherry picked from commit fce3fb7b914bcd19341de8d8eff8bef371c2cddf)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_clock.c