mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
tpc_pg_mask_read: function returns the value stored in the tpc_pg_mask node. Since, it does not have the terminator it returns garbage value after the mask value and gets troublesome to parse in the userspace. Fix is to add '\n' at the end of the mask value to be consistent with the earlier releases. tpc_pg_mask_store: In this function there is a call to check if gpu is powered on or not. In case when gpu is powered on, the return value is just assigned to the 'err' variable which is never returned to notify the application to follow the next steps. Thus, need to return this value and inform the same to the userspace. Bug 3445617 Change-Id: Ibb6fed88c83c751a5fb73181089274aa27c3f18b Signed-off-by: Ninad Malwade <nmalwade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2630925 Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
37 KiB
37 KiB