gpu: host1x: Fix syncpoint ID field size on Tegra186
authorThierry Reding <treding@nvidia.com>
Mon, 19 Nov 2018 10:31:30 +0000 (11:31 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 27 Nov 2018 16:18:39 +0000 (17:18 +0100)
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: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/hw/hw_host1x06_uclass.h

index 4457486c72b05e0dd5f2b3ddade15276e5fa98c7..e599e15bf999aa44a70d0c796956739b02adc126 100644 (file)
@@ -59,7 +59,7 @@ static inline u32 host1x_uclass_incr_syncpt_r(void)
        host1x_uclass_incr_syncpt_r()
 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) \
        host1x_uclass_incr_syncpt_cond_f(v)