mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: configure nvgpu lpwr with module parameters
Support nvgpu lpwr configuration with module parameter, setting for each lpwr feature would be profiled with bit operation. module parameter: lpwr_enable ┌───────┬───────┬───────────────────────────────────────────┐ │ Bit │ Reset │ Description │ ╞═══════╪═══════╪═══════════════════════════════════════════╡ │ 0:1 │ 0x0 │ BLCG enablement. │ │ │ │ 0b00, 0b01: default platform configuration│ │ │ │ 0b10: disable feature │ │ │ │ 0b11: enable feature │ ├───────┼───────┼───────────────────────────────────────────┤ │ 2:3 │ 0x0 │ ELCG enablement │ │ │ │ 0b00, 0b01: default platform configuration│ │ │ │ 0b10: disable feature │ │ │ │ 0b11: enable feature │ ├───────┼───────┼───────────────────────────────────────────┤ │ 4:5 │ 0x0 │ ELPG enablement. │ │ │ │ 0b00, 0b01: default platform configuration│ │ │ │ 0b10: disable feature │ │ │ │ 0b11: enable feature │ ├───────┼───────┼───────────────────────────────────────────┤ │ 6:7 │ 0x0 │ FLCG enablement. │ │ │ │ 0b00, 0b01: default platform configuration│ │ │ │ 0b10: disable feature │ │ │ │ 0b11: enable feature │ ├───────┼───────┼───────────────────────────────────────────┤ │ 8:9 │ 0x0 │ SLCG enalement. │ │ │ │ 0b00, 0b01: default platform configuration│ │ │ │ 0b10: disable feature │ │ │ │ 0b11: enable feature │ ├───────┼───────┼───────────────────────────────────────────┤ │ 10:11 │ 0x0 │ AELPG enablement. │ │ │ │ 0b00, 0b01: default platform configuration│ │ │ │ 0b10: disable feature │ │ │ │ 0b11: enable feature │ ├───────┼───────┼───────────────────────────────────────────┤ │ 12:13 │ 0x0 │ MSCG enablement. │ │ │ │ 0b00, 0b01: default platform configuration│ │ │ │ 0b10: disable feature │ │ │ │ 0b11: enable feature │ └───────┴───────┴───────────────────────────────────────────┘ Bug 4084478 Change-Id: I7f1e506fec3196d3b4f90006dc2f4162da6c4990 Signed-off-by: shaochunk <shaochunk@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2978579 Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: Divya Singhatwaria <dsinghatwari@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f2afbafcfd
commit
d28dda7149
@@ -115,6 +115,14 @@
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include <nvgpu/trace.h>
|
||||
|
||||
int nvgpu_lpwr_enable;
|
||||
module_param_named(lpwr_enable, nvgpu_lpwr_enable, int, 0400);
|
||||
MODULE_PARM_DESC(lpwr_enable,
|
||||
"Enable/Disable nvgpu low power features with module parameter.\n"
|
||||
"Each feature corresponds to two bits.\n"
|
||||
"Odd bit indicates triggering the configuraion or not,\n"
|
||||
"even bit indicates enabling/disabling a lpwr feature.");
|
||||
|
||||
static int nvgpu_wait_for_idle(struct gk20a *g)
|
||||
{
|
||||
int wait_length = 150; /* 3 second overall max wait. */
|
||||
|
||||
Reference in New Issue
Block a user