mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
m1n1.setup: Always reset PMU boot error counters
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
9a39bf15ef
commit
eedaf2941a
3 changed files with 2 additions and 8 deletions
|
@ -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 *
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue