mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
c8f7a26db70838c77a34da62cfeb3e5b2f4dbf65
The logger currently blocks in open for finding SOH within the circular buffer. This blocking is infinite. However, the SOH is written in buffer for sure when adsp boots. Hence, added a check to see if in the past if adsp has been started and then search for SOH else return an error. Also, the blocking takes place in the read path where the logger waits in the position where it gets EOT and loops back. This is not desirable due to recent changes in debugfs and hence now the read path returns back with an ASCII value of BELL which will not effect `cat` from writing anything on the console. Bug 1997011 Change-Id: Ia6e990bcdc1af5c328c24f350af941126beda07a Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1662918 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Timo Alho <talho@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Description
No description provided