gpu: nvgpu: Store VBIOS version in g->bios

Store VBIOS version in g->bios instead of GPU characteristics. This
removes a few Linux dependencies from common code, because GPU
characteristics is defined in Linux IOCTL header.

JIRA NVGPU-259

Change-Id: I9aab3d37b7ca000edd59c92b8601a96ee288e2bb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1593684
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-11-07 09:40:15 -08:00
committed by mobile promotions
parent ac5d3fcf04
commit a51219e526
5 changed files with 12 additions and 6 deletions

View File

@@ -208,6 +208,9 @@ gk20a_ctrl_ioctl_gpu_characteristics(
pgpu->impl = g->params.gpu_impl;
pgpu->rev = g->params.gpu_rev;
pgpu->vbios_version = g->bios.vbios_version;
pgpu->vbios_oem_version = g->bios.vbios_oem_version;
if (request->gpu_characteristics_buf_size > 0) {
size_t write_size = sizeof(*pgpu);