]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bios: translate ramcfg strap through M0203
authorBen Skeggs <bskeggs@redhat.com>
Tue, 4 Nov 2014 05:13:30 +0000 (15:13 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:44:06 +0000 (15:44 +1000)
commit47e307fd75cbdfb255f3263247644c68ee5fa255
tree00cc9a7354aa0764de97bd4290e8b6406f248c4e
parent7bafa269de8833d38580278bfbde61e46d399079
drm/nouveau/bios: translate ramcfg strap through M0203

A machine has been spotted where the ramcfg strap is "8", and the ramcfg
xlat table goes 0-7,0-7, resulting in us selecting config 0 for memory
items.  On this particular system, config "8" is available and supposed
to be used.  It appears that starting from GT21x (where Mv2 appears),
we're supposed to use the value in this table instead.

One concern here is that not all the places we currently use ramcfg xlat
are supposed to be treated the same now.  The strap xlat table wasn't
removed from the vbios either, presumably for some kind of good reason.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bios/ramcfg.c