From ea381959d973f013a2a2b2ae6fe694f1f569683c Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Mon, 31 Jul 2017 13:09:06 +0530 Subject: gpu: nvgpu: fix L3 alloc bit Last minute rebase of commit afa31cdd8cc6bb04faeed30b2cc30f5e6be888b5 on top of reworked memory infrastucture introduced a bug where we actually need to set BIT(36) in physical address but we ended up ORing the address by "36" Fix this by by adding correct value BIT(36) instead of 36 Jira GPUT19X-10 Bug 200279508 Change-Id: Ib587849c75f57dda5ad802b8389b7563b8b690ed Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1529511 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gv11b/mm_gv11b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gv11b/mm_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c index 9430f576..9be8352a 100644 --- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c @@ -32,7 +32,7 @@ #include #include -#define NVGPU_L3_ALLOC_BIT 36 +#define NVGPU_L3_ALLOC_BIT BIT(36) static bool gv11b_mm_is_bar1_supported(struct gk20a *g) { -- cgit v1.2.2