From 5f4300b36409c386a29b29f560679a5e346259a0 Mon Sep 17 00:00:00 2001 From: Sami Kiminki Date: Mon, 30 Dec 2013 17:10:58 +0200 Subject: video: tegra: host: gk20a: GM20B characteristics This patch adds initial support for GM20B for GPU characteristics IOCTL. Bug 1392902 Change-Id: I55bfb7e087244eae1462d44319bd91c7c0901c2e Signed-off-by: Sami Kiminki Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/359227 Reviewed-by: Automatic_Commit_Validation_User --- drivers/gpu/nvgpu/gk20a/gk20a.c | 5 +++++ drivers/gpu/nvgpu/gk20a/gk20a.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'drivers/gpu') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 97649b19..0dc0dca5 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -1625,6 +1625,11 @@ static u32 gk20a_determine_L2_size_bytes(struct gk20a *g) bytes_per_line = 128; break; + case GK20A_GPUID_GM20B: + lts_per_ltc = 2; + bytes_per_line = 128; + break; + default: dev_err(dev_from_gk20a(g), "Unknown GPU id 0x%02x\n", (unsigned)gpuid); diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 48b0f0a6..b8de8744 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -567,6 +567,9 @@ gk20a_request_firmware(struct gk20a *g, const char *fw_name); #define GK20A_GPUID_GK20A \ GK20A_GPUID(NVHOST_GPU_ARCH_GK100, NVHOST_GPU_IMPL_GK20A) +#define GK20A_GPUID_GM20B \ + GK20A_GPUID(NVHOST_GPU_ARCH_GM200, NVHOST_GPU_IMPL_GM20B) + int gk20a_init_gpu_characteristics(struct gk20a *g); #endif /* _NVHOST_GK20A_H_ */ -- cgit v1.2.2