mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add configurable comptag_mem_deduct sysfs node per device
Adding a comptag_mem_deduct in the platform_gk20a has certain problems: 1) It's not really convenient for platform users to configure it. 2) All products using the same GPU have to share the same configuration. So this patch moves this comptag_mem_deduct from struct platform_gk20a to struct gr_gk20a (per device). And it adds an sysfs node for products or platform users to easily configure from user space. Note: The comptag memory will not be allocated until the GPU driver goes through the final poweron routine. So the user space has a small window to configure this sysfs node. Bug 2327574 Bug 2284925 Change-Id: Ie7d00b082704e422645c0ea254b59e22f9fc3b7f Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1810334 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
bd47d00ce7
commit
9e4bbd2c9b
@@ -272,12 +272,6 @@ struct gk20a_platform {
|
||||
/* stream id to use */
|
||||
u32 ltc_streamid;
|
||||
|
||||
/*
|
||||
* The deductible memory size for max_comptag_mem (in MBytes)
|
||||
* Usually close to memory size that running system is taking
|
||||
*/
|
||||
u32 comptag_mem_deduct;
|
||||
|
||||
/* scaling rate */
|
||||
unsigned long cached_rate;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user