drm/nouveau/nv1a,nv1f/disp: fix memory clock rate retrieval
commit1f7c5e4f3659464f218067b7c2a637905fac384e
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 20 Jan 2017 03:56:30 +0000 (19 22:56 -0500)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 6 Mar 2017 22:31:12 +0000 (6 17:31 -0500)
treee42216640100f3cf55a231f388a59bce4f7d5fbc
parentc59ef58eddf01dc661973a6c00030f006ce928cd
drm/nouveau/nv1a,nv1f/disp: fix memory clock rate retrieval

[ Upstream commit 24bf7ae359b8cca165bb30742d2b1c03a1eb23af ]

Based on the xf86-video-nv code, NFORCE (NV1A) and NFORCE2 (NV1F) have a
different way of retrieving clocks. See the
nv_hw.c:nForceUpdateArbitrationSettings function in the original code
for how these clocks were accessed.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54587
Cc: stable@vger.kernel.org
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/gpu/drm/nouveau/dispnv04/hw.c