Skip to content

Commit dbea79a

Browse files
committed
drm/i915: Fix cs timestamp frequency for cl/bw
Despite what the spec says the TIMESTAMP register seems to tick once every hrawclk (confirmed on i965gm and g35). v2: Rebase 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 78e418d commit dbea79a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ static u32 gen4_read_clock_frequency(struct intel_uncore *uncore)
147147
* "The value in this register increments once every 16
148148
* hclks." (through the “Clocking Configuration”
149149
* (“CLKCFG”) MCHBAR register)
150+
*
151+
* Testing on actual hardware has shown there is no /16.
150152
*/
151-
return RUNTIME_INFO(uncore->i915)->rawclk_freq * 1000 / 16;
153+
return RUNTIME_INFO(uncore->i915)->rawclk_freq * 1000;
152154
}
153155

154156
static u32 read_clock_frequency(struct intel_uncore *uncore)

0 commit comments

Comments
 (0)