From b432b5f41acce10f10db8dcacc9f44d153618a81 Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Thu, 2 Jun 2022 10:56:02 +0530 Subject: [PATCH] gpu: nvgpu: update dma_mask based on H/W compatibility To be able to access the full physical memory range, gpu's dma_mask needs to be set to the max value of H/W compatible range. For example. In order to support from 2GB to 66 GB, GV11B's dma_mask needs to be atleast 37 bits. Set GV11B's dma_mask to 38 bit. This value is supported by H/W. Bug 3656729 Signed-off-by: Debarshi Dutta Change-Id: Icfff3c36a8c9cf074a254fa773c42e18020ae5de Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2723640 (cherry picked from commit 1bf9309f17a01f86821a8b225271ea75bd10ab79) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2724565 Reviewed-by: Brad Griffis Reviewed-by: Bibek Basu Tested-by: Brad Griffis GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/os/linux/platform_gv11b_tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/os/linux/platform_gv11b_tegra.c index 6c9d0f5cd..7900eaa54 100644 --- a/drivers/gpu/nvgpu/os/linux/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/os/linux/platform_gv11b_tegra.c @@ -1,7 +1,7 @@ /* * GV11B Tegra Platform Interface * - * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -322,7 +322,7 @@ struct gk20a_platform gv11b_tegra_platform = { .honors_aperture = true, .unified_memory = true, - .dma_mask = DMA_BIT_MASK(36), + .dma_mask = DMA_BIT_MASK(38), .reset_assert = gp10b_tegra_reset_assert, .reset_deassert = gp10b_tegra_reset_deassert,