Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2350858pxb; Mon, 20 Sep 2021 19:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYWldRG7CCJJW1DcelluG9pYsGUgEl8BOIcMtvjzhXl8mpXXHvp1+qRXVLOrB5w5c+Ji0h X-Received: by 2002:a05:6402:648:: with SMTP id u8mr33241483edx.394.1632192379481; Mon, 20 Sep 2021 19:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192379; cv=none; d=google.com; s=arc-20160816; b=jHGiGci+ux4xtZgZrLNKEPAPtIMBwC9Klhp6lXL/C0naMVVhXgKntMqGXJkEEW3rEc lGjlfuL/YnLF3doCdhLivnYGDYVmK3YCwrjF4kFiLGPT6Imj7+ZoNcJI8UAhktf8bjGa /XsVp9GNGq20umeufzR48L+YGbKrxn/823bYpfggjrjc4ALmIXJxVmSLTGbRcXBdsXvr jH3Yq9/iYbeE4KpWOnujQl8IkO2RXy+krwVRdSD2xtSdY5ak3j+RkzXvLZ7/4gjbODWy bG4YomzR9AiELYH9FpvOJ/4hw6rCNzIHsyuCCKpjq/GI0GX18OjS/xAPrRZ5mvSMNoqf pJdQ== 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=7IBNqIBkow3jihu3qubVTAXEA4+S5/r1m544l7Vkxf4=; b=UVdiw0BtZRM7AIMltOV6pN8O64v7G9qmtjR5Yuc8me2o9XCpCicrGSiU/CKfzHvun5 mVsvMLdnrmqGIkO92i+QGOynM0FkA1oT9xSf9HMsEzUxMFVSS9N+vgKphgqqUim2YAmT ZFoAAawLwbKs7ENsosJ87zVWYRv57gaeFgeZ5qq/JFu4eokGnqesuXkt1cHJEjVRwv3N 85K1E3zGJprW0A/9AVyi4WL0GgWMh32nArbHocX06rEXC55nFkl+lk7y9411ZG5MaV18 Towo/uq65bd8WmyvVRYv7uhQ2W/67cB/v7j2X5wgrkRFVukye3cZbgN79jyC/O5MDlcm 5RmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vt4VVw+y; 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 d23si17667015eds.175.2021.09.20.19.45.56; Mon, 20 Sep 2021 19:46:19 -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=Vt4VVw+y; 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 S1378018AbhITSW3 (ORCPT + 99 others); Mon, 20 Sep 2021 14:22:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:35774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376696AbhITSOP (ORCPT ); Mon, 20 Sep 2021 14:14:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C090C6140F; Mon, 20 Sep 2021 17:21:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158484; bh=hxvYJXzLOBb86zZuAAnjK9qsfM0NA/De+iZ/7peCopA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vt4VVw+y+5Ah3TcsvyOBdDfxKOGGJ0Xl5fe1BuKEtH6dp0fjwwiKhrKO4KYaQ2MCX rWbxhDYXi1IJHLCj4DXGU0ziWnmDMCNkd29GueW0LR6nEhowfQelFFdJk3bDWDvxd4 oqGuho/4oNXjMYcpp5UVqEBiqfU/+zRKq0XDa124= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Saurav Kashyap , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 5.4 177/260] scsi: qla2xxx: Changes to support kdump kernel Date: Mon, 20 Sep 2021 18:43:15 +0200 Message-Id: <20210920163937.105801843@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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: Saurav Kashyap commit 62e0dec59c1e139dab55aff5aa442adc97804271 upstream. Avoid allocating firmware dump and only allocate a single queue for a kexec kernel. Link: https://lore.kernel.org/r/20210810043720.1137-12-njavali@marvell.com Cc: stable@vger.kernel.org Reviewed-by: Himanshu Madhani Signed-off-by: Saurav Kashyap Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_os.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -2799,6 +2800,11 @@ qla2x00_probe_one(struct pci_dev *pdev, return ret; } + if (is_kdump_kernel()) { + ql2xmqsupport = 0; + ql2xallocfwdump = 0; + } + /* This may fail but that's ok */ pci_enable_pcie_error_reporting(pdev);