mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Remove extra perf load RPC
1.Remove perf_pmu_load which calls the perf load RPC. This is already done in pmu_vfe_load and needs only once. 2.Replace LOAD with VF_INVALIDATE. MSG_ID_VFE_CALLBACK should call VF_INVALIDATE and not LOAD. 3.Move the clk arb WQ after VF_INVALIDATE for synchronization. 4.Move the perf load RPC after PMU setup. Bug 200454682 Change-Id: I799588c102dd7328f0a43ed953f91a3a8b6b91e9 Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2012338 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@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
27f50aebbd
commit
0f2bbca0df
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2016-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"),
|
||||
@@ -158,21 +158,6 @@ static void build_change_seq_boot (struct gk20a *g)
|
||||
return;
|
||||
}
|
||||
|
||||
static int perf_pmu_load(struct gk20a *g)
|
||||
{
|
||||
int status = 0;
|
||||
struct nv_pmu_rpc_struct_perf_load rpc;
|
||||
struct nvgpu_pmu *pmu = &g->pmu;
|
||||
|
||||
(void) memset(&rpc, 0, sizeof(struct nv_pmu_rpc_struct_perf_load));
|
||||
PMU_RPC_EXECUTE_CPB(status, pmu, PERF, LOAD, &rpc, 0);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g, "Failed to execute RPC status=0x%x",
|
||||
status);
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
int nvgpu_perf_change_seq_pmu_setup(struct gk20a *g)
|
||||
{
|
||||
struct nv_pmu_rpc_perf_change_seq_info_get info_get;
|
||||
@@ -251,12 +236,6 @@ int nvgpu_perf_change_seq_pmu_setup(struct gk20a *g)
|
||||
goto perf_change_seq_pmu_setup_exit;
|
||||
}
|
||||
|
||||
/* Perf Load*/
|
||||
status = perf_pmu_load(g);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g, "Failed to Load Perf");
|
||||
}
|
||||
|
||||
perf_change_seq_pmu_setup_exit:
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user