mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: move ops.gr.get_pmm_per_chiplet_offset() HAL to PERF unit
g->ops.gr.get_pmm_per_chiplet_offset() HAL operation accesses registers owned by PERF unit, hence move this HAL to PERF unit as g->ops.perf.get_pmm_per_chiplet_offset() Jira NVGPU-2894 Change-Id: I8fb1160329829dc50326aad4b7d1a59e088bba9f Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2030693 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
0aa1ef7c0c
commit
278ec56a6f
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -107,3 +107,8 @@ void gv11b_perf_disable_membuf(struct gk20a *g)
|
||||
perf_pmasys_mem_block_valid_false_f() |
|
||||
perf_pmasys_mem_block_target_f(0));
|
||||
}
|
||||
|
||||
u32 gv11b_perf_get_pmm_per_chiplet_offset(void)
|
||||
{
|
||||
return (perf_pmmsys_extent_v() - perf_pmmsys_base_v() + 1U);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user