public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Cai Huoqing <cai.huoqing@linux.dev>
To: ogabbay@kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Subject: Habanalabs, Ask for the linux firmware code which loads by coprocesseor
Date: Tue, 7 Dec 2021 15:18:30 +0800	[thread overview]
Message-ID: <20211207071830.GA14915@chq-T47> (raw)

Hi Oded Gabbay and habanalabs folks.

I'm insterested in this kind of AI acceralator.

After scanning the driver code.
It seems that there are a linux firmware which is loaded by
coprocessor(an slave cpu ?).
shows in the code.

./goya/goya.c:74:#define GOYA_LINUX_FW_FILE     "habanalabs/goya/goya-fit.itb"
./goya/goya.c:2436:     return hl_fw_load_fw_to_device(hdev, GOYA_LINUX_FW_FILE, dst, 0, 0);
./goya/goya.c:2507:     fw_loader->linux_img.image_name = GOYA_LINUX_FW_FILE;
./gaudi/gaudi.c:63:#define GAUDI_LINUX_FW_FILE  "habanalabs/gaudi/gaudi-fit.itb"
./gaudi/gaudi.c:3945:   return hl_fw_load_fw_to_device(hdev, GAUDI_LINUX_FW_FILE, dst, 0, 0);
./gaudi/gaudi.c:4011:   fw_loader->linux_img.image_name = GAUDI_LINUX_FW_FILE;

And the host driver(/driver/misc/habanalabs) communicate with the slave firmware
by MMIO or share memory, right?

If that, would you mind provide the source code of linux firmware
to avoid the confusion from code reading.

BTW, where can I find the register description datasheet

Many Thanks,
Cai

             reply	other threads:[~2021-12-07  7:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07  7:18 Cai Huoqing [this message]
2021-12-09 12:23 ` Habanalabs, Ask for the linux firmware code which loads by coprocesseor Oded Gabbay
2021-12-10 12:54   ` Cai Huoqing

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=20211207071830.GA14915@chq-T47 \
    --to=cai.huoqing@linux.dev \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ogabbay@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