[Intel-gfx] [PATCH 1/7] drm/i915/skl: Added new macros

Damien Lespiau damien.lespiau at intel.com
Tue Feb 17 06:40:13 PST 2015


On Fri, Feb 06, 2015 at 08:26:32PM +0530, akash.goel at intel.com wrote:
> +#define FREQ_1_28_US(us)	(((us) * 100) >> 7)
> +#define FREQ_1_33_US(us)	(((us) * 3)   >> 2)
> +#define GT_FREQ_FROM_PERIOD(us, dev) (IS_GEN9(dev) ? \
> +				FREQ_1_33_US(us) : \
> +				FREQ_1_28_US(us))

I'm not sure why you call that GT_FREQ when it looks like a time for
evaluation intervals.

-- 
Damien


More information about the Intel-gfx mailing list