]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bios: fix OF loading
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 2 Oct 2015 03:41:21 +0000 (23:41 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 12 Oct 2015 03:54:56 +0000 (13:54 +1000)
commit510753e3894d1b3af1364cc3d1c170954c228715
tree3c586938dcc7b2fd9db944db8745f60f72ae5a52
parent0917d1dca980e6387dcaf7b828af5f0a8431d2a0
drm/nouveau/bios: fix OF loading

Currently OF bios load fails for a few reasons:
 - checksum failure
 - bios size too small
 - no PCIR header
 - bios length not a multiple of 4

In this change, we resolve all of the above by ignoring any checksum
failures (since OF VBIOS tends not to have a checksum), and faking the
PCIR data when loading from OF.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bios/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c