Where does machine_restart map in the IMX8M kernel sources?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where does machine_restart map in the IMX8M kernel sources?

1,088 Views
john_obendorfer
Contributor III

I'm using the Sumo release on an IMX8MQ.  Could any one please point me to the imx8m-specific function called by machine_restart()? 

I thought it was mxc_reset() in arch/arm/mach-imx/system.c, but inserting a #error in that function doesn't break the build.  That's a pity, because mxc_reset()  does exactly what I want: force WDOG1 to fire the system reset signal.

The machine_restart() in arch/arm64/kernel/process.c references two "possible suspects":

1. the pointer arm_pm_restart

2. the function do_kernel_restart()

arm_pm_restart appears to be set in the xen/enlighten.c, but that quickly led to the deferencing of a jump table that I haven't been able to find yet.

On the other hand, do_kernel_restart() appears to walk a list of registered reset handlers, none of which look  like they would reset the platform.

Any light that anyone could throw on this would be much appreciated!

Thanks & Regards,

John Obendorfer

Sr Software Engineer

Cognex

Labels (1)
0 Kudos
3 Replies

907 Views
radhikasomaiya
Senior Contributor II

Hi John Obendorfer,

Are you sure about the version which you are using is Yocto sumo (L4.14.78)? As we are not able to find the mxc_reset() in arch/arm/mach-imx/system.c (In our system's Yocto sumo L4.14.78 build).

Can you let us know exactly what you want to know about reboot? Are you looking for board specific functions for system reset?

Regards,

Radhika Somaiya. 

0 Kudos

907 Views
karangajjar
Senior Contributor II

Hi John Obendorfer,

Can you please let us know which linux kernel version you are using?

Regards,

Karan Gajjar

0 Kudos

907 Views
john_obendorfer
Contributor III

Hi Karan,

Sorry, should have put that in the original post.

We're running kernel version 4.14.78 (Sumo) on an IMX8MQ.

Thanks & Regards,

John

0 Kudos