1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Disable WPI in case of aml8726-m3.

The aml8726-m3 SoC is identified as a Cortex A9-r2 rev 4 CPU and
it hangs sometimes during the boot when WFI is used by the kernel.

Differential Revision:	  https://reviews.freebsd.org/D2473
Submitted by:		  John Wehle
Suggested by:		  ian@
This commit is contained in:
Ganbold Tsagaankhuu 2015-05-12 08:53:54 +00:00
parent fcbbf5af1d
commit e4bc6b4c01
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282812

View File

@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
#include <vm/pmap.h> #include <vm/pmap.h>
#include <machine/bus.h> #include <machine/bus.h>
#include <machine/cpufunc.h>
#include <machine/devmap.h> #include <machine/devmap.h>
#include <machine/machdep.h> #include <machine/machdep.h>
#include <machine/platform.h> #include <machine/platform.h>
@ -113,6 +114,19 @@ platform_gpio_init(void)
*/ */
aml8726_identify_soc(); aml8726_identify_soc();
/*
* My aml8726-m3 development box which identifies the CPU as
* a Cortex A9-r2 rev 4 randomly locks up during boot when WFI
* is used.
*/
switch (aml8726_soc_hw_rev) {
case AML_SOC_HW_REV_M3:
cpufuncs.cf_sleep = (void *)cpufunc_nullop;
break;
default:
break;
}
/* /*
* This FDT fixup should arguably be called through fdt_fixup_table, * This FDT fixup should arguably be called through fdt_fixup_table,
* however currently there's no mechanism to specify a fixup which * however currently there's no mechanism to specify a fixup which