On Mon, Apr 10, 2023 at 11:20:56AM -0700, Nikunj Kela wrote:that's somewhat correct. Our hypervisor allocates 64bit ids on every boot for each scmi instance which it uses to identify the scmi instance. Additionally, our hypervisor also categorizes events within each instance by an event-id that gets passed to hvc call as second parameter. So we can pass two parameters in addition to function_id.
Currently, smc/hvc calls are made with parameters setJust to be sure that I understood the problem(as your 2 parameters confused
to zeros. We are using multiple scmi instances within
a VM and hypervisor associates a tag with each instance
and expects the tag in hvc calls from that instance, while
sharing the same smc-id(func_id) among the instances.
This patch series introduces new optional dtb bindings which
can be used to pass parameters to smc/hvc calls.
me), this is just to help hypervisor/secure side to identify the right
channel/shared memory when the same SMC/HVC function id is shared right ?
that's a good suggestion. Any solution you propose shouldn't just limit to only one parameter. IMO, there should be some way to pass all 6 parameters since we do have a use case of at least two parameters.
If that is the case, why can't we just pass the shmem address as the
parameter ? I would like to avoid fragmentation here with every vendor
trying to do different things to achieve the same.
The shmem proposal is fine however please also incorporate passing of other parameters.
I would just change the driver to do that. Not sure if it breaks any existing
implementation or not. If it does, we can add another compatible to identify
one needing this fixed(shmem address) as additional parameter.
Does that make sense at all ? Or am I missing some/all of the requirements
here ?