Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3797745pxb; Mon, 4 Oct 2021 09:48:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSXwVg/QSkS+XHrLnAKEe9K2903udF5cOOwN0p+wykJTL38LDXa1t5MQfqVozs8YcIcHnK X-Received: by 2002:a63:ef58:: with SMTP id c24mr11521798pgk.299.1633366125366; Mon, 04 Oct 2021 09:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633366125; cv=none; d=google.com; s=arc-20160816; b=EQf8ZAd4ODALq5oNnNk2IrFAc3nueshkLKaY5t7qi7JjEePj3SYT1gZ/kG3q580Y8D kdzOFnZqUhJ0hyEo293F5CJqYj4saUBfWepsB2Ni45iMZXL1z5QU0VXBcQPMznDnth0v nvst1M7rcsRFDFOPaiv7BiuZUxxpQPeq05/LbDgy1hh2iqZM20GoPx6ybLyB/JfaDEPQ cddmMVZBLjJRrFi+VAFREcuf9WN+boyN2zzqFjEKLoqzhM+UfYpQWyrEBxN5Ge0MIUhA PPqHceGxxaZ9WbbDZEncQz0j0C48ssFDYwHNohIJnQUxwr+TAokyyDT7cJY55QLfQKmK 95NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o9UeRyGC1nd1O9ShbJX0dS6KVZt/oNf8bnxw23atELg=; b=jj0tcAcI3s89ViuW0mxV0mhCO9esek7/rpRmHeEokaEptJ7FGa2cYzoQ5OXlvoLCUT FbikqbELpx7+XIE3AtXdJ52KnfHJgsITYEiWMlVUZPNKMiQewwAJiUMVHfUYpSd5MbDz FQyU584Vf3X1FK1ndCvqONJ3CCblc03srI8sgl7B4pMXLgYxI9NyKnXuLN67Mw9OLcfl CZ3eZ0a4g1J8riMVSVO/v/0LFN/yoa8sxs4OXU+AhAUJbOg+3YBu00b+ndRf0hqgW97O qE1yVT6HuKDdTue/BijfJO9md6qnwwlMyD60WTzBPEjc+4dN7IktesGtj2ZJ1zuTeD2M t8Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P2yMjfcx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si4040974pff.337.2021.10.04.09.48.32; Mon, 04 Oct 2021 09:48:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P2yMjfcx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237789AbhJDNj2 (ORCPT + 99 others); Mon, 4 Oct 2021 09:39:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:52290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237952AbhJDNhc (ORCPT ); Mon, 4 Oct 2021 09:37:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 34E946136F; Mon, 4 Oct 2021 13:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633353423; bh=3C6iHA7wH4RyXJEFJq7ukVmCEwCLUOLvkiHSGmNUM4o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P2yMjfcxLI17MJ1AXu/7lWWshYM7z4E7J1PL2TJAP/r5ZH3VjwWAufpiCvOJjAZmR AGYusdQffXosGFxQwdwUyUnuK5NW685tHTuOPeWQIEXcoFhPgZBA26CmOiV1896Rou 6oWuboBLkRenSxti8rocOnDn+HFU9CCkvfLpPHq0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rahul Lakkireddy , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.14 122/172] scsi: csiostor: Add module softdep on cxgb4 Date: Mon, 4 Oct 2021 14:52:52 +0200 Message-Id: <20211004125048.920060453@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125044.945314266@linuxfoundation.org> References: <20211004125044.945314266@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rahul Lakkireddy [ Upstream commit 79a7482249a7353bc86aff8127954d5febf02472 ] Both cxgb4 and csiostor drivers run on their own independent Physical Function. But when cxgb4 and csiostor are both being loaded in parallel via modprobe, there is a race when firmware upgrade is attempted by both the drivers. When the cxgb4 driver initiates the firmware upgrade, it halts the firmware and the chip until upgrade is complete. When the csiostor driver is coming up in parallel, the firmware mailbox communication fails with timeouts and the csiostor driver probe fails. Add a module soft dependency on cxgb4 driver to ensure loading csiostor triggers cxgb4 to load first when available to avoid the firmware upgrade race. Link: https://lore.kernel.org/r/1632759248-15382-1-git-send-email-rahul.lakkireddy@chelsio.com Fixes: a3667aaed569 ("[SCSI] csiostor: Chelsio FCoE offload driver") Signed-off-by: Rahul Lakkireddy Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/csiostor/csio_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index 390b07bf92b9..ccbded3353bd 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c @@ -1254,3 +1254,4 @@ MODULE_DEVICE_TABLE(pci, csio_pci_tbl); MODULE_VERSION(CSIO_DRV_VERSION); MODULE_FIRMWARE(FW_FNAME_T5); MODULE_FIRMWARE(FW_FNAME_T6); +MODULE_SOFTDEP("pre: cxgb4"); -- 2.33.0