On 8/14/2024 3:09 PM, Trilok Soni wrote:
On 8/14/2024 1:25 PM, Konrad Dybcio wrote:
Unfortunately, no. We considered several options, but none guarantee that we will avoid
a crash if we try non-securely. The secure call also won't give a specific error if it fails either
(for security reasons) so we can't know if a secure access failed because it's supposed to be
accessed non-securely or for another reason; hence this approach. If there's
another way to achieve this functionality that might be better, I'm all ears.
Can we read some fuse values and decide based on that?
In most of the cases, these fuse values are not allowed to be read
from the Linux, so that will be another problem. Melody can check
if there is any fuse values around here and possible to read them
through Linux.
I double-checked, but there really isn't any kind of fuse or anything we
can read to determine
how we need to access these registers. I remembered checking before
authoring these patches,
but I wanted to just make sure before responding here.
Thanks,
Melody