drm/etnaviv: implement cooling support for new GPU cores
authorLucas Stach <l.stach@pengutronix.de>
Tue, 11 Apr 2017 13:54:50 +0000 (15:54 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 5 May 2017 15:14:51 +0000 (17:14 +0200)
commitd79fd1ccf2cd76adba2121a62bae996bc4beccfe
tree68b2662b7e7d5e451746585877c162f4f3c10e97
parent7cef6004ecf8ca9aef383318515e759338475a46
drm/etnaviv: implement cooling support for new GPU cores

GPU cores with the DYNAMIC_FREQUENCY_SCALING feature bit set expect the
platform to provide the clock scaling and ignore any requests to use the
internal FSCALE divider. Writes to this register still work, but don't
have any effect on the GPU clock frequency.

Save the initial core and shader clock frequency and ask the platform
to provide a slower clock when cooling is requested.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.h