[PATCH v2 4/8] ARM: OMAP2+: hwmod: revise hardreset behavior
Ramirez Luna, Omar
omar.ramirez at ti.com
Thu Apr 19 17:15:12 EDT 2012
Hi Paul,
On Thu, Apr 19, 2012 at 2:46 PM, Paul Walmsley <paul at pwsan.com> wrote:
> Hi Benoît,
>
> On Thu, 19 Apr 2012, Cousson, Benoit wrote:
>
>> On 4/19/2012 7:17 PM, Paul Walmsley wrote:
>> > On Thu, 19 Apr 2012, Cousson, Benoit wrote:
>> >
>> > > The concern of the people doing SW in these embedded processors was mainly
>> > > because we were releasing the reset of processor without loading any SW
>> > > first
>> > > and thus the processor was executing some random instructions.
>> > >
>> > > So if we consider a better hwmods definition, we can potentially fix the
>> > > MMU
>> > > case:
>> > >
>> > > 'mmu_ipu':
>> > > 'rst_ipu_mmu_cache'
>> > >
>> > > 'mmu_dsp':
>> > > 'rst_dsp_mmu_cache'
>> > >
>> > > 'iva_config':
>> > > 'rst_logic'
>> >
>> > Wouldn't these still be "pseudo-hwmods?" Or do each of these actually
>> > have address space, interconnect ports, etc.?
>>
>> Yes, these ones are the only real IPs for MPU stand point, with interconnect
>> port and configuration registers.
>
> These are the MMUs documented in Chapter 20 of the OMAP4430 TRM
> vX, right?
>
> I don't really understand the interaction of the hardreset lines with
> these IPs. Chapter 20 doesn't seem to mention the PRCM-controllable
> hardreset lines at all. It only mentions the OCP_SYSCONFIG registers
> associated with them.
>
> Meanwhile Table 3-375 "RM_DSP_RSTCTRL" mentions a DSP MMU, cache, and
> slave interface reset line. Is that referring to the same MMU that is
> mentioned in Chapter 20? The end of Section 20.2 "MMU Integration"
> mentions two different DSP MMUs, a "shared cache MMU" and an "L2 MMU" -
> maybe the hardreset line only pertains to the first MMU?
I don't thinks so, because trying to read the L2 MMU registers with
DSP RST2 asserted causes an L3 error.
DSP's "shared cache MMU" refers to section 5.3.2.5 Attribute MMU which
is inside the dsp megamodule, OTOH "L2 MMU" refers to section 5.3.4
MMU, the latter is the one being referenced in section 20.
>> > > But then we do have the processor resets that have to be exposed
>> > > somewhere.
>> > >
>> > > 'ipu':
>> > > 'rst_cpu0'
>> > > 'rst_cpu1'
>> > >
>> > > 'dsp':
>> > > 'rst_dsp'
>> > >
>> > > 'iva':
>> > > 'rst_seq1'
>> > > 'rst_seq2'
>> > >
>> > > None of these one should be controlled automatically.
>> >
>> > Don't we still want to put these IP blocks into reset until a driver for
>> > these IP blocks is loaded?
>>
>> Yes, indeed, my point is where are we going to declare these reset lines if we
>> do not have any fake hwmods to store them.
>
> Wouldn't we associate them with the processor hwmods? e.g.,
> omap44xx_iva_hwmod, omap44xx_dsp_hwmod ?
>
>> Well, for the MMU we can, these are regular IPs (almost). The real issues was
>> for the processors.
>
> Omar, do you know how these hardreset lines interact with the MMUs
> described in the TRM Chapter 20?
For M3, RM_MPU_M3_RSTCTRL[2].RST3 releases both the cache and mmu
interfaces, this one is needed if you want to program the mmu by
touching any of the MMU registers, typical initialization is to
deassert this line and then enable the M3 clock (since it is shared
with its MMU) which should allow the reset to complete *only* after
the clock has been enabled.
For DSP, RM_DSP_RSTCTRL[1].RST2 it also releases dsp, cache and mmu
(however the dsp doesn't boot until RST1 is deasserted), it is the
same rationale as above; you deassert RST2, enable dsp clock (so reset
can complete) and then program mmu.
Touching any mmu registers without deasserting its reset line (even if
the associated clock is ON) generates a L3 error.
This can be found in 3.5.6 Reset sequences for DSP and M3.
Regards,
Omar
More information about the linux-arm-kernel
mailing list