gpu: nvgpu: Add GPU arch and impl to common structure

Add GPU architecture and implentation to a new struct nvgpu_gpu_params
which is defined in common header file gk20a/gk20.h.

JIRA NVGPU-259

Change-Id: I9113d188037c9ad7bfc2200e0e41b39cac576985
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1588032
GVS: Gerrit_Virtual_Submit
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-10-29 20:14:12 -07:00
committed by mobile promotions
parent 68dbfedd4f
commit b8bfcd4358
9 changed files with 36 additions and 21 deletions

View File

@@ -156,9 +156,10 @@ static int gk20a_restore_registers(struct gk20a *g)
return 0;
}
static int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) {
static int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l)
{
struct gk20a *g = &l->g;
u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl;
u32 ver = g->params.gpu_arch + g->params.gpu_impl;
switch (ver) {
case GK20A_GPUID_GM20B: