commit d7c12af24c1b79168017a53a4d159a2832b2ac2b
Author: Shuo Liu <shuo.liu@amlogic.com>
Date:   Fri Sep 13 20:44:53 2024 +0800

    rng: force reset rng register when its state is consistently incorrect [1/1]

    PD#OTT-63673
    PD#OTT-63781
    PD#OTT-64462

    Problem:
    when invoke ta command, bl32 can not get rng numbers, then can not return
    rpc command, then cause smc error and kernel hardlock panic

    Solution:
    1.reference patch "97ea199a2ae8c2c4662db64c821a887deb1d9b5b",
    add macro AML_READ32_CHECK_TIMEOUT and AML_READ32_CHECK_EXCESS
    2.force reset rng register if its failure count exceeds the maximum number
    3.rng version upgrade to 1.3.0 (s1a)

    Verify:
    Yocto + S1A

    Change-Id: I5b5f131adf47f3d97361e2e526240b9742a917f5
    Signed-off-by: Shuo Liu <shuo.liu@amlogic.com>

Change-Id: Idfc6743078252af64c550510fddfbd3aae011b14
32 files changed