From owner-freebsd-stable@freebsd.org Tue Sep 27 14:06:18 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92946BEC59B for ; Tue, 27 Sep 2016 14:06:18 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from cu01176a.smtpx.saremail.com (cu01176a.smtpx.saremail.com [195.16.150.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58CEFE2 for ; Tue, 27 Sep 2016 14:06:17 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from [172.16.8.36] (izaro.sarenet.es [192.148.167.11]) by proxypop03.sare.net (Postfix) with ESMTPSA id 886CF9DC9C5; Tue, 27 Sep 2016 15:57:28 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Subject: Re: Status of PCIe Hotplug? From: Borja Marcos In-Reply-To: <791ee95b-ab4e-f07e-6b8d-0e0b6c49ceb0@janh.de> Date: Tue, 27 Sep 2016 15:57:27 +0200 Cc: FreeBSD-STABLE Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <791ee95b-ab4e-f07e-6b8d-0e0b6c49ceb0@janh.de> To: Jan Henrik Sylvester X-Mailer: Apple Mail (2.3226) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 14:06:18 -0000 > On 27 Sep 2016, at 15:48, Jan Henrik Sylvester wrote: >=20 > On 09/27/2016 12:16, Borja Marcos wrote: >> I have noticed that the GENERIC kernel in 11-STABLE includes the = PCI_HP option, and the >> hotplug bits seem to be present in the kernel, but I don=E2=80=99t = see any userland support for it. >>=20 >> Is it somewhat complete and in that case am I missing something? >=20 > I do not know kind of userland support you mean. I just tried: >=20 > Plugging in my USB 3.0 ExpressCard while 11.0 is running, the = controller > was detected and I was able to use USB devices with it. Great. Thanks :) I was hoping (and I assume it=E2=80=99s the ultimate goal of the = project) to be able to hot plug PCIe devices such as NVMe drives. On Solaris you can replace them provided you power them off previously = (there=E2=80=99s a command for that, =E2=80=9Chotplug=E2=80=9D). On FreeBSD I=E2=80=99ve tried using devctl but powering off, disabling a = device and enabling it again has led to a panic. Interestingly, I disabled nvme0 using devctl and "nvmecontrol devlist" = didn=E2=80=99t find any nvme controllers despite having 10 controllers and 10 drives. However, = the ZFS pool of 10=20 NVMe drives was working happily. Degraded of course, with one NVMe = missing. Borja.