Skip to content

Commit 78e418d

Browse files
committed
drm/i915: Stop claiming cs timestamp frquency on gen2/3
Gen2/3 have no TIMESTAMP registers to sample so no point in thinking we have any frequency for it either. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Lionel Landwerlin <[email protected]>
1 parent ad1ea98 commit 78e418d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static u32 g4x_read_clock_frequency(struct intel_uncore *uncore)
139139
return 1000000000 / 1024;
140140
}
141141

142-
static u32 gen2_read_clock_frequency(struct intel_uncore *uncore)
142+
static u32 gen4_read_clock_frequency(struct intel_uncore *uncore)
143143
{
144144
/*
145145
* PRMs say:
@@ -163,8 +163,10 @@ static u32 read_clock_frequency(struct intel_uncore *uncore)
163163
return gen5_read_clock_frequency(uncore);
164164
else if (IS_G4X(uncore->i915))
165165
return g4x_read_clock_frequency(uncore);
166+
else if (GRAPHICS_VER(uncore->i915) == 4)
167+
return gen4_read_clock_frequency(uncore);
166168
else
167-
return gen2_read_clock_frequency(uncore);
169+
return 0;
168170
}
169171

170172
void intel_gt_init_clock_frequency(struct intel_gt *gt)

0 commit comments

Comments
 (0)