mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: update static pg support for pre-si
- On pre-silicon platform, static pg will be done by nvgpu driver. For this, retain structs and HALs of static pg. - Add the static pg support under pre-silicon code. - On silicon, the static pg will be done by BPMP. - Rename variables used in static pg for better readability and consistency Bug 200768322 JIRA NVGPU-6433 Change-Id: Ib31c0f83b751c2b1563a36bd51af78a0bd12a117 Signed-off-by: Divya <dsinghatwari@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2594801 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -246,7 +246,7 @@
|
||||
#include "hal/fifo/channel_gv11b.h"
|
||||
#include "hal/fifo/channel_ga10b.h"
|
||||
|
||||
#ifdef CONFIG_NVGPU_TPC_POWERGATE
|
||||
#ifdef CONFIG_NVGPU_STATIC_POWERGATE
|
||||
#include "hal/tpc/tpc_gv11b.h"
|
||||
#endif
|
||||
|
||||
@@ -1631,10 +1631,19 @@ static const struct gops_top ga10b_ops_top = {
|
||||
.get_num_lce = gv11b_top_get_num_lce,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_NVGPU_TPC_POWERGATE
|
||||
static const struct gops_tpc ga10b_ops_tpc = {
|
||||
.init_tpc_powergate = gv11b_tpc_powergate,
|
||||
.tpc_gr_pg = gv11b_gr_pg_tpc,
|
||||
#ifdef CONFIG_NVGPU_STATIC_POWERGATE
|
||||
static const struct gops_tpc_pg ga10b_ops_tpc_pg = {
|
||||
/*
|
||||
* HALs for static-pg will be updated
|
||||
* for pre-silicon platform during HAL init.
|
||||
* For silicon, static-pg feature related settings
|
||||
* will be taken care of by BPMP.
|
||||
* Silicon: assigining the HALs to NULL.
|
||||
* Pre-Silicon: To-do JIRA-NVGPU-7112
|
||||
* to add these HALs
|
||||
*/
|
||||
.init_tpc_pg = NULL,
|
||||
.tpc_pg = NULL,
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user