Commit 147ed897 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/ltc: fix tag base address getting truncated if above 4GiB

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 3d9e3921
...@@ -156,7 +156,7 @@ gf100_ltc_init_tag_ram(struct nouveau_fb *pfb, struct nvkm_ltc_priv *priv) ...@@ -156,7 +156,7 @@ gf100_ltc_init_tag_ram(struct nouveau_fb *pfb, struct nvkm_ltc_priv *priv)
if (ret) { if (ret) {
priv->num_tags = 0; priv->num_tags = 0;
} else { } else {
u64 tag_base = (priv->tag_ram->offset << 12) + tag_margin; u64 tag_base = ((u64)priv->tag_ram->offset << 12) + tag_margin;
tag_base += tag_align - 1; tag_base += tag_align - 1;
ret = do_div(tag_base, tag_align); ret = do_div(tag_base, tag_align);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment