From: Oded Gabbay Date: Sun, 9 May 2021 06:49:36 +0000 (+0300) Subject: habanalabs: notify before f/w loading X-Git-Tag: accepted/tizen/unified/20230118.172025~6891^2~28^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a782422b20f4b3433099b0e1e4d6a9e5f1a87f5f;p=platform%2Fkernel%2Flinux-rpi.git habanalabs: notify before f/w loading An information print notifying on starting to load the f/w was removed by mistake when moving to the new dynamic f/w loading mechanism. Restore that print as the F/W loading usually takes between 10 to 20 seconds and this print helps the user know the status of the driver load. Signed-off-by: Oded Gabbay --- diff --git a/drivers/misc/habanalabs/common/firmware_if.c b/drivers/misc/habanalabs/common/firmware_if.c index 3969351..8922d4a 100644 --- a/drivers/misc/habanalabs/common/firmware_if.c +++ b/drivers/misc/habanalabs/common/firmware_if.c @@ -1951,6 +1951,9 @@ static int hl_fw_dynamic_init_cpu(struct hl_device *hdev, struct cpu_dyn_regs *dyn_regs; int rc; + dev_info(hdev->dev, + "Loading firmware to device, may take some time...\n"); + dyn_regs = &fw_loader->dynamic_loader.comm_desc.cpu_dyn_regs; rc = hl_fw_dynamic_send_protocol_cmd(hdev, fw_loader, COMMS_RST_STATE,