Skip to content

Commit 26148bd

Browse files
goelakasdanvet
authored andcommitted
drm/i915/bxt: Set time interval unit to 0.833us
Note that in Bspec you have to dig around in a section called "Timestamp bases" and Bspec update request is filed. Signed-off-by: Ankitprasad Sharma <[email protected]> Signed-off-by: Akash Goel <[email protected]> Signed-off-by: Sagar Arun Kamble <[email protected]> Reviewed-by: Imre Deak <[email protected]> [danvet: Add note about state of Bspec.] Signed-off-by: Daniel Vetter <[email protected]>
1 parent 2f5945b commit 26148bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2840,8 +2840,11 @@ enum skl_disp_power_wells {
28402840

28412841
#define INTERVAL_1_28_US(us) (((us) * 100) >> 7)
28422842
#define INTERVAL_1_33_US(us) (((us) * 3) >> 2)
2843+
#define INTERVAL_0_833_US(us) (((us) * 6) / 5)
28432844
#define GT_INTERVAL_FROM_US(dev_priv, us) (IS_GEN9(dev_priv) ? \
2844-
INTERVAL_1_33_US(us) : \
2845+
(IS_BROXTON(dev_priv) ? \
2846+
INTERVAL_0_833_US(us) : \
2847+
INTERVAL_1_33_US(us)) : \
28452848
INTERVAL_1_28_US(us))
28462849

28472850
/*

0 commit comments

Comments
 (0)