From: Sean Anderson <seanga2@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH V4 2/2] riscv: board: Support OpenPiton SoC
Date: Wed, 12 May 2021 13:14:07 -0400 [thread overview]
Message-ID: <a5dba37d-9abb-b6f6-966a-d509b73cea08@gmail.com> (raw)
In-Reply-To: <SY4PR01MB67986A680324A7A96D4A9E84F6529@SY4PR01MB6798.ausprd01.prod.outlook.com>
[snip]
> On 5/8/2021 11:14 PM, Sean Anderson wrote:
>> On 5/8/21 12:57 AM, Tianrui Wei wrote:
>>> On 5/7/2021 9:03 PM, Sean Anderson wrote:
>>>> On 5/6/21 11:48 PM, Tianrui Wei wrote:
>>>>> On 5/7/2021 11:41 AM, Sean Anderson wrote:
>>>>>> On 5/6/21 11:28 PM, Tianrui Wei wrote:
>>>>>>> On 5/7/2021 11:15 AM, Sean Anderson wrote:
>>>>>>>> On 5/6/21 11:06 PM, Tianrui Wei wrote:
>>>>>>>>> On 5/7/2021 10:32 AM, Sean Anderson wrote:
>>>>>>>>>> Please use a log without debug uart.
>>>>>>>>>>
>>>>>>>>> So this is the part where it was a little confusing. Disabling
>>>>>>>>> debug uart acutally doesn't work for some reason, so we had to
>>>>>>>>> keep it open. Will submit another patch if we got it working
>>>>>>>>> with debug uart turned off.
>>>>>>>>
>>>>>>>> This is a bit of a strange request, but can you try adding some nops()
>>>>>>>> (around 10-30) to some function (e.g. board_init). I've been having
>>>>>>>> alignment problems in k210, so it could be something similar.
>>>>>>>>
> I was wondering if you have any idea what may cause the alignment
> problems, we're also hitting it constantly and adding nops seems to
> have no impact so far.
I have no idea :)
If adding nop()s doesn't solve it, it may not be an alignment problem.
You can also try switching from -Os to -O2, which should move things
around a bit.
My attempts to dig into this have been stymied by the poor debugging
tools for the k210. The upstream openocd port only supports debugging
hart 0. While Canaan's fork supports debugging both harts, you must pick
the one to debug when launching the debugger. And both debuggers are
very buggy themselves.
The other problem on the k210 at least is that the typical failure mode
(trying to read from unaddressable/unmapped addresses) hangs the bus.
This also has the tendancy of hanging the jtag debug port.
--Sean
next prev parent reply other threads:[~2021-05-12 17:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-06 3:42 [PATCH V4 2/2] riscv: board: Support OpenPiton SoC Tianrui Wei
2021-05-07 2:32 ` Sean Anderson
2021-05-07 3:06 ` Tianrui Wei
2021-05-07 3:15 ` Sean Anderson
2021-05-07 3:28 ` Tianrui Wei
2021-05-07 3:41 ` Sean Anderson
2021-05-07 3:48 ` Tianrui Wei
2021-05-07 13:03 ` Sean Anderson
2021-05-07 13:11 ` Bin Meng
2021-05-07 13:17 ` Sean Anderson
2021-05-07 13:43 ` Bin Meng
2021-05-08 4:59 ` Tianrui Wei
2021-05-08 4:57 ` Tianrui Wei
2021-05-08 15:14 ` Sean Anderson
2021-05-08 17:57 ` Tianrui Wei
2021-05-12 16:37 ` Tianrui Wei
2021-05-12 17:14 ` Sean Anderson [this message]
2021-05-13 5:06 ` Tianrui Wei
2021-05-13 6:32 ` Bin Meng
2021-05-13 6:50 ` Tianrui Wei
2021-05-13 7:49 ` Bin Meng
2021-05-19 6:45 ` Tianrui Wei
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=a5dba37d-9abb-b6f6-966a-d509b73cea08@gmail.com \
--to=seanga2@gmail.com \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox