From: Ben Skeggs Date: Tue, 28 Mar 2017 01:46:37 +0000 (+1000) Subject: drm/nouveau/fb/ram/gf100-: remove 0x10f200 read X-Git-Tag: v4.14-rc1~872^2~2^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80a92865f2113fe8bc268218b0c4156cfab4c9ac;p=platform%2Fkernel%2Flinux-rpi3.git drm/nouveau/fb/ram/gf100-: remove 0x10f200 read This reg has moved on Pascal, and causes a bus fault. We never use the value anyway, so just remove the read. Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c index c639759..4a9bd4f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c @@ -638,7 +638,6 @@ gf100_ram_ctor(const struct nvkm_ram_func *func, struct nvkm_fb *fb, return ret; } - ram->ranks = (nvkm_rd32(device, 0x10f200) & 0x00000004) ? 2 : 1; return 0; }