mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Debug boolean flags force_preemption_gfxp and force_preemption_cilp are right now stored in gr_gk20a.ctx_vars struct These flags logically are property of gr.ctx units since they indicate whether each context should be forced to gfxp/cilp preemption mode by default Move these flags to struct nvgpu_gr_ctx_desc and remove them from gr_gk20a.ctx_vars Expose below APIs from gr.ctx unit to check if flags are set nvgpu_gr_ctx_desc_force_preemption_gfxp() nvgpu_gr_ctx_desc_force_preemption_cilp() Move debugfs creation code to create corresponding debugfs to gr_gk20a_debugfs_init() and change debugfs type from "u32" to "file" Struct gr.gr_ctx_desc is created only during first poweron. Return error if this struct is not available. Remove unnecessary initialization of these variables from platform specific probe functions Jira NVGPU-3112 Change-Id: I8b2de27f0c71dd2ea5abcf94221c2e15c80073ea Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2099398 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
11 KiB
11 KiB