diff options
author | Liu Ying <victor.liu@nxp.com> | 2019-12-03 14:35:30 +0800 |
---|---|---|
committer | Liu Ying <victor.liu@nxp.com> | 2019-12-17 14:23:58 +0800 |
commit | 26650b94ee9d163bd5b4703e5c84d89f4f7a85c7 (patch) | |
tree | 7f3be754183ec6c4917f0cabbca8c031d64a506c /include/video | |
parent | b3b0514d116b1b05a41512162f06392be60a2166 (diff) |
MLK-23116-11 gpu: imx: imx8_dprc: Support hard argument for dprc_disable()
As we would support some non-native prefetch engine pixel formats
soon later with some coming patches, hot-switch from native pixel
formats to non-native ones(on-the-fly PRG bypass) is inevitable.
Basically, dprc_disable() is called to do the switch. If a follow-up
modeset is done to enable the prefetch engine again, we see prefetch
engine fail-over issue. So, a reset is needed in dprc_disable()
in the need_modeset case. It appears that PRG reset is enough.
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 52450396e492b555cd965b046e8982c77cdcafee)
(cherry picked from commit 8045c5046812a81e530d123d2ee78ef2c9376b8b)
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/imx8-prefetch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/video/imx8-prefetch.h b/include/video/imx8-prefetch.h index 2aa0c198850b..0ca6f85c700f 100644 --- a/include/video/imx8-prefetch.h +++ b/include/video/imx8-prefetch.h @@ -30,7 +30,7 @@ struct prg; struct prg * prg_lookup_by_phandle(struct device *dev, const char *name, int index); void prg_enable(struct prg *prg); -void prg_disable(struct prg *prg); +void prg_disable(struct prg *prg, bool hard); void prg_configure(struct prg *prg, unsigned int width, unsigned int height, unsigned int x_offset, unsigned int y_offset, unsigned int stride, unsigned int bits_per_pixel, @@ -52,7 +52,7 @@ struct dprc; struct dprc * dprc_lookup_by_phandle(struct device *dev, const char *name, int index); void dprc_enable(struct dprc *dprc); -void dprc_disable(struct dprc *dprc); +void dprc_disable(struct dprc *dprc, bool hard); void dprc_configure(struct dprc *dprc, unsigned int stream_id, unsigned int width, unsigned int height, unsigned int x_offset, unsigned int y_offset, |