From: Kevin Hilman <khilman@deeprootsystems.com>
To: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Cc: linux-omap@vger.kernel.org, Jouni Hogander <jouni.hogander@nokia.com>
Subject: Re: [PATCH 2/3] ARM: OMAP3: Fix secure sram saving
Date: Tue, 31 Mar 2009 17:23:16 -0700 [thread overview]
Message-ID: <87y6ulrzm3.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1238075941-24931-3-git-send-email-kalle.jokiniemi@digia.com> (Kalle Jokiniemi's message of "Thu\, 26 Mar 2009 15\:59\:00 +0200")
Kalle Jokiniemi <kalle.jokiniemi@digia.com> writes:
> The secure sram context save uses dma channels 0 and 1.
> In order to avoid collision between kernel DMA transfers and
> ROM code dma transfers, we need to reserve DMA channels 0
> 1 on high security devices.
>
> A bug in ROM code leaves dma irq status bits uncleared.
> Hence those irq status bits need to be cleared when restoring
> DMA context after off mode.
>
> There was also a faulty parameter given to PPA in the secure
> ram context save assembly code, which caused interrupts to
> be enabled during secure ram context save. This caused the
> save to fail sometimes, which resulted the saved context
> to be corrupted, but also left DMA channels in secure mode.
> The secure mode DMA channels caused "DMA secure error with
> device 0" errors to be displayed.
>
> Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
> Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Thanks, pushing after fixing this minor checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks
#82: FILE: arch/arm/plat-omap/dma.c:2337:
+ if (cpu_is_omap34xx() && (omap_type() != OMAP2_DEVICE_TYPE_GP)) {
+ dma_write(0x3 , IRQSTATUS_L0);
+ }
Kevin
next prev parent reply other threads:[~2009-04-01 0:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-26 13:58 [PATCH 0/1] ARM:OMAP3: Misc off mode fixes Kalle Jokiniemi
2009-03-26 13:58 ` [PATCH 1/3] ARM:OMAP3: Enable SDRC workaround for ES3.1 Kalle Jokiniemi
2009-03-26 13:59 ` [PATCH 2/3] ARM: OMAP3: Fix secure sram saving Kalle Jokiniemi
2009-03-26 13:59 ` [PATCH 3/3] ARM: OMAP3: Enable IO-CHAIN wakeup Kalle Jokiniemi
2009-04-01 0:27 ` Kevin Hilman
2009-04-01 0:23 ` Kevin Hilman [this message]
2009-04-01 0:18 ` [PATCH 1/3] ARM:OMAP3: Enable SDRC workaround for ES3.1 Kevin Hilman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6ulrzm3.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=jouni.hogander@nokia.com \
--cc=kalle.jokiniemi@digia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.