]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/fb/gf100-: Fix 32 bit wraparound in new ram detection
authorMario Kleiner <mario.kleiner.de@gmail.com>
Sat, 29 Apr 2017 04:11:30 +0000 (06:11 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 29 Apr 2017 12:39:23 +0000 (22:39 +1000)
commit299f9c349d40ecd7d2b37f1c2c4af177a404eb0c
treeb2e5bbbc05ed74b98b58122d8ae8452b6525f13e
parent7b56d0edfebf229ebda127fef0fbb6e3d9ec4ae3
drm/nouveau/fb/gf100-: Fix 32 bit wraparound in new ram detection

A missing u64 cast causes a 32-Bit wraparound from
4096 MiB to 0 MiB and therefore total 0 MiB VRAM detected
if card has 4096 Mib per FBP.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Karol Herbst <karolherbst@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c