mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Move FB size query to FB
Vidmem size query was in mm_xxx.c. It involves reading a register from FB, so move the query to FB HAL. JIRA NVGPU-1063 Change-Id: I30dfd2c4fdcdd6c841f85aaab7431d52473759bd Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1801425 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a02e1c1f0b
commit
83efad7adb
@@ -41,7 +41,7 @@ void nvgpu_vidmem_destroy(struct gk20a *g)
|
||||
{
|
||||
struct nvgpu_timeout timeout;
|
||||
|
||||
if (!g->ops.mm.get_vidmem_size)
|
||||
if (!g->ops.fb.get_vidmem_size)
|
||||
return;
|
||||
|
||||
nvgpu_timeout_init(g, &timeout, 100, NVGPU_TIMER_RETRY_TIMER);
|
||||
@@ -293,8 +293,8 @@ int nvgpu_vidmem_init(struct mm_gk20a *mm)
|
||||
static struct nvgpu_alloc_carveout bootstrap_co =
|
||||
NVGPU_CARVEOUT("bootstrap-region", 0, 0);
|
||||
|
||||
size = g->ops.mm.get_vidmem_size ?
|
||||
g->ops.mm.get_vidmem_size(g) : 0;
|
||||
size = g->ops.fb.get_vidmem_size ?
|
||||
g->ops.fb.get_vidmem_size(g) : 0;
|
||||
if (!size)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user