Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1727102pxb; Thu, 16 Sep 2021 14:07:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg+xEl07iPk1wtLdqPAf1VKeQUUw7tibdcnzGSi5TqWnficrPPS3oC3Dqk+PGKIGoxbM1l X-Received: by 2002:a02:7f4a:: with SMTP id r71mr1120500jac.132.1631826426815; Thu, 16 Sep 2021 14:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631826426; cv=none; d=google.com; s=arc-20160816; b=T8eKXBH+cGgTRVPk9oV6XeVECo5jAuJbTmzWki/BWe36pNyYNiYKRKtw7/EFKAtKHs Hclf8OtWt99r/AuwEKhQ5JudfsJG1lyZd2qpAbsqOo6QqUtmdLbISBa+nxfHx0tOxzWI diLdaUuL+IfmckPMYQNeTD5HdH8e5OW+Opz5PLGNqsNabta6JlvXxijj+W7iBnBUbM0F QoTzU4jChFcC2wHvLE5PbViOowTw/xYS+SOPdimbhLcW6ExHjLYoApLrD3QNMmf9d+Yf bu8MsesgBz1C5qkSIC2tO3IZ6EiE0V9j/p0PQrE5K356/WSd4ufY3+CEa1vrvPy/ZDYo Bt+A== 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=xwEwM1lrhZA7VqfNPzsb9GfIbqlR3Oyj3Fu+Spor13A=; b=U9jEPiRLJsaK1kKfsljg/JDdXQet5xjq0HZA6EwXDuyewb2Jn9mpKTq8RV0wMa82rX 5v0DLV1KcCe5PYB9uboB7Zf52AQsinjoHP5P9a/uCfTh8zD6EBU3ZNelQxqCMZiZMbe2 LdoGI7FNAlkpxqD8n0oc253ILnJmpvxvHhPdlpBkBNHo+Fz/lkKN2Xf9jXfHstRYWyfp GGCJOm/u3x1iwKvAQ0xbUrYP7SxIj8O80Mm7rI1UcRd1jQXRO/bdsAuKTC50KfbIkO+L WI4/v4g3dB0hgvVUN7w+9gh/N8hJBMQpAsoYe5SoJi05WPVHU+2TmUQfKSNdCNUfTZzJ Qf5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kxv5Zul5; 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 q14si3356016iot.14.2021.09.16.14.06.43; Thu, 16 Sep 2021 14:07:06 -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=Kxv5Zul5; 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 S243719AbhIPQeP (ORCPT + 99 others); Thu, 16 Sep 2021 12:34:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:38434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240868AbhIPQZ4 (ORCPT ); Thu, 16 Sep 2021 12:25:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 220D461250; Thu, 16 Sep 2021 16:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809020; bh=EYukma/3cUaLYbhuj/YOsFFa6vq8YYgKhLqCA59ZRzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kxv5Zul5x2JQres7QWV+nJVD8XEJwi8uzOye4UBFl3V7wDuwPbEdIZFS8wk1F7i8s dHLx23zg8J8tDidFT7kAtm1w69hhFd774KSGjgfysqbwAAYGjunRTz1YcceTk5fsG0 EfohN7yzTi0TbI1jsNB4jrygj1LA37tE37qIpNQM= 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.10 283/306] scsi: qla2xxx: Changes to support kdump kernel Date: Thu, 16 Sep 2021 18:00:28 +0200 Message-Id: <20210916155803.733269689@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -2828,6 +2829,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);