summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/hw/hw_host1x04_channel.h
diff options
context:
space:
mode:
authorMikko Perttunen <mperttunen@nvidia.com>2017-09-28 14:50:40 +0200
committerThierry Reding <treding@nvidia.com>2017-10-20 14:19:52 +0200
commit2316f29fb57932e34a56998073246b8ec4c567f9 (patch)
treeaaa1f260843c97d0ee59ceca94acb3cb5bb0ffff /drivers/gpu/host1x/hw/hw_host1x04_channel.h
parentgpu: host1x: Enable Tegra186 syncpoint protection (diff)
downloadlinux-2316f29fb57932e34a56998073246b8ec4c567f9.tar.xz
linux-2316f29fb57932e34a56998073246b8ec4c567f9.zip
gpu: host1x: Enable gather filter
The gather filter is a feature present on Tegra124 and newer where the hardware prevents GATHERed command buffers from executing commands normally reserved for the CDMA pushbuffer which is maintained by the kernel driver. This commit enables the gather filter on all supporting hardware. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/hw/hw_host1x04_channel.h')
-rw-r--r--drivers/gpu/host1x/hw/hw_host1x04_channel.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/hw/hw_host1x04_channel.h b/drivers/gpu/host1x/hw/hw_host1x04_channel.h
index 95e6f96142b9..2e8b635aa660 100644
--- a/drivers/gpu/host1x/hw/hw_host1x04_channel.h
+++ b/drivers/gpu/host1x/hw/hw_host1x04_channel.h
@@ -117,5 +117,17 @@ static inline u32 host1x_channel_dmactrl_dmainitget(void)
}
#define HOST1X_CHANNEL_DMACTRL_DMAINITGET \
host1x_channel_dmactrl_dmainitget()
+static inline u32 host1x_channel_channelctrl_r(void)
+{
+ return 0x98;
+}
+#define HOST1X_CHANNEL_CHANNELCTRL \
+ host1x_channel_channelctrl_r()
+static inline u32 host1x_channel_channelctrl_kernel_filter_gbuffer_f(u32 v)
+{
+ return (v & 0x1) << 2;
+}
+#define HOST1X_CHANNEL_CHANNELCTRL_KERNEL_FILTER_GBUFFER(v) \
+ host1x_channel_channelctrl_kernel_filter_gbuffer_f(v)
#endif