[snip]
On 14/02/2023 21:24, Elliot Berman wrote:
+
+static struct gunyah_rm_platform_ops *rm_platform_ops;
+static DECLARE_RWSEM(rm_platform_ops_lock);
Why do we need this read/write lock or this global rm_platform_ops here, AFAIU, there will be only one instance of platform_ops per platform.
This should be a core part of the gunyah and its driver early setup, that should give us pretty much lock less behaviour.
We should be able to determine by Hypervisor UUID that its on Qualcomm platform or not, during early gunyah setup which should help us setup the platfrom ops accordingly.
This should also help cleanup some of the gunyah code that was added futher down in this patchset.