File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,8 @@ static u32 get_crystal_clock_freq(u32 rpm_config_reg)
40
40
}
41
41
}
42
42
43
- int xe_gt_clock_init (struct xe_gt * gt )
43
+ static void check_ctc_mode (struct xe_gt * gt )
44
44
{
45
- u32 c0 = xe_mmio_read32 (& gt -> mmio , RPM_CONFIG0 );
46
- u32 freq = 0 ;
47
-
48
45
/*
49
46
* CTC_MODE[0] = 1 is definitely not supported for Xe2 and later
50
47
* platforms. In theory it could be a valid setting for pre-Xe2
@@ -57,7 +54,17 @@ int xe_gt_clock_init(struct xe_gt *gt)
57
54
*/
58
55
if (xe_mmio_read32 (& gt -> mmio , CTC_MODE ) & CTC_SOURCE_DIVIDE_LOGIC )
59
56
xe_gt_warn (gt , "CTC_MODE[0] is set; this is unexpected and undocumented\n" );
57
+ }
58
+
59
+ int xe_gt_clock_init (struct xe_gt * gt )
60
+ {
61
+ u32 freq ;
62
+ u32 c0 ;
63
+
64
+ if (!IS_SRIOV_VF (gt_to_xe (gt )))
65
+ check_ctc_mode (gt );
60
66
67
+ c0 = xe_mmio_read32 (& gt -> mmio , RPM_CONFIG0 );
61
68
freq = get_crystal_clock_freq (c0 );
62
69
63
70
/*
You can’t perform that action at this time.
0 commit comments