提交 0dd660d4 编写于 作者: B Ben Skeggs

drm/nouveau/bios: parse/display extra version component

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 1ed73166
...@@ -17,6 +17,7 @@ struct nouveau_bios { ...@@ -17,6 +17,7 @@ struct nouveau_bios {
u8 chip; u8 chip;
u8 minor; u8 minor;
u8 micro; u8 micro;
u8 patch;
} version; } version;
}; };
......
...@@ -447,6 +447,7 @@ nouveau_bios_ctor(struct nouveau_object *parent, ...@@ -447,6 +447,7 @@ nouveau_bios_ctor(struct nouveau_object *parent,
bios->version.chip = nv_ro08(bios, bit_i.offset + 2); bios->version.chip = nv_ro08(bios, bit_i.offset + 2);
bios->version.minor = nv_ro08(bios, bit_i.offset + 1); bios->version.minor = nv_ro08(bios, bit_i.offset + 1);
bios->version.micro = nv_ro08(bios, bit_i.offset + 0); bios->version.micro = nv_ro08(bios, bit_i.offset + 0);
bios->version.patch = nv_ro08(bios, bit_i.offset + 4);
} else } else
if (bmp_version(bios)) { if (bmp_version(bios)) {
bios->version.major = nv_ro08(bios, bios->bmp_offset + 13); bios->version.major = nv_ro08(bios, bios->bmp_offset + 13);
...@@ -455,9 +456,9 @@ nouveau_bios_ctor(struct nouveau_object *parent, ...@@ -455,9 +456,9 @@ nouveau_bios_ctor(struct nouveau_object *parent,
bios->version.micro = nv_ro08(bios, bios->bmp_offset + 10); bios->version.micro = nv_ro08(bios, bios->bmp_offset + 10);
} }
nv_info(bios, "version %02x.%02x.%02x.%02x\n", nv_info(bios, "version %02x.%02x.%02x.%02x.%02x\n",
bios->version.major, bios->version.chip, bios->version.major, bios->version.chip,
bios->version.minor, bios->version.micro); bios->version.minor, bios->version.micro, bios->version.patch);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册