m1n1.setup: Always reset PMU boot error counters

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2022-08-17 13:14:23 +09:00
parent 9a39bf15ef
commit eedaf2941a
3 changed files with 2 additions and 8 deletions

View file

@ -7,10 +7,6 @@ sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
from m1n1.setup import *
from m1n1.shell import run_shell
from m1n1.hw.pmu import PMU
PMU(u).reset_panic_counter()
from m1n1.agx import AGX
from m1n1.agx.context import *

View file

@ -183,10 +183,6 @@ class DRMAsahiShim:
def init_agx(self):
from m1n1.setup import p, u, iface
from m1n1.shell import run_shell
from m1n1.hw.pmu import PMU
PMU(u).reset_panic_counter()
p.pmgr_adt_clocks_enable("/arm-io/gfx-asc")
p.pmgr_adt_clocks_enable("/arm-io/sgx")

View file

@ -26,6 +26,8 @@ hv = HV(iface, p, u)
fb = u.ba.video.base
PMU(u).reset_panic_counter()
print(f"m1n1 base: 0x{u.base:x}")
PMU(u).reset_panic_counter()