Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2020687imu; Fri, 14 Dec 2018 04:37:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/XgFK5msBGm+fXn4syqqS1/CQ8YkYXhy28hOlW5OOPR1ZoyUqAGJWC7Xr3IDrBj2Od5GnMF X-Received: by 2002:a63:7512:: with SMTP id q18mr1624261pgc.231.1544791054011; Fri, 14 Dec 2018 04:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544791053; cv=none; d=google.com; s=arc-20160816; b=yoZJfQaxJKMPM34RuMBzKKTNbycyXK86vqzDMASK8hn8HNJSaCPqFWaUAdgqDeASEY yQ614ILBIkutD6ah8hF8OBHAJOW5fk4pw0SS1DWdpdWkFyCSKxIS+0jOxwsT195S0X/8 MV1H85kJiYZnGo0Q1HrUylpJXFBx1bKy+E0ZykiUc0OfvAL9qbGFMmCUCllG13DhhPfc MMhB2D4VnQvjbgL+4s5OlTcmTUZ6QWwkjwns6I1woZ/IcROnKr3qCWEskdaKBmz7dUt6 IURb1H92cN2KjWT3CEQxuFatKPe2vHaOwWMMwItlXaXNx7ziCRk6vYh7RvSEB0ERg/cQ 8jgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mtfQtFNl3Uq6pgrUNFpHkOzFzkLot8onI8OENZfuYZ4=; b=iDF4fVhqvmmXEXZ+Om2FJkW7+ELvgLyzum4Nh/mkVHLIF2Xg/q2alHZObmsIHWPXt4 XpgYOJO22Je0pZ1clXXpS7RDSPIjqyBhR7/Ps20u+n5jU6Ds/3g62QVeDeGdg4dPC6/X dztQ8nSiNaa6QCox0cmj31GLHWnnQx2yRqe95kIIB5AIvHzGh+yUvzgWa7u8oaDxHv44 PWqMoBBUjhvwaJcoMqgkDH+VnCC7zj1QADsscb2F8lK7FjLBFc/PoejoUS+9lX+uwXej JHyBwDhnyi7soAiMvpFayh7FaRUd699lf9qdPldRwgN3h0BB1Ty1Po8HSXvHHXxKC/ix w3AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UsrhgNdY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o195si4179851pfg.106.2018.12.14.04.37.19; Fri, 14 Dec 2018 04:37:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UsrhgNdY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731045AbeLNMHH (ORCPT + 99 others); Fri, 14 Dec 2018 07:07:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:52220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730497AbeLNMHF (ORCPT ); Fri, 14 Dec 2018 07:07:05 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5630B21479; Fri, 14 Dec 2018 12:07:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789224; bh=LcxgURKP8ecxQvJ6vhrteXiSKxbym/MCtdS756/soSs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UsrhgNdYqrJCrT/SSGdbz+BNtotX1e0zh94OMgnC+6qR5qLpYOmrO4wEiMQRxqA6r SyfJpVARvoAH3ZuXz6oNNm66QJLhQR/0N/CbEIeFIz2BZKKNophYHXiF4Ogvrpxm4w i2jg8cPSsof79MITYpl9WtFOQo28xQ7deM2JVE2g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Sagi Grimberg , Sasha Levin Subject: [PATCH 4.19 120/142] nvme: warn when finding multi-port subsystems without multipathing enabled Date: Fri, 14 Dec 2018 13:00:05 +0100 Message-Id: <20181214115751.832120373@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 14a1336e6fff47dd1028b484d6c802105c58e2ee ] Without CONFIG_NVME_MULTIPATH enabled a multi-port subsystem might show up as invididual devices and cause problems, warn about it. Signed-off-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Signed-off-by: Sasha Levin --- drivers/nvme/host/nvme.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index bb4a2003c097..60220de2db52 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -537,6 +537,9 @@ static inline void nvme_mpath_check_last_path(struct nvme_ns *ns) static inline int nvme_mpath_init(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) { + if (ctrl->subsys->cmic & (1 << 3)) + dev_warn(ctrl->device, +"Please enable CONFIG_NVME_MULTIPATH for full support of multi-port devices.\n"); return 0; } static inline void nvme_mpath_uninit(struct nvme_ctrl *ctrl) -- 2.19.1