mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
8975fb1f4b2d7c7fc01f88a891c48ef86ddbfba8
Below race condition can happen during boot 1) Server calls sivc_reset() 2) Storage client driver has IVC event handler registered, so it gets the event and it calls ivc_notified() 3) Server gets ivc event, it calls ivc_notified() ( this makes server local state to established ) 4) Storage cliend driver also goes to established state 5) After this, storage client driver continued with probe() and calls ivc_reset() which results in disconnecting the already established connection. To fix this race condition, perform ivc_reset in storage client driver right after tegra_hv_ivc_reserve() before registering the IVC IRQ handler. Bug 4125055 Change-Id: I36e6db3479f34fb649bdb8d890f24b1783d10cb9 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2943766 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Reviewed-by: Sanjith T D <std@nvidia.com> Reviewed-by: Vipin Kumar <vipink@nvidia.com> Tested-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Description
No description provided