Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43338C433EF for ; Fri, 10 Dec 2021 12:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241380AbhLJM6w (ORCPT ); Fri, 10 Dec 2021 07:58:52 -0500 Received: from out0.migadu.com ([94.23.1.103]:31141 "EHLO out0.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241279AbhLJM6u (ORCPT ); Fri, 10 Dec 2021 07:58:50 -0500 Date: Fri, 10 Dec 2021 20:54:43 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1639140912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GzxqsTgGJOyZ40XRab11234nAk9h8VZSbl6iUK3fRT4=; b=S8zk/nGvHzSFSxJv//mDbTN7KWkIMz/ZgSm+Q34vw3kWfKLE4GQqy2XFppxiUhyBlDOJVx hXKUQo1AkfuDjrsUW73AezwF++o76hHsE4dsdwJCSHr8BZV3pa+R+Xkjti3WOLjIcBHKnt KaQDlDlODZVWYseVulf+shO9uq5MyqA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Cai Huoqing To: Oded Gabbay Cc: Maling list - DRI developers , "Linux-Kernel@Vger. Kernel. Org" Subject: Re: Habanalabs, Ask for the linux firmware code which loads by coprocesseor Message-ID: <20211210125443.GA21176@chq-T47> References: <20211207071830.GA14915@chq-T47> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: cai.huoqing@linux.dev Precedence: bulk List-ID: X-Mailing-List: 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 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