All of lore.kernel.org
 help / color / mirror / Atom feed
* Habanalabs, Ask for the linux firmware code which loads by coprocesseor
@ 2021-12-07  7:18 Cai Huoqing
  2021-12-09 12:23   ` Oded Gabbay
  0 siblings, 1 reply; 5+ messages in thread
From: Cai Huoqing @ 2021-12-07  7:18 UTC (permalink / raw)
  To: ogabbay, dri-devel, linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Habanalabs, Ask for the linux firmware code which loads by coprocesseor
  2021-12-07  7:18 Habanalabs, Ask for the linux firmware code which loads by coprocesseor Cai Huoqing
@ 2021-12-09 12:23   ` Oded Gabbay
  0 siblings, 0 replies; 5+ messages in thread
From: Oded Gabbay @ 2021-12-09 12:23 UTC (permalink / raw)
  To: Cai Huoqing; +Cc: Maling list - DRI developers, Linux-Kernel@Vger. Kernel. Org

On Tue, Dec 7, 2021 at 9:19 AM Cai Huoqing <cai.huoqing@linux.dev> wrote:
>
> 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.
Hi Cai,

You can download the source code from:
https://vault.habana.ai/artifactory/misc/hl-linux.bz2

>
> BTW, where can I find the register description datasheet
We don't supply this information.
Thanks,
Oded

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Habanalabs, Ask for the linux firmware code which loads by coprocesseor
@ 2021-12-09 12:23   ` Oded Gabbay
  0 siblings, 0 replies; 5+ messages in thread
From: Oded Gabbay @ 2021-12-09 12:23 UTC (permalink / raw)
  To: Cai Huoqing; +Cc: Linux-Kernel@Vger. Kernel. Org, Maling list - DRI developers

On Tue, Dec 7, 2021 at 9:19 AM Cai Huoqing <cai.huoqing@linux.dev> wrote:
>
> 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.
Hi Cai,

You can download the source code from:
https://vault.habana.ai/artifactory/misc/hl-linux.bz2

>
> BTW, where can I find the register description datasheet
We don't supply this information.
Thanks,
Oded

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Habanalabs, Ask for the linux firmware code which loads by coprocesseor
  2021-12-09 12:23   ` Oded Gabbay
@ 2021-12-10 12:54     ` Cai Huoqing
  -1 siblings, 0 replies; 5+ messages in thread
From: Cai Huoqing @ 2021-12-10 12:54 UTC (permalink / raw)
  To: Oded Gabbay; +Cc: Maling list - DRI developers, Linux-Kernel@Vger. Kernel. Org

On 09 12月 21 14:23:45, Oded Gabbay wrote:
> On Tue, Dec 7, 2021 at 9:19 AM Cai Huoqing <cai.huoqing@linux.dev> wrote:
> >
> > 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.
> Hi Cai,
> 
> You can download the source code from:
> https://vault.habana.ai/artifactory/misc/hl-linux.bz2
Thanks, that's what I need, pretty nice code!
And I will be glad to see you taking it into the linux mailine soon.

Thanks,
Cai
> 
> >
> > BTW, where can I find the register description datasheet
> We don't supply this information.
> Thanks,
> Oded

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Habanalabs, Ask for the linux firmware code which loads by coprocesseor
@ 2021-12-10 12:54     ` Cai Huoqing
  0 siblings, 0 replies; 5+ messages in thread
From: Cai Huoqing @ 2021-12-10 12:54 UTC (permalink / raw)
  To: Oded Gabbay; +Cc: Linux-Kernel@Vger. Kernel. Org, Maling list - DRI developers

On 09 12月 21 14:23:45, Oded Gabbay wrote:
> On Tue, Dec 7, 2021 at 9:19 AM Cai Huoqing <cai.huoqing@linux.dev> wrote:
> >
> > 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.
> Hi Cai,
> 
> You can download the source code from:
> https://vault.habana.ai/artifactory/misc/hl-linux.bz2
Thanks, that's what I need, pretty nice code!
And I will be glad to see you taking it into the linux mailine soon.

Thanks,
Cai
> 
> >
> > BTW, where can I find the register description datasheet
> We don't supply this information.
> Thanks,
> Oded

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-10 13:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07  7:18 Habanalabs, Ask for the linux firmware code which loads by coprocesseor Cai Huoqing
2021-12-09 12:23 ` Oded Gabbay
2021-12-09 12:23   ` Oded Gabbay
2021-12-10 12:54   ` Cai Huoqing
2021-12-10 12:54     ` Cai Huoqing

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.