linux-hexagon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: rkuo@codeaurora.org
To: jonpry@gmail.com
Cc: linux-hexagon@vger.kernel.org
Subject: Re: Bare metal hexagon status
Date: Tue, 19 Mar 2013 17:17:38 -0700	[thread overview]
Message-ID: <4f19608dc42a233a141be55ae6f249d2.squirrel@www.codeaurora.org> (raw)

On Sat, Mar 16, 2013 at 3:59 PM, Jon Pry <jonpry@gmail.com> wrote:
> The port to bare metal hexagon appears to be fully functional on V3
> processors. All cores are running under SMP. It has not yet been
> tested on V2. So anybody interested in Hexagon programming should be
> able to mess with it now.

Excellent!

I am trying to get some other arch fixes out before you guys manage to run
into them, but unfortunately have been very sidetracked as of late.

Also, I wanted to note that there is a newer version of the cross tools (I
think the last email I saw to the list was 03.66).  The newer one is here:

https://sourcery.mentor.com/GNUToolchain/package10967


> I did have some problems implementing vmwait, which I assume saves
> some power. Perhaps someone here knows how the wait(Rs) instruction
> works. I have no idea what the register argument is doing.  Analysis
> of the Q6 firmware was not clear. Sometimes it uses the thread id,
> sometimes all of ssr, and other times some strange magic numbers. It
> also appears that wait is run with exception bit cleared and
> interrupts enabled. Which seems like a bad idea since vmwait is called
> with interrupts disabled.

It does save some power; the source register Rs isn't used anymore in the
instruction.

A (working) implementation of vmwait would do something like save the
return address, enable the interrupts, then hit the wait.  And then you'd
have to check that you interrupted waitmode on the entry...


Regards,
Richard Kuo


--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

             reply	other threads:[~2013-03-20  0:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20  0:17 rkuo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-03-16 20:59 Bare metal hexagon status Jon Pry
2013-03-18  4:32 ` Rob Landley

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=4f19608dc42a233a141be55ae6f249d2.squirrel@www.codeaurora.org \
    --to=rkuo@codeaurora.org \
    --cc=jonpry@gmail.com \
    --cc=linux-hexagon@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).