mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
NVGPU_CTXSW_IOCTL_RING_SETUP is used to setup a ring buffer of custom size for FECS tracing. It uses size field from its arguments to setup a user-mapped ring buffer for holding FECS Trace entries. The value from this field is rounded up to nearest page-size boundary. This rounded up value is supposed to be returned by the IOCTL (as per description of the field in nvgpu.h). That is currently not the case and the IOCTL just returns the same value as that was passed. This change fixes this issue by returning updated value. Bug 200469520 Change-Id: I477aefaede9a4cdba921026466db3fb8fbfd0712 Signed-off-by: Anup Mahindre <amahindre@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1955337 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>