Commit 78e418d0 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

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: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221031135703.14670-3-ville.syrjala@linux.intel.com


Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent ad1ea980
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ static u32 g4x_read_clock_frequency(struct intel_uncore *uncore)
	return 1000000000 / 1024;
}

static u32 gen2_read_clock_frequency(struct intel_uncore *uncore)
static u32 gen4_read_clock_frequency(struct intel_uncore *uncore)
{
	/*
	 * PRMs say:
@@ -163,8 +163,10 @@ static u32 read_clock_frequency(struct intel_uncore *uncore)
		return gen5_read_clock_frequency(uncore);
	else if (IS_G4X(uncore->i915))
		return g4x_read_clock_frequency(uncore);
	else if (GRAPHICS_VER(uncore->i915) == 4)
		return gen4_read_clock_frequency(uncore);
	else
		return gen2_read_clock_frequency(uncore);
		return 0;
}

void intel_gt_init_clock_frequency(struct intel_gt *gt)