mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Use bitmap allocator for PMU DMEM
Switch from buddy to bitmap allocator for PMU DMEM. PMU DMEM is small and we cannot allocate it sparsely. JIRA DNVGPU-85 Change-Id: Ia23d25abab593fb0d92a2329d9878da7a72bc6ca Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1203974 (cherry picked from commit 78216c9d5f0974f94ce0f818db854ef08211d4e4) Reviewed-on: http://git-master/r/1222682 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
5c049b5c79
commit
27b47b1969
@@ -3628,7 +3628,7 @@ static int pmu_process_init_msg(struct pmu_gk20a *pmu,
|
||||
pv->get_pmu_init_msg_pmu_sw_mg_size(init)) &
|
||||
~(PMU_DMEM_ALLOC_ALIGNMENT - 1);
|
||||
u32 size = end - start;
|
||||
gk20a_buddy_allocator_init(&pmu->dmem, "gk20a_pmu_dmem",
|
||||
gk20a_bitmap_allocator_init(&pmu->dmem, "gk20a_pmu_dmem",
|
||||
start, size,
|
||||
PMU_DMEM_ALLOC_ALIGNMENT, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user