From: "Woodruff, Richard" <r-woodruff2@ti.com>
To: David Russell <david.russell73@gmail.com>,
"tony@atomide.com" <tony@atomide.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: RE: [EXTERNAL] OMAP2430 kernel hangs on ioremap of IVA2.1 addresses
Date: Mon, 7 Jun 2021 15:40:47 +0000 [thread overview]
Message-ID: <cb562f9f798d4431a09f19e8efd24727@ti.com> (raw)
In-Reply-To: <E26ACA77-0F54-41BC-BA45-29B641A6BEA9@gmail.com>
Guess: this bit in JTAG script used for IVA tests probably is missing and needs to be worked in. The generic linux-omap clock code probably handles the IVA clock but maybe not the resets.
/* Enable IVA-ss functional clock (set bit 0) */
(*(int*)0x49006800) |= 0x1;
/* Release l3s_idle_req */
(*(int*)0x49006810) |= (1 << 1);
/* Release L3S reset and power-on reset (clear bit 1) at the same time */
(*(int*)0x49006850) &= ~(( 1 << 1));
Regards,
Richard W.
-----Original Message-----
From: David Russell <david.russell73@gmail.com>
Sent: Monday, June 07, 2021 10:01 AM
To: tony@atomide.com
Cc: linux-omap@vger.kernel.org
Subject: [EXTERNAL] OMAP2430 kernel hangs on ioremap of IVA2.1 addresses
Good morning,
I have a legacy project that runs on an OMAP2430 and is based on the linux-omap repo (tag v2.6.28-omap1). I am in the process of upgrading the project to mainline v5.10; I have been able to get most issues resolved (e.g., USB DMA still fails, but PIO works for now), but have a difficult problem that I am hoping someone might lend an idea to. We have a custom DSP driver that is responsible for resetting the DSP, downloading the firmware, setting up the mailbox and then managing the communication between the ARM and DSP. I have the driver mostly ported (i.e., compiling) and am working through the behavior. At probe-time there are several ioremap’s of IVA2.1 memory (0x5c800000 and 0x5d000000 — the internal SRAM and the MMU). The ioremap’s succeed without error, but as soon as I simply try to read the revision register at 0x5d000000 the ARM hangs (i.e., not even a kernel panic message is presented, the console just freezes). I assume that I am missing a clock or some module is powered-down, but am not sure. Interestingly, in arch/arm/mach-omap2/iomap.h it is explicitly noted that the 2430 IVA2.1 is not mapped — I attempted to add these mappings to the 2430 table which resulted in zero console output of the kernel boot (i.e., I can see the x-loader console output getting ready to launch the kernel, and then nothing).
This is a challenging problem with the console simply freezing on the memory access. I would very much appreciate any ideas as to this issue.
Regards,
Dave
next prev parent reply other threads:[~2021-06-07 15:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-07 15:01 OMAP2430 kernel hangs on ioremap of IVA2.1 addresses David Russell
2021-06-07 15:40 ` Woodruff, Richard [this message]
2021-06-09 6:20 ` [EXTERNAL] " Tony Lindgren
2021-06-09 12:11 ` David Russell
2021-06-11 4:43 ` Tony Lindgren
2021-08-11 12:54 ` David Russell
2021-08-11 14:17 ` Woodruff, Richard
2021-08-12 6:32 ` Tony Lindgren
2021-08-12 19:05 ` Woodruff, Richard
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=cb562f9f798d4431a09f19e8efd24727@ti.com \
--to=r-woodruff2@ti.com \
--cc=david.russell73@gmail.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/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.