mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
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>
This commit is contained in:
@@ -8,7 +8,10 @@ struct nvbios_source {
|
||||
void *(*init)(struct nvkm_bios *, const char *);
|
||||
void (*fini)(void *);
|
||||
u32 (*read)(void *, u32 offset, u32 length, struct nvkm_bios *);
|
||||
u32 (*size)(void *);
|
||||
bool rw;
|
||||
bool ignore_checksum;
|
||||
bool no_pcir;
|
||||
};
|
||||
|
||||
int nvbios_extend(struct nvkm_bios *, u32 length);
|
||||
|
||||
Reference in New Issue
Block a user