On 16/01/15 16:17, Iurii Konovalenko wrote: > I tried to add instruction: asm volatile("mcr p15, 0, %0, c14, c0, 0" : > : "r" (freq)); > Also I tried to write it via Xen API: WRITE_SYSREG32(freq, CNTFRQ_EL0); > > But unfortunately Xen fails on both this instructions with "Undefined > instruction" exception. > You can see log in attachment. > Could you please suggest reason, why it happens?
CNTFRQ can only be written in Secure PL1 mode. I have the feeling CNTFRQ is not update automatically when Xen is writing in CNTFID0. So the frequency may mismatch. Assuming this, I'm wondering if we hit the second part of the if sentence [1] and therefore this code useful? BWT I see in the log: (XEN) /psci method must be smc, but is: "hvc" Does it mean your platform support PSCI? Or did you add the PSCI node for DOM0? Regards, [1] readl_relaxed(tmu + SHMOBILE_ARCH_TIMER_CNTFID0) != freq -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel