drm/nouveau/nv1a,nv1f/disp: fix memory clock rate retrieval
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 20 Jan 2017 03:56:30 +0000 (22:56 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 31 Jan 2017 10:05:26 +0000 (20:05 +1000)
commit24bf7ae359b8cca165bb30742d2b1c03a1eb23af
tree6aeadac4a9dee3adc155b2bf65a72cdc8e1e2ed4
parentd347583a39e2df609a9e40c835f72d3614665b53
drm/nouveau/nv1a,nv1f/disp: fix memory clock rate retrieval

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>
drivers/gpu/drm/nouveau/dispnv04/hw.c