mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
FB queues handling is different from DMEM/EMEM queues in many aspects. For e.g. no rewind required, additional queue struct fields, additional queue operations required only for FB queues, push/pop semantics are different. Hence prepare separate structure and APIs for FB queues. PMU will have to deal with the queue implementation chosen. This patch does the follo- wing: 1. Update function/structure names to falcon_fb_queue_<op/name>. 2. Export nvgpu_falcon_fb_queue_* structure and functions. 3. Removed rewind function pointer and used direct functions for push, pop and has_room. 4. PMU wrapper defined to use appropriate queue for empty check - nvgpu_pmu_queue_is_empty. 5. PMU side updates for handling the work buffer and SEC2 updates for usage of public queue functions. JIRA NVGPU-1994 Change-Id: Ia5e40384e6e3f9e81d5dbc3d8138eb091337c086 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2016285 GVS: Gerrit_Virtual_Submit Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>