drm/nvc0-/gr: shift wrapping bug in nvc0_grctx_generate_r406800
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Nov 2013 12:34:11 +0000 (13:34 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Nov 2013 04:57:03 +0000 (14:57 +1000)
commit377cfdc6eeced55e220fea2d07d6ebdd32166e66
tree7072c9b8cac50b0ad052a982c531bf6ca781de51
parent35c336707f51f6336c9cb8a60b6f1aa5a3099ad7
drm/nvc0-/gr: shift wrapping bug in nvc0_grctx_generate_r406800

We care about the upper 32 bits here so we have to use 1ULL instead of 1
to avoid a shift wrapping bug.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c