summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
AgeCommit message (Collapse)Author
2016-08-08drm: etnaviv: try harder to reset the GPU at probe timedrm-etnaviv-develRussell King
Try harder to reset the GPU at probe time by allowing the GPU to enter runtime PM even if it indicates that it is busy. Where platforms implement PM domains, this allows the GPU domain to be power cycled, which can recover a hung GPU. This can't be done in normal operation as we need to drop the mutex, and dropping the mutex will permit GPU submissions which will keep the GPU from idling. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2016-08-08drm: etnaviv: add device property to control parsing of command buffersRussell King
Parsing the command buffer is an expensive operation, as the command buffer is uncached. Work-around this by providing a control to allow the command buffer parsing to be skipped. A better solution would be to move to cached buffers between userspace and kernelspace, and copying the data in kernel space to the final command buffer. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2016-08-08drm/etnaviv: add etnaviv cooling deviceRussell King
Each Vivante GPU contains a clock divider which can divide the GPU clock by 2^n, which can lower the power dissipation from the GPU. It has been suggested that the GC600 on Dove can be responsible for 20-30% of the power dissipation from the SoC. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
2016-03-07drm: etnaviv: clean up vram_mapping submission/retire pathRussell King
Currently, we scan the list of mappings each time we want to operate on the vram_mapping struct. Rather than repeatedly scanning these, look them up once in the submission path, and then use _reference and _unreference methods as necessary to manage this object. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
2016-03-07drm: etnaviv: track current execution stateRussell King
Add tracking of the current execution state (iow, active GPU pipe). Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
2016-01-26drm/etnaviv: add further minor features and varyings countRussell King
Export further minor feature bitmasks and the varyings count from the GPU specifications registers to userspace. Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
2015-12-15drm/etnaviv: add initial etnaviv DRM driverThe etnaviv authors
This adds the etnaviv DRM driver and hooks it up in Makefiles and Kconfig. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>