From: cotulla@yandex.ua
To: linux-hexagon@vger.kernel.org
Subject: Re: [DISCUSSION] Hexagon code inside kernel
Date: Sat, 16 Feb 2013 05:35:13 +0400 [thread overview]
Message-ID: <1433341360978513@web2h.yandex.ru> (raw)
In-Reply-To: <CAHrUA36mN-a6BTCp7DP-QgWA5ii86YbmpvZbBTnv__f0mqft6g@mail.gmail.com>
Hello,
> šIts documented at https://developer.qualcomm.com/hexagon-processor
> šhttps://developer.qualcomm.com/download/80-nb419-3ahexagonvirtualmachinespec.pdf
Yes, I saw and active using that document. But it's only a specification.
A lot of things are not really described there. And kernel implementation is rather messy -
for example, in some places it's using HVM interface for cache operations and in the another it is executing native commands.
> šI think it was supposed to be, I'm not sure why its not. šThere had been some
> šgrand plans for hexagon, but they never quite materialized. šIts far more
> špower-efficient than even the most efficient ARM's (I'm guessing it might be
> šthe most power-efficient (32/64-bit) processor ever?), and that was going to
> šbe its selling point. šI think they could not figure out how to sell
> šit, or to whom.
Interesting. But is it rather slow? Especially a memory access?
> šWell, I'm not sure, but I'm guessing that if you prowl around on the ROM,
> šyou'll find a copy of it in there somewhere.
No, it doesn't present in any ROM. I already checked that.
As well as it is useless inside without actual Linux image.
>šAnd if you don't, its actually ašmini-VM, its maybe a few hundred lines of assembly. šIt really did very little
> šother than enabling and dispatching first-level interrupts. Perhaps I'm not
> šthinking clearly, but I'm guessing that you can hack around having it at all.
> šI don't remember if there's some must-use-it-or-die undocumented šregister
> šin there or not.
One important part is a software MMU implementation, because Hexagon doesn't have hardware MMU, only standalone TLB entries.
But HVM provides that functionality to the guest.
As well as most supervisor mode registers are not really defined, like "bit 18 of SSR is interrupt mask flag".
Of course it's not a problem for myself, I already researched most things.
It should be enough to bring native Hexagon kernel instead of fake hypervisor one.
I am working with HTC LEO which has QSD8250B/QDSP6v2.
I already can run QDSP6 code in polling-bootloader mode.
> šMost of the other vendors do it to. Certainly, most of the powerpc
> šcode requires
> šan extremely large and complicated hypervisor -- something like millions of
> šlines of code -- and its extremely proprietary.
Well, I guess they provide those hypervisors with hardware kinda like BIOS?
In Hexagon case it's actually dead code.
What is the point to include such thing inside mainline kernel?
> šWhile I was at Qualcomm, I saw development boards that were supposed
> što be generally available for a few hundred $$. šThey were basically
> šcell-phones
> šwith the radio disabled (to avoid complications with the carriers) and some
> šextra headers soldered on for hardware debuggers. šQualcomm was even
> šfunding someone to build a very low-cost (sub $500) semi/mostly(?) open-source
> šhardware debugger, šsomething that could read the JTAG bits and
> šhalt/single-step
> šthe CPU. ššThe point of the low-cost was to allow hobbyists to get
> šinto it .. šsince
> špaying $5K to debug a $200 board only makes sense for NDA-signing corporations
> šwho can afford it.
Well, it sounds well. But what reason to push code to _mainline_ before all that is done?
Is it really good to include random bullshit into kernel to make it cluttered?
As well in the neighboring mail list people tells that QCT camera code can not be included to the mainline because it has private service for userspace.
-Cotulla
next prev parent reply other threads:[~2013-02-16 1:35 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 14:28 [DISCUSSION] Hexagon code inside kernel cotulla
[not found] ` <CAHrUA364XES66kXhr0Gg1dh_MQBAS0+R8Q4x+EY3dgz6s=QRww@mail.gmail.com>
2013-02-15 22:33 ` Linas Vepstas
2013-02-16 1:35 ` cotulla [this message]
2013-02-16 2:34 ` Linas Vepstas
2013-02-16 12:39 ` cotulla
2013-02-16 17:33 ` Linas Vepstas
2013-02-16 19:21 ` cotulla
2013-02-19 4:36 ` rkuo
2013-02-19 14:29 ` Linas Vepstas
2013-02-20 1:07 ` cotulla
2013-02-20 1:17 ` cotulla
2013-02-23 4:24 ` Rob Landley
2013-02-24 12:00 ` cotulla
2013-02-24 16:32 ` Linas Vepstas
2013-02-24 17:29 ` cotulla
2013-02-24 21:03 ` Linas Vepstas
2013-02-25 17:26 ` Rob Landley
2013-02-26 18:54 ` cotulla
2013-02-27 0:58 ` Rob Landley
2013-02-27 12:39 ` cotulla
2013-02-24 12:23 ` cotulla
2013-02-26 6:55 ` Rob Landley
2013-02-26 19:30 ` cotulla
2013-02-26 19:32 ` cotulla
2013-02-26 19:59 ` Linas Vepstas
2013-02-26 20:25 ` cotulla
2013-02-26 20:57 ` Linas Vepstas
2013-02-27 1:06 ` Rob Landley
2013-02-27 1:30 ` Linas Vepstas
2013-02-27 3:03 ` Rob Landley
2013-02-27 12:35 ` cotulla
-- strict thread matches above, loose matches on Subject: below --
2013-02-24 0:24 Linas Vepstas
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=1433341360978513@web2h.yandex.ru \
--to=cotulla@yandex.ua \
--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