Date: Tue, 12 May 2015 08:53:55 +0000 (UTC) From: Ganbold Tsagaankhuu <ganbold@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282812 - head/sys/arm/amlogic/aml8726 Message-ID: <201505120853.t4C8rtmC031433@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ganbold Date: Tue May 12 08:53:54 2015 New Revision: 282812 URL: https://svnweb.freebsd.org/changeset/base/282812 Log: 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@ Modified: head/sys/arm/amlogic/aml8726/aml8726_machdep.c Modified: head/sys/arm/amlogic/aml8726/aml8726_machdep.c ============================================================================== --- head/sys/arm/amlogic/aml8726/aml8726_machdep.c Tue May 12 08:52:50 2015 (r282811) +++ head/sys/arm/amlogic/aml8726/aml8726_machdep.c Tue May 12 08:53:54 2015 (r282812) @@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$"); #include <vm/pmap.h> #include <machine/bus.h> +#include <machine/cpufunc.h> #include <machine/devmap.h> #include <machine/machdep.h> #include <machine/platform.h> @@ -114,6 +115,19 @@ platform_gpio_init(void) 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, * however currently there's no mechanism to specify a fixup which * should always be invoked.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505120853.t4C8rtmC031433>