From 8581d8149750e19fc363ad93327f4382b26959f9 Mon Sep 17 00:00:00 2001 From: Russell King Date: Thu, 21 Jan 2016 15:20:25 +0000 Subject: drm: etnaviv: flush all GPU caches when stopping GPU Flush the GPU caches to ensure that any dirty data is pushed out before stopping the front end. Signed-off-by: Russell King Signed-off-by: Lucas Stach --- drivers/gpu/drm/etnaviv/state_3d.xml.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 drivers/gpu/drm/etnaviv/state_3d.xml.h (limited to 'drivers/gpu/drm/etnaviv/state_3d.xml.h') diff --git a/drivers/gpu/drm/etnaviv/state_3d.xml.h b/drivers/gpu/drm/etnaviv/state_3d.xml.h new file mode 100644 index 000000000000..d7146fd13943 --- /dev/null +++ b/drivers/gpu/drm/etnaviv/state_3d.xml.h @@ -0,0 +1,9 @@ +#ifndef STATE_3D_XML +#define STATE_3D_XML + +/* This is a cut-down version of the state_3d.xml.h file */ + +#define VIVS_TS_FLUSH_CACHE 0x00001650 +#define VIVS_TS_FLUSH_CACHE_FLUSH 0x00000001 + +#endif /* STATE_3D_XML */ -- cgit v1.2.3