diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-11 19:27:54 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-14 17:58:39 -0400 |
commit | 147ed897e807e1a6e2c6fd9dc91830f1d2831d43 (patch) | |
tree | e132e333ed387a98e8488043d659a19818c6bfb1 /drivers/gpu/drm | |
parent | 3d9e3921f4d77bcaeea913c48b894d1208f0cb06 (diff) |
drm/nouveau/ltc: fix tag base address getting truncated if above 4GiB
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c b/drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c index 9e00a1ede120..b54b582e72c4 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c +++ b/drivers/gpu/drm/nouveau/core/subdev/ltc/gf100.c | |||
@@ -156,7 +156,7 @@ gf100_ltc_init_tag_ram(struct nouveau_fb *pfb, struct nvkm_ltc_priv *priv) | |||
156 | if (ret) { | 156 | if (ret) { |
157 | priv->num_tags = 0; | 157 | priv->num_tags = 0; |
158 | } else { | 158 | } else { |
159 | u64 tag_base = (priv->tag_ram->offset << 12) + tag_margin; | 159 | u64 tag_base = ((u64)priv->tag_ram->offset << 12) + tag_margin; |
160 | 160 | ||
161 | tag_base += tag_align - 1; | 161 | tag_base += tag_align - 1; |
162 | ret = do_div(tag_base, tag_align); | 162 | ret = do_div(tag_base, tag_align); |