提交 b4e56545 编写于 作者: T Thierry Reding 提交者: Xie XiuQi

gpu: host1x: Fix syncpoint ID field size on Tegra186

[ Upstream commit 2fc777ba8422e4a38cae61537ad6a26435a86fb8 ]

The number of syncpoints on Tegra186 is 576 and therefore no longer fits
into 8 bits. Increase the size of the syncpoint ID field to 10 in order
to accomodate all syncpoints.
Reviewed-by: NMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 9d61d0eb
...@@ -59,7 +59,7 @@ static inline u32 host1x_uclass_incr_syncpt_r(void) ...@@ -59,7 +59,7 @@ static inline u32 host1x_uclass_incr_syncpt_r(void)
host1x_uclass_incr_syncpt_r() host1x_uclass_incr_syncpt_r()
static inline u32 host1x_uclass_incr_syncpt_cond_f(u32 v) static inline u32 host1x_uclass_incr_syncpt_cond_f(u32 v)
{ {
return (v & 0xff) << 8; return (v & 0xff) << 10;
} }
#define HOST1X_UCLASS_INCR_SYNCPT_COND_F(v) \ #define HOST1X_UCLASS_INCR_SYNCPT_COND_F(v) \
host1x_uclass_incr_syncpt_cond_f(v) host1x_uclass_incr_syncpt_cond_f(v)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册