mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: Fix PG unit members direct access in other units
Other units directly access PG unit members like: pmu->pg->pg_buf This direct access is fixed by introducing public interface to handle this correctly JIRA NVGPU-3405 Change-Id: I13f5922bb04ece680f4b487ffc8f1d11e4efd234 Signed-off-by: Divya Singhatwaria <dsinghatwari@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2118281 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sagar Kamble <skamble@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> 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
e4c63e7b36
commit
a46eca3483
@@ -1094,3 +1094,18 @@ bool nvgpu_pmu_is_lpwr_feature_supported(struct gk20a *g, u32 feature_id)
|
||||
|
||||
return pmu->pg->is_lpwr_feature_supported(g, feature_id);
|
||||
}
|
||||
|
||||
u64 nvgpu_pmu_pg_buf_get_gpu_va(struct nvgpu_pmu *pmu)
|
||||
{
|
||||
return pmu->pg->pg_buf.gpu_va;
|
||||
}
|
||||
|
||||
struct nvgpu_mem *nvgpu_pmu_pg_buf(struct nvgpu_pmu *pmu)
|
||||
{
|
||||
return &pmu->pg->pg_buf;
|
||||
}
|
||||
|
||||
void *nvgpu_pmu_pg_buf_get_cpu_va(struct nvgpu_pmu *pmu)
|
||||
{
|
||||
return pmu->pg->pg_buf.cpu_va;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user