[PATCH v2 1/4] OMAP4: hwmod data: Add GPMC

Paul Walmsley paul at pwsan.com
Mon Aug 1 20:33:18 EDT 2011


Hi

On Fri, 1 Jul 2011, Benoit Cousson wrote:

> Add the GPMC hwmod data.
> 
> The GPMC hwmod does need the flags HWMOD_INIT_NO_IDLE and
> HWMOD_INIT_NO_RESET due to a bug described in the previous commit:
> 
>  OMAP4: clock: Keep GPMC clocks always enabled and hardware managed
> 
>  On OMAP4, CPU accesses on unmapped addresses are redirected to GPMC by
>  L3 interconnect. Because of CPU speculative nature, such accesses are
>  possible which can lead to indirect access to GPMC and if it's clock is
>  not running, it can result in hang/abort on the platform.
> 
>  Above makes access to GPMC unpredictable during the execution, so it's
>  module mode needs to be kept under hardware control instead of software
>  control.
>  Since the auto gating is supported for GPMC, there isn't any power impact
>  because of this change.
> 
>  The issue was un-covered with security middleware running along with HLOS.
>  In this case GPMC had a valid MMU descriptor on secure side where as HLOS
>  didn't map the GMPC because it isn't being used.
> 
> Signed-off-by: Benoit Cousson <b-cousson at ti.com>
> Cc: Kevin Hilman <khilman at ti.com>
> Cc: Paul Walmsley <paul at pwsan.com>
> Cc: Rajendra Nayak <rnayak at ti.com>

Looks to me like this patch would need to be accompanied by one that 
cleans up arch/arm/mach-omap2/gpmc.c.  The init code in that file messes 
around with the OCP_SYSCONFIG bits.  It also hardcodes a bunch of stuff 
that should be supplied by dynamic data.


- Paul



More information about the linux-arm-kernel mailing list