diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-12 09:27:54 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-15 07:56:10 +1000 |
commit | 51211baaf4f2aba1ba8821cb69d9fce07d01a872 (patch) | |
tree | 5763db20b484e7768f3220d75c7fbe0f56b41168 | |
parent | 0bc9e95ac510822ff055572d668793b9e9eb1c34 (diff) | |
download | nouveau-51211baaf4f2aba1ba8821cb69d9fce07d01a872.tar.gz |
ltc: fix tag base address getting truncated if above 4GiB
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | nvkm/subdev/ltc/gf100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/subdev/ltc/gf100.c b/nvkm/subdev/ltc/gf100.c index 9e00a1ede..b54b582e7 100644 --- a/nvkm/subdev/ltc/gf100.c +++ b/nvkm/subdev/ltc/gf100.c @@ -156,7 +156,7 @@ gf100_ltc_init_tag_ram(struct nouveau_fb *pfb, struct nvkm_ltc_priv *priv) if (ret) { priv->num_tags = 0; } 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; ret = do_div(tag_base, tag_align); |