summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pstate/pstate.c
diff options
context:
space:
mode:
authorNicolin Chen <nicolinc@nvidia.com>2018-08-21 16:20:49 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-29 01:33:59 -0400
commit19cd7ffb5def933db323fe682ec4a263eb1923f9 (patch)
tree1d3dd9f79f34505b8bdf2e3f2d58aac3522b221f /drivers/gpu/nvgpu/pstate/pstate.c
parent06f54be8c979720515d22e24cb4a20868af45f59 (diff)
gpu: nvgpu: Allow comptag to deduct occupied memory by the system
The comptag allocates memory based on the available total RAM, which theoretically should be the MAX physical RAM size however practically should deduct the part being taken by the running system. Otherwise, the taken memory part will never get used and wasted. This change adds a comptag_mem_deduct to each platform and to allow them to assign the deductible value based on their own use cases so as to save memory. Bug 2327574 Bug 2284925 Change-Id: I124e20a66183c22723c34a7ec6ce34832c12f02e Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1804157 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pstate/pstate.c')
0 files changed, 0 insertions, 0 deletions